/* Schriften lokal gehostet (keine Verbindung zu Google) */
@font-face { font-family: "Amatic SC"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/amatic-sc-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("fonts/nunito-variable.woff2") format("woff2"); }

/* Schule am Extumer Weg – Übergangsseite
   Farbzweck:
   --accent (Rot)  = nur Aktionen & Schlüsselzahlen
   --notice (Gelb) = nur der Umbau-Hinweis
   alles andere    = ruhiges Creme/Weiß mit dunklem Text            */
:root {
  --bg: #FBF7F0;
  --surface: #FFFFFF;
  --tint: #F4EBDC;
  --line: #E7DDCC;
  --ink: #221D1C;
  --muted: #6A5F5B;
  --accent: #BF3B48;
  --accent-hover: #A12F3B;
  --on-accent: #FFFFFF;
  --notice: #FBB728;
  --notice-bg: #FFF4D6;
  --radius: 20px;
  --shadow: 0 1px 3px rgba(60,40,30,.08), 0 10px 28px rgba(60,40,30,.10);
}
/* Immer helle Darstellung (Dunkelansicht bewusst abgeschaltet) */
:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
:root { --header-h: 96px; }
/* Hintergrund hinter der Seite (sichtbar beim Überscrollen): oben Creme, unten wie die Fußzeile */
html { scroll-behavior: smooth; scroll-padding-top: 112px; background: linear-gradient(var(--bg) 50%, var(--tint) 50%) fixed; }
body {
  padding-top: var(--header-h);
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 30; }
.skip:focus { left: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-light { background: #fff; color: #221D1C; }
.btn-light:hover { background: #F4EBDC; transform: translateY(-1px); }
.btn.sm { min-height: 44px; padding: 8px 20px; }

/* Navigation */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 3px rgba(60,40,30,.08), 0 8px 24px rgba(60,40,30,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-header .logo img { height: 76px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a:not(.btn) { font-weight: 700; text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-header nav a:not(.btn):hover { border-color: var(--accent); }

/* Hero */
.hero { padding-top: 24px; }
.hero-media { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 16 / 7.5; background: var(--tint); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,12,.72) 0%, rgba(20,14,12,.25) 45%, transparent 70%); }
.hero-copy { position: absolute; z-index: 2; left: clamp(22px, 4vw, 52px); right: 22px; bottom: calc(clamp(22px, 4vw, 48px) + 40px); color: #fff; }
.hero-copy h1 .nb { display: inline-block; }
.hero-copy h1 { font-family: "Amatic SC", cursive; font-weight: 700; font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: .95; letter-spacing: .02em; margin: 4px 0 18px; text-wrap: balance; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Umbau-Hinweis */
.notice { position: relative; z-index: 3; display: flex; gap: 16px; align-items: flex-start; margin: -44px clamp(16px, 4vw, 48px) 0; padding: 18px 24px; background: var(--notice-bg); border-left: 6px solid var(--notice); border-radius: 16px; box-shadow: 0 14px 36px rgba(60,40,30,.20); }
.notice .notice-ico { flex: none; width: 38px; height: 38px; margin-top: 1px; color: #221D1C; border-radius: 50%; display: grid; place-items: center; background: #FFE9B0; }
.notice .notice-ico svg { width: 19px; height: 19px; }
.notice strong { display: block; font-size: 1.1rem; }
.notice span { color: var(--muted); }

/* Sektionen */
section.block { padding: clamp(56px, 8vw, 96px) 0 0; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
h2.title { font-family: "Amatic SC", cursive; font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; letter-spacing: .02em; margin: 0 0 14px; }
.lead { color: var(--muted); margin: 0; max-width: 40ch; }

/* Dekorative Illustrationen (nur in leeren Flächen, nie hinter Text) */
.deco { margin-top: 32px; max-width: 220px; pointer-events: none; user-select: none; }
.deco svg { width: 100%; height: auto; display: block; }

/* Kontakt-Karte: eine Karte, Zeilen statt vieler Karten */
.contact { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; padding: 2px 14px; }
.contact .row { display: grid; grid-template-columns: 38px 1fr; column-gap: 16px; row-gap: 0; padding: 12px 0; align-items: center; }
.contact .row.top { align-items: start; }
.contact dt { display: contents; }
.contact .ico { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.contact .row.top .ico { align-self: start; }
.contact .lbl { grid-column: 2; grid-row: 1; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.contact dd { grid-column: 2; grid-row: 2; }
.ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #FFE9B0; color: #221D1C; }
.ico svg { width: 19px; height: 19px; }
.contact-col { display: grid; gap: 16px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 20px 14px 14px; }
.avatar { flex: none; width: 80px; height: 80px; border-radius: 50%; background: var(--tint); object-fit: cover; }
.person .role { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.person .name { font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.contact dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.contact dd a { text-decoration: none; border-bottom: 2px solid var(--line); transition: border-color .15s; word-break: break-word; }
.contact dd a:hover { border-color: var(--accent); }
.contact dd small { display: block; font-weight: 400; color: var(--muted); font-size: 1rem; }
.contact address { font-style: normal; font-weight: 400; }
.contact address strong { font-weight: 700; }

/* Termine */
[role="tablist"] { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 28px 0 0; }
[role="tab"] { font: inherit; font-weight: 800; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 12px 2px; margin-bottom: -1px; border-bottom: 3px solid transparent; min-height: 48px; transition: color .15s; }
[role="tab"]:hover { color: var(--ink); }
[role="tab"][aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
[role="tabpanel"] { margin-top: 22px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 22px 14px 14px; }
.date { text-align: center; line-height: 1; background: #F6CEC4; color: #221D1C; border-radius: 16px; padding: 10px 4px 9px; }
.event:nth-child(4n+2) .date { background: #FFE9B0; }
.event:nth-child(4n+3) .date { background: #BFE8E2; }
.event:nth-child(4n+4) .date { background: #FBD7A0; }
.date .day { display: block; font-family: "Amatic SC", cursive; font-size: 2.6rem; font-weight: 700; color: #221D1C; }
.date { display: flex; flex-direction: column; justify-content: center; min-height: 82px; }
.date .pre { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #2E2624; margin-bottom: 2px; }
.date.range .day { font-size: 1.8rem; padding: 4px 0; white-space: nowrap; }
.date .month { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #2E2624; }
.event h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; text-wrap: balance; }
.event p { margin: 2px 0 0; color: #3F3633; font-weight: 600; font-size: 1rem; }
.chip { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.empty { padding: 24px 0; color: var(--muted); }

/* Footer */
.site-footer { margin-top: clamp(64px, 9vw, 110px); background: var(--tint); color: var(--ink); }
.band { display: flex; height: 10px; }
.band span { flex: 1; }
.band span:nth-child(1) { background: #F6CEC4; } .band span:nth-child(2) { background: #FFE9B0; }
.band span:nth-child(3) { background: #FBB728; } .band span:nth-child(4) { background: #BF3B48; }
.band span:nth-child(5) { background: #009A88; flex: .35; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px; padding: 48px 0 36px; }
.footer-brand p { margin: 0 0 6px; }
.footer-brand .hello { font-family: "Amatic SC", cursive; font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }
.footer-brand .muted { color: var(--muted); max-width: 34ch; }
.site-footer h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; border-bottom: 2px solid transparent; font-weight: 700; }
.site-footer a:hover { border-color: var(--accent); }
.footer-bottom { padding: 8px 0 30px; color: var(--muted); font-size: .95rem; }

/* Rechtstext-Seiten */
.legal { padding: clamp(40px, 6vw, 72px) 0 0; }
.legal .prose { max-width: 720px; }
.legal h1 { font-family: "Amatic SC", cursive; font-weight: 700; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; margin: 0 0 28px; }
.legal h2 { font-size: 1.2rem; margin: 36px 0 6px; }
.legal p { margin: 0 0 10px; }
.legal h2.h-big { font-family: "Amatic SC", cursive; font-size: 2.4rem; letter-spacing: .02em; margin-top: 64px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 4px; }
.legal ol, .legal ul { margin: 0 0 14px; padding-left: 1.4em; }
.legal li { margin-bottom: 4px; }
.legal .rights { padding: 8px 24px 12px; background: var(--tint); border-radius: var(--radius); margin-top: 22px; }
.legal .rights h3:first-child { margin-top: 0; }
.legal .back { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; margin-bottom: 20px; color: var(--muted); }
.legal .back:hover { color: var(--ink); }

@media (max-width: 1000px) and (min-width: 861px) {
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Mobil: Illustration klein ans Ende der jeweiligen Sektion */
  .split > div:first-child { display: contents; }
  .split > .contact-col, .split > .tabs { order: 2; }
  .deco { order: 3; max-width: 190px; margin: 28px auto 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .split .lead { margin-bottom: 22px; }
  .lead { max-width: 56ch; }
}
@media (max-width: 620px) {
  body { font-size: 1.05rem; }
  .wrap { width: calc(100% - 32px); }
  :root { --header-h: 76px; }
  .site-header .logo img { height: 58px; }
  .site-header nav { gap: 14px; }
  .hero-media { aspect-ratio: 4 / 5; border-radius: 24px; }
  .hero-media img { object-position: 66% 50%; }
  .hero-copy { left: 18px; right: 18px; bottom: 56px; }
  .notice { margin: -36px 12px 0; padding: 16px 18px; gap: 12px; }
  .footer-main { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-copy h1 .nb { display: inline-block; }
.hero-copy h1 { font-size: 2.9rem; margin-bottom: 14px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 0; min-height: 48px; padding: 10px 8px; font-size: .95rem; white-space: nowrap; }
  .contact { padding: 2px 14px; }
  .people { grid-template-columns: 1fr; gap: 12px; }
  .event { grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 16px 12px 12px; }
  .date.range .day { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
