/* schulkontor.de – Farben wie die App (web/static/app.css, Farben.swift).
   Keine fremden Schriften, keine fremden Server: nichts wird nachgeladen. */
:root {
  --petrol: #156879; --petrol-dunkel: #0E4551; --petrol-hell: #E3EDEF;
  --grund: #F6F7F9; --feld: #FFFFFF; --linie: #E3E6EB;
  --text: #17211F; --matt: #5E6873;
  --schatten: 0 1px 2px rgba(14,69,81,.06), 0 8px 28px rgba(14,69,81,.10);
  --rund: 18px;
  --breite: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #111418; --feld: #1B1F25; --linie: #2C313A;
    --text: #E8EBEF; --matt: #9AA4AE; --petrol-hell: rgba(21,104,121,.28);
    --schatten: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--petrol); }
@media (prefers-color-scheme: dark) { a { color: #6FC3D2; } }
img { max-width: 100%; height: auto; display: block; }   /* height:auto – sonst bleibt die Höhe aus dem HTML stehen und das Bild wird gestaucht */
.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--grund) 82%, transparent); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.marke img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--matt); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav a:not(.knopf) { display: none; } }

.knopf { display: inline-block; background: var(--petrol); color: #fff !important; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 0; }
.knopf:hover { background: var(--petrol-dunkel); }
.knopf.leise { background: transparent; color: var(--petrol) !important; box-shadow: inset 0 0 0 1.5px var(--petrol); }
.nav .knopf { padding: 8px 16px; font-size: 14px; }

/* Bühne */
.buehne { padding: 72px 0 56px; }
.buehne .huelle { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .buehne .huelle { grid-template-columns: 1fr; } .buehne { padding-top: 40px; } }
.oberzeile { color: var(--petrol); font-weight: 600; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -.025em; margin: 12px 0 20px; }
.unterzeile { font-size: 20px; color: var(--matt); max-width: 34em; margin: 0 0 28px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.kleingedruckt { font-size: 14px; color: var(--matt); margin-top: 16px; }

/* Telefon oben angeschnitten, läuft nach unten weich aus – die Überschrift bleibt über der Falz */
.telefon { justify-self: center; width: min(340px, 82vw); height: min(560px, 120vw); overflow: hidden;
  border-radius: 48px 48px 0 0; padding: 10px 10px 0; background: #0b0d10;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.telefon img { border-radius: 38px 38px 0 0; width: 100%; }

/* Abschnitte */
section { padding: 64px 0; }
section.hell { background: var(--feld); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
.einleitung { color: var(--matt); font-size: 19px; max-width: 42em; margin: 0 0 36px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.karte { background: var(--feld); border: 1px solid var(--linie); border-radius: var(--rund); padding: 26px; }
section.hell .karte { background: var(--grund); }
.karte h3 { margin: 10px 0 6px; font-size: 19px; }
.karte p { margin: 0; color: var(--matt); font-size: 16px; }
.zeichen { width: 44px; height: 44px; border-radius: 12px; background: var(--petrol-hell); color: var(--petrol);
  display: grid; place-items: center; font-size: 22px; }

/* Legende */
.legende { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.farbe { display: flex; gap: 14px; align-items: flex-start; background: var(--feld); border: 1px solid var(--linie);
  border-radius: 14px; padding: 14px 16px; }
.muster { flex: 0 0 auto; min-width: 128px; text-align: center; font-weight: 700; font-size: 14px;
  border-radius: 8px; padding: 6px 10px; }
.muster.offen { box-shadow: inset 0 0 0 2px currentColor; }
.farbe p { margin: 0; font-size: 15px; color: var(--matt); }

/* Bilderleiste */
.leiste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .leiste { grid-template-columns: repeat(2, 1fr); } }
.leiste figure { margin: 0; }
.leiste img { border-radius: 26px; border: 6px solid #0b0d10; box-shadow: var(--schatten); }
.leiste figcaption { font-size: 15px; color: var(--matt); margin-top: 12px; text-align: center; }

/* Schritte */
.schritte { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.schritt { position: relative; padding: 26px 26px 26px 78px; background: var(--feld); border: 1px solid var(--linie); border-radius: var(--rund); }
.schritt::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 24px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--petrol); color: #fff; font-weight: 700;
  display: grid; place-items: center; }
.schritt h3 { margin: 4px 0 6px; font-size: 18px; }
.schritt p { margin: 0; color: var(--matt); font-size: 16px; }

/* Fragen */
details { background: var(--feld); border: 1px solid var(--linie); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--petrol); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--matt); }

/* Schluss */
.schluss { text-align: center; }
.schluss .einleitung { margin-left: auto; margin-right: auto; }
.schluss .knoepfe { justify-content: center; }

/* Fuß */
.fuss { padding: 36px 0 48px; color: var(--matt); font-size: 14px; border-top: 1px solid var(--linie); }
.fuss .huelle { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.fuss a { color: var(--matt); margin-right: 18px; }

/* Textseiten */
.text { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.text h1 { font-size: clamp(30px, 4vw, 42px); }
.text h2 { font-size: 22px; margin-top: 36px; }
.text table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.text th, .text td { border-bottom: 1px solid var(--linie); padding: 10px 8px; text-align: left; vertical-align: top; }
.text .stand { color: var(--matt); }
.luecke { background: #FBF0C0; color: #7A5A00; padding: 0 4px; border-radius: 4px; }

/* Startseite Leitungsplaner (30.09.2026) */
.buehne.breit .huelle { display: block; text-align: center; }
.buehne.breit .unterzeile { margin-left: auto; margin-right: auto; }
.buehne.breit .knoepfe { justify-content: center; }
.fenster { margin: 48px auto 0; max-width: 1080px; border-radius: 12px; overflow: hidden;
  box-shadow: var(--schatten), 0 40px 80px rgba(14,69,81,.22); }
.fenster img { width: 100%; }
.zitat { text-align: center; }
.zitat blockquote { margin: 0 auto 18px; max-width: 30em; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35;
  font-weight: 600; letter-spacing: -.01em; color: var(--petrol); }
@media (prefers-color-scheme: dark) { .zitat blockquote { color: #6FC3D2; } }
.zitat .einleitung { margin: 0 auto; }
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.galerie figure { margin: 0; }
.galerie img { border-radius: 10px; box-shadow: var(--schatten); }
.galerie figcaption { font-size: 15px; color: var(--matt); margin-top: 10px; }
.bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.bereich { border-left: 3px solid var(--petrol); padding: 4px 0 4px 16px; }
.bereich h3 { margin: 0 0 4px; font-size: 17px; }
.bereich p { margin: 0; color: var(--matt); font-size: 15px; }
.paket .paket-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.paket .paket-kopf h3 { margin: 0; font-size: 21px; color: var(--petrol); }
@media (prefers-color-scheme: dark) { .paket .paket-kopf h3 { color: #6FC3D2; } }
.paket .paket-kopf span { font-size: 13px; color: var(--matt); }
.paket p { margin: 10px 0 12px; }
.paket ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.paket li { font-size: 13px; background: var(--petrol-hell); color: var(--petrol); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .paket li { color: #9ED6E0; } }
.raster.pakete { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
@media (max-width: 520px) { .raster.pakete { grid-template-columns: 1fr; } }
.lp-teaser { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .lp-teaser { grid-template-columns: 1fr; } }
.telefon.klein { width: min(280px, 70vw); height: min(440px, 100vw); }

/* Pflichtfassung (Martin 01.10.2026): Kopf und Fuß an den Fensterrändern, Fuß unten
   fest; Startseite mittig, „Fragen?“ im unteren Drittel. */
body.pflicht { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.pflicht main { flex: 1; display: flex; flex-direction: column; }
.huelle.voll { max-width: none; padding: 0 32px; }
@media (max-width: 600px) { .huelle.voll { padding: 0 16px; } }
.pflicht .kopf .huelle { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.kopf-rechts { font-size: 15px; color: var(--matt); text-align: right; }
.kopf-rechts a { color: var(--petrol); }
@media (prefers-color-scheme: dark) { .kopf-rechts a { color: #6FC3D2; } }
@media (max-width: 600px) { .kopf-rechts { font-size: 13px; } .kopf-rechts span { display: block; } }
.pflicht .fuss { padding: 22px 0; }
.pflicht .fuss .huelle { align-items: center; }
.pflicht .fuss a:last-child { margin-right: 0; }
.start { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(13vh + 5px) 16px 0; }
.start h1 { margin: 0 0 22px; font-size: clamp(44px, 8vw, 74px); }
.start .untertitel, .start .fragen { font-size: clamp(17px, 4.6vw, 21px); color: var(--matt); }
.start .untertitel { margin: 0; line-height: 1.6; }
.start .untertitel span { white-space: nowrap; }
.start .fragen { margin: auto 0 calc(16vh + 8px); padding-top: 48px; }
/* Telefon: Kopf und Fuß bleiben je eine Zeile – links Marke/©, rechts Hinweis/Links */
.pflicht .kopf .huelle, .pflicht .fuss .huelle { flex-wrap: nowrap; gap: 12px; }
.pflicht .fuss .huelle > div:last-child { white-space: nowrap; }
@media (max-width: 600px) {
  .pflicht .marke { font-size: 17px; }
  .pflicht .marke img { width: 28px; height: 28px; }
  .pflicht .fuss { font-size: 12.5px; }
  .pflicht .fuss a { margin-right: 10px; }
}

.kopf-rechts { display: flex; align-items: center; gap: 12px; }
.knopf.klein { padding: 7px 16px; font-size: 14px; }
@media (max-width: 600px) { .kopf-rechts span { display: inline; } .knopf.klein { padding: 6px 12px; font-size: 13px; } }

/* 01.10.2026, zweite Runde: Untertitel allein oben mit mehr Abstand zum Titel;
   „Hier entsteht gerade etwas.“ wandert zur Fragen-Zeile nach unten. */
.start h1 { margin-bottom: 34px; }
.start .untertitel { white-space: nowrap; }
.start .unten { margin: auto 0 calc(16vh + 8px); padding-top: 48px; }
.start .unten p { margin: 0; font-size: clamp(17px, 4.6vw, 21px); line-height: 1.6; color: var(--matt); }
