/* =========================================================
   Schülerlabor-Angebote – gemeinsames Aussehen für die
   Startseite und die Angebotsseiten.

   Farben und Maße folgen der Laboranleitung, damit der
   Übergang von der Startseite in die App nicht wie ein
   Systemwechsel wirkt.
   ========================================================= */

:root {
  --papier: #FFFFFF; --ebene: #F7F9F6;
  --ink: #1B2A22; --ink-soft: #3A5566; --ink-mute: #8FA3AE;
  --line: #E3E8E2;
  --leaf: #51843C; --leaf-deep: #3C6A2B; --leaf-wash: #EDF3E9;
  --warn: #C8811E; --warn-wash: #FDF5E8; --alert: #B3402C;

  /* Hausfarben der FAU und der Philosophischen Fakultät.
     Das Gelb ist eine Flächenfarbe, keine Schriftfarbe: Gelb auf Weiß kommt
     nur auf 1,75:1 und ist damit unlesbar. Auf gelbem Grund steht Schwarz
     (11,3:1) oder FAU-Blau (7,4:1) — so schreibt es auch die Webvorgabe
     der FAU vor. */
  --fau-blau:  #002F6C;
  --phil-gelb: #FDB735;
  --phil-tief: #963B2F;

  --r: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--ebene); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.55;
}

.huelle { max-width: 820px; margin: 0 auto; padding: 32px 22px 72px; }

/* ---------- Kopf mit Logo ---------- */

.kopf {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.kopf__logo { display: inline-flex; }
.kopf__logo img { height: 52px; width: auto; display: block; }
.kopf__text { font-size: 14px; color: var(--ink-mute); }
.kopf__text a { color: var(--leaf-deep); text-decoration: none; font-weight: 600; }
.kopf__text a:hover { text-decoration: underline; }

.zurueck {
  display: inline-block; margin-bottom: 18px; font-size: 16px;
  color: var(--ink-soft); text-decoration: none;
}
.zurueck:hover { color: var(--leaf-deep); }

h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 38px 0 14px; }
h3 { font-size: 19px; margin: 0 0 4px; }
.lead { color: var(--ink-soft); margin: 0 0 8px; }

/* ---------- Kacheln ---------- */

.kacheln { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.kachel {
  display: flex; flex-direction: column;
  background: var(--papier); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; text-decoration: none; color: inherit;
}
.kachel:hover { border-color: var(--leaf); }
.kachel:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.kachel .art {
  font-size: 13px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Zeichen des Angebots neben der Überschrift. Die Hintergrundfarbe ist
   dieselbe, die die Bilddatei selbst mitbringt (#F4F6F3) – so verschwindet
   ihre Kante, statt als blasses Quadrat auf der weißen Karte zu stehen. */
.kachel__kopf { display: flex; align-items: center; gap: 16px; }
.zeichen {
  width: 64px; height: 64px; flex: none;
  border-radius: 12px; background: #F4F6F3; object-fit: contain;
}
/* Manche Angebote haben statt eines quadratischen Zeichens eine Wortmarke.
   Die trägt den Namen dann selbst – eine Überschrift daneben würde ihn nur
   doppeln. Der Name steckt im Alternativtext, für Vorlesesoftware und für
   den Fall, dass die Grafik nicht lädt. */
.wortmarke { display: block; height: 34px; width: auto; margin: 4px 0 0; }

.titelzeile { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.titelzeile .zeichen { width: 84px; height: 84px; border-radius: 16px; }
.titelzeile h1 { margin: 0; }
.kachel p { margin: 8px 0 0; color: var(--ink-soft); font-size: 17px; }
.kachel .los { margin-top: 18px; color: var(--leaf-deep); font-weight: 600; }

/* ---------- Startseite in den Hausfarben ---------- */

/* Das gelbe Band oben ist das Fakultätssignal – eine Fläche, kein Text. */
body.start { border-top: 6px solid var(--phil-gelb); }
body.start h1 { color: var(--fau-blau); }
body.start h2 { color: var(--fau-blau); }
body.start .kopf__text a { color: var(--fau-blau); }
body.start .fuss a { color: var(--fau-blau); }

/* Jedes Angebot trägt seine eigene Farbe an der Kante. Future Foods behält
   das Grün der Anleitung, damit der Übergang in die App nicht wie ein
   Systemwechsel wirkt. */
.kachel--farbe {
  border-left: 6px solid var(--akzent, var(--leaf-deep));
  padding-left: 22px;
}
.kachel--farbe:hover { border-color: var(--akzent, var(--leaf-deep)); }
.kachel--farbe .art { color: var(--akzent, var(--leaf-deep)); opacity: 0.85; }
.kachel--farbe .los { color: var(--akzent, var(--leaf-deep)); }

/* ---------- Kästen und Bedienelemente ---------- */

.kasten {
  background: var(--papier); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px;
}
.kasten + .kasten { margin-top: 14px; }

/* Ein Kasten, der als Ganzes ein Link ist – für den Hinweis aufs
   Fortbildungszentrum. */
a.kasten { display: block; text-decoration: none; color: inherit; }
a.kasten:hover { border-color: var(--fau-blau); }
a.kasten:focus-visible { outline: 3px solid var(--fau-blau); outline-offset: 2px; }
a.kasten .los { display: block; margin-top: 14px; color: var(--fau-blau); font-weight: 600; }
.fbz { display: block; width: 100%; max-width: 330px; height: auto; margin-bottom: 14px; }

/* ---------- Zugang für die Gruppen ---------- */

.qr { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr img {
  width: 180px; height: 180px; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.qr__text { flex: 1; min-width: 240px; }
.qr__adresse {
  font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; color: var(--ink);
  overflow-wrap: break-word; margin: 6px 0 0;
}

/* Beim Ausdrucken bleibt nur das Nötige: Code-Zugang groß, Bedienelemente weg. */
@media print {
  .kopf, .zurueck, .fuss, .reihe, .merk, .unterlagen, h2, .schritte { display: none; }
  .qr img { width: 260px; height: 260px; }
}

/* ---------- Unterlagen zum Herunterladen ---------- */

.unterlagen { list-style: none; padding: 0; margin: 0; }
.unterlagen li {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.unterlagen li:first-child { padding-top: 0; }
.unterlagen li:last-child { border-bottom: 0; padding-bottom: 0; }
.unterlagen a { color: var(--leaf-deep); font-weight: 600; text-decoration: none; }
.unterlagen a:hover { text-decoration: underline; }
.unterlagen .form { color: var(--ink-mute); font-size: 14px; white-space: nowrap; }
.unterlagen .bald { color: var(--ink-mute); }
/* Der Zustand steht als Wort da, nicht nur als Farbe. */
.unterlagen .marke {
  margin-left: auto; font-size: 13px; white-space: nowrap;
  background: var(--warn-wash); color: var(--warn);
  padding: 3px 11px; border-radius: 999px;
}

.knopf {
  font: inherit; font-weight: 600; font-size: 17px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--leaf-deep); background: var(--leaf-deep); color: #fff;
  text-decoration: none; display: inline-block;
}
.knopf--zweit { background: var(--papier); color: var(--leaf-deep); }
.knopf[disabled] { opacity: 0.5; cursor: default; }
.knopf:focus-visible, input:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

input[type=text] {
  font: inherit; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--ink-mute); background: var(--papier); color: var(--ink);
  width: 190px; text-transform: uppercase; letter-spacing: 0.08em;
}

ol.schritte { padding-left: 22px; color: var(--ink-soft); font-size: 17px; margin: 8px 0 0; }
ol.schritte li { margin-bottom: 6px; }
ol.schritte b { color: var(--ink); }

/* ---------- Kurscode ---------- */

.code {
  margin-top: 16px; padding: 18px 22px; border-radius: var(--r);
  background: var(--leaf-wash); border: 1px solid var(--leaf);
}
.code__wert {
  font-size: clamp(38px, 9vw, 56px); font-weight: 700; letter-spacing: 0.1em;
  color: var(--leaf-deep); line-height: 1.1; text-transform: uppercase;
}
.code__hinweis { color: var(--ink-soft); font-size: 16px; margin: 8px 0 0; }
.code a { color: var(--leaf-deep); }

.merk {
  margin-top: 16px; padding: 16px 20px; border-radius: var(--r);
  background: var(--warn-wash); border: 1px solid var(--warn); font-size: 16px;
}
.merk b { display: block; margin-bottom: 2px; }

.meldung { margin-top: 12px; color: var(--alert); font-size: 16px; }

/* ---------- Fuß ---------- */

.fuss {
  margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--ink-mute); font-size: 15px;
}
.fuss p { margin: 0 0 8px; }
.fuss nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.fuss a { color: var(--ink-soft); }
