/* Schüler-Bereich im Gewand der Schulseite. Diese Datei gehört euch: ändert sie, wie ihr wollt.

   Die Formensprache stammt aus dem Theme der Schulseite: heller Grund mit drei weichen Farbwolken in den
   Logofarben, darauf Flächen aus mattem Glas mit runden Ecken, ein schwebender Kopf, als einziger Schmuck die
   kurzen farbigen Balken aus dem Logo. Die Datei vorlage.html zeigt jeden Baustein einmal.

   Was der Server hier zulässt (und was nicht):
   - Alles muss als eigene Datei in diesem Ordner liegen: Stile in einer .css-Datei, Skripte in einer .js-Datei,
     eingebunden mit <link rel="stylesheet" href="…"> und <script src="…"></script>.
   - Nicht erlaubt und ohne Wirkung: style="…" im HTML, <style>…</style> und <script>…</script> direkt im HTML,
     onclick="…", Schriften, Bilder oder Skripte von fremden Servern (Google Fonts, CDNs),
     eingebettete Seiten und Videos von außen (YouTube) und Formulare.
   - Farben: Limette (--limette) ist nur für Flächen und Balken. Als Textfarbe auf Weiß ist sie nicht lesbar. */

@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(schrift/libre-franklin.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(schrift/libre-franklin-kursiv.woff2) format("woff2"); }

:root {
  --blau: #04adec; --blau-tief: #086a94; --magenta: #e5048c; --limette: #cadb2e;
  --tinte: #10222e; --grau: #4a5d69; --nebel: #eef6fa; --linie: #d3e2ea;
  --glas: rgba(255, 255, 255, .62); --glas-dicht: rgba(255, 255, 255, .88); --glas-rand: rgba(255, 255, 255, .8);
  --glas-schatten: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 48px -20px rgba(16, 34, 46, .3), 0 2px 6px -2px rgba(16, 34, 46, .08);
  --weich: blur(22px) saturate(170%);
  --rund: 1.5rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
}
/* Ohne Weichzeichner im Browser oder bei „Transparenz reduzieren“ werden die Glasflächen deckend. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root { --glas: rgba(255, 255, 255, .94); --glas-dicht: #fff; } }
@media (prefers-reduced-transparency: reduce) { :root { --glas: #fff; --glas-dicht: #fff; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--tinte); background: #fff; font: 400 1.0625rem/1.6 "Libre Franklin", "Segoe UI", system-ui, sans-serif; }
/* Farbwolken hinter allem, als festes Feld (ein fester Hintergrund ruckelt auf dem iPhone). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 88% -6%, rgba(4, 173, 236, .26), transparent 62%),
    radial-gradient(44rem 32rem at -8% 34%, rgba(229, 4, 140, .11), transparent 62%),
    radial-gradient(48rem 36rem at 62% 108%, rgba(202, 219, 46, .24), transparent 62%);
}
a { color: var(--blau-tief); text-underline-offset: .18em; }
a:hover { color: var(--tinte); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: .3rem; }
img, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: rgba(16, 34, 46, .07); padding: .1em .4em; border-radius: .4rem; }
.breite { width: min(100% - 2 * var(--rand), 74rem); margin-inline: auto; }

/* Sprungmarke für Tastatur und Vorleseprogramme: erst sichtbar, wenn sie den Fokus hat */
.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 40; padding: .6rem 1rem; border-radius: 999px; background: var(--tinte); color: #fff; font-weight: 700; }
.sprung:focus { top: .6rem; color: #fff; }

/* ---------- Entwurfshinweis ---------- */
.entwurf { margin: 0; padding: .5rem 1rem; background: var(--limette); font-size: .88rem; font-weight: 600; text-align: center; }

/* ---------- Kopf: schwebende Glasleiste ---------- */
.kopf { position: sticky; top: .6rem; z-index: 30; width: min(100% - 1.5rem, 80rem); margin: .5rem auto 0; padding-inline: clamp(.9rem, 2vw, 1.5rem); border-radius: 1.4rem; background: var(--glas); -webkit-backdrop-filter: var(--weich); backdrop-filter: var(--weich); border: 1px solid var(--glas-rand); box-shadow: var(--glas-schatten); }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; min-height: 4.25rem; }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--tinte); min-width: 0; }
.marke img { width: 3rem; flex: none; }
.marke-name { display: block; font-weight: 800; font-size: 1.45rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.marke-zusatz { display: block; margin-top: .3rem; font-weight: 600; font-size: .7rem; line-height: 1; letter-spacing: .22em; text-transform: uppercase; color: var(--grau); }

/* ---------- Menü zwischen euren Seiten: eine Reihe runder Felder. Die aktuelle Seite bekommt aria-current="page". ---------- */
.menue { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.menue a { display: block; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--linie); background: var(--glas-dicht); color: var(--tinte); font-weight: 600; text-decoration: none; }
.menue a:hover { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.menue a[aria-current="page"] { background: rgba(4, 173, 236, .16); border-color: transparent; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-block; background: var(--tinte); color: #fff; border: 2px solid var(--tinte); text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: .8rem 1.4rem; border-radius: 999px; }
.knopf:hover { background: var(--blau-tief); border-color: var(--blau-tief); color: #fff; }
.knopf.umriss { background: none; color: var(--tinte); }
.knopf.umriss:hover { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.knopf.klein { padding: .5rem 1rem; font-weight: 600; white-space: nowrap; }

/* ---------- Seitenanfang ---------- */
main { flex: 1; }
.seitenkopf { padding-block: clamp(2rem, 4.5vw, 3.25rem) .5rem; }
.seitenkopf > * { margin-block: 0; }
/* Der dreifarbige Balken aus dem Logo, wie unter jeder Überschrift der Schulseite */
.seitenkopf h1::after { content: ""; display: block; width: 7.5rem; max-width: 100%; height: .45rem; border-radius: 999px; margin-top: 1.1rem; background: linear-gradient(90deg, var(--blau) 0 52%, transparent 52% 56%, var(--magenta) 56% 78%, transparent 78% 82%, var(--limette) 82%); }
.seitenkopf .satz { margin-top: 1.4rem; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--grau); max-width: 44rem; }

/* ---------- Karten aus Glas ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; padding-block: 1.75rem clamp(2.5rem, 6vw, 4rem); }
.karte { display: flex; flex-direction: column; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--rund); background: var(--glas); -webkit-backdrop-filter: var(--weich); backdrop-filter: var(--weich); border: 1px solid var(--glas-rand); box-shadow: var(--glas-schatten); }
.karte::before { content: ""; display: block; width: 2.75rem; height: .4rem; border-radius: 999px; background: var(--blau); margin-bottom: 1rem; }
.karte:nth-child(3n + 2)::before { background: var(--magenta); }
.karte:nth-child(3n)::before { background: var(--limette); }
.karte > * { margin-block: 0; }
.karte h2 { font-size: 1.4rem; }
.karte p { margin-top: .6rem; color: var(--grau); }
.karte .wege { margin-top: auto; padding-top: 1.1rem; }
.karte .wege .knopf { padding: .5rem 1rem; font-weight: 600; }

/* ---------- Text auf einer Glasfläche. Grundgerüst einer Textseite: <div class="breite"><article class="text"> … ---------- */
.text { margin-block: 1.75rem clamp(2.5rem, 6vw, 4rem); padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--rund); background: var(--glas-dicht); border: 1px solid var(--glas-rand); box-shadow: var(--glas-schatten); max-width: 50rem; }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.text h2 { margin-top: 1.8em; }
.text h3 { margin-top: 1.5em; margin-bottom: .4em; }
.text :where(p, li, h2, h3, td, th) { overflow-wrap: break-word; }
.text a { overflow-wrap: anywhere; }
.text ul, .text ol { padding-left: 1.4rem; }
.text li { margin-block: .25rem; }
.text img, .text video { border-radius: 1.1rem; }
figure { margin: 1.5rem 0; }
figcaption { margin-top: .5rem; font-size: .9rem; color: var(--grau); }
/* Tabelle: in <div class="tabelle"> setzen, dann lässt sie sich am Handy seitlich schieben */
.tabelle { overflow-x: auto; font-size: .97rem; }
table { border-collapse: collapse; width: 100%; }
td, th { border: 1px solid var(--linie); padding: .5rem .7rem; vertical-align: top; text-align: left; }
th { background: var(--nebel); }
/* Hinweis-Kasten */
.hinweis { margin-block: 1.25rem; padding: 1rem 1.25rem; border-radius: 1.1rem; background: rgba(202, 219, 46, .22); }
.hinweis > :first-child { margin-top: 0; }
.hinweis > :last-child { margin-bottom: 0; }
/* Bildraster: <div class="bilder"><img …><img …></div> */
.bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .75rem; margin-block: 1.5rem; }
.bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.1rem; display: block; }

/* ---------- Fuß ---------- */
.fuss { margin-top: 2rem; padding-block: 2.25rem 1.5rem; border-radius: 2rem 2rem 0 0; color: #cfdce4; font-size: .97rem; background-color: var(--tinte); background-image: radial-gradient(40rem 22rem at 100% 0, rgba(4, 173, 236, .22), transparent 70%); }
.fuss a, .fuss a:hover { color: #fff; }
.fuss-zeile { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: baseline; }
.fuss-zeile p { margin: 0; }
.fuss-verweise { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Schmale Bildschirme: der Kopf bleibt einzeilig, „Zur Schulseite“ steht dann nur im Fuß ---------- */
@media (max-width: 40rem) {
  .kopf { border-radius: 1.2rem; }
  .kopf-zeile { min-height: 3.75rem; }
  .kopf .knopf { display: none; }
  .marke img { width: 2.5rem; }
  .marke-name { font-size: 1.05rem; letter-spacing: .04em; }
  .marke-zusatz { letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .entwurf, .kopf, .fuss, .menue, .sprung, body::before { display: none; }
  .karte, .text { box-shadow: none; border: 1px solid var(--linie); }
  .text a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
