/* Stil schule.verenasigl.de (Verena) – seit 03.11.2026 Landingpage mit zwei Kacheln.
   Nur lokale Dateien (CSP default-src 'self': keine Inline-Styles, keine fremden Schriften). Hell und dunkel, ab 320 px nutzbar.
   Schrift: „Fibel Web“ = Teilmenge von Andika (SIL OFL, umbenannt, fonts/OFL.txt) – eine Schrift für Leseanfänger, passt zum Thema. */

@font-face { font-family: "Fibel Web"; src: url("/fonts/fibel-web-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fibel Web"; src: url("/fonts/fibel-web-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --grund: #fbf7f0;  --flaeche: #ffffff;  --flaeche-2: #f4eee3;  --linie: #e7dfd1;
  --text: #2a2622;   --leise: #5e574f;
  --akzent: #a64b28;            /* Terrakotta dunkel – Links, Knöpfe (Kontrast ≥ 5:1 auf Grund) */
  --akzent-text: #ffffff;
  --salbei: #4f7350;  --salbei-hell: #e3ecdf;   /* Vorschule */
  --terra: #b5532e;   --terra-hell: #f6e1d6;    /* DaZ */
  --senf: #d9a531;
  --himmel: #33658e; --himmel-hell: #e1ebf4;   /* Screenings */
  --schatten: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .08);
  --schatten-hoch: 0 2px 4px rgba(60, 40, 20, .08), 0 18px 40px rgba(60, 40, 20, .14);
  --radius: 22px;
  --breite: 72rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1b1916;  --flaeche: #25221e;  --flaeche-2: #2d2924;  --linie: #3a352f;
    --text: #f2ede5;   --leise: #c2b9ad;
    --akzent: #f0a27e; --akzent-text: #1b1916;
    --salbei: #a9cba7; --salbei-hell: #2c3a2c;
    --terra: #f0a27e;  --terra-hell: #3d2b23;
    --himmel: #9cc3e4; --himmel-hell: #23313d;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --schatten-hoch: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { background: var(--grund); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--grund); color: var(--text);
       font: 1.0625rem/1.6 "Fibel Web", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--akzent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }

/* ---- Grundgerüst Textseiten (Impressum, Datenschutz, 404) ---- */
main { flex: 1; width: 100%; max-width: 44rem; margin: 0 auto; padding: 2.5rem 16px 3rem; }
main h1 { font-size: clamp(1.7rem, 4vw, 2.1rem); margin: 0 0 1rem; }
main > h1::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: .7rem; background: var(--akzent); border-radius: 2px; }
main h2 { font-size: 1.15rem; margin: 1.8rem 0 .4rem; }
.leise, .zurueck { color: var(--leise); }
.zurueck { margin: 0 0 1.5rem; font-size: .95rem; }

/* ---- Sprunglink ---- */
.springen { position: absolute; left: 16px; top: -100px; z-index: 20; padding: .6rem 1rem; border-radius: 10px;
            background: var(--akzent); color: var(--akzent-text); font-weight: 700; text-decoration: none; }
.springen:focus { top: 12px; }

/* ---- Kopf ---- */
.kopf { position: relative; z-index: 5; width: 100%; max-width: var(--breite); margin: 0 auto; padding: 14px 16px;
        display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marke { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; min-height: 44px; }
.marke svg { flex: none; width: 40px; height: 40px; }
.marke strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.marke small { display: block; font-size: .85rem; color: var(--leise); line-height: 1.2; }
.kopf-link { font-size: .95rem; font-weight: 700; text-decoration: none; padding: .55rem .9rem; border-radius: 999px; min-height: 44px;
             display: inline-flex; align-items: center; color: var(--text); background: color-mix(in srgb, var(--flaeche) 75%, transparent); }
.kopf-link:hover { background: var(--flaeche); }

/* ---- Startseite: breiter Rahmen ---- */
.start main, .bereich main { max-width: none; padding: 0; }
.huelle { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 16px; }

/* ---- Held (Bühne mit Foto) ---- */
.held { position: relative; isolation: isolate; margin-top: -72px; }       /* Foto läuft unter den Kopf */
.held-bild img { width: 100%; height: 100%; object-fit: cover; }
.held-text { position: relative; width: 100%; }
.dachzeile { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .35rem .8rem; border-radius: 999px;
             background: var(--flaeche); box-shadow: var(--schatten); font-size: .9rem; font-weight: 700; color: var(--leise); }
.dachzeile i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--salbei); display: inline-block; }
.dachzeile i:nth-of-type(2) { background: var(--terra); }
.dachzeile i:nth-of-type(3) { background: var(--himmel); }
.held h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin: 0 0 1rem; max-width: 15ch; }
.held h1 em { font-style: normal; color: var(--akzent); }
.einleitung { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--leise); margin: 0 0 1.8rem; max-width: 34rem; }
.knopf { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .8rem 1.4rem; border-radius: 999px;
         background: var(--akzent); color: var(--akzent-text); font-weight: 700; font-size: 1.05rem; text-decoration: none;
         box-shadow: var(--schatten); transition: transform .2s ease, box-shadow .2s ease; }
.knopf:hover { transform: translateY(-2px); box-shadow: var(--schatten-hoch); }
.knopf svg { width: 20px; height: 20px; }

@media (min-width: 860px) {
  .held { min-height: clamp(34rem, 78vh, 46rem); display: flex; align-items: center; }
  .held-bild { position: absolute; inset: 0; z-index: -2; }
  .held-bild img { object-position: 78% center; }
  .held::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, var(--grund) 0%, color-mix(in srgb, var(--grund) 88%, transparent) 32%,
                color-mix(in srgb, var(--grund) 30%, transparent) 58%, transparent 75%),
                linear-gradient(0deg, var(--grund) 0%, transparent 18%); }
  .held-text { padding: 120px 0 72px; }
}
@media (max-width: 859.98px) {
  .held-bild { display: block; aspect-ratio: 4 / 3; max-height: 62vh; overflow: hidden; }
  .held-bild img { object-position: 72% center; }
  .held::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 1; pointer-events: none;
                  background: linear-gradient(180deg, color-mix(in srgb, var(--grund) 85%, transparent), transparent); }
  .held-text { margin-top: -3.5rem; padding-bottom: 2.5rem; }
  .held-text .huelle > * { position: relative; }
  .held-text .huelle::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3.5rem;
                               background: linear-gradient(0deg, var(--grund), transparent); }
}
@media (prefers-color-scheme: dark) and (min-width: 860px) {
  .held-bild img { filter: brightness(.82) saturate(.95); }
}
@media (prefers-color-scheme: dark) and (max-width: 859.98px) {
  .held-bild img { filter: brightness(.85); }
}

/* ---- Bereiche (zwei Kacheln) ---- */
.bereiche { padding: 1.5rem 0 4rem; }
.abschnitt-kopf { margin: 0 0 1.6rem; }
.abschnitt-kopf h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 .4rem; }
.abschnitt-kopf p { margin: 0; color: var(--leise); }
.kacheln { display: grid; gap: clamp(1rem, 2.5vw, 2rem); grid-template-columns: 1fr; max-width: 38rem; margin: 0 auto; }
@media (min-width: 940px) { .kacheln { grid-template-columns: repeat(3, 1fr); max-width: none; } }

.kachel { position: relative; display: flex; flex-direction: column; background: var(--flaeche); border-radius: var(--radius);
          overflow: hidden; box-shadow: var(--schatten); border: 1px solid var(--linie);
          transition: transform .25s ease, box-shadow .25s ease; --farbe: var(--salbei); --farbe-hell: var(--salbei-hell); }
.kachel-daz { --farbe: var(--terra); --farbe-hell: var(--terra-hell); }
.kachel-screening { --farbe: var(--himmel); --farbe-hell: var(--himmel-hell); }
.kachel:hover, .kachel:focus-within { transform: translateY(-4px); box-shadow: var(--schatten-hoch); }
.kachel-bild { position: relative; aspect-ratio: 16 / 10; background: var(--flaeche-2); }
.kachel-bild picture { display: block; height: 100%; overflow: hidden; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kachel:hover .kachel-bild img { transform: scale(1.04); }
.kachel-symbol { position: absolute; left: 20px; bottom: -28px; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
                 background: var(--farbe-hell); color: var(--farbe); border: 4px solid var(--flaeche); box-shadow: var(--schatten); z-index: 1; }
.kachel-symbol svg { width: 34px; height: 34px; }
.kachel-text { display: flex; flex-direction: column; flex: 1; padding: 2.6rem 1.5rem 1.5rem; }
.kachel h3 { font-size: clamp(1.4rem, 2.2vw, 1.6rem); margin: 0 0 .5rem; }
.kachel h3 a { color: var(--text); text-decoration: none; }
.kachel h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }   /* ganze Kachel klickbar */
.kachel h3 a:focus-visible { outline: none; }
.kachel:focus-within { outline: 3px solid var(--akzent); outline-offset: 4px; }
.kachel p { margin: 0 0 1rem; color: var(--leise); }
.marker { position: absolute; top: 16px; right: 16px; z-index: 1; padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
          background: color-mix(in srgb, var(--flaeche) 92%, transparent); color: var(--text); box-shadow: var(--schatten); }
.stichworte { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.4rem; padding: 0; }
.stichworte li { padding: .3rem .75rem; border-radius: 999px; background: var(--farbe-hell); color: var(--text); font-size: .92rem; }
.weiter { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--farbe); }
.weiter svg { width: 20px; height: 20px; transition: transform .25s ease; }
.kachel:hover .weiter svg { transform: translateX(4px); }

/* ---- So ist das Material ---- */
.prinzipien { padding: 3.5rem 0 4.5rem; background: var(--flaeche-2); border-top: 1px solid var(--linie); }
.prinzipien-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .prinzipien-liste { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } }
.prinzipien-liste li { background: var(--flaeche); border-radius: 18px; padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--linie); }
.prinzipien-liste svg { width: 44px; height: 44px; color: var(--akzent); margin-bottom: .7rem; }
.prinzipien-liste h3 { font-size: 1.2rem; margin: 0 0 .35rem; }
.prinzipien-liste p { margin: 0; color: var(--leise); }

/* ---- Bereichsseiten (Vorschule, DaZ) ---- */
.bereich { --farbe: var(--salbei); --farbe-hell: var(--salbei-hell); }
.bereich-daz { --farbe: var(--terra); --farbe-hell: var(--terra-hell); }
.bereich-screening { --farbe: var(--himmel); --farbe-hell: var(--himmel-hell); }
.bereich-kopf { padding: 1rem 0 2.5rem; }
.bereich-raster { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .bereich-raster { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.bereich-kopf h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: .2rem 0 1rem; }
.bereich-kopf .einleitung { margin-bottom: 1.4rem; }
.bereich-bild { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten-hoch); aspect-ratio: 1 / 1; max-width: 32rem; }
.bereich-bild img { width: 100%; height: 100%; object-fit: cover; }
.brotkrumen { font-size: .95rem; margin: 0 0 .5rem; }
.brotkrumen a { color: var(--leise); }
.hinweis { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border-radius: 18px; background: var(--farbe-hell);
           border: 1px solid color-mix(in srgb, var(--farbe) 30%, transparent); max-width: 40rem; }
.hinweis svg { flex: none; width: 28px; height: 28px; color: var(--farbe); margin-top: .1rem; }
.hinweis p { margin: 0; }
.themen { padding: 0 0 4rem; }
.themen h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 1rem; }
.themen-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .themen-liste { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .themen-liste { grid-template-columns: repeat(4, 1fr); } }
.themen-liste li { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px; padding: 1.2rem 1.2rem 1.3rem; box-shadow: var(--schatten); }
.themen-liste svg { width: 36px; height: 36px; color: var(--farbe); margin-bottom: .5rem; }
.themen-liste h3 { font-size: 1.12rem; margin: 0 0 .3rem; }
.themen-liste p { margin: 0; color: var(--leise); font-size: .98rem; }

/* ---- Fuß ---- */
footer { border-top: 1px solid var(--linie); padding: 1.3rem 16px 1.6rem; text-align: center; font-size: .95rem; color: var(--leise); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.4rem; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
footer .fussnote { margin: .3rem 0 0; font-size: .85rem; }
