/* ==========================================================================
   MMS NNK – öffentliche Seite
   Konzept: Schulfarben aus dem Logo, Kreise mit schwarzem Ring
   auf Weiß.
   Schulfarben Grün/Orange (+Gelb, Rot), Schrift: Inter – SIL OFL 1.1
   ========================================================================== */

/* ---------- Schrift (selbst gehostet): Inter – SIL OFL 1.1 ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Tokens ----------
   Schulfarben: Grün #A6C400 und Orange #F08800 (aus dem Schullogo), Akzente Gelb und Rot,
   dazu Schwarz/Weiß wie im Logo.
   Lesbarkeit: Auf Grün, Orange und Gelb steht IMMER schwarze Schrift (Kontrast 6,7–11,8 : 1).
   Für grüne bzw. orange Schrift auf Weiß die dunklen Varianten (-text) verwenden. */
:root {
  /* Schulfarben */
  --green: #a6c400;
  --green-text: #4f6300;   /* Grün als Schrift auf Weiß (6,7 : 1) */
  --green-50: #f6f9e6;
  --green-100: #ebf2c4;
  --orange: #f08800;
  --orange-text: #a85500;  /* Orange als Schrift auf Weiß */
  --orange-50: #fff4e5;
  --yellow: #ffd23f;
  --red: #c8102e;

  /* Alte Namen → neue Bedeutung (Komponenten bleiben unverändert) */
  --pine-900: #1c1c1a;     /* Schwarz wie das Logo: Footer, dunkle Flächen, Überschriften */
  --pine-700: #1c1c1a;     /* Primär: Buttons, Links */
  --pine-600: #3a3a36;
  --pine-100: var(--green-100);
  --pine-50:  var(--green-50);
  --brass-500: var(--green);       /* Akzent-Fläche/Linie */
  --brass-700: var(--green-text);  /* Akzent-Schrift */
  --brass-100: var(--green-100);
  --ink:      #1c1c1a;
  --ink-soft: #55554f;
  --line:     #e2e2dc;
  --white:    #ffffff;
  --danger:   var(--red);

  /* Typografie: eine schlichte Schrift für alles */
  --font-serif: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.2rem;
  --fs-lg: clamp(1.4rem, 1.15rem + 0.9vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-hero: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);

  /* Raster */
  --wrap: 75rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --radius-s: 6px;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px -10px rgb(0 0 0 / 0.18);
  --focus: 3px solid var(--orange);

  --staff-gap: 14px;
  --staff-color: transparent;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--pine-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--pine-900); text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; color: var(--pine-900); margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p, ul, ol, dl, blockquote, figure { margin: 0 0 1em; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 50rem; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--pine-900); color: var(--white); padding: 0.75rem 1.25rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Notenlinien (Signatur) ---------- */
.staff {
  height: calc(var(--staff-gap) * 4 + 1px);
  background-image: repeating-linear-gradient(to bottom, var(--staff-color) 0 1px, transparent 1px var(--staff-gap));
}
.staff--footer { --staff-color: rgb(255 255 255 / 0.10); height: calc(var(--staff-gap) * 4 + 1px); }

/* ---------- Hinweisbalken ---------- */
.banner { background: var(--brass-500); color: var(--pine-900); font-weight: 600; font-size: var(--fs-sm); }
.banner__inner { display: flex; align-items: center; gap: 0.6rem; padding-block: 0.55rem; }
.banner p { margin: 0; }
.banner a { color: var(--pine-900); }
.banner a:focus-visible { outline-color: var(--pine-900); }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-2); min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); margin-right: auto; padding-block: 0.5rem; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--pine-900); white-space: nowrap; }
@media (max-width: 24em) { .brand__name { font-size: 1.05rem; } .brand__logo { width: 44px; height: 44px; } .nav-toggle { padding: 0.5rem 0.7rem; } }
.brand__place { font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--pine-900); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.nav-toggle .icon { width: 1.3em; height: 1.3em; }
.nav-toggle__open { display: inline-flex; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }

/* Mobil: Menü klappt unter dem Header auf. Ohne JS: Anker #hauptmenue + :target */
.main-nav { display: none; }
.main-nav:target, .nav-open .main-nav {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  max-height: calc(100vh - 4.5rem); overflow-y: auto;
  padding: var(--space-1) var(--gutter) var(--space-3);
  box-shadow: 0 16px 30px -18px rgb(16 48 42 / 0.4);
}
.main-nav__list { list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.main-nav__link {
  flex: 1; display: block; padding: 0.9rem 0.25rem; font-weight: 700; color: var(--pine-900); text-decoration: none; font-size: 1.05rem;
}
.main-nav__item.is-active > .main-nav__link { color: var(--pine-700); text-decoration: underline; text-decoration-color: var(--brass-500); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.main-nav__sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--pine-700); cursor: pointer;
}
.main-nav__sub-toggle .icon { transition: transform .2s; }
.main-nav__sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.subnav { list-style: none; margin: 0; padding: 0 0 0.75rem 0.75rem; width: 100%; }
.js .subnav { display: none; }
.js .has-sub.is-open > .subnav { display: block; }
.subnav a { display: block; padding: 0.5rem 0.75rem; color: var(--ink); text-decoration: none; border-left: 2px solid var(--line); }
.subnav a:hover { border-left-color: var(--brass-500); color: var(--pine-700); }
.main-nav__phone {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: var(--space-2);
  font-weight: 700; color: var(--pine-700); text-decoration: none; padding: 0.5rem 0;
}

@media (min-width: 70em) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav:target, .nav-open .main-nav {
    display: flex; align-items: center; gap: var(--space-2);
    position: static; padding: 0; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none;
  }
  .main-nav__list { display: flex; align-items: center; gap: 0.15rem; }
  .main-nav__item { border: 0; flex-wrap: nowrap; }
  .main-nav__link { padding: 0.6rem 0.35rem 0.6rem 0.75rem; font-size: 1rem; }
  .main-nav__item:not(.has-sub) > .main-nav__link { padding-right: 0.75rem; }
  .main-nav__sub-toggle { width: 1.6rem; height: 2.25rem; margin-right: 0.2rem; }
  .main-nav__sub-toggle .icon { width: 1rem; height: 1rem; }
  .main-nav__item--cta > .main-nav__link {
    background: var(--pine-700); color: var(--white); border-radius: 999px; padding: 0.5rem 1.1rem; margin-right: 0.4rem;
  }
  .main-nav__item--cta > .main-nav__link:hover { background: var(--pine-900); color: var(--white); }
  .main-nav__item--cta.is-active > .main-nav__link { text-decoration: none; color: var(--white); background: var(--pine-900); }
  .subnav, .js .subnav {
    display: block; position: absolute; top: calc(100% + 0.25rem); left: 0.25rem; min-width: 15rem;
    padding: 0.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
  }
  .main-nav__item:last-child > .subnav, .main-nav__item:nth-last-child(2) > .subnav { left: auto; right: 0; }
  .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
  .has-sub:hover > .subnav, .has-sub:focus-within > .subnav, .js .has-sub.is-open > .subnav { opacity: 1; visibility: visible; transform: none; }
  .js .has-sub.is-closed > .subnav { opacity: 0; visibility: hidden; }
  .subnav a { border-left: 0; border-radius: var(--radius-s); padding: 0.5rem 0.75rem; }
  .subnav a:hover, .subnav a:focus-visible { background: var(--pine-50); }
  .main-nav__phone { margin: 0 0 0 0.5rem; padding: 0.5rem 0 0.5rem 1rem; border-left: 1px solid var(--line); white-space: nowrap; font-size: 0.95rem; }
}
@media (min-width: 70em) and (max-width: 80em) {
  .brand__text { display: none; }
  .main-nav__phone > span { display: none; }
  .main-nav__phone { padding-left: 0.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 2.9rem; padding: 0.65rem 1.35rem; border-radius: 999px; border: 2px solid var(--pine-700);
  background: var(--pine-700); color: var(--white); font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--pine-900); border-color: var(--pine-900); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--pine-700); }
.btn--ghost:hover { background: var(--pine-50); color: var(--pine-900); }
.btn--brass { background: var(--brass-500); border-color: var(--brass-500); color: var(--pine-900); }
.btn--brass:hover { background: #b78a2f; border-color: #b78a2f; color: var(--pine-900); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--pine-900); }
.btn--light:hover { background: var(--pine-100); border-color: var(--pine-100); color: var(--pine-900); }
.btn--small { min-height: 2.4rem; padding: 0.4rem 1rem; font-size: 0.95rem; }
.btn[aria-disabled="true"] { background: var(--pine-100); border-color: var(--pine-100); color: var(--ink-soft); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link-more { font-weight: 700; display: inline-flex; align-items: center; gap: 0.35rem; }
.link-more .icon { width: 1.1em; height: 1.1em; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { background: var(--pine-50); border-bottom: 1px solid var(--line); padding-block: var(--space-4) 0; overflow: hidden; }
.page-head__inner { position: relative; padding-bottom: var(--space-4); }
.page-head h1 { margin-bottom: 0.3em; max-width: 22ch; }
.page-head__lead { font-size: var(--fs-md); color: var(--ink-soft); max-width: 46rem; margin: 0; }
.page-head .status { margin: var(--space-2) 0 0; }
.page-head .staff { margin-top: 0; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); color: #9aa8a1; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-5); }
.section--tint { background: var(--pine-50); }
.section--tight { padding-block: var(--space-4); }
.section-header { display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-4); }
.section-header .link-more { flex: none; white-space: nowrap; }
.section-header h2 { margin: 0; font-size: var(--fs-xl); }
.section-header p { margin: 0.4rem 0 0; color: var(--ink-soft); max-width: 40rem; }
.section-header__text { flex: 1 1 auto; min-width: 0; }

.prose { max-width: 42rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--brass-700); }
.prose blockquote {
  margin: 1.5em 0; padding: 0.25em 0 0.25em 1.25em; border-left: 3px solid var(--brass-500);
  font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--pine-900);
}
.prose img { border-radius: var(--radius); margin-block: 1em; }
.prose a { font-weight: 600; }

/* ==========================================================================
   STARTSEITE
   ========================================================================== */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero__inner { display: grid; gap: var(--space-3); grid-template-areas: "motto" "quick" "intro"; padding-block: clamp(1.5rem, 1rem + 3vw, 4.5rem) var(--space-4); }
.hero__head { grid-area: motto; }
.hero__body { grid-area: intro; }
.quick { grid-area: quick; }
.hero__school { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 var(--space-3); color: var(--ink-soft); font-weight: 600; }
.hero__school .icon { color: var(--brass-700); }

/* Leitspruch auf Notenlinien */
.motto { margin: 0; font-family: var(--font-serif); color: var(--pine-900); font-weight: 400; font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.015em; }
.motto__lead { display: block; font-size: 0.5em; font-style: italic; color: var(--pine-600); margin-bottom: 0.3em; }
.motto__line {
  --g: 0.2em;
  position: relative; display: block; padding: 0.24em 0 0.3em;
  background-image: repeating-linear-gradient(to bottom, var(--staff-color) 0 1px, transparent 1px var(--g));
  background-size: 100% calc(var(--g) * 4 + 1px); background-repeat: no-repeat; background-position: 0 58%;
}
.motto__line > span { position: relative; background: linear-gradient(to right, transparent, var(--white) 0.2em, var(--white) calc(100% - 0.2em), transparent); padding-inline: 0.25em; margin-left: -0.25em; }
.motto__line strong { font-weight: 800; }
.motto__line:nth-child(3) { padding-left: 0.6em; }
.motto__line:nth-child(4) { padding-left: 0; }
@media (max-width: 47.99em) { .hero__school { display: none; } .motto { font-size: clamp(2rem, 1rem + 5.2vw, 2.6rem); } }
.motto__line > span { white-space: nowrap; }
.motto__note { display: inline-block; width: 0.32em; height: 0.24em; margin-left: 0.18em; background: var(--brass-500); border-radius: 50%; transform: rotate(-22deg) translateY(-0.05em); vertical-align: middle; }
.hero__intro { max-width: 34rem; font-size: var(--fs-md); color: var(--ink-soft); margin: var(--space-2) 0 var(--space-3); }

/* Schnellzugriff */
.quick { background: var(--pine-700); color: var(--white); border-radius: var(--radius); padding: var(--space-3); align-self: start; box-shadow: var(--shadow); }
.quick__title { color: var(--white); font-size: 1.35rem; margin: 0 0 var(--space-2); }
.quick__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.quick__item a {
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: 0.85rem;
  padding: 0.75rem 0.85rem; border-radius: var(--radius-s); background: rgb(255 255 255 / 0.07);
  color: var(--white); text-decoration: none; border: 1px solid rgb(255 255 255 / 0.12);
}
.quick__item a:hover { background: rgb(255 255 255 / 0.14); color: var(--white); }
.quick__item a:focus-visible { outline-color: var(--brass-500); }
.quick__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: var(--brass-500); }
.quick__label { display: block; font-weight: 700; line-height: 1.25; }
.nowrap { white-space: nowrap; }
.quick__hint { display: block; font-size: 0.875rem; color: rgb(255 255 255 / 0.8); line-height: 1.35; }
.quick__item .icon-go { width: 1.1rem; height: 1.1rem; color: rgb(255 255 255 / 0.6); }
.quick__item--primary a { background: var(--brass-500); color: var(--pine-900); border-color: var(--brass-500); }
.quick__item--primary a:hover { background: #d7aa50; color: var(--pine-900); }
.quick__item--primary .quick__icon { background: rgb(16 48 42 / 0.12); color: var(--pine-900); }
.quick__item--primary .quick__hint { color: var(--pine-900); }
.quick__item--primary .icon-go { color: var(--pine-900); }
.quick__item--primary a:focus-visible { outline-color: var(--white); }

@media (min-width: 62em) {
  .hero__inner { grid-template-columns: minmax(0, 1.7fr) minmax(20rem, 1fr); grid-template-areas: "motto quick" "intro quick"; align-items: start; column-gap: var(--space-5); row-gap: 0; }
  .quick { align-self: center; }
  .motto { font-size: clamp(3rem, 1rem + 3.9vw, 4.4rem); }
  .motto__line { white-space: nowrap; }
}

/* Statusplakette Anmeldung */
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; line-height: 1.5; }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status--offen { background: #dff0e3; color: #19583a; }
.status--bald { background: var(--brass-100); color: #6d4e10; }
.status--geschlossen { background: #ececec; color: #4b4b4b; }

/* Regel- vs. Musikklasse */
.forms { display: grid; gap: var(--space-3); }
@media (min-width: 48em) { .forms { grid-template-columns: 1fr 1fr; } }
.form-card { position: relative; padding: var(--space-4) var(--space-3) var(--space-3); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.form-card__icon { position: absolute; top: calc(-1 * 1.6rem); left: var(--space-3); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--pine-700); color: var(--white); }
.form-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.form-card--musik .form-card__icon { background: var(--brass-500); color: var(--pine-900); }
.form-card h3 { font-size: var(--fs-lg); margin-bottom: 0.25em; }
.form-card__sub { color: var(--ink-soft); margin-bottom: var(--space-2); }
.form-card ul { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.form-card li { position: relative; padding: 0.4rem 0 0.4rem 1.6rem; border-top: 1px solid var(--line); }
.form-card li::before { content: ""; position: absolute; left: 0.1rem; top: 0.95rem; width: 0.6rem; height: 0.45rem; border-radius: 50%; background: var(--brass-500); transform: rotate(-22deg); }
.form-card .link-more { margin-top: auto; }
.forms__extra { margin-top: var(--space-3); color: var(--ink-soft); }
.forms__extra strong { color: var(--ink); }

/* News-Karten */
.news-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.news-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-card:focus-within { outline: var(--focus); outline-offset: 2px; }
.news-card__media { aspect-ratio: 3 / 2; background: var(--pine-100); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: var(--space-2) var(--space-3) var(--space-3); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.news-card__date { font-size: var(--fs-sm); color: var(--ink-soft); }
.news-card__title { font-size: 1.3rem; margin: 0; line-height: 1.2; }
.news-card__title a { color: var(--pine-900); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card__title a:focus-visible { outline: none; }
.news-card__title a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.18em; transition: text-decoration-color .25s ease; }
.news-card:hover .news-card__title a { text-decoration-color: var(--brass-500); }
.news-card__excerpt { margin: 0; color: var(--ink-soft); font-size: 0.975rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--brass-700); margin-top: auto; padding-top: 0.25rem; }
.news-card__tag .icon { width: 1rem; height: 1rem; }

/* Erste Karte groß auf Startseite */
@media (min-width: 62em) {
  .news-grid--home { grid-template-columns: repeat(3, 1fr); }
  .news-grid--home .news-card:first-child { grid-column: span 2; grid-row: span 3; }
  .news-grid--home .news-card:first-child .news-card__media { aspect-ratio: 16 / 10; }
  .news-grid--home .news-card:first-child .news-card__title { font-size: var(--fs-lg); }
  .news-grid--home .news-card:not(:first-child) .news-card__media { display: none; }
  .news-grid--home .news-card:not(:first-child) { border-left: 3px solid var(--brass-500); }
}

/* Termine (Liste) */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.event { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--line); align-items: start; }
.event:last-child { border-bottom: 1px solid var(--line); }
.event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--pine-700); color: var(--white); border-radius: var(--radius-s); padding: 0.4rem 0.2rem; line-height: 1.05; }
.event__day { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 700; }
.event__month { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; }
.event__title { font-size: 1.2rem; margin: 0 0 0.2rem; }
.event__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.event__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.event__meta .icon { width: 1rem; height: 1rem; color: var(--brass-700); }
.event__desc { margin: 0.4rem 0 0; }
.events--past .event__date { background: var(--pine-100); color: var(--pine-900); }
.month-group + .month-group { margin-top: var(--space-4); }
.month-group__title { font-size: var(--fs-md); color: var(--pine-700); margin-bottom: var(--space-2); }

/* Startseite: Termine + Kunstwerk nebeneinander */
.split { display: grid; gap: var(--space-4); }
@media (min-width: 62em) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-5); } }

/* Kunstwerk des Monats */
.artwork { margin: 0; }
.artwork__frame { display: block; background: var(--white); padding: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.artwork__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pine-100); }
.artwork figcaption { margin-top: var(--space-2); }
.artwork__title { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; color: var(--pine-900); display: block; }
.artwork__meta { color: var(--ink-soft); font-size: var(--fs-sm); }

/* Gütesiegel */
.seals { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.seal { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: var(--space-3) var(--space-2) var(--space-2); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brass-500); border-radius: var(--radius-s); height: 100%; }
.seal__logo { height: 3.5rem; width: auto; object-fit: contain; object-position: left center; margin-bottom: 0.25rem; }
.seal__name { hyphens: auto; overflow-wrap: anywhere; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--pine-900); line-height: 1.15; }
.seal__text { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.seal__link { margin-top: auto; font-size: 0.9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.3rem; }
.seal__link .icon { width: 0.95rem; height: 0.95rem; }
.seals--compact .seal__text { display: none; }
.seals--compact .seal { padding: var(--space-2); }
.seals--compact .seal__name { font-size: 1.15rem; }
.seals--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }

/* Kontakt-Block */
.contact-band { background: var(--pine-700); color: var(--white); }
.contact-band h2, .contact-band h3 { color: var(--white); }
.contact-band a:not(.btn) { color: var(--white); }
.contact-band a:focus-visible { outline-color: var(--brass-500); }
.contact-band__grid { display: grid; gap: var(--space-4); }
@media (min-width: 62em) { .contact-band__grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.contact-band__lead { color: rgb(255 255 255 / 0.85); max-width: 30rem; }
.contact-cards { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.contact-card { background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--radius); padding: var(--space-2) var(--space-3); }
.contact-card__label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: rgb(255 255 255 / 0.8); margin: 0 0 0.25rem; }
.contact-card__label .icon { color: var(--brass-500); width: 1.1rem; height: 1.1rem; }
.contact-card__value { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; margin: 0; line-height: 1.25; word-break: break-word; }
.contact-card__value a { text-decoration: none; }
.contact-card__value a:hover { text-decoration: underline; }
.contact-card__value--small { font-family: var(--font-sans); font-size: 1rem; }

/* ==========================================================================
   UNTERSEITEN
   ========================================================================== */
/* Anmeldung */
.signup { display: grid; gap: var(--space-3); }
@media (min-width: 48em) { .signup { grid-template-columns: 1fr 1fr; } }
.signup__card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); display: flex; flex-direction: column; gap: 0.75rem; background: var(--white); }
.signup__card h2 { margin: 0; display: flex; align-items: center; gap: 0.6rem; }
.signup__card h2 .icon { color: var(--brass-700); }
.signup__card p { margin: 0; color: var(--ink-soft); }
.signup__card .btn { margin-top: auto; align-self: flex-start; }
.notice { display: flex; gap: 0.85rem; align-items: flex-start; padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--brass-100); border-left: 4px solid var(--brass-500); }
.notice > .icon { color: var(--brass-700); margin-top: 0.2rem; }
.notice p { margin: 0; }
.notice p + p { margin-top: 0.4rem; }
.notice + .signup { margin-top: var(--space-3); }
.notice--info { background: var(--pine-50); border-left-color: var(--pine-600); }
.notice--info > .icon { color: var(--pine-600); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); counter-reset: step; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: var(--space-2) 0 0; border-top: 2px solid var(--pine-700); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--brass-700); line-height: 1; margin-bottom: 0.4rem; }
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Inhaltsverzeichnis für Seiten mit Ankern */
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.toc a { display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.toc a:hover { border-color: var(--pine-700); }

.topic { display: grid; gap: var(--space-2) var(--space-5); padding-block: var(--space-4); border-top: 1px solid var(--line); }
.topic:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 62em) { .topic { grid-template-columns: 17rem minmax(0, 1fr); } }
.topic__head h2 { margin: 0; }
.topic__head p { color: var(--ink-soft); margin: 0.4rem 0 0; }
.topic__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--pine-100); color: var(--pine-700); margin-bottom: 0.75rem; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 12rem), 1fr)); }
.gallery a, .gallery__item { display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--pine-100); aspect-ratio: 1; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.gallery a:hover img { opacity: 0.88; }
.gallery a:focus-visible { outline-offset: 2px; }
.gallery--large { grid-template-columns: repeat(auto-fill, minmax(min(46%, 16rem), 1fr)); }

/* Empty state */
.empty { display: grid; justify-items: start; gap: 0.6rem; padding: var(--space-4) var(--space-3); border: 1px dashed #b8c6be; border-radius: var(--radius); background: var(--pine-50); }
.empty__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--white); color: var(--pine-700); border: 1px solid var(--line); }
.empty__title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--pine-900); margin: 0; }
.empty p { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.empty .btn-row { margin-top: 0.5rem; }

/* Lehrer */
.director { display: grid; gap: var(--space-3); grid-template-columns: auto 1fr; align-items: center; padding: var(--space-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.director__photo { width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover; background: var(--pine-100); }
.director__initials { display: grid; place-items: center; width: 6.5rem; height: 6.5rem; border-radius: 50%; background: var(--pine-700); color: var(--white); font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; }
.director__role { color: var(--brass-700); font-weight: 700; margin: 0; }
.director__name { margin: 0 0 0.3rem; font-size: var(--fs-lg); }
.director__contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; }
.director__contact a { display: inline-flex; align-items: center; gap: 0.4rem; }
@media (max-width: 30em) { .director { grid-template-columns: 1fr; } }
.team-photo { margin: var(--space-4) 0 0; }
.team-photo img { width: 100%; border-radius: var(--radius); }
.team-photo figcaption { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: 0.5rem; }

.phone-strip { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: var(--space-3); }
.phone-strip > div { padding: var(--space-2); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.phone-strip dt { color: var(--ink-soft); font-size: 0.9rem; }
.phone-strip dd { margin: 0; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
@media (max-width: 26em) { .phone-strip dd { white-space: normal; overflow-wrap: anywhere; } }

.filter { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); padding: var(--space-2); background: var(--pine-50); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 48em) { .filter { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.field { display: grid; gap: 0.3rem; }
.field label, .field__label { font-weight: 700; font-size: 0.95rem; }
.input, .select {
  width: 100%; min-height: 2.9rem; padding: 0.55rem 0.85rem; border: 1px solid #93a39b; border-radius: var(--radius-s);
  font: inherit; color: var(--ink); background: var(--white);
}
.input:focus-visible, .select:focus-visible { outline: var(--focus); outline-offset: 1px; border-color: var(--pine-700); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.input-icon .input { padding-left: 2.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; border: 0; margin: 0; padding: 0; }
.chips legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; padding: 0; }
.chip { min-height: 2.5rem; min-width: 2.75rem; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid #93a39b; background: var(--white); font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pine-700); border-color: var(--pine-700); color: var(--white); }
.chip:hover { border-color: var(--pine-700); }
.filter__count { margin: 0 0 var(--space-2); color: var(--ink-soft); font-size: 0.95rem; }

.teacher-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.teacher { display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 0.9rem; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); align-content: start; }
.teacher__avatar { grid-row: span 3; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--pine-100); color: var(--pine-700); font-weight: 700; font-family: var(--font-serif); font-size: 1.1rem; object-fit: cover; }
.teacher__name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--pine-900); line-height: 1.2; }
.teacher__extra { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.teacher__hour { margin: 0.2rem 0 0; display: flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.teacher__hour .icon { color: var(--brass-700); width: 1.05rem; height: 1.05rem; }
.teacher__hour--none { color: var(--ink-soft); font-weight: 400; font-style: italic; }
.teacher__mail { grid-column: 2; margin: 0.15rem 0 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.teacher__mail a { display: inline-flex; align-items: center; gap: 0.4rem; }
.teacher__mail .icon { width: 1rem; height: 1rem; }

/* News-Liste */
.news-filter { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); padding: var(--space-2); background: var(--pine-50); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 48em) { .news-filter { grid-template-columns: minmax(0, 1fr) 12rem auto; align-items: end; } }
.result-info { color: var(--ink-soft); margin: 0 0 var(--space-3); }
.pagination { margin-top: var(--space-4); }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; justify-content: center; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 0.75rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pagination a:hover { border-color: var(--pine-700); }
.pagination [aria-current="page"] { background: var(--pine-700); border-color: var(--pine-700); color: var(--white); }
.pagination .pagination__gap { border: 0; }
.pagination__step { gap: 0.35rem; display: inline-flex !important; }

/* News-Detail */
.article-head { padding-block: var(--space-4) var(--space-3); }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); max-width: 24ch; margin-bottom: 0.4em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--ink-soft); }
.article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta .icon { color: var(--brass-700); width: 1.05rem; height: 1.05rem; }
.article-cover { margin: 0 0 var(--space-4); }
.article-cover img { width: 100%; max-height: 34rem; object-fit: cover; border-radius: var(--radius); background: var(--pine-100); }
.article-body { font-size: 1.125rem; line-height: 1.7; }
.article-body > p:first-child { font-size: 1.25rem; color: var(--pine-900); }
.article-lead { font-size: 1.25rem; color: var(--pine-900); max-width: 42rem; }
.attachment { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); justify-content: space-between; margin: var(--space-4) 0; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--pine-50); max-width: 42rem; }
.attachment__info { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; }
.attachment__info .icon { color: var(--brass-700); width: 1.6rem; height: 1.6rem; }
.article-gallery { margin-top: var(--space-4); }
.article-gallery h2 { font-size: var(--fs-md); }
.article-nav { display: grid; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--line); }
@media (min-width: 48em) { .article-nav { grid-template-columns: 1fr 1fr; } }
.article-nav a { display: grid; gap: 0.15rem; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.article-nav a:hover { border-color: var(--pine-700); }
.article-nav__dir { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; color: var(--ink-soft); }
.article-nav__title { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--pine-900); }
.article-nav__next { text-align: right; justify-items: end; }
@media (min-width: 48em) { .article-nav__next { grid-column: 2; } }
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; margin-bottom: var(--space-2); }

/* Alben */
.album-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.album-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); height: 100%; }
.album-card__media { aspect-ratio: 4 / 3; background: var(--pine-100); }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; }
.album-card__body { padding: 0.85rem var(--space-2); display: grid; gap: 0.1rem; }
.album-card__title { margin: 0; font-size: 1.2rem; }
.album-card__title a { text-decoration: none; color: var(--pine-900); }
.album-card__title a::after { content: ""; position: absolute; inset: 0; }
.album-card__count { font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.album-card:focus-within { outline: var(--focus); outline-offset: 2px; }
.album-card:hover .album-card__title a { text-decoration: underline; text-decoration-color: var(--brass-500); }

/* Downloads */
.dl-group + .dl-group { margin-top: var(--space-4); }
.dl-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: var(--space-2); }
.dl-group__head h2 { margin: 0; }
.dl-group__note { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: #6d4e10; background: var(--brass-100); padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.9rem; }
.dl-group__note .icon { width: 1rem; height: 1rem; }
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dl-item { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.5rem 1rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40em) { .dl-item { grid-template-columns: 2.75rem 1fr auto; } }
.dl-item__icon { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-s); background: var(--pine-50); color: var(--pine-700); }
.dl-item__title { font-weight: 700; margin: 0; line-height: 1.3; }
.dl-item__meta { font-size: 0.875rem; color: var(--ink-soft); margin: 0; }
.dl-item .btn { grid-column: 2; justify-self: start; }
@media (min-width: 40em) { .dl-item .btn { grid-column: auto; } }

/* Links */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.link-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); height: 100%; }
.link-card:hover { border-color: var(--pine-700); }
.link-card:focus-within { outline: var(--focus); outline-offset: 2px; }
.link-card a { font-weight: 700; text-decoration: none; color: var(--pine-900); }
.link-card a::after { content: ""; position: absolute; inset: 0; }
.link-card a:focus-visible { outline: none; }
.link-card .icon { color: var(--brass-700); grid-row: span 2; }
.link-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.link-card__host { font-size: 0.85rem; color: var(--ink-soft); }

/* Kontakt */
.contact-grid { display: grid; gap: var(--space-4); }
@media (min-width: 62em) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-list { margin: 0; display: grid; gap: 0; }
.contact-list > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0.25rem 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--ink-soft); }
.contact-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 30em) { .contact-list > div { grid-template-columns: 1fr; } }
.address-card { padding: var(--space-3); border-radius: var(--radius); background: var(--pine-700); color: var(--white); }
.address-card h2 { color: var(--white); }
.address-card address { font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.3; margin-bottom: var(--space-3); }
.address-card p { color: rgb(255 255 255 / 0.85); }
.address-card .btn-row { margin-top: var(--space-2); }
.address-card .btn--ghost { color: var(--white); border-color: rgb(255 255 255 / 0.5); }
.address-card .btn--ghost:hover { background: rgb(255 255 255 / 0.1); color: var(--white); }
.address-card a:focus-visible { outline-color: var(--brass-500); }

/* Kunstgalerie */
.art-grid { list-style: none; margin: 0; padding: 0; columns: 3 12rem; column-gap: var(--space-2); }
.art-grid li { break-inside: avoid; margin-bottom: var(--space-2); }
.art-grid figure { margin: 0; background: var(--white); border: 1px solid var(--line); padding: 0.6rem; border-radius: var(--radius-s); }
.art-grid img { width: 100%; height: auto; background: var(--pine-100); }
.art-grid figcaption { font-size: 0.9rem; color: var(--ink-soft); padding-top: 0.5rem; }
.art-grid figcaption strong { color: var(--ink); font-family: var(--font-serif); font-size: 1.05rem; display: block; }
.art-grid a { display: block; }

/* Elternverein & Schulkleidung */
.feature-panel { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-3); border-radius: var(--radius); background: var(--pine-50); border: 1px solid var(--line); }
@media (min-width: 48em) { .feature-panel { grid-template-columns: auto 1fr; align-items: center; } }
.feature-panel__icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--pine-700); color: var(--white); }
.feature-panel__icon .icon { width: 2rem; height: 2rem; }
.feature-panel p { margin: 0 0 var(--space-2); max-width: 40rem; }

.columns-2 { display: grid; gap: var(--space-4); }
@media (min-width: 62em) { .columns-2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.aside-card { padding: var(--space-3); border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); align-self: start; }
.aside-card h2 { font-size: 1.35rem; }
.aside-card > :last-child { margin-bottom: 0; }

/* 404 */
.notfound { padding-block: var(--space-5); }
.notfound__code { font-family: var(--font-serif); font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; color: var(--brass-500); margin: 0; font-weight: 800; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: #0d1f1b; color: var(--white); }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem var(--gutter); }
.lightbox__count { font-size: 0.95rem; color: rgb(255 255 255 / 0.85); }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: var(--radius-s); }
.lightbox__caption { text-align: center; padding: 0.75rem var(--gutter) 1.25rem; color: rgb(255 255 255 / 0.9); min-height: 1.5em; }
.lightbox__btn { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.08); color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: rgb(255 255 255 / 0.18); }
.lightbox__btn:focus-visible { outline-color: var(--brass-500); }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 0.75rem; }
.lightbox__nav--next { right: 0.75rem; }
.no-scroll { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-900); color: rgb(255 255 255 / 0.85); margin-top: 0; }
.site-footer a { color: var(--white); }
.site-footer a:focus-visible { outline-color: var(--brass-500); }
.site-footer__grid { display: grid; gap: var(--space-4); padding-block: var(--space-4) var(--space-4); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.2fr 1.2fr 1fr; } }
.site-footer__logo { width: 72px; height: 72px; margin-bottom: var(--space-2); }
.logo--invert { filter: invert(1); }
.site-footer__name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--white); margin: 0 0 0.4rem; line-height: 1.2; }
.site-footer__motto { font-family: var(--font-serif); font-style: italic; color: var(--brass-500); margin-top: var(--space-2); font-size: 1.1rem; }
.site-footer__title { font-family: var(--font-sans); font-size: 1rem; color: var(--white); margin-bottom: var(--space-2); }
.contact-list--footer > div { grid-template-columns: 7.5rem 1fr; border-top-color: rgb(255 255 255 / 0.12); padding: 0.5rem 0; }
.contact-list--footer dt { color: rgb(255 255 255 / 0.72); }
.contact-list--footer dd { font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); padding-block: var(--space-2) var(--space-3); border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.95rem; }
.site-footer__bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Hoher Kontrast (Windows) ---------- */
@media (forced-colors: active) {
  .btn, .chip, .quick__item a { border: 1px solid ButtonText; }
  .staff, .motto__line { background-image: none; }
}

/* ---------- Druck ---------- */
@media print {
  @page { margin: 1.6cm 1.4cm; }
  body { font-size: 10.5pt; color: #000; background: #fff; }
  .site-header, .banner, .skip-link, .site-footer, .nav-toggle, .filter, .news-filter, .pagination, .btn, .breadcrumb,
  .lightbox, .article-nav, .staff, .toc, .quick, .no-print { display: none !important; }
  .page-head { background: none; border: 0; padding: 0 0 0.5cm; }
  .page-head::before { content: "Musik-Mittelschule Niederneukirchen, Schulstraße 6, 4491 Niederneukirchen, Tel. 07224 70 18"; display: block; font-size: 9pt; margin-bottom: 0.3cm; color: #333; }
  .section { padding: 0; }
  a { color: #000; text-decoration: none; }
  .dl-item a::after, .link-card a::after { content: none; }
  .dl-item__title::after { content: ""; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  .teacher-list, .link-list { display: block; }
  .section--tint, .section, .page-head, .director, .phone-strip > div { background: none !important; }
  .section-header { margin-bottom: 0.2cm; }
  .section-header p, .filter__count { display: none; }
  .phone-strip { display: flex; gap: 0.6cm; margin: 0.2cm 0 0.4cm; }
  .phone-strip > div { border: 0; padding: 0; }
  .director__initials, .director__photo { display: none; }
  .teacher { display: grid; grid-template-columns: 5.2cm 5.2cm 1fr; gap: 0 0.4cm; align-items: baseline; border: 0; border-bottom: 0.5pt solid #999; border-radius: 0; padding: 0.12cm 0; page-break-inside: avoid; }
  .teacher[hidden] { display: grid !important; }
  .teacher__avatar, .teacher__extra, .teacher__hour .icon { display: none; }
  .teacher__name { font-size: 10.5pt; color: #000; }
  .teacher__hour, .teacher__mail { grid-column: auto; margin: 0; font-size: 10pt; }
  .event, .dl-item { page-break-inside: avoid; }
  .event__date { background: none !important; color: #000 !important; border: 1px solid #000; }
  .dl-item { grid-template-columns: 1fr; }
  .dl-item__icon { display: none; }
  .dl-item__meta::after { content: ""; }
  .director { border: 0; padding: 0; }
}

/* Einleitungstext über den Schulform-Karten */
.intro-prose { margin-bottom: var(--space-5); }

/* ==========================================================================
   Schulfarben-Design (Nov. 2026): Kreise mit schwarzem Ring wie im Schullogo
   ========================================================================== */
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 750; }
.staff, .staff--footer { display: none; }
.site-footer__motto { font-style: normal; color: var(--green); }
.page-head { border-bottom: 4px solid var(--green); }

/* Farbiger Kreis mit dicker schwarzer Umrandung */
.ring { display: inline-grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 4px solid var(--ink); background: var(--white); color: var(--ink); }
.ring .icon { width: 1.45rem; height: 1.45rem; }
.ring--small { width: 2.6rem; height: 2.6rem; border-width: 3px; }
.ring--small .icon { width: 1.15rem; height: 1.15rem; }
.ring--small img { width: 1.9rem; height: 1.9rem; }
.ring--green { background: var(--green); }
.ring--orange { background: var(--orange); }
.ring--yellow { background: var(--yellow); }
.ring--red { background: var(--red); color: var(--white); }
.ring--white { background: var(--white); }

/* Schnellzugriffe */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 36em) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { display: flex; align-items: center; gap: 0.85rem; height: 100%; padding: 0.9rem 1rem; border-radius: var(--radius);
  background: var(--white); border: 2px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.tile:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.tile:focus-visible { outline: var(--focus); outline-offset: 3px; }
.tile__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tile__label { font-weight: 700; line-height: 1.25; }
.tile__hint { font-size: var(--fs-sm); color: var(--ink-soft); }
.tile .icon-go { width: 1.1rem; height: 1.1rem; color: var(--ink-soft); flex: none; }
@media (min-width: 64em) {
  .tile { flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 1.1rem; }
  .tile .icon-go { display: none; }
}

/* Aktuelles + Termine */
.section--news { padding-top: var(--space-4); }
.home-grid { display: grid; gap: var(--space-4); }
@media (min-width: 64em) { .home-grid { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--space-5); } }
.home-grid__side .section-header { margin-bottom: var(--space-2); }
@media (min-width: 64em) {
  .news-grid--home { grid-template-columns: repeat(2, 1fr); }
  .news-grid--home .news-card:first-child { grid-column: 1; grid-row: span 3; }
}
.side-empty { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100); }
.side-empty p { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.side-empty strong { color: var(--ink); }
.events--compact { gap: 0.6rem; }
.event__date { background: var(--orange); color: var(--ink); }
.news-card__date { color: var(--green-text); font-weight: 600; }
.news-card { border-width: 2px; transition: background-color .25s ease; }
.news-card:hover { border-color: var(--line); background: var(--green-50); }
.news-grid--home .news-card:not(:first-child):hover { border-color: var(--line); border-left-color: var(--brass-500); }

/* Über-uns-Teaser */
.about-teaser { display: grid; gap: var(--space-3); align-items: center; }
.about-teaser__img { width: min(100%, 15rem); height: auto; mix-blend-mode: multiply; }
.about-teaser h2 { font-size: var(--fs-lg); max-width: 28ch; }
@media (min-width: 48em) { .about-teaser { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-5); } }

/* Über uns */
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--green-text); margin: 0 0 0.4rem; }
.leitbild { display: grid; gap: var(--space-4); align-items: center; }
.leitbild__img { width: min(100%, 26rem); height: auto; justify-self: center; }
.leitbild h2 { font-size: var(--fs-xl); }
@media (min-width: 48em) { .leitbild { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; font-size: var(--fs-lg); }
.share-list li { display: flex; align-items: center; gap: 0.9rem; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.value { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; }
.value h3 { margin: 0.4rem 0 0; font-size: var(--fs-md); }
.value p { margin: 0; color: var(--ink-soft); flex: 1; }
.btn-row--center { justify-content: center; }
.form-card__icon { border: 3px solid var(--ink); background: var(--green); color: var(--ink); }
.form-card--musik .form-card__icon { background: var(--orange); }
.form-card li::before { background: var(--orange); }

/* Navigation & Buttons in Schulfarben */
@media (min-width: 64em) {
  .main-nav__item--cta > .main-nav__link { background: var(--orange); color: var(--ink); }
  .main-nav__item--cta > .main-nav__link:hover, .main-nav__item--cta.is-active > .main-nav__link { background: var(--ink); color: var(--white); }
}
.main-nav__item.is-active > .main-nav__link { text-decoration-color: var(--green); }
.banner { background: var(--yellow); }
/* Startseite: nur der neueste Beitrag mit Bild – kompakt, auch am Handy */
.news-grid--home .news-card:not(:first-child) .news-card__media { display: none; }
@media (max-width: 63.99em) { .news-grid--home .news-card:first-child .news-card__media { aspect-ratio: 16 / 9; } }

/* Testmodus-Hinweis (nur außerhalb der Live-Domain sichtbar) */
.testmode-bar { background: #b3261e; color: #fff; font-size: var(--fs-sm); font-weight: 600; text-align: center; padding-block: 0.4rem; }
.testmode-bar a { color: #fff; text-decoration: underline; }
.testmode-bar a:focus-visible { outline-color: #fff; }
@media print { .testmode-bar { display: none; } }

/* ==========================================================================
   Startseite – Kopfbereich (Design-Vorschlag 10)
   Schulgebäude als Hintergrund, Begrüßung, Schnellzugriffe und das Kunstwerk des
   Monats als Sofortbild-Stapel, der sich beim Drüberfahren auffächert.
   ========================================================================== */
.hz { position: relative; isolation: isolate; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.hz__photo { position: absolute; inset: 0; z-index: -1; }
.hz__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hz__photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.95) 45%, #fff 80%); }
.hz__grid { display: grid; gap: 2rem; grid-template-areas: "text" "tiles" "art";
  padding-block: clamp(1.75rem, 1rem + 3vw, 3.25rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hz__text { grid-area: text; }
.hz__tiles { grid-area: tiles; }
.hz h1 { font-size: var(--fs-hero); margin: 0 0 .35em; max-width: 18ch; }
.hz__lead { font-size: var(--fs-md); color: var(--ink-soft); margin: 0; }
.hz__art { grid-area: art; position: relative; justify-self: center; width: min(70%, 13.44rem); margin-block: 1.75rem; }
@media (min-width: 64em) {
  .hz__photo::after { background:
      linear-gradient(90deg, rgba(255,255,255,.97) 0, rgba(255,255,255,.9) 42%, rgba(255,255,255,.35) 68%, rgba(255,255,255,.1) 100%),
      linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%); }
  .hz__grid { grid-template-columns: minmax(0, 1fr) 19rem; grid-template-areas: "text art" "tiles tiles";
    align-items: center; column-gap: 4rem; padding-top: 3.5rem; }
  .hz__art { width: 13.02rem; margin: 2.25rem 2.5rem 2.25rem 0; }
}
@media (min-width: 64em) and (max-width: 84.99em) {
  /* kleinere Laptops: Platz zum Auffächern, ohne die Überschrift zu verdecken */
  .hz__grid { grid-template-columns: minmax(0, 1fr) 27rem; column-gap: 2rem; }
  .hz__art { margin: 2.25rem auto; justify-self: center; }
  .hz h1 { font-size: clamp(2rem, 1.2rem + 2.2vw, 2.8rem); }
}

/* Fest eingebautes Schulfoto (solange im Admin kein eigenes hochgeladen ist):
   herausgezoomt, rechts am Inhalt ausgerichtet; die Stiege liegt hinter den Schnellzugriffen.
   Dahinter eine weichgezeichnete Fassung, damit auf sehr breiten Bildschirmen kein Rand entsteht. */
@media (min-width: 64em) {
  .hz--haus .hz__photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: url("../img/schulgebaeude-weich.jpg") center / cover no-repeat; }
  .hz--haus .hz__photo img { position: absolute; max-width: none; --w: 1030px; width: var(--w); height: auto;
    left: calc(50% - 310px); top: calc(502px - 0.5466 * var(--w)); object-fit: fill;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%); mask-image: linear-gradient(90deg, transparent 0, #000 9%); }
  .hz--haus .hz__photo::after { background:
      linear-gradient(90deg, rgba(255,255,255,.97) 0, rgba(255,255,255,.9) 38%, rgba(255,255,255,.3) 58%, rgba(255,255,255,.05) 100%),
      linear-gradient(180deg, rgba(255,255,255,0) 66%, #fff 100%); }
}
@media (min-width: 94em) {
  .hz--haus .hz__photo img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 86%, transparent 100%); }
}

/* Sofortbild (Polaroid) */
.pol { position: relative; margin: 0; background: var(--white); padding: .55rem .55rem 0; border: 1px solid var(--line);
  box-shadow: 0 18px 34px -16px rgba(0,0,0,.45); }
.pol__img { display: block; }
.pol img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pol__cap { padding: .55rem .1rem .7rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.pol__label { font-weight: 700; font-size: .95rem; }
.pol__meta { font-size: var(--fs-sm); color: var(--ink-soft); }
.pol__cap .link-more { font-size: var(--fs-sm); }

/* Kunstwerk-Stapel: aktuelles Bild vorne (5° nach rechts gedreht), zwei frühere dahinter */
.art-stack { position: relative; }
.art-stack__under { position: absolute; inset: 0; }
.art-stack__u1 { transform: rotate(-9deg) translate(-.6rem, .4rem); }
.art-stack__u2 { transform: rotate(7deg) translate(.8rem, .2rem); }
.art-stack__top { position: relative; z-index: 2; transform: rotate(5deg); }
.art-stack__label { position: absolute; left: 0; right: 0; bottom: .4rem; text-align: center; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.art-stack__u1, .art-stack__u2, .art-stack__top {
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .45s ease; }
/* Auffächern beim Drüberfahren (bzw. mit der Tastatur) – mit kleinem Nachfedern */
.art-stack:hover .art-stack__u1 { transform: rotate(-14deg) translate(-50%, 5%); }
.art-stack:hover .art-stack__u2 { transform: rotate(13deg) translate(40%, 5%); }
.art-stack:hover .art-stack__top { transform: rotate(0) scale(1.04); }
/* Tastatur: nur bei sichtbarem Fokus (nicht nach Mausklick – sonst bleibt der Fächer nach „Zurück“ offen) */
.art-stack:has(:focus-visible) .art-stack__u1 { transform: rotate(-14deg) translate(-50%, 5%); }
.art-stack:has(:focus-visible) .art-stack__u2 { transform: rotate(13deg) translate(40%, 5%); }
.art-stack:has(:focus-visible) .art-stack__top { transform: rotate(0) scale(1.04); }
@media (prefers-reduced-motion: reduce) { .art-stack__u1, .art-stack__u2, .art-stack__top { transition: none; } }

/* ==========================================================================
   Startseite – Aktuelles als Sofortbilder: neuester Beitrag groß rechts,
   vier kleinere links leicht überlappend und unterschiedlich gedreht.
   ========================================================================== */
.photo-pile { container-type: inline-size; margin-top: .5rem; }
.photo-pile__in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .6rem; padding: .5rem .25rem 1rem; }
.snap { position: relative; background: var(--white); padding: .6rem .6rem 1rem; border: 1px solid var(--line);
  box-shadow: 0 14px 28px -16px rgba(0,0,0,.4); transform: rotate(var(--r, 0deg));
  transition: transform .35s ease, box-shadow .35s ease; }
.snap img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.snap__date { margin: .6rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.snap__t { margin: .15rem 0 0; font-size: 1.05rem; line-height: 1.25; }
.snap__t a { color: var(--ink); text-decoration: none; }
.snap__t a::after { content: ""; position: absolute; inset: 0; }
.snap:hover .snap__t a { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.snap:has(:focus-visible) { outline: var(--focus); outline-offset: 3px; }
/* Beim Drüberfahren nur leicht anstupsen – die Reihenfolge im Stapel bleibt */
.snap:hover { transform: translate(1px, -2px) rotate(calc(var(--r, 0deg) + .8deg)); }
.snap:has(:focus-visible) { transform: translate(1px, -2px) rotate(calc(var(--r, 0deg) + .8deg)); }
.snap--big { grid-column: 1 / -1; }
.snap--big img { aspect-ratio: 4 / 3; }
.snap--big .snap__t { font-size: 1.3rem; }
.snap--big .snap__date { font-size: .9rem; }
.snap__new { position: absolute; z-index: 2; top: -.6rem; left: -.6rem; background: var(--yellow); border: 3px solid var(--ink);
  border-radius: 999px; padding: .1rem .6rem; font-weight: 800; font-size: .75rem; text-transform: uppercase; transform: rotate(-6deg); }
.home-grid__main { min-width: 0; }
/* Handy/Tablet: zweispaltig, leicht gedreht und leicht überlappend */
.photo-pile__p0 { --r: 1.2deg; } .photo-pile__p1 { --r: -1.5deg; } .photo-pile__p2 { --r: 1.8deg; }
.photo-pile__p3 { --r: 1.2deg; } .photo-pile__p4 { --r: -2.1deg; }
@media (max-width: 63.99em) { .snap:not(.snap--big) { margin-top: -.35rem; } }
/* Computer: frei angeordnet (Werte relativ zur Spaltenbreite) */
@media (min-width: 64em) {
  @supports (width: 1cqw) {
    .photo-pile__in { display: block; padding: 0; height: 76cqw; }
    .snap { position: absolute; }
    .photo-pile__p0 { left: 49cqw; top: 11.7cqw; width: 51cqw; --r: 2deg; z-index: 0; }
    .photo-pile__p1 { left: 1cqw; top: 5cqw; width: 26cqw; --r: -2.5deg; z-index: 3; }
    .photo-pile__p2 { left: 20cqw; top: 0; width: 26cqw; --r: 3deg; z-index: 4; }
    .photo-pile__p3 { left: 0; top: 38cqw; width: 26cqw; --r: 2deg; z-index: 1; }
    .photo-pile__p4 { left: 21cqw; top: 33cqw; width: 26cqw; --r: -3.5deg; z-index: 2; }
    /* rechts liegt das nächste Bild darüber – Text dort nicht hinlaufen lassen */
    .photo-pile__p1 .snap__date, .photo-pile__p1 .snap__t,
    .photo-pile__p3 .snap__date, .photo-pile__p3 .snap__t { padding-right: 6.5cqw; }
  }
}
@media (prefers-reduced-motion: reduce) { .snap { transition: none; } }
@media print {
  .hz__photo, .hz__art { display: none; }
  .photo-pile__in { display: grid !important; height: auto !important; }
  .snap { position: static !important; transform: none !important; box-shadow: none; }
}

/* „Alle Beiträge“ / „Alle Termine“ – unten links am jeweiligen Block */
.block-more { margin: var(--space-3) 0 0; }


/* Texte nutzen die volle Breite – Zeilenumbruch erst am Zeilenende (03.11.2026) */
.page-head h1, .page-head__lead, .section-header p { max-width: none; }
.prose:not(.article-body) { max-width: none; }
/* Oranger Button wie „Anmeldung“ im Menü */
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
/* „Zur Anmeldung Musikklasse“: gleiche Hover-Farbe wie „Zur Anmeldung Regelklasse“ */
.btn--musik:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
/* Schnellzugriff mit Logo (Google Classroom): Datei public/assets/img/google-classroom.png */
.ring--logo { background: var(--yellow); overflow: hidden; }
.ring--logo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Kunstwerk-Fächer: gleicher Abstand zur Menüleiste und zur Schnellauswahl */
@media (min-width: 64em) {
  .hz__art { margin-top: 1.1rem; margin-bottom: 3.4rem; }
}


/* =========================================================
   Logo-Animation (Nov. 2026)
   - Hauptlogo links oben setzt sich zusammen: Kreis zeichnet sich, Buchstaben tauchen auf.
     Läuft auf der Startseite und beim ersten Seitenaufruf je Besuch (siehe site.js).
   - Bereichslogo „Wir teilen“ baut sich auf, sobald es ins Bild scrollt.
   Die Form des Hauptlogos bleibt unverändert. Ohne JavaScript oder mit
   „Bewegung reduzieren“ steht das Logo sofort ruhig da.
   ========================================================= */
.brand__logo { display: block; flex: none; color: var(--ink); }
.emblem { display: block; width: 100%; height: auto; overflow: visible; }
.emblem__ring { fill: none; stroke: currentColor; stroke-width: 18; }
.emblem__l { fill: currentColor; }
.bl { display: block; overflow: visible; color: var(--ink); }
.bl__line { stroke: currentColor; }
.bl__sat circle { stroke: currentColor; }
.bl__sat { transform-box: fill-box; transform-origin: center; }
.bl__icon { fill: #fff; fill-rule: evenodd; }
.about-teaser__img.bl { mix-blend-mode: normal; }
/* Reihenfolge der Buchstaben/Kreise (statt style-Attribut, wegen Content-Security-Policy) */
.emblem__l:nth-of-type(1) { --i: 0; } .emblem__l:nth-of-type(2) { --i: 1; } .emblem__l:nth-of-type(3) { --i: 2; }
.emblem__l:nth-of-type(4) { --i: 3; } .emblem__l:nth-of-type(5) { --i: 4; } .emblem__l:nth-of-type(6) { --i: 5; }
.bl__line:nth-of-type(1), .bl__sat:nth-of-type(1) { --i: 0; }
.bl__line:nth-of-type(2), .bl__sat:nth-of-type(2) { --i: 1; }

.logo-anim.is-armed .emblem__ring { stroke-dasharray: 1; animation: logo-draw 1.1s cubic-bezier(.6, .05, .3, 1) both paused; }
.logo-anim.is-armed .emblem__l { animation: logo-rise .45s cubic-bezier(.2, .7, .2, 1) both paused; animation-delay: calc(.8s + var(--i) * .11s); }
.bl.logo-anim.is-armed .emblem__ring { animation-duration: 1s; }
.bl.logo-anim.is-armed .emblem__l { animation-duration: .42s; animation-delay: calc(.7s + var(--i) * .09s); }
.bl.logo-anim.is-armed .bl__line { stroke-dasharray: 1; animation: logo-draw .4s ease-out both paused; animation-delay: calc(1.4s + var(--i) * .25s); }
.bl.logo-anim.is-armed .bl__sat { animation: logo-pop .55s cubic-bezier(.3, 1.5, .5, 1) both paused; animation-delay: calc(1.75s + var(--i) * .25s); }
.logo-anim.is-armed.is-playing .emblem__ring,
.logo-anim.is-armed.is-playing .emblem__l,
.logo-anim.is-armed.is-playing .bl__line,
.logo-anim.is-armed.is-playing .bl__sat { animation-play-state: running; }

@keyframes logo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes logo-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes logo-pop  { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .logo-anim * { animation: none !important; }
}

/* =========================================================
   Überarbeitung Nov. 2026 (2)
   ========================================================= */

/* Hauptmenü: Punkte mit Untermenü sind nur Aufklapp-Schalter (kein Link) */
.main-nav__trigger {
  flex: 1; width: auto; height: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.3rem;
  padding: 0.9rem 0.25rem; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--pine-900); text-align: left;
}
.main-nav__trigger .icon { width: 1.1rem; height: 1.1rem; color: var(--pine-700); }
.main-nav__trigger:hover { color: var(--pine-900); }
@media (min-width: 70em) {
  .main-nav__trigger { width: auto; height: auto; margin: 0; padding: 0.6rem 0.6rem 0.6rem 0.75rem; font-size: 1rem; justify-content: flex-start; }
  .main-nav__trigger .icon { width: 1rem; height: 1rem; }
  .main-nav__trigger:hover { background: var(--pine-50); }
}

/* Gütesiegel: Logo groß, ohne Link */
.seal__logo-box { display: flex; align-items: center; height: 5.5rem; margin-bottom: 0.25rem; }
.seal__logo { height: auto; max-height: 100%; max-width: 100%; width: auto; object-fit: contain; object-position: left center; margin: 0; }

/* Leitbild: MMS-Logo füllt den Ring vollständig */
.ring--emblem { padding: 0; overflow: hidden; }
.ring--emblem .emblem { width: calc(100% + 6px); height: calc(100% + 6px); margin: -3px; max-width: none; }

/* Termine kompakter */
.event { grid-template-columns: 3.4rem 1fr; gap: 0.9rem; padding: 0.7rem 0; }
.event__date { padding: 0.3rem 0.15rem; }
.event__day { font-size: 1.35rem; }
.event__month { font-size: 0.72rem; }
.event__title { font-size: 1.02rem; margin-bottom: 0.1rem; }
.event__meta { font-size: 0.87rem; gap: 0.15rem 0.85rem; }
.event__meta .icon { width: 0.9rem; height: 0.9rem; }
.event__desc { font-size: 0.93rem; margin-top: 0.25rem; }
.month-group__title { font-size: 1.1rem; }

/* Unsere Schule: Überblick-Karten + je Bereich eine Karte */
.school-overview { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.school-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; height: 100%;
  padding: var(--space-3) var(--space-2); background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.school-card:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; transform: translateY(-2px); }
.school-card__logo { width: 6rem; height: 6rem; margin-bottom: 0.4rem; }
.school-card__title { font-weight: 750; font-size: var(--fs-md); }
.school-card__teaser { color: var(--ink-soft); font-size: 0.95rem; }
.school-card__more { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; }
.school-card__more .icon { width: 1rem; height: 1rem; }
.school-card--green { border-top: 6px solid var(--green); }
.school-card--orange { border-top: 6px solid var(--orange); }
.school-card--yellow { border-top: 6px solid var(--yellow); }

.school-topics { display: grid; gap: var(--space-3); }
.school-topic {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); border-left: 8px solid var(--green);
  padding: var(--space-3); scroll-margin-top: 6rem;
}
.school-topic--orange { border-left-color: var(--orange); }
.school-topic--yellow { border-left-color: var(--yellow); }
.school-topic__head { display: flex; align-items: center; gap: 1rem; margin-bottom: var(--space-2); }
.school-topic__head h2 { margin: 0; font-size: var(--fs-lg); }
.school-topic__logo { width: 4.5rem; height: 4.5rem; flex: none; }
.school-topic__teaser { margin: 0.2rem 0 0; color: var(--ink-soft); }
.school-topic__body { max-width: 70ch; }
@media (min-width: 62em) {
  .school-topic { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
  .school-topic__head { flex-direction: column; align-items: flex-start; margin: 0; }
  .school-topic__logo { width: 6rem; height: 6rem; }
}


/* =========================================================
   Schnellzugriff-Animationen (Startseite) – laufen beim Drüberfahren / Tastaturfokus
   ========================================================= */
.ti * { transform-box: fill-box; }
.ti-scribble { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1.6; }
.ti-pen { transform-origin: 0% 100%; }
.ti-b2 { opacity: 0; }
.ti-b1, .ti-b2 { transform-origin: 50% 100%; }
.ti-p1, .ti-p2 { transform-origin: 50% 100%; }
.ti-dots { stroke-width: 1.6; }
.ti-check { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.ti-rings { transform-origin: 50% 100%; }
.ring--classroom img { transform-origin: 50% 50%; }

.tile:hover .ti-pen, .tile:focus-visible .ti-pen { animation: ti-write 0.9s ease-in-out infinite; }
.tile:hover .ti-scribble, .tile:focus-visible .ti-scribble { animation: ti-scribble 1.8s ease-in-out infinite; }

.tile:hover .ti-b1, .tile:focus-visible .ti-b1 { animation: ti-talk-a 2.4s ease-in-out infinite; }
.tile:hover .ti-b2, .tile:focus-visible .ti-b2 { animation: ti-talk-b 2.4s ease-in-out infinite; }
.tile:hover .ti-p1, .tile:focus-visible .ti-p1 { animation: ti-nod-a 2.4s ease-in-out infinite; }
.tile:hover .ti-p2, .tile:focus-visible .ti-p2 { animation: ti-nod-b 2.4s ease-in-out infinite; }

.tile:hover .ti-rings, .tile:focus-visible .ti-rings { animation: ti-ring 0.5s ease-in-out 2; }
.tile:hover .ti-days, .tile:focus-visible .ti-days { animation: ti-days-out 0.4s ease-in 0.35s forwards; }
.tile:hover .ti-check, .tile:focus-visible .ti-check { animation: ti-check 0.5s ease-out 0.65s forwards; }

.tile:hover .ti-arrow, .tile:focus-visible .ti-arrow { animation: ti-bounce 0.8s ease-in-out infinite; }

.tile:hover .ring--classroom img, .tile:focus-visible .ring--classroom img { animation: ti-wave 1.2s ease-in-out infinite; }
.tile:hover .ring--classroom, .tile:focus-visible .ring--classroom { animation: ti-pulse 1.2s ease-out infinite; }

@keyframes ti-write {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-1.2px, -0.6px) rotate(-6deg); }
  50% { transform: translate(-2.4px, 0.3px) rotate(3deg); }
  75% { transform: translate(-1.2px, -0.4px) rotate(-4deg); }
}
@keyframes ti-scribble { 0% { stroke-dashoffset: 1; } 60%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ti-talk-a {
  0% { opacity: 0; transform: scale(0.3); } 10%, 40% { opacity: 1; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes ti-talk-b {
  0%, 50% { opacity: 0; transform: scale(0.3); } 60%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.6); }
}
@keyframes ti-nod-a { 0%, 50%, 100% { transform: none; } 15%, 35% { transform: translateY(-1px) rotate(-4deg); } 25% { transform: rotate(3deg); } }
@keyframes ti-nod-b { 0%, 50%, 100% { transform: none; } 65%, 85% { transform: translateY(-1px) rotate(4deg); } 75% { transform: rotate(-3deg); } }
@keyframes ti-ring { 0%, 100% { transform: none; } 33% { transform: rotate(-12deg); } 66% { transform: rotate(12deg); } }
@keyframes ti-days-out { to { opacity: 0; } }
@keyframes ti-check { 0% { opacity: 1; stroke-dashoffset: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes ti-bounce { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(2px); } }
@keyframes ti-wave {
  0%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-2px) rotate(-7deg); } 40% { transform: translateY(0) rotate(6deg); }
  60% { transform: translateY(-1px) rotate(-3deg); } 80% { transform: translateY(0) rotate(1deg); }
}
@keyframes ti-pulse { 0% { box-shadow: 0 0 0 0 rgb(255 210 63 / 0.7); } 100% { box-shadow: 0 0 0 10px rgb(255 210 63 / 0); } }

@media (prefers-reduced-motion: reduce) {
  .tile .ti *, .tile .ring--classroom, .tile .ring--classroom img { animation: none !important; }
}

/* Hauptmenü am Computer: Oberpunkte sind keine Links (Nov. 2026) */
@media (min-width: 70em) {
  .main-nav__trigger { cursor: default; }
}

/* Footer dezenter (Nov. 2026) */
.site-footer { font-size: 0.88rem; }
.site-footer__grid { gap: var(--space-3); padding-block: var(--space-3); }
.site-footer__logo { width: 52px; height: 52px; margin-bottom: var(--space-1); }
.site-footer__name { font-size: 1.05rem; }
.site-footer__motto { font-size: 0.92rem; margin-top: var(--space-1); }
.site-footer__title { font-size: 0.9rem; margin-bottom: var(--space-1); }
.contact-list--footer > div { grid-template-columns: 6.5rem 1fr; padding: 0.3rem 0; }
.contact-list--footer dd { font-weight: 500; }
.footer-links { gap: 0.2rem; }
.site-footer__bottom { font-size: 0.82rem; padding-block: var(--space-1) var(--space-2); }
