/* =========================================================
   canicas – Stylesheet
   Palette aus der ORIGINAL-Website (verspielter „Playtime"-Look),
   modern interpretiert:
   - Lila (Marke/Schriftzug):  #8F2F8E
   - Grün (Akzent):            #89BD43
   - Türkis (Wellen/Hügel):    #7EBEC6
   - Gelb / Creme (Flächen):   #F5DA69 / #FFFBE0
   - Orange (Murmeln/Akzent):  #EA7526 / #C45F1C
   Mobile-first, responsiv, barrierearm.
   ========================================================= */

/* ---------- Design-Tokens ---------- */
/* Die „-dark"-Töne tragen kleine Texte (Eyebrows ~12,8 px, Kalender-Chips
   ~11,5 px). In der ursprünglichen Abstufung lagen sie bei 3,6–4,2:1 auf
   Weiß bzw. Creme und damit unter den 4,5:1, die WCAG 2.1 AA für Text unter
   24 px verlangt. Sie sind daher um rund 10 % abgedunkelt (Farbton bleibt) und
   liegen jetzt bei ≥ 4,7:1 auf Creme. Wer sie wieder aufhellt, bricht die
   Lesbarkeit genau dieser kleinen Texte – vorher nachrechnen. */
:root {
  --purple:       #8F2F8E;
  --purple-dark:  #6E2270;
  --green:        #89BD43;
  --green-dark:   #547B24;
  --teal:         #7EBEC6;
  --teal-dark:    #357A84;
  --yellow:       #F5DA69;
  --cream:        #FFFBE0;
  --orange:       #EA7526;
  --orange-dark:  #B25619;

  --ink:          #3A2B40;   /* dunkles Pflaumen-Braun für Text */
  --muted:        #6E5E72;
  --white:        #FFFFFF;

  --radius:       20px;
  --radius-sm:    14px;
  --shadow:       0 10px 30px rgba(58, 43, 64, 0.10);
  --shadow-hover: 0 18px 44px rgba(143, 47, 142, 0.20);
  --maxw:         1120px;
  --header-h:     74px;

  --font-head: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--purple); line-height: 1.18; margin: 0 0 .5em; }

p { margin: 0 0 1rem; }

a { color: var(--purple); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange-dark); }

img, iframe { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- Fokus-Stile (Barrierefreiheit) ---------- */
:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Skip-Link (Barrierefreiheit) -----------
   Für Sehende unsichtbar (oberhalb des Viewports geparkt), erscheint
   beim Fokussieren per Tastatur (Tab) als erstes Element der Seite. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--purple);
  color: #fff;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--purple-dark); color: #fff; box-shadow: var(--shadow-hover); }
/* Eigener, dunklerer Ton statt --teal-dark: reines --teal-dark ergibt auf
   Weiß nur 3.79:1 Kontrast (WCAG AA verlangt 4.5:1 für 16px-Fließtext,
   auch fett). #2A6870 erreicht 6.34:1 und bleibt optisch im Türkis-Ton. */
.btn-outline { background: transparent; color: #2A6870; border-color: #2A6870; }
.btn-outline:hover { background: #2A6870; color: #fff; }
.btn-block { display: flex; width: 100%; margin-top: 1.5rem; }

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 3px solid var(--green);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo { display: inline-flex; align-items: center; }
/* Echtes Logo-Bild (Schriftzug + Murmeln) */
.logo-img { height: 48px; width: auto; display: block; }
@media (max-width: 480px) { .logo-img { height: 40px; } }

.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
/* „Platz anfragen"-Button dauerhaft oben in der Kopfleiste */
.nav-cta { padding: .55rem 1.15rem; font-size: .95rem; white-space: nowrap; }
.primary-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  padding: .35rem 0;
  position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 3px; border-radius: 3px; background: var(--orange);
  transition: width .2s ease;
}
.primary-nav a:hover { color: var(--purple); }
.primary-nav a:hover::after { width: 100%; }
/* Der gefüllte „Platz anfragen"-Button ist ein Button, kein Textlink:
   weiße Schrift sicherstellen (überschreibt .primary-nav a) und den
   Textlink-Unterstrich unterdrücken. */
.primary-nav a.nav-cta,
.primary-nav a.nav-cta:hover { color: #fff; }
.primary-nav a.nav-cta::after { display: none; }

/* Sprachumschalter */
.lang-switch { display: inline-flex; gap: .3rem; background: var(--cream); padding: .25rem; border-radius: 999px; border: 1px solid rgba(143,47,142,.12); }
.lang-btn {
  display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: var(--muted);
  background: transparent; border: none; cursor: pointer;
  padding: .35rem .7rem; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.lang-btn:hover { color: var(--purple); }
.lang-btn[aria-pressed="true"] { background: var(--purple); color: #fff; }
.lang-label { line-height: 1; }

/* Burger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle-bar { width: 26px; height: 3px; border-radius: 3px; background: var(--purple); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO – verspielte Landschaft (Hügel) + Murmeln
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--cream) 0%, var(--yellow) 100%);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(7rem, 14vw, 11rem);
}
.hero-inner { position: relative; z-index: 3; max-width: 760px; }
.hero-eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: .8rem; color: var(--green-dark);
  margin-bottom: .75rem;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .5rem; color: var(--purple); }
.hero-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: #5a4a5e; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Großes canicas-Logo rechts im Hero (Branding-Test) */

/* Hügel-Landschaft am unteren Hero-Rand (türkis + grün, wie im Original) */
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; pointer-events: none; line-height: 0; }
.hero-hills svg { width: 100%; height: auto; display: block; }

/* Murmel-Rieseln (echte Murmel-Grafiken fallen fortlaufend durch den Hero) */
.marbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.marble {
  position: absolute;
  top: -90px;            /* startet oberhalb des sichtbaren Bereichs */
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(58,43,64,.20));
  will-change: transform;
  animation-name: rieseln;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
/* Fällt von oben nach unten (Distanz --dist) und dreht sich dabei (--rot) */
@keyframes rieseln {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(var(--dist, 700px)) rotate(var(--rot, 360deg)); }
}

/* =========================================================
   ABSCHNITTE (allgemein)
   ========================================================= */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section-alt { background: var(--cream); }
.section-eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: .8rem; color: var(--orange-dark); margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin-bottom: 2.5rem; }

/* Farbige Eyebrows je Abschnitt – bunt wie im Original */
#about   .section-eyebrow { color: var(--teal-dark); }
#concept .section-eyebrow { color: var(--green-dark); }
#projects .section-eyebrow { color: var(--purple); }
#rooms   .section-eyebrow { color: var(--orange-dark); }
#contact .section-eyebrow { color: var(--teal-dark); }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.about-text p { font-size: 1.1rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.facts li {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow); text-align: center;
  border-bottom: 4px solid var(--teal);
}
.facts li:nth-child(2) { border-bottom-color: var(--green); }
.facts li:nth-child(3) { border-bottom-color: var(--orange); }
.facts li:nth-child(4) { border-bottom-color: var(--purple); }
.fact-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--purple); }
.fact-label { color: var(--muted); font-size: .95rem; }

/* ---------- Karten-Grid (Konzept & Räume) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--purple);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Bunte Kartenkanten im Wechsel (verspielt) */
.card:nth-child(6n+1) { border-top-color: var(--purple); }
.card:nth-child(6n+2) { border-top-color: var(--orange); }
.card:nth-child(6n+3) { border-top-color: var(--green); }
.card:nth-child(6n+4) { border-top-color: var(--teal-dark); }
.card:nth-child(6n+5) { border-top-color: var(--yellow); }
.card:nth-child(6n+6) { border-top-color: var(--purple-dark); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }
/* Echte Murmel als Karten-Icon */
.card-marble {
  width: 56px; height: 56px; display: block; margin-bottom: 1rem;
  filter: drop-shadow(0 5px 8px rgba(58,43,64,.20));
  transition: transform .25s ease;
}
.card:hover .card-marble { transform: rotate(12deg) scale(1.08); }
.room-card { text-align: left; }

/* ---------- Callout (nussfrei) ---------- */
.callout {
  display: flex; gap: 1.2rem; align-items: flex-start;
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #fff, var(--cream));
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}
.callout-icon { width: 34px; height: 34px; flex: none; color: var(--orange-dark); margin-top: .2rem; }
.callout h3 { margin-bottom: .3rem; color: var(--orange-dark); }
.callout p { margin: 0; color: var(--muted); }

/* ---------- Projekte (Pills) ---------- */
.pill-grid {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.pill {
  --pill-color: var(--teal);
  display: flex; align-items: center; gap: .8rem;
  background: var(--white); border-radius: 999px;
  padding: .8rem 1.3rem; box-shadow: var(--shadow);
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  border: 2px solid var(--pill-color);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pill { background: color-mix(in srgb, var(--pill-color) 7%, white); }
.pill-terracotta { --pill-color: #C24314; }
.pill-purple     { --pill-color: #8F2F8E; }
.pill-blue       { --pill-color: #0B87D1; }
.pill-green      { --pill-color: #69A318; }
.pill-orange     { --pill-color: #FD6500; }
.pill-teal       { --pill-color: #14A2A5; }
.pill span { min-width: 0; }
.pill:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: var(--shadow-hover); }
/* Kleine Murmel als Pill-Icon */
.pill-marble { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 3px 5px rgba(58,43,64,.18)); transition: transform .25s ease; }
.pill:hover .pill-marble { transform: rotate(14deg) scale(1.12); }
.projects-note { font-style: italic; color: var(--muted); }

/* =========================================================
   TAGESABLAUF – Stil-Referenz zur alten Website
   Blaue Scallop-Zeitspalte + grünes „Wolken"-Beschreibungspanel
   auf gelbem Papier-Hintergrund, mit gestrichelten Verbindungslinien.
   ========================================================= */
.section-day { background: linear-gradient(180deg, #FFFBE0 0%, #FBEFC2 100%); }

.day { position: relative; margin-top: 1.5rem; padding-top: 24px; max-width: 920px; }

/* Scallop-/Wolken-Kappen mit gewelltem oberen Rand (per Mask) */
.day-cap { position: absolute; top: 0; height: 26px; }
.day-cap-time {
  left: 0; width: 190px; background: var(--teal);
  -webkit-mask: radial-gradient(11px at 50% 0, transparent 96%, #000) 0 0 / 24px 100%;
          mask: radial-gradient(11px at 50% 0, transparent 96%, #000) 0 0 / 24px 100%;
}
.day-cap-desc {
  left: 190px; right: 0; background: #9CC85A;
  -webkit-mask: radial-gradient(16px at 50% 0, transparent 96%, #000) 0 0 / 44px 100%;
          mask: radial-gradient(16px at 50% 0, transparent 96%, #000) 0 0 / 44px 100%;
}

.day-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  margin: 0; padding: 0; list-style: none;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.day-time, .day-desc {
  margin: 0; padding: 1rem 1.2rem;
  display: flex; align-items: center;
  border-bottom: 2px dashed rgba(255, 255, 255, .55);
}
.day-time {
  background: var(--teal);
  color: #123c43;
  font-family: var(--font-head); font-weight: 700;
  justify-content: flex-end; text-align: right;
}
.day-desc {
  background: #9CC85A;
  color: #2c3a0e;
  border-left: 2px dashed rgba(255, 255, 255, .6);
}
/* untere Linie der letzten Zeile entfernen */
.day-grid li:nth-last-child(-n+2) { border-bottom: none; }

@media (max-width: 640px) {
  /* Auf dem Handy: jeder Eintrag als eigene Karte (Zeit als Kopf, Text darunter) */
  .day { padding-top: 0; }
  .day-cap { display: none; }
  .day-grid {
    grid-template-columns: 1fr;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    gap: 0;
  }
  .day-grid li { border: none; }
  .day-time {
    background: var(--teal);
    color: #123c43;
    border-radius: 16px 16px 0 0;
    margin-top: 14px;
    padding: .7rem 1rem;
    justify-content: flex-start;
    text-align: left;
  }
  .day-grid li.day-time:first-child { margin-top: 0; }
  .day-desc {
    background: #fff;
    color: var(--ink);
    border: 2px solid #9CC85A;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow);
    padding: .9rem 1rem;
  }
}

/* =========================================================
   MURMELBAHN (untere Abschnitte) – scroll-gesteuert
   Stil-Referenz zur alten Website: Türkis/Grün-Hügelfarben,
   verspielte „Playtime"-Optik. Eine Murmel rollt die Bahn herab.
   ========================================================= */
/* Fixe Schiene am rechten Rand – auf jedem Gerät sichtbar (auch Handy) */
.run-rail {
  position: fixed;
  top: var(--header-h); right: 0;      /* beginnt UNTER der Kopfleiste, nie dahinter */
  width: 72px;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h)); /* berücksichtigt mobile Browserleisten */
  z-index: 6;            /* unter dem sticky Header (z-index 100) */
  pointer-events: none;
}
.run-svg { width: 100%; height: 100%; overflow: visible; }
/* „Tube": dicke türkise Außenlinie + gestrichelte helle Innenlinie (Bewegungsgefühl) */
.run-path-base {
  stroke: var(--teal);
  stroke-width: 12;
  stroke-linecap: round;
  opacity: .55;
}
.run-path {
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  opacity: .9;
}
/* Murmel = klickbarer „Nach oben"-Button (ersetzt einen separaten Scroll-Button) */
.run-marble {
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  padding: 0; margin: 0; border: none; background: none;
  cursor: pointer;
  pointer-events: auto;   /* trotz pointer-events:none auf der Schiene klickbar */
  will-change: transform;
}
.run-marble img {
  width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 6px 10px rgba(58,43,64,.28));
  transition: transform .15s ease;
}
.run-marble:hover img { transform: scale(1.1); }

/* Grünes „Männchen", das vor der Murmel flieht */
.runner {
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 28px;
  color: var(--green);
  pointer-events: none;
  will-change: transform;
}
.runner svg {
  width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 3px 4px rgba(58,43,64,.20));
  transform-origin: 50% 90%;
  animation: runwiggle .34s steps(2, end) infinite;
}
.runner:nth-child(3) svg { animation-delay: .08s; }
.runner:nth-child(4) svg { animation-delay: .16s; }
@keyframes runwiggle {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}

/* Auf dem Handy schmaler, aber sichtbar */
@media (max-width: 600px) {
  .run-rail { width: 44px; }
  .run-marble { width: 28px; height: 28px; }
  .runner { width: 17px; height: 22px; }
}

/* =========================================================
   KONTAKT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ic { width: 26px; height: 26px; flex: none; color: var(--teal-dark); margin-top: .15rem; }
.contact-list strong { font-family: var(--font-head); color: var(--purple); display: block; }
.contact-list p { margin: .15rem 0 0; color: var(--muted); }
.contact-hint { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6rem; }

.contact-map { display: flex; flex-direction: column; gap: .6rem; }
.contact-map iframe { width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); border: 3px solid var(--teal); }
.map-link { font-family: var(--font-head); font-weight: 600; align-self: flex-start; color: var(--teal-dark); }

/* =========================================================
   FOOTER – tiefes Lila mit Wellen-Übergang
   ========================================================= */
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; height: auto; display: block; }
.site-footer { background: var(--purple-dark); color: #ecd9ec; padding: 0 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
/* Logo auf hellem Chip, damit der Untertitel auf Lila lesbar bleibt */
.footer-logo {
  height: 54px; width: auto; display: block;
  background: #fff; padding: 10px 14px; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.footer-brand p { color: #d6bcd6; margin-top: .8rem; }
/* h2 statt h4: die Spaltenüberschriften folgten im Dokument direkt auf eine
   h2 des Hauptinhalts und übersprangen h3 – für Screenreader ein Loch in der
   Gliederung. Die Größe macht hier die CSS-Regel, nicht die Stufe. */
.footer-col h2 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.footer-col p { color: #d6bcd6; margin: .2rem 0; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2rem; padding-top: 1.2rem; text-align: center;
  color: #c9aac9; font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* =========================================================
   RESPONSIVE — ab Tablet/Desktop
   ========================================================= */
@media (min-width: 720px) {
  .about-grid  { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .facts       { grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-inner{ grid-template-columns: 1.7fr 1fr 1fr 1fr; }
}

/* Mobilnavigation: unter 900px ausklappbares Menü */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 3px solid var(--green);
    box-shadow: var(--shadow);
    padding: 1rem 20px 1.5rem;
    transform: translateY(-130%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(143,47,142,.10); }
  .primary-nav a { display: block; padding: .9rem 0; }
  .primary-nav .nav-cta { display: flex; width: 100%; margin-top: 1rem; padding: .8rem 1.15rem; }
  .lang-switch { margin-top: 1rem; align-self: flex-start; }
}

/* =========================================================
   MOBILE-FEINSCHLIFF (Übersichtlichkeit auf dem Handy)
   ========================================================= */
@media (max-width: 600px) {
  .container { padding-inline: 16px; }

  /* Hero kompakter & sicher umbrechend */
  .hero { padding: 2.5rem 0 5rem; }
  .hero-title { font-size: 2rem; overflow-wrap: anywhere; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-eyebrow { font-size: .72rem; letter-spacing: 1.5px; }
  /* CTA-Buttons volle Breite -> gut tippbar */
  .hero-cta { gap: .7rem; }
  .hero-cta .btn { width: 100%; }

  /* Abschnitte mit weniger Höhe -> weniger endloses Scrollen */
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.6rem; }
  .section-lead { font-size: 1.05rem; margin-bottom: 1.6rem; }

  /* Fakten einspaltig -> jede Zahl klar lesbar */
  .facts { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .facts li { padding: 1rem .8rem; }
  .fact-num { font-size: 1.6rem; }

  /* Karten etwas kompakter */
  .card { padding: 1.4rem; }
  .card-grid { gap: 1rem; }

  /* Karte (Kontakt) niedriger */
  .contact-map iframe { height: 260px; }

  /* Callout untereinander statt eng nebeneinander */
  .callout { flex-direction: column; gap: .8rem; padding: 1.3rem 1.4rem; }
}

/* Sehr schmale Geräte */
@media (max-width: 360px) {
  .hero-title { font-size: 1.8rem; }
  .logo-img { height: 36px; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   MULTI-PAGE-KOMPONENTEN
   (aktiver Tab, Seitenkopf, Highlights, Teaser, CTA, Team,
   Ernährungs-Panel, Foto-Platzhalter, Rechtstexte)
   Alle mobile-first und für Desktop + Handy optimiert.
   ========================================================= */

/* ---------- Aktiver Navigations-Tab ---------- */
.nav-link.is-active { color: var(--purple); }
.nav-link.is-active::after { width: 100%; }
@media (max-width: 900px) {
  /* im ausgeklappten Menü den aktiven Tab deutlich markieren */
  .nav-link.is-active { color: var(--purple); }
  .primary-nav .nav-link.is-active::after { display: none; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--cream) 0%, var(--yellow) 100%);
  padding: clamp(2.2rem, 6vw, 3.8rem) 0 clamp(3.5rem, 9vw, 5.5rem);
}
.page-header .container { position: relative; z-index: 3; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .4rem; color: var(--purple); }
.page-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #5a4a5e; max-width: 640px; margin: 0; }
.page-header-hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; pointer-events: none; }
.page-header-hills svg { width: 100%; height: auto; display: block; }

/* ---------- Startseite: Highlights ---------- */
.highlight-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.highlight {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem;
  box-shadow: var(--shadow); text-align: center;
  border-bottom: 5px solid var(--orange);
  transition: transform .2s ease, box-shadow .2s ease;
}
.highlight:nth-child(2) { border-bottom-color: var(--teal-dark); }
.highlight:nth-child(3) { border-bottom-color: var(--green); }
.highlight:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.highlight-icon {
  width: 64px; height: 64px; display: block; margin: 0 auto 1rem;
  filter: drop-shadow(0 5px 8px rgba(58,43,64,.20));
  transition: transform .25s ease;
}
.highlight:hover .highlight-icon { transform: rotate(12deg) scale(1.08); }
.highlight h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.highlight p { color: var(--muted); margin: 0; }

/* ---------- Startseite: Entdecken-Teaser ---------- */
.teaser-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem;
}
.teaser-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border-top: 5px solid var(--purple);
  transition: transform .2s ease, box-shadow .2s ease;
}
.teaser-card:nth-child(2) { border-top-color: var(--orange); }
.teaser-card:nth-child(3) { border-top-color: var(--green); }
.teaser-card:nth-child(4) { border-top-color: var(--teal-dark); }
.teaser-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.teaser-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.teaser-card p { color: var(--muted); margin: 0 0 1.2rem; }
.teaser-more { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--purple); }
.teaser-more::after { content: " \2192"; }
.teaser-card:hover .teaser-more { color: var(--orange-dark); }

/* ---------- Startseite: Abschluss-CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); }
.cta-inner { text-align: center; max-width: 680px; margin-inline: auto; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #f0dff0; font-size: 1.15rem; }
.cta-inner .hero-cta { justify-content: center; margin-top: 1.6rem; }
.cta-band .btn-outline { color: #fff; border-color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--purple); }

/* ---------- Über uns: Team ---------- */
#team .section-eyebrow { color: var(--teal-dark); }
/* Feste 3 Spalten statt auto-fit: auto-fit füllte die Breite mit 5 Spalten und ließ
   die sechste Karte allein in einer zweiten Reihe stehen. 3 Spalten ergeben 3 + 3. */
.team-grid {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.team-card {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--radius); padding: 1.25rem 1rem 1.3rem;
  box-shadow: var(--shadow); text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
/* Durchlaufender Farbakzent oben – wandert endlos von links nach rechts (canicas = Murmeln, die rollen) */
.team-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg,
    var(--purple), var(--orange), var(--yellow), var(--green), var(--teal), var(--purple));
  background-size: 200% 100%;
  animation: teamFlow 4s linear infinite;
}
/* Versatz pro Karte, damit der Akzent wie eine Welle über die ganze Reihe läuft */
.team-card:nth-child(2)::before { animation-delay: -.5s; }
.team-card:nth-child(3)::before { animation-delay: -1s; }
.team-card:nth-child(4)::before { animation-delay: -1.5s; }
.team-card:nth-child(5)::before { animation-delay: -2s; }
.team-card:nth-child(6)::before { animation-delay: -2.5s; }
.team-card:nth-child(7)::before { animation-delay: -3s; }
.team-card:nth-child(8)::before { animation-delay: -3.5s; }
@keyframes teamFlow {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
/* Auslöser für das Profil-Popup: ein echter <button>, damit Tastatur und
   Screenreader ihn ohne Zusatz-ARIA bedienen können. Die Button-Optik wird
   vollständig zurückgesetzt – sichtbar bleibt die Karte. */
.team-open {
  display: block; width: 100%;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: inherit;
  cursor: pointer;
}
.team-open:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 4px; border-radius: 16px; }

/* Foto-Platzhalter – später durch ein <img> mit demselben Seitenverhältnis ersetzen */
.team-photo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; border-radius: 16px;
  background: var(--cream); border: 2px dashed var(--teal);
  color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  margin-bottom: .9rem;
}
.team-photo.has-photo { border: none; background: none; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.team-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); display: block; font-size: 1.05rem; }
.team-role { font-family: var(--font-head); font-weight: 700; color: var(--purple); display: block; font-size: .88rem; margin-top: .1rem; }

/* Zitat + E-Mail: standardmäßig sichtbar (Touch), auf Hover-Geräten erst beim Überfahren einblenden */
.team-reveal { margin-top: .8rem; }
.team-quote {
  margin: 0; padding: 0; border: 0;
  color: var(--muted); font-size: .92rem; line-height: 1.55; font-style: italic;
}
.team-mail {
  display: inline-flex; align-items: center; gap: .38rem;
  margin-top: .65rem; font-family: var(--font-head); font-weight: 700; font-size: .84rem;
  word-break: break-word;
}
.team-mail-ic { width: 15px; height: 15px; flex: none; }

@media (hover: hover) {
  .team-reveal {
    max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
    transform: translateY(6px);
    transition: max-height .4s ease, opacity .35s ease, transform .35s ease, margin-top .4s ease;
  }
  .team-card:hover .team-reveal,
  .team-card:focus-within .team-reveal {
    max-height: 14rem; opacity: 1; transform: none; margin-top: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card:hover { transition: none; transform: none; }
  .team-card::before { animation: none; background-position: 0 0; }
  .team-reveal { transition: none; }
}
.section-note { margin-top: 1.5rem; color: var(--muted); }
.section-note a { font-weight: 700; }

/* ---------- Konzept: Icon-Karten (zentriert, 3 + 2) ---------- */
.concept-lead {
  font-size: 1.15rem; color: var(--muted);
  max-width: 660px; margin: 0 auto 2.5rem; text-align: center;
}
.concept-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem;
}
.concept-card {
  flex: 1 1 280px; max-width: 340px;
  background: var(--white); border-radius: var(--radius);
  padding: 2.1rem 1.7rem; box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.concept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.concept-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  margin-bottom: 1.1rem; color: #fff;
  box-shadow: 0 8px 18px rgba(58,43,64,.18);
  transition: transform .25s ease;
}
.concept-card:hover .concept-icon { transform: translateY(-2px) scale(1.06); }
.concept-icon svg { width: 30px; height: 30px; }
.concept-icon-1 { background: var(--purple); }
.concept-icon-2 { background: var(--orange); }
.concept-icon-3 { background: var(--teal-dark); }
.concept-icon-4 { background: var(--green-dark); }
.concept-icon-5 { background: var(--orange-dark); }
/* h2, nicht h3: die Karten stehen direkt unter der h1 der Seite, ein h3 hätte
   die Stufe h2 übersprungen. Größe kommt aus dieser Regel. */
.concept-card h2 { font-size: 1.2rem; margin-bottom: .45rem; }
.concept-card p { color: var(--muted); margin: 0; }

/* ---------- Konzept: Ernährungs-Panel (Bio + nussfrei) ---------- */
#food .section-eyebrow { color: var(--orange-dark); }
.food-panel {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center;
  background: linear-gradient(135deg, #fff, var(--cream));
  border: 2px solid var(--orange); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
.food-text .section-title { color: var(--orange-dark); }
.food-text p { color: var(--muted); margin: 0; }
.food-points { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.food-points li { position: relative; padding-left: 1.8rem; color: var(--ink); font-weight: 600; }
.food-points li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--green-dark); font-weight: 800;
}
.food-badge {
  justify-self: center;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.food-badge svg { width: 58px; height: 58px; }
@media (min-width: 720px) {
  .food-panel { grid-template-columns: 1fr auto; }
}

/* ---------- Alltag: Raum-Foto-Platzhalter ---------- */
.room-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem;
  aspect-ratio: 4 / 3; border-radius: 14px;
  background: var(--cream); border: 2px dashed var(--teal);
  color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  margin-bottom: 1rem;
}
.room-photo-ic { width: 34px; height: 34px; color: var(--teal-dark); }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal-content p { color: var(--ink); }
.legal-back { margin-top: 2.2rem; }
.legal-back a { font-family: var(--font-head); font-weight: 700; }

/* ---------- Kontakt-/Anfrageformular ---------- */
#kontaktformular .section-eyebrow { color: var(--purple); }
.form-wrap { max-width: 720px; }
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
.form-row-2 { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field > span { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .95rem; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(143,47,142,.18); border-radius: var(--radius-sm);
  padding: .75rem .9rem; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(143,47,142,.15);
}
/* Fehlerhaftes Pflichtfeld: roter Rahmen PLUS aria-invalid (in main.js gesetzt).
   Farbe allein reicht nicht – wer Rot nicht unterscheiden kann, braucht die
   Textmeldung in .form-status, die zusätzlich vorgelesen wird. */
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #b3261e;
  background: #fff7f6;
}
.form-field input.is-invalid:focus,
.form-field select.is-invalid:focus,
.form-field textarea.is-invalid:focus {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .18);
}
/* Honeypot – für Menschen unsichtbar */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn-block { margin-top: .4rem; }
/* Datenschutzhinweis direkt am Formular – Art. 13 DSGVO verlangt die Information
   dort, wo die Daten erhoben werden, nicht nur im Footer. */
.form-privacy { margin: .6rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.form-privacy a { text-decoration: underline; }
.form-status { margin: .4rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.is-success { color: var(--green-dark); }
.form-status.is-error { color: #b3261e; }
@media (min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Mobile-Feinschliff für neue Komponenten ---------- */
@media (max-width: 600px) {
  .page-header { padding: 2rem 0 3.2rem; }
  .page-title { font-size: 1.8rem; overflow-wrap: anywhere; }
  .highlight-grid, .teaser-grid { gap: 1rem; }
  .highlight { padding: 1.6rem 1.2rem; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .food-badge { width: 96px; height: 96px; }
  .food-badge svg { width: 46px; height: 46px; }
}

/* =========================================================
   NEUE KOMPONENTEN: Aufnahme, FAQ, Anfahrt, Elternstimmen
   Alle im bestehenden Markenlook (mobile-first).
   ========================================================= */

/* Farbige Eyebrows je neuem Abschnitt – bunt wie im Original */
#admission .section-eyebrow,
#fees      .section-eyebrow { color: var(--green-dark); }
#faq       .section-eyebrow { color: var(--teal-dark); }
#voices    .section-eyebrow { color: var(--purple); }
.transit   .section-eyebrow { color: var(--orange-dark); }

/* ---------- Aufnahme: Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; max-width: 820px; }
.step {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem 1.7rem; box-shadow: var(--shadow);
  border-left: 5px solid var(--purple);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:nth-child(2) { border-left-color: var(--orange); }
.step:nth-child(3) { border-left-color: var(--green); }
.step:nth-child(4) { border-left-color: var(--teal-dark); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.step-num {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 6px 14px rgba(58,43,64,.18);
}
.step:nth-child(2) .step-num { background: var(--orange); }
.step:nth-child(3) .step-num { background: var(--green-dark); }
.step:nth-child(4) .step-num { background: var(--teal-dark); }
.step-body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.step-body p { color: var(--muted); margin: 0; }

/* ---------- FAQ: Akkordeon (native <details>) ---------- */
.faq-wrap { max-width: 820px; }
.faq-group-title {
  font-size: 1.3rem; color: var(--purple);
  margin: 2.2rem 0 1rem; padding-bottom: .4rem;
  border-bottom: 2px solid rgba(143,47,142,.14);
}
.faq-item {
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); margin-bottom: .8rem;
  border-left: 4px solid var(--teal);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  line-height: 1; color: var(--purple);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--purple); }
.faq-answer { padding: 0 1.3rem 1.2rem; }
.faq-answer p { margin: 0; color: var(--muted); }
.faq-answer p + p { margin-top: .6rem; }
.faq-link a { font-family: var(--font-head); font-weight: 700; text-decoration: underline; }

/* ---------- Anfahrt (ÖPNV) ---------- */
.transit { margin-top: 0; }
.transit-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
}
.transit-list li { display: flex; gap: 1rem; align-items: flex-start; }
.transit-list .contact-ic { color: var(--teal-dark); }
.transit-list strong { font-family: var(--font-head); color: var(--purple); display: block; }
.transit-list p { margin: .15rem 0 0; color: var(--muted); }
@media (min-width: 600px) { .transit-list { grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; } }

/* ---------- Elternstimmen (Zitate) ---------- */
.quote-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
}
.quote-card {
  position: relative;
  background: var(--white); border-radius: var(--radius);
  padding: 2.4rem 1.7rem 1.6rem; box-shadow: var(--shadow);
  border-top: 5px solid var(--purple);
}
.quote-card:nth-child(2) { border-top-color: var(--orange); }
.quote-card:nth-child(3) { border-top-color: var(--green); }
.quote-card::before {
  content: "\201C"; position: absolute; top: .2rem; left: 1.1rem;
  font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 1;
  color: var(--yellow);
}
.quote-card blockquote {
  margin: 0 0 1rem; padding: 0;
  color: var(--ink); font-size: 1.05rem; line-height: 1.6;
}
.quote-card cite {
  font-family: var(--font-head); font-weight: 700; font-style: normal;
  color: var(--purple); font-size: .95rem;
}

/* ---------- Formulare & Downloads ---------- */
#downloads .section-eyebrow { color: var(--teal-dark); }
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem; margin-bottom: 1rem;
}
.download-card {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  background: var(--white); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; box-shadow: var(--shadow);
  border-left: 5px solid var(--teal); color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Der Text der aktiven Karte („PDF herunterladen", „Auf der Behördenseite öffnen")
   ist deutlich länger als die kurze „folgt in Kürze"-Plakette. Neben dem Inhalt
   quetscht er die Beschreibung auf ein Wort pro Zeile – deshalb darf er in eine
   eigene Zeile rutschen, sobald es eng wird. */
.download-card .dl-body { flex: 1 1 12rem; }
.download-card:nth-child(4n+2) { border-left-color: var(--orange); }
.download-card:nth-child(4n+3) { border-left-color: var(--green); }
.download-card:nth-child(4n+4) { border-left-color: var(--purple); }
.dl-ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--teal-dark);
}
.dl-ic svg { width: 24px; height: 24px; }
.dl-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dl-title { font-family: var(--font-head); font-weight: 700; color: var(--purple); }
.dl-text { color: var(--muted); font-size: .9rem; }
/* Kein margin-left:auto mehr – .dl-body wächst jetzt selbst und schiebt die
   Aktion nach rechts. Rutscht sie in die zweite Zeile, steht sie dort linksbündig
   statt am rechten Rand zu kleben. */
.dl-status { align-self: center; }
.dl-soon {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  color: var(--muted); background: var(--cream);
  border: 1px dashed var(--teal); border-radius: 999px; padding: .3rem .7rem;
}
.dl-go {
  display: none; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; color: var(--purple);
}
.dl-go::after { content: " \2193"; }
/* Externe Karten führen zu Behördenseiten, laden also nichts herunter –
   deshalb Pfeil nach außen statt nach unten. */
.download-card[target="_blank"] .dl-go::after { content: " \2197"; }
/* Einleitung über einer Download-Gruppe (Hinweis auf amtliche Quellen) */
.dl-group-lead { margin: -.4rem 0 1rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
/* Standard: noch kein PDF -> Karte nicht anklickbar, dezent */
.download-card:not(.is-available) { cursor: default; pointer-events: none; opacity: .9; }
/* PDF vorhanden (von main.js erkannt) -> als Download aktiv */
.download-card.is-available { opacity: 1; }
.download-card.is-available:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.download-card.is-available .dl-ic { background: var(--teal-dark); color: #fff; }
.download-card.is-available .dl-soon { display: none; }
.download-card.is-available .dl-go { display: inline; }
@media (max-width: 600px) {
  .download-card { flex-wrap: wrap; }
  .dl-status { margin-left: 0; width: 100%; padding-left: 0; }
}

/* ---------- Leer-/Ladezustände (Termine, Kalender) ---------- */
.cal-empty, .od-loading {
  margin: 0; background: var(--cream); border: 1px dashed var(--teal);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; color: var(--muted);
  font-family: var(--font-head); font-weight: 600;
}

/* ---------- Tag der offenen Tür ---------- */
#openday .section-eyebrow { color: var(--green-dark); }
.od-list { display: grid; gap: 1.2rem; }
.od-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem 1.7rem; border-left: 5px solid var(--green);
}
.od-card.is-full { opacity: .85; border-left-color: var(--muted); }
.od-when { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .7rem; }
.od-date { font-family: var(--font-head); font-weight: 700; color: var(--purple); font-size: 1.15rem; text-transform: capitalize; }
.od-time { color: var(--muted); }
.od-badge {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: #fff; background: var(--green-dark); border-radius: 999px; padding: .3rem .8rem;
}
.od-badge.is-full { background: var(--muted); }
.od-reserve-btn { margin-top: 1rem; }
.od-form { display: grid; gap: 1.1rem; margin-top: 1rem; }

/* ---------- Kalender ---------- */
#kalender .section-eyebrow { color: var(--teal-dark); }
.cal-upcoming { display: grid; gap: .8rem; margin-bottom: 2.5rem; }
.cal-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 1rem 1.2rem; border-left: 4px solid var(--teal-dark);
}
.cal-chip {
  flex: none; font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .5px; color: #fff;
  background: var(--teal-dark); border-radius: 999px; padding: .3rem .7rem;
}
.cal-item-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cal-item-body strong { font-family: var(--font-head); color: var(--purple); }
.cal-item-date, .cal-item-desc { color: var(--muted); font-size: .9rem; }

/* Farben je Eintragstyp (Chip, Punkt, Rand) */
.cal-item.cal-typ-schliesszeit { border-left-color: var(--orange-dark); }
.cal-typ-schliesszeit .cal-chip, .cal-dot.cal-typ-schliesszeit { background: var(--orange-dark); }
.cal-item.cal-typ-ferien { border-left-color: var(--teal-dark); }
.cal-typ-ferien .cal-chip, .cal-dot.cal-typ-ferien { background: var(--teal-dark); }
.cal-item.cal-typ-fest { border-left-color: var(--purple); }
.cal-typ-fest .cal-chip, .cal-dot.cal-typ-fest { background: var(--purple); }
.cal-item.cal-typ-offene_tuer { border-left-color: var(--green-dark); }
.cal-typ-offene_tuer .cal-chip, .cal-dot.cal-typ-offene_tuer { background: var(--green-dark); }
.cal-typ-termin .cal-chip, .cal-dot.cal-typ-termin { background: var(--orange); }
.cal-item.cal-typ-termin { border-left-color: var(--orange); }

/* Monatsraster */
.cal-month-heading { margin-top: .5rem; margin-bottom: 1rem; text-transform: capitalize; }
.cal-month { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.cal-grid-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid-head { margin-bottom: 5px; }
.cal-wd {
  text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  color: var(--muted); text-transform: uppercase; padding: .3rem 0;
}
.cal-cell {
  min-height: 66px; border-radius: 10px; background: var(--cream);
  padding: .4rem .45rem; display: flex; flex-direction: column; gap: .25rem;
}
.cal-cell.is-empty { background: transparent; }
.cal-day { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.cal-cell.has-ev { background: var(--white); box-shadow: inset 0 0 0 1px rgba(143, 47, 142, .14); }
.cal-cell.is-today { outline: 2px solid var(--purple); outline-offset: -1px; }
.cal-cell.is-today .cal-day { color: var(--purple); }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-dark); }
@media (max-width: 600px) {
  .cal-grid-head, .cal-grid { gap: 3px; }
  .cal-cell { min-height: 48px; padding: .3rem; border-radius: 8px; }
  .cal-day { font-size: .8rem; }
  .cal-dot { width: 6px; height: 6px; }
  .cal-wd { font-size: .68rem; }
}

/* ---------- Glas-Murmel-Icons (Start-Highlights & Konzept-Karten) ---------- */
.tile-marble {
  width: 76px; height: 76px; display: block; margin: 0 auto 1rem;
  filter: drop-shadow(0 6px 10px rgba(58, 43, 64, .20));
  transition: transform .25s ease;
}
.highlight:hover .tile-marble,
.concept-card:hover .tile-marble { transform: rotate(8deg) scale(1.08); }
.food-marble {
  width: 120px; height: 120px; justify-self: center; display: block;
  filter: drop-shadow(0 8px 14px rgba(58, 43, 64, .22));
}

/* ---------- „In meinen Kalender"-Button (.ics) ---------- */
.cal-add {
  align-self: flex-start; margin-top: .55rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--teal-dark); background: transparent;
  border: 2px solid var(--teal-dark); border-radius: 999px;
  padding: .35rem .85rem; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.cal-add:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.od-ics { margin-top: .8rem; }

/* =========================================================
   GARTENPROJEKT – Foto-Galerie
   Klickbare Kacheln; öffnen die Lightbox (siehe unten).
   ========================================================= */
.garten-gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
}
.garten-item {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0;
  background: var(--white); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.garten-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.garten-item img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s ease;
}
.garten-item:hover img,
.garten-item:focus-visible img { transform: scale(1.06); }
.garten-item:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
/* Bildunterschrift als weicher Verlauf über dem unteren Bildrand */
.garten-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.6rem .85rem .7rem; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; line-height: 1.35;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35);
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0));
}
/* kleines „Vergrößern"-Abzeichen oben rechts */
.garten-item::after,
.room-hero::after {
  content: ""; position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9) center / 18px 18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F2F8E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E");
  box-shadow: 0 4px 12px rgba(58,43,64,.25);
  opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .25s ease;
}
.garten-item:hover::after,
.garten-item:focus-visible::after,
.room-hero:hover::after,
.room-hero:focus-visible::after { opacity: 1; transform: scale(1); }

/* =========================================================
   RÄUME – Mini-Galerie je Karte: Gesamtbild (room-hero) + Details (room-thumb)
   ========================================================= */
.room-gallery { margin-bottom: .9rem; }
.room-hero {
  position: relative; display: block; width: 100%; margin: 0 0 .55rem; padding: 0; border: 0;
  cursor: pointer; border-radius: 14px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow);
}
.room-hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease;
}
.room-hero:hover img,
.room-hero:focus-visible img { transform: scale(1.05); }
.room-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.room-thumb {
  width: 88px; height: 88px; flex: none; margin: 0; padding: 0; border: 0; cursor: pointer;
  border-radius: 10px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow);
}
.room-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.room-thumb:hover img,
.room-thumb:focus-visible img { transform: scale(1.1); }
.room-hero:focus-visible,
.room-thumb:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .room-hero img, .room-thumb img, .room-hero::after { transition: none; }
}

/* =========================================================
   LIGHTBOX / POP-UP – wird per JS (main.js) mit Inhalt gefüllt.
   Zwei Modi:  .is-image  (großes Foto)  ·  .is-profile (Team-Karte groß)
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: clamp(.8rem, 3vw, 2rem);
  background: rgba(30, 20, 34, .78); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.lightbox.is-open { display: flex; }
.lightbox-dialog {
  position: relative; max-width: min(920px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  animation: lbIn .28s ease;
}
@keyframes lbIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 4;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-hover);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.lightbox-close:hover { transform: scale(1.08); background: var(--purple); color: #fff; }
.lightbox-close svg { width: 22px; height: 22px; }

/* Foto-Modus */
.lightbox-figure { margin: 0; display: flex; flex-direction: column; }
.lightbox-figure img {
  display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.4); background: #fff;
}
.lightbox-figure figcaption {
  margin-top: .8rem; text-align: center; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}

/* Profil-Modus (Team) */
.lightbox-profile {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  width: min(420px, 100%); box-shadow: 0 24px 70px rgba(0,0,0,.4); text-align: center;
  padding: 0 1.6rem 1.7rem;
}
.lightbox-profile .lb-photo {
  margin: 0 -1.6rem 1.2rem; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--muted);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.lightbox-profile .lb-photo img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-profile .lb-name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.lightbox-profile .lb-role { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--purple); margin-top: .15rem; }
.lightbox-profile .lb-quote { margin: .9rem 0 0; color: var(--muted); font-style: italic; line-height: 1.6; }
.lightbox-profile .lb-mail {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.3rem;
  padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--purple); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; word-break: break-word;
  transition: background .2s ease, transform .15s ease;
}
.lightbox-profile .lb-mail:hover { background: var(--purple-dark); transform: translateY(-2px); }
.lightbox-profile .lb-mail svg { width: 18px; height: 18px; flex: none; }

/* Team-Karten: als klickbar kennzeichnen. Der Fokusring sitzt am inneren
   <button class="team-open"> (siehe oben), nicht an der Karte. */
.team-card.is-clickable { cursor: pointer; }

body.lb-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .garten-item, .garten-item img, .garten-item::after,
  .lightbox-dialog, .lightbox-close, .lightbox-profile .lb-mail { transition: none; animation: none; }
}

/* ---------- Notfall-Navigation ohne JavaScript ----------
   Kopf- und Fußbereich entstehen normalerweise in layout.js. Ohne JavaScript
   läuft dieses Skript nicht — die Seite hätte dann weder Menü noch Logo noch
   Telefonnummer, man käme von der Startseite nicht einmal zum Kontakt. Der
   <noscript>-Block in jeder Seite fängt das ab; bei aktivem JS ersetzt
   layout.js das umgebende <div> samt Inhalt, der Block ist dann restlos weg. */
.ns-bar {
  background: var(--purple); color: #fff;
  padding: 1rem 1.25rem; text-align: center;
}
.ns-logo {
  display: inline-block; margin-bottom: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  color: #fff; text-decoration: none; letter-spacing: .5px;
}
.ns-bar nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; }
.ns-bar nav a {
  color: #fff; font-family: var(--font-head); font-weight: 600; text-decoration: underline;
}
.ns-kontakt { margin: .8rem 0 0; font-size: .92rem; color: #f0dcf0; }
.ns-kontakt a { color: #fff; }
.ns-hinweis { margin: .5rem 0 0; font-size: .82rem; color: #dcc0dc; }
