/* ==========================================================================
   Geschwister-Scholl-Oberschule Roßwein – Stylesheet
   Farbwelt: Braun #725452 / Beige #ddd6bc (wie bisher), edler umgesetzt
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-freundlich) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lato-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
    --brown: #725452;
    --brown-600: #634845;
    --brown-700: #4f3a38;
    --brown-900: #2a201f;
    --beige: #ddd6bc;
    --beige-300: #e7e1cc;
    --beige-200: #efeadb;
    --beige-100: #f6f3ea;
    --paper: #fbfaf6;
    --ink: #2d2624;
    --text: #4b423f;
    --muted: #877c74;
    --line: #e6dfcf;
    --white: #fff;
    --success: #2f6b3d;
    --danger: #9a322b;

    --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --btn-fs: 15px; /* einheitliche Schriftgröße aller Buttons */
    --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1180px;
    --container-wide: 1440px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 84px;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(45, 38, 36, .05), 0 4px 14px -6px rgba(45, 38, 36, .12);
    --shadow: 0 14px 34px -14px rgba(45, 38, 36, .28);
    --shadow-lg: 0 30px 70px -24px rgba(35, 26, 25, .45);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font: 400 17px/1.65 var(--font-body);
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; outline: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brown); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brown-700); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 2.6vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
button { font: inherit; }
::selection { background: var(--beige); color: var(--brown-900); }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 12px/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--brown); margin: 0 0 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; flex-shrink: 0; }
.js .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .8s .25s var(--ease); }
.js .reveal.is-visible .eyebrow::before { transform: scaleX(1); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.tag { display: inline-block; font: 700 10px/1 var(--font-body); letter-spacing: .08em; background: var(--beige); color: var(--brown-700); padding: 4px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .85em 1.35em; border-radius: 12px; border: 1.5px solid transparent;
    font: 700 var(--btn-fs)/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn--primary { background: var(--brown); color: #fff; box-shadow: 0 8px 18px -10px rgba(79, 58, 56, .8); }
.btn--primary:hover { background: var(--brown-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(79, 58, 56, .9); }
.btn--light { background: #fff; color: var(--brown-700); }
.btn--light:hover { background: var(--beige-100); color: var(--brown-900); }
.btn--ghost { background: transparent; color: var(--brown); border-color: rgba(114, 84, 82, .45); }
.btn--ghost:hover { border-color: var(--brown); background: rgba(114, 84, 82, .06); color: var(--brown-700); }
.btn--sm { padding: .6em 1em; border-radius: 10px; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s, background .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(45, 38, 36, .35); }
.site-header__inner { width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brown); color: #fff; box-shadow: 0 8px 16px -10px rgba(79, 58, 56, .9), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.brand__mark .icon { width: 25px; height: 25px; }
/* Logo = Foto des Schulgebäudes */
.brand__mark { position: relative; overflow: hidden; flex-shrink: 0; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__mark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(45, 38, 36, .14); pointer-events: none; }
.brand--light .brand__mark::after, .site-header--home:not(.is-scrolled) .brand__mark::after { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.brand__text strong { display: block; font: 600 15.5px/1.15 var(--font-head); letter-spacing: -.01em; }
.brand__text small { display: block; margin-top: 2px; font: 700 11px/1.3 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__text small { color: rgba(255, 255, 255, .7); }
.brand--light .brand__mark { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

.main-nav { margin-left: auto; }
.main-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 11px; border: 0; background: none; cursor: pointer; border-radius: 9px;
    font: 400 15px/1.2 var(--font-body); color: var(--ink); text-decoration: none; white-space: nowrap;
    transition: color .2s, background .2s;
}
.nav-link .icon { width: 15px; height: 15px; transition: transform .25s; }
.nav-link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brown); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--brown); }
.nav-link:hover::after, .nav-item.is-active > .nav-link::after { transform: scaleX(1); }
.nav-item.has-children > a.nav-link { padding-right: 2px; }
.nav-item.has-children > a.nav-link::after { right: 2px; }
.sub-toggle { border: 0; background: none; color: var(--ink); padding: 8px 6px 8px 2px; cursor: pointer; display: inline-flex; border-radius: 8px; }
.sub-toggle .icon { width: 15px; height: 15px; transition: transform .25s; }
.sub-toggle--text { padding: 10px 11px; }
.has-children:hover .sub-toggle .icon, .has-children.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu {
    position: absolute; top: calc(100% + 8px); left: -6px; min-width: 240px; z-index: 5;
    list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu, .has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; transition: background .2s, color .2s; }
.sub-menu a:hover, .sub-menu a.is-active { background: var(--beige-100); color: var(--brown); }
.sub-menu .icon { width: 15px; height: 15px; color: var(--muted); }
.header-cta { margin-left: 10px; }
.header-cta.is-active { background: var(--brown-700); }

.menu-toggle {
    display: none; margin-left: auto; align-items: center; gap: 10px; cursor: pointer;
    padding: 9px 12px 9px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
    font: 700 var(--btn-fs)/1 var(--font-body); color: var(--ink); letter-spacing: .02em;
    transition: background .2s, border-color .2s, color .2s;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle:hover { border-color: var(--brown); color: var(--brown); }

/* Laptop-Breiten: Navigation etwas kompakter, damit alles in eine Zeile passt */
@media (max-width: 1480px) {
    .site-header__inner { width: min(100% - 40px, var(--container-wide)); gap: 12px; }
    .nav-link, .sub-toggle--text { padding-inline: 8px; }
    .nav-link::after { left: 8px; right: 8px; }
    .header-cta { margin-left: 2px; }
}
@media (max-width: 1359px) {
    .main-nav, .header-cta { display: none; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
    :root { --header-h: 70px; }
    .brand__mark { width: 40px; height: 40px; }
    .brand__text strong { font-size: 13.5px; }
    .brand__text small { font-size: 10px; }
    .menu-toggle__label { display: none; }
    .menu-toggle { padding: 9px; }
}

/* Header auf der Startseite: transparent über dem Gebäudebild */
.site-header--home { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header--home .brand { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.site-header--home .brand__text small { color: rgba(255, 255, 255, .8); }
.site-header--home .brand__mark { background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 10px 24px -12px rgba(0, 0, 0, .5); }
.site-header--home .menu-toggle { display: inline-flex; color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.site-header--home .menu-toggle:hover { background: #fff; color: var(--brown); }
.site-header--home.is-scrolled { background: rgba(255, 255, 255, .92); border-color: var(--line); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); }
.site-header--home.is-scrolled .brand { color: var(--ink); text-shadow: none; }
.site-header--home.is-scrolled .brand__text small { color: var(--muted); }
.site-header--home.is-scrolled .brand__mark { background: var(--brown); }
.site-header--home.is-scrolled .menu-toggle { color: var(--ink); background: #fff; border-color: var(--line); }

/* ---------- Großes Overlay-Menü ---------- */
.menu-overlay { position: fixed; inset: 0; z-index: 200; color: #fff; overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .35s var(--ease); }
.menu-overlay[hidden] { display: none; }
.menu-overlay.is-open { opacity: 1; }
.menu-overlay__bg { position: fixed; inset: 0; background: linear-gradient(135deg, rgba(36, 27, 26, .95), rgba(79, 58, 56, .93)), url("../img/home/gebaeude-panorama.jpg") center / cover; }
.menu-overlay__inner { position: relative; min-height: 100%; padding-bottom: 48px; }
.menu-overlay__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu-close { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); transition: background .2s, transform .3s var(--ease); }
.menu-close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.menu-close .icon { width: 24px; height: 24px; }
.menu-overlay__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(16px, 4vh, 48px); align-items: start; }
.overlay-nav ul { list-style: none; margin: 0; padding: 0; }
.overlay-nav > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; }
.overlay-nav__item { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * 40ms + 80ms); }
.menu-overlay.is-open .overlay-nav__item { opacity: 1; transform: none; }
.overlay-nav__link { display: inline-block; padding: 6px 0; font: 500 clamp(21px, 2.3vw, 28px)/1.25 var(--font-head); color: #fff; text-decoration: none; transition: color .2s; }
a.overlay-nav__link:hover, .overlay-nav__item.is-active > .overlay-nav__link { color: var(--beige); }
.overlay-nav__link--label { color: rgba(255, 255, 255, .55); }
.overlay-nav__sub { margin: 0 0 10px !important; padding-left: 16px !important; border-left: 1px solid rgba(255, 255, 255, .18); }
.overlay-nav__sub a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; color: rgba(255, 255, 255, .78); font: 700 16px/1.3 var(--font-body); text-decoration: none; }
.overlay-nav__sub a:hover, .overlay-nav__sub a[aria-current] { color: #fff; }
.overlay-nav__sub .icon { width: 14px; height: 14px; opacity: .7; }
.overlay-nav__sub .tag { background: rgba(255, 255, 255, .16); color: #fff; }
.overlay-contact { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); padding: 28px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.overlay-contact .eyebrow { color: var(--beige); }
.overlay-contact__line { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; margin: 0; color: #fff; font: 700 clamp(16px, 1.4vw, 19px)/1.35 var(--font-body); text-decoration: none; word-break: break-word; }
.overlay-contact__line .icon { width: 22px; height: 22px; color: var(--beige); margin-top: 1px; }
a.overlay-contact__line:hover { color: var(--beige); }
.overlay-contact__line--muted { font-weight: 400; color: rgba(255, 255, 255, .8); }
.overlay-contact .btn { margin-top: 14px; }
@media (max-width: 860px) {
    .menu-overlay__grid { grid-template-columns: 1fr; }
    .overlay-nav > ul { grid-template-columns: 1fr; }
}
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Seitenkopf der Unterseiten (Beige-Band mit braunem Pfeil – wie bisher)
   ========================================================================== */
.page-hero { --mx: 0; --my: 0; position: relative; isolation: isolate; overflow: hidden; background: var(--beige); min-height: clamp(170px, 15vw, 240px); display: flex; align-items: center; }
/* schraffierter Kreis links – dreht sich langsam */
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; left: -90px; bottom: -170px; border-radius: 50%; background: repeating-linear-gradient(-45deg, rgba(114, 84, 82, .13) 0 2px, transparent 2px 11px); animation: heroSpin 80s linear infinite; }
/* feine Lichtkante oben */
.page-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); }

/* Pfeil: zwei „Echo“-Pfeile dahinter + Hauptpfeil mit bewegtem Gebäudefoto */
.page-hero__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* --tip = waagerechte Länge der Spitze; in vw, damit alle drei Pfeile denselben Winkel haben */
.page-hero__ghost, .page-hero__shape { --tip: 11vw; position: absolute; top: 0; right: 0; bottom: 0; clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 50%); }
.page-hero__ghost { width: calc(47% + 110px); background: rgba(114, 84, 82, .1); translate: calc(var(--mx) * 14px) 0; transition: translate .6s var(--ease); animation: arrowIn 1.1s .05s var(--ease) both; }
.page-hero__ghost--2 { width: calc(47% + 55px); background: rgba(114, 84, 82, .16); translate: calc(var(--mx) * 8px) 0; animation-delay: .12s; }
.page-hero__shape { width: 47%; background: var(--brown); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); animation: arrowIn 1s .2s var(--ease) both; }
.page-hero__img { position: absolute; inset: -10%; background: url("../img/home/gebaeude-panorama.jpg") 60% 40% / cover; mix-blend-mode: luminosity; opacity: .42; translate: calc(var(--mx) * -22px) calc(var(--my) * -14px); transition: translate .8s var(--ease); animation: heroKenBurns 26s ease-in-out infinite alternate; }
/* Duoton-Verlauf: Spitze dunkler, rechts wärmer */
.page-hero__shape::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(42, 32, 31, .55), rgba(79, 58, 56, .1) 45%, rgba(114, 84, 82, .35)); }
/* Lichtstreif, der regelmäßig über den Pfeil läuft */
.page-hero__shape::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 38%; left: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16) 45%, rgba(255, 255, 255, .28) 50%, transparent 58%); transform: translateX(-120%) skewX(-12deg); animation: heroSheen 9s 1.6s ease-in-out infinite; }

.page-hero__inner { position: relative; padding-block: 34px; }
.page-hero__title { margin: 8px 0 0; max-width: 50%; font: 500 clamp(30px, 3.4vw, 46px)/1.1 var(--font-head); color: #3a302e; animation: heroIn .7s var(--ease) both; }
.page-hero__title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--brown); transform-origin: left; animation: lineGrow .9s .35s var(--ease) both; }
.page-hero__lead { margin: 10px 0 0; max-width: 46%; color: var(--brown-700); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 12px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(79, 58, 56, .72); animation: heroIn .6s var(--ease) both; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--brown-900); text-decoration: underline; }
.crumbs__sep { opacity: .5; }
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes arrowIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes heroKenBurns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-3.5%, -2%); } }
@keyframes heroSheen { 0%, 62% { transform: translateX(-120%) skewX(-12deg); } 100% { transform: translateX(330%) skewX(-12deg); } }
@keyframes heroSpin { to { transform: rotate(360deg); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) {
    .page-hero { min-height: 150px; }
    .page-hero__ghost, .page-hero__shape { --tip: 11.6vw; }
    .page-hero__shape { width: 34%; }
    .page-hero__ghost { width: calc(34% + 44px); }
    .page-hero__ghost--2 { width: calc(34% + 22px); }
    .page-hero__title { max-width: 74%; font-size: clamp(26px, 7vw, 34px); }
    .page-hero__title::after { width: 40px; margin-top: 10px; }
    .page-hero__lead { max-width: 70%; font-size: 15px; }
    .crumbs { font-size: 10.5px; gap: 4px 6px; letter-spacing: .1em; max-width: 64%; }
}

/* ==========================================================================
   Startseite – Gebäude mit Fenster-Kacheln
   ========================================================================== */
.page-home main { display: block; }
/* Höhe = Bildschirmhöhe, aber nie so hoch, dass seitlich Kacheln abgeschnitten würden (mind. 84 % der Bildbreite sichtbar) */
.home-hero { --hero-h: min(max(100svh, 560px), 59vw); position: relative; height: var(--hero-h); overflow: hidden; background: #c9c1ad; }
.home-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 3; pointer-events: none; background: linear-gradient(rgba(28, 21, 20, .5), rgba(28, 21, 20, 0)); }
.home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(28, 21, 20, 0), rgba(28, 21, 20, .38)); }
.stage {
    position: absolute; left: 50%; top: 50%;
    width: max(100%, calc(var(--hero-h) * 2.0173)); aspect-ratio: 2560 / 1269;
    transform: translate(-50%, -50%);
    container-type: inline-size;
    background: var(--brown-700) center / cover no-repeat;
}
/* Einblenden, danach sehr langsames „Atmen“ – die Kacheln bewegen sich mit und bleiben auf den Fenstern */
.js .stage { animation: stageIn 2.4s var(--ease) both, stageBreath 38s 2.4s ease-in-out infinite alternate; }
@keyframes stageIn { from { transform: translate(-50%, -50%) scale(1.06); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes stageBreath { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.035); } }
/* Sonnenlicht, das gelegentlich über die Fassade streicht */
.stage__light { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.stage__light::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 22%; background: linear-gradient(100deg, transparent, rgba(255, 248, 225, .18) 40%, rgba(255, 250, 235, .32) 50%, rgba(255, 248, 225, .18) 60%, transparent); transform: translateX(-150%) rotate(8deg); animation: facadeLight 16s 2.2s ease-in-out infinite; mix-blend-mode: soft-light; }
@keyframes facadeLight { 0% { transform: translateX(-150%) rotate(8deg); } 28%, 100% { transform: translateX(560%) rotate(8deg); } }
.stage__img { width: 100%; height: 100%; object-fit: cover; user-select: none; }

/* Kachel auf einem Fenster: Position = Mittelpunkt in % des Bildes (aus dem Original übernommen) */
.tile { position: absolute; left: var(--x); top: var(--y); width: 6.53%; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); z-index: 2; }
.tile:hover, .tile:focus-within { z-index: 6; }
.tile__btn {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 0 .2cqw; overflow: hidden;
    background: rgba(255, 252, 247, .84); color: var(--brown-700);
    -webkit-backdrop-filter: blur(5px) saturate(1.3); backdrop-filter: blur(5px) saturate(1.3);
    border: max(1.5px, .09cqw) solid rgba(114, 84, 82, .9); border-radius: .32cqw;
    box-shadow: 0 .5cqw 1.3cqw -.5cqw rgba(30, 22, 21, .55), inset 0 0 0 max(1px, .05cqw) rgba(255, 255, 255, .7);
    font: 700 .92cqw/1.08 var(--font-body); letter-spacing: -.005em; text-decoration: none;
    transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
}
.tile__btn small { display: none; } /* Zusatzzeile nur in der mobilen Kartenansicht */
.tile__btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); opacity: 0; }
.js .tile { opacity: 0; }
.js .is-ready .tile { animation: tileIn .8s var(--ease) both; animation-delay: calc(var(--d) * 70ms + 500ms); }
.js .is-ready .tile__btn::after { animation: glint 1.2s ease-out both; animation-delay: calc(var(--d) * 70ms + 1200ms); }
@keyframes tileIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes glint { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
.tile:hover .tile__btn, .tile:focus-within .tile__btn {
    background: var(--brown); color: #fff; border-color: rgba(255, 255, 255, .95);
    transform: translateY(-.22cqw) scale(1.07);
    box-shadow: 0 1.2cqw 2.2cqw -.7cqw rgba(30, 22, 21, .75);
}

/* Popup beim Überfahren – wie bisher Bild, Titel, „Zur Seite“ */
.tile__pop {
    position: absolute; left: 50%; bottom: calc(100% + 1.1cqw); width: clamp(220px, 14.5cqw, 290px);
    padding: 14px; border-radius: 18px; text-align: left;
    background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .8);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 10px) scale(.97); transform-origin: 50% 100%;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.tile__pop::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(1.1cqw + 6px); }
.tile__pop::after { content: ""; position: absolute; left: 50%; top: 100%; width: 16px; height: 16px; background: #fff; transform: translate(-50%, -9px) rotate(45deg); border-radius: 3px; box-shadow: 4px 4px 10px -4px rgba(0, 0, 0, .15); }
.tile:hover .tile__pop, .tile:focus-within .tile__pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.tile__pop-media { height: 104px; border-radius: 12px; background: var(--beige-100); display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; }
.tile__pop-media img { max-height: 84px; max-width: 86%; width: auto; object-fit: contain; }
.tile__pop-media--photo img { max-height: none; max-width: none; width: 100%; height: 100%; object-fit: cover; }
.tile__pop-title { font: 500 19px/1.25 var(--font-head); color: var(--ink); margin: 0 0 12px; }

.home-caption {
    position: absolute; left: var(--gutter); bottom: 28px; z-index: 4; max-width: min(560px, 60vw);
    padding: 16px 22px 16px 18px; border-radius: 18px; color: #fff;
    display: flex; align-items: center; gap: 14px;
    background: rgba(32, 24, 23, .42); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
    animation: heroIn .9s var(--ease) 1.2s both;
}
.home-caption__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex-shrink: 0; }
.home-caption__icon .icon { width: 22px; height: 22px; }
.home-caption h1 { margin: 0; font: 500 clamp(16px, 1.35vw, 20px)/1.25 var(--font-head); color: #fff; }
.home-caption p { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, .82); }

/* Mobile Variante: Bild oben, Kacheln als Raster */
.home-grid { display: none; }
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
    .home-hero { height: auto; overflow: visible; background: none; }
    .home-hero::after { display: none; }
    .stage { position: relative; left: auto; top: auto; width: 100%; height: min(58svh, 430px); aspect-ratio: auto; transform: none; animation: none !important; overflow: hidden; }
    .stage__img { object-position: 50% 45%; }
    .stage::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(rgba(28, 21, 20, 0), rgba(28, 21, 20, .62)); }
    .tile { display: none; }
    .home-caption { left: 16px; right: 16px; bottom: 44px; max-width: none; padding: 12px 16px; background: rgba(32, 24, 23, .35); animation: none; }
    .home-caption p { display: none; }
    .home-grid {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
        position: relative; z-index: 5; margin-top: -26px; padding: 22px var(--gutter) 40px;
        background: var(--paper); border-radius: 24px 24px 0 0;
    }
}
@media (min-width: 600px) and (max-width: 899px), (min-width: 600px) and (max-aspect-ratio: 1/1) {
    .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
.home-card {
    position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 132px; padding: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
    color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.home-card:hover, .home-card:active { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(114, 84, 82, .35); color: var(--ink); }
.home-card__media { width: 52px; height: 52px; border-radius: 14px; background: var(--beige-100); display: grid; place-items: center; overflow: hidden; }
.home-card__media img { max-width: 40px; max-height: 40px; object-fit: contain; }
.home-card__media--photo img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; }
.home-card__label { font: 500 15.5px/1.25 var(--font-head); padding-right: 20px; }
.home-card__label small { display: block; font: 700 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.home-card .icon-arrow-right { position: absolute; right: 14px; bottom: 16px; width: 18px; height: 18px; color: var(--brown); }
.home-card--feature { grid-column: 1 / -1; min-height: 168px; justify-content: flex-end; overflow: hidden; color: #fff; border: 0; background: var(--brown-900); box-shadow: var(--shadow); }
.home-card--feature:hover { color: #fff; }
.home-card--feature .home-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s var(--ease); }
.home-card--feature:hover .home-card__bg { transform: scale(1.04); }
.home-card--feature::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28, 21, 20, .05) 20%, rgba(28, 21, 20, .82)); }
.home-card--feature .home-card__label { position: relative; z-index: 2; font-size: 21px; color: #fff; }
.home-card--feature .home-card__label small { color: var(--beige); }
.home-card--feature .icon-arrow-right { z-index: 2; color: #fff; width: 22px; height: 22px; bottom: 18px; right: 18px; }
.home-card__badge { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font: 700 13px/1 var(--font-body); color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.home-card__badge .icon { width: 16px; height: 16px; }

/* ==========================================================================
   Virtueller Rundgang
   ========================================================================== */
.tour-section { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.tour-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; margin-bottom: 20px; }
.tour-intro h2 { margin: 0; }
.tour-hints { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tour-hints li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.tour-hints .icon { width: 17px; height: 17px; color: var(--brown); }

.tour { position: relative; isolation: isolate; height: clamp(440px, 76vh, 880px); border-radius: var(--radius-lg); overflow: hidden; background: #1c1615; box-shadow: var(--shadow-lg); }
.tour__pano { position: absolute; inset: 0; }
.tour:fullscreen { border-radius: 0; height: 100%; width: 100%; }
.tour.is-pseudo-fs { position: fixed; inset: 0; z-index: 400; height: 100%; border-radius: 0; }
body.tour-fs { overflow: hidden; }

.tour__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: 16px; display: grid; grid-template-rows: auto 1fr auto; }
.tour__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.tour__top > * { pointer-events: auto; }
.tour__group { display: flex; gap: 8px; flex-wrap: wrap; }
.tour__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; pointer-events: none; }
.tour__bottom > * { pointer-events: auto; }
.tbtn {
    height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    color: #fff; background: rgba(28, 22, 21, .55); border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    font: 700 var(--btn-fs)/1 var(--font-body); text-decoration: none; white-space: nowrap;
    transition: background .2s, transform .2s, border-color .2s;
}
.tbtn:hover { background: var(--brown); border-color: rgba(255, 255, 255, .4); color: #fff; }
.tbtn:active { transform: scale(.96); }
.tbtn .icon { width: 20px; height: 20px; }
.tbtn--icon { padding: 0; }
.tbtn[hidden] { display: none; }
.tour__badge { height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px 0 6px; border-radius: 12px; color: #fff; background: rgba(28, 22, 21, .55); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 700 var(--btn-fs)/1 var(--font-body); }
.tour__badge-num { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; background: var(--brown); font-size: 15px; }
.tour__badge-of { opacity: .7; font-weight: 400; }
.tour__zoom { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: rgba(28, 22, 21, .55); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tour__zoom .tbtn { background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tour__zoom .tbtn + .tbtn { border-top: 1px solid rgba(255, 255, 255, .15); }
.tour__zoom .tbtn:hover { background: var(--brown); }
.tour__hint { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; color: #fff; font-size: 14px; background: rgba(28, 22, 21, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .6s; }
.tour__hint .icon { width: 18px; height: 18px; }
.tour__hint.is-hidden { opacity: 0; pointer-events: none; }

.tour__dead {
    position: absolute; left: 50%; bottom: 22px; z-index: 4; transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
    display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 16px; color: #fff;
    background: rgba(28, 22, 21, .7); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: opacity .35s, transform .35s var(--ease), visibility .35s; white-space: nowrap;
}
.tour__dead.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tour__dead p { margin: 0; font-size: 14px; }
.tour__dead .tbtn { background: var(--brown); }

/* Hotspots (Pfeile) – Position 1:1 aus dem Original, Optik neu */
.pnlm-hotspot-base.hs-scene { width: 54px; height: 54px; cursor: pointer; }
.hs-scene .hs-ring { position: absolute; inset: 3px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .95); animation: hsPulse 2.4s ease-out infinite; }
.hs-scene .hs-ring--2 { animation-delay: 1.2s; }
.hs-scene .hs-core {
    position: absolute; inset: 7px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: radial-gradient(circle at 35% 30%, #8a6764, var(--brown) 60%, var(--brown-700));
    border: 2px solid #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
    transition: transform .25s var(--ease), background .25s;
}
.hs-scene .hs-core svg { width: 22px; height: 22px; stroke-width: 2.5; }
.hs-scene:hover .hs-core { transform: scale(1.14); }
.hs-scene .hs-label {
    position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
    white-space: nowrap; padding: 6px 10px; border-radius: 9px; color: #fff; background: rgba(28, 22, 21, .85);
    font: 700 13px/1.2 var(--font-body); transition: opacity .2s, transform .25s var(--ease);
}
.hs-scene:hover .hs-label { opacity: 1; transform: translate(-50%, 0); }
@keyframes hsPulse { 0% { transform: scale(.8); opacity: .95; } 100% { transform: scale(1.75); opacity: 0; } }

/* Szenen-Übersicht */
.tour__overview { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: rgba(22, 16, 15, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; color: #fff; }
.tour__overview.is-open { opacity: 1; visibility: visible; }
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.ov-head h3 { margin: 0; color: #fff; font-size: 20px; }
.ov-head p { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.ov-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; gap: 12px; padding: 4px 20px 24px; align-content: start; overscroll-behavior: contain; }
.ov-item { position: relative; display: block; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; transition: transform .2s var(--ease), border-color .2s; }
.ov-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s var(--ease); }
.ov-item:hover img { opacity: 1; transform: scale(1.05); }
.ov-item:hover { border-color: rgba(255, 255, 255, .6); }
.ov-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; text-align: left; font: 700 var(--btn-fs)/1.2 var(--font-body); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.ov-item.is-current { border-color: var(--beige); }
.ov-item.is-current::after { content: "Hier"; position: absolute; top: 7px; right: 7px; padding: 3px 7px; border-radius: 6px; background: var(--beige); color: var(--brown-900); font: 700 11px/1.2 var(--font-body); }
.ov-item.is-visited:not(.is-current)::after { content: "✓"; position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--brown-700); font: 700 12px/1 var(--font-body); }

/* Pannellum-Ladeanzeige */
.tour .pnlm-load-box { background: rgba(28, 22, 21, .75); border-radius: 16px; font-family: var(--font-body); width: 220px; height: 130px; margin: -65px 0 0 -110px; }
.tour .pnlm-load-box p { margin: 18px 0 10px; font-size: 15px; }
.tour .pnlm-lbar { border-color: rgba(255, 255, 255, .5); border-radius: 6px; }
.tour .pnlm-lbar-fill { background: var(--beige); border-radius: 4px; }
.tour .pnlm-about-msg { display: none !important; }

@media (max-width: 640px) {
    .tour { height: min(72svh, 620px); border-radius: 16px; margin-inline: calc(var(--gutter) * -.5); }
    .tour__ui { padding: 10px; }
    .tbtn__label { display: none; }
    .tbtn { padding: 0 11px; }
    .tour__hint { display: none; }
    .tour__dead { left: 10px; right: 10px; transform: translateY(20px); white-space: normal; }
    .tour__dead.is-visible { transform: none; }
    .ov-grid { grid-template-columns: repeat(2, 1fr); padding-inline: 12px; }
}

/* ==========================================================================
   Inhalts-Komponenten
   ========================================================================== */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { margin: 0; }

/* Aktuelles */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige-100); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__zoom { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--brown); box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.news-card:hover .news-card__zoom, .news-card__media:focus-visible .news-card__zoom { opacity: 1; transform: none; }
.news-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 8px; font: 700 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.news-card__meta .icon { width: 15px; height: 15px; }
.news-card__title { margin: 0; font-size: 21px; }
.news-card__text { margin: 0; color: var(--text); font-size: 16px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* Karussell (Förderverein, Praxisberatung) */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 2); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 18px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; }
.carousel__item a { display: block; position: relative; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.carousel__item a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.carousel__item img { width: 100%; aspect-ratio: 2000 / 1414; object-fit: cover; }
.carousel__item .news-card__zoom { opacity: 0; }
.carousel__item a:hover .news-card__zoom { opacity: 1; transform: none; }
.carousel__nav { position: absolute; top: calc(50% - 18px); left: -22px; right: -22px; display: flex; justify-content: space-between; pointer-events: none; }
.carousel__btn { pointer-events: auto; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: #fff; color: var(--brown); border: 1px solid var(--line); box-shadow: var(--shadow); transition: background .2s, color .2s, opacity .2s, transform .2s; }
.carousel__btn:hover { background: var(--brown); color: #fff; }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
.carousel__btn .icon { width: 22px; height: 22px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.carousel__dot { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: var(--beige); transition: width .3s var(--ease), background .3s; }
.carousel__dot.is-active { width: 28px; background: var(--brown); }
@media (max-width: 1260px) { .carousel__nav { left: 8px; right: 8px; } }
@media (max-width: 700px) { .carousel__track { grid-auto-columns: 88%; gap: 14px; } .carousel__btn { width: 42px; height: 42px; } }

/* Einzelbild mit Rahmen (Schulsozialarbeit) */
.feature-image { display: block; position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; max-width: 1000px; margin-inline: auto; }
.feature-image img { width: 100%; }
.feature-image .news-card__zoom { opacity: 1; transform: none; }

/* Info-Karte / Platzhalter */
.notice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.notice__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.notice__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.notice__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--beige-100); color: var(--brown); margin-bottom: 18px; }
.notice__icon .icon { width: 28px; height: 28px; }
.notice__body h2 { margin-bottom: 10px; }
.notice__media--art { display: grid; place-items: center; padding: 36px; background: var(--beige-100) repeating-linear-gradient(-45deg, rgba(114, 84, 82, .07) 0 2px, transparent 2px 12px); }
.notice__media--art img { width: min(240px, 80%); height: auto; min-height: 0; aspect-ratio: 1; border-radius: 28px; border: 6px solid #fff; box-shadow: var(--shadow-lg); transform: rotate(-3deg); transition: transform .5s var(--ease); }
.notice:hover .notice__media--art img { transform: rotate(0) scale(1.03); }
@media (max-width: 760px) { .notice { grid-template-columns: 1fr; } .notice__media img { min-height: 200px; max-height: 260px; } .notice__media--art img { min-height: 0; width: 180px; } }

/* Unterrichtszeiten */
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); align-items: start; }
.times__card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.times__head { padding: 24px 26px 18px; background: linear-gradient(180deg, var(--beige-100), #fff); display: flex; align-items: center; gap: 14px; }
.times__head-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brown); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.times__head h2 { margin: 0; font-size: clamp(22px, 2vw, 27px); }
.times__head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.times__list { list-style: none; margin: 0; padding: 0; }
.times__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 26px; border-top: 1px solid var(--line); font: 400 16px/1.4 var(--font-head); color: var(--ink); transition: background .3s; }
.times__row time, .times__time { font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.times__row--pause { background: var(--beige-100); color: var(--brown-700); }
.times__row--pause .icon { width: 24px; height: 24px; color: var(--brown); }
.times__row.is-now { background: rgba(114, 84, 82, .09); box-shadow: inset 4px 0 0 var(--brown); }
.times__now { display: none; margin-left: 10px; padding: 3px 8px; border-radius: 6px; background: var(--brown); color: #fff; font: 700 11px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.times__row.is-now .times__now { display: inline-block; }
.times-note { margin-top: 22px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.times-note .icon { color: var(--brown); }
@media (max-width: 860px) { .times { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .times__row { padding: 13px 18px; font-size: 15px; } .times__head { padding: 20px 18px 16px; } }

/* Formulare */
.docs { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.docs h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.2vw, 30px); }
.docs h2 .count { font: 700 13px/1 var(--font-body); padding: 5px 9px; border-radius: 99px; background: var(--beige); color: var(--brown-700); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.doc:hover { border-color: rgba(114, 84, 82, .5); box-shadow: var(--shadow); transform: translateX(3px); color: var(--ink); }
.doc__icon { position: relative; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--beige-100); color: var(--brown); flex-shrink: 0; }
.doc__icon .icon { width: 25px; height: 25px; }
.doc__icon b { position: absolute; bottom: -5px; right: -6px; padding: 2px 5px; border-radius: 5px; background: var(--brown); color: #fff; font: 700 9px/1.2 var(--font-body); letter-spacing: .06em; }
.doc__text { min-width: 0; }
.doc__title { display: block; font: 700 16px/1.35 var(--font-body); }
.doc__meta { display: block; font-size: 13px; color: var(--muted); }
.doc__action { margin-left: auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--brown); background: var(--beige-100); flex-shrink: 0; transition: background .2s, color .2s; }
.doc:hover .doc__action { background: var(--brown); color: #fff; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } }

/* Schülerzeitung */
.issues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.issue { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--beige); border-radius: 22px; position: relative; overflow: hidden; }
.issue::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: repeating-linear-gradient(-45deg, rgba(114, 84, 82, .12) 0 2px, transparent 2px 10px); }
.issue__cover { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 210 / 297; border-radius: 6px 10px 10px 6px; overflow: hidden; background: linear-gradient(135deg, #a3958b, #7d6f67); box-shadow: 0 22px 34px -18px rgba(42, 32, 31, .7), inset 3px 0 0 rgba(0, 0, 0, .12); transform: perspective(900px) rotateY(-7deg); transform-origin: left center; transition: transform .45s var(--ease), box-shadow .45s; }
.issue__cover:hover, .issue__cover:focus-visible { transform: perspective(900px) rotateY(0deg) translateY(-4px); box-shadow: 0 30px 44px -20px rgba(42, 32, 31, .8); }
.issue__cover canvas, .issue__cover img { width: 100%; height: 100%; object-fit: cover; }
.issue__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(255, 255, 255, .08) 6%, transparent 12%); pointer-events: none; }
.issue__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
.issue__ph .icon { width: 42px; height: 42px; }
.issue__no { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 8px; border-radius: 7px; background: rgba(255, 255, 255, .92); color: var(--brown-700); font: 700 12px/1.2 var(--font-body); }
.issue__title { margin: 0; font-size: 19px; position: relative; }
.issue__actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.issue__actions .btn { flex: 1; }
@media (max-width: 1000px) { .issues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .issue { padding: 12px; gap: 12px; } .issue__title { font-size: 16px; } .issue__actions .btn { padding: .6em .7em; } }

/* Flipbook-Ansicht */
.flip-modal { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; color: #fff; background: radial-gradient(ellipse at 50% 30%, #3a2d2b, #1a1312 70%); opacity: 0; transition: opacity .3s; }
.flip-modal.is-open { opacity: 1; }
.flip-modal__bar { display: flex; align-items: center; gap: 12px; padding: 12px clamp(12px, 3vw, 24px); }
.flip-modal__title { margin: 0; font: 500 18px/1.2 var(--font-head); color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flip-modal__count { font-size: 14px; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.flip-modal__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px clamp(8px, 5vw, 80px) 18px; }
.flip-book { width: 100%; height: 100%; max-width: 1400px; display: grid; place-items: center; }
/* PageFlip setzt min-width (6000px erzwingt Einzelseiten) und width:100% inline – hier auf die berechnete Buchbreite begrenzen */
.flip-book .stf__parent { margin-inline: auto; min-width: 0 !important; width: var(--book-w, 100%) !important; max-width: 100% !important; }
.flip-book .stf__item { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.flip-modal__nav { position: absolute; top: 50%; left: 8px; right: 8px; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.flip-modal__nav .tbtn { pointer-events: auto; width: 52px; height: 52px; border-radius: 50%; }
.flip-progress { display: grid; justify-items: center; gap: 14px; text-align: center; }
.flip-progress__bar { width: 240px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.flip-progress__bar span { display: block; height: 100%; width: 0; background: var(--beige); transition: width .25s; }
.flip-modal__nav .tbtn:disabled { opacity: .25; pointer-events: none; }
.flip-modal[hidden] { display: none; }

/* Lupe zum Lesen der Zeitung */
.zoomer { position: absolute; inset: 0; z-index: 5; overflow: hidden; cursor: grab; touch-action: none; background: #1a1312; }
.zoomer[hidden] { display: none; }
.zoomer.is-dragging { cursor: grabbing; }
.zoomer img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.zoomer__tools { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; }
.zoomer__hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; padding: 7px 12px; border-radius: 10px; font-size: 13px; color: rgba(255, 255, 255, .85); background: rgba(28, 22, 21, .6); white-space: nowrap; pointer-events: none; }
@media (max-width: 640px) { .flip-modal__nav { display: none; } .flip-modal__bar .tbtn__label { display: none; } .zoomer__hint { display: none; } }

/* Mittagessen / CTA-Karte */
.cta-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.cta-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -150px; border-radius: 50%; background: repeating-linear-gradient(-45deg, rgba(114, 84, 82, .1) 0 2px, transparent 2px 11px); pointer-events: none; }
.cta-card__icon { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--brown); color: #fff; }
.cta-card__icon .icon { width: 34px; height: 34px; }
.cta-card h2 { margin: 0 0 6px; font-size: clamp(21px, 2vw, 26px); }
.cta-card p { margin: 0; }
.cta-card .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; text-align: left; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label, .field .label { display: block; margin-bottom: 7px; font: 700 13px/1.3 var(--font-body); letter-spacing: .04em; color: var(--ink); }
.field .req { color: var(--brown); }
.input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; font: 400 16px/1.4 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.input::placeholder { color: #aaa098; }
.input:hover { border-color: #d6ccb7; }
.input:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 4px rgba(114, 84, 82, .13); }
.input.is-invalid { border-color: var(--danger); }
textarea.input { min-height: 180px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brown); flex-shrink: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.captcha { display: flex; align-items: center; gap: 12px; }
.captcha label { margin: 0; font: 700 15px/1.3 var(--font-body); letter-spacing: 0; white-space: nowrap; }
.captcha .input { width: 92px; text-align: center; padding: 12px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-size: 15.5px; }
.alert .icon { margin-top: 2px; }
.alert--success { background: #edf6ee; color: var(--success); border: 1px solid #cfe5d3; }
.alert--error { background: #fbf0ee; color: var(--danger); border: 1px solid #efd2ce; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.info-card { position: relative; overflow: hidden; padding: clamp(26px, 3vw, 36px); border-radius: 24px; color: #fff; background: linear-gradient(160deg, var(--brown), var(--brown-700)); box-shadow: var(--shadow-lg); }
.info-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -100px; border-radius: 50%; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .1) 0 2px, transparent 2px 11px); }
.info-card h2 { color: #fff; font-size: 21px; margin-bottom: 18px; position: relative; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.info-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.info-list .info-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.info-list .info-icon .icon { width: 20px; height: 20px; color: var(--beige); }
.info-list b { display: block; font: 700 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--beige); margin-bottom: 2px; }
.info-list a, .info-list span { color: #fff; text-decoration: none; word-break: break-word; }
.info-list a:hover { text-decoration: underline; }
.info-card .btn { margin-top: 22px; position: relative; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form__foot { flex-direction: column; align-items: stretch; } .form__foot .btn { width: 100%; } }

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(22px, 2vw, 27px); margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; margin-top: 1.5em; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: .4em; }
.legal-card { padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal h4 { font: 700 16px/1.4 var(--font-body); margin: 1.4em 0 .4em; color: var(--ink); }
.legal [id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal a { overflow-wrap: anywhere; }
.legal code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--beige-100); color: var(--brown-700); }
.legal-toc { padding: 20px 26px 22px; margin-bottom: 22px; border-radius: 22px; background: var(--beige-100); border: 1px solid var(--line); }
.legal-toc .eyebrow { margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 32px; }
.legal-toc li { margin: 0; color: var(--brown); font-weight: 700; }
.legal-toc a { color: var(--brown-700); font-weight: 700; text-decoration: none; }
.legal-toc a:hover { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.draft-note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff7e8; border: 1px solid #f0dfb8; color: #7a5a1c; font-size: 15px; margin-bottom: 28px; }

/* 404 */
.error-page { text-align: center; padding-block: clamp(60px, 10vw, 140px); }
.error-page__code { font: 600 clamp(80px, 14vw, 160px)/1 var(--font-head); color: var(--beige); margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; background: rgba(20, 15, 14, .93); opacity: 0; transition: opacity .3s; padding: 64px 70px; }
.lightbox.is-open { opacity: 1; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); background: #fff; transform: scale(.97); transition: transform .35s var(--ease); }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__close { position: absolute; top: 14px; right: 14px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: rgba(255, 255, 255, .85); font-size: 15px; padding: 0 70px; }
@media (max-width: 640px) { .lightbox { padding: 60px 10px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; } .lightbox__caption { bottom: 24px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { flex-shrink: 0; background: var(--brown-900); color: rgba(255, 255, 255, .72); font-size: 15.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 52px 40px; }
.site-footer__addr { margin: 16px 0 0; }
.site-footer__title { margin: 0 0 14px; font: 700 12px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--beige); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__list a, .site-footer__list span { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .8); text-decoration: none; word-break: break-word; }
.site-footer__list a:hover { color: #fff; }
.site-footer__list .icon { width: 17px; height: 17px; color: var(--beige); }
.site-footer__list--links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--beige); opacity: .6; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; font-size: 14px; }
.site-footer__bottom nav { display: flex; gap: 10px; }
.site-footer__bottom a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Ganztagsangebote (GTA)
   ========================================================================== */
.gta-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(36px, 5vw, 60px); }
.gta-intro h2 { margin-bottom: 12px; }
.gta-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.gta-stats li { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.gta-stats strong { font: 500 28px/1 var(--font-head); color: var(--brown); }
.gta-stats span { font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gta-poster { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); transform: rotate(1.4deg); transition: transform .5s var(--ease), box-shadow .5s; }
.gta-poster:hover { transform: rotate(0) translateY(-4px); }
.gta-poster > a { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--beige-100); }
.gta-poster img { display: block; width: 100%; height: auto; transition: transform .7s var(--ease); }
.gta-poster > a:hover img { transform: scale(1.04); }
.gta-poster__zoom { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--brown); box-shadow: var(--shadow-sm); }
.gta-poster figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 2px; font: 700 15px/1.3 var(--font-body); color: var(--brown-700); }

/* Wochentags-Farben (aus der Grafik abgeleitet, Kontrast mind. 4,5 : 1) */
.gta-chip--mo, .gta-day--mo { --c: #66755c; }
.gta-chip--di, .gta-day--di { --c: #8c4a47; }
.gta-chip--mi, .gta-day--mi { --c: #a65f5b; }
.gta-chip--do, .gta-day--do { --c: #8f6a3a; }
.gta-chip--fr, .gta-day--fr { --c: #55696d; }
.gta-chip--flex, .gta-day--flex { --c: #7a6f55; }

.gta-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gta-chip { --c: var(--brown); display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 700 var(--btn-fs)/1 var(--font-body); cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.gta-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); transition: background .2s; }
.gta-chip > span { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: var(--beige-100); color: var(--brown-700); font-size: 12px; }
.gta-chip:hover { border-color: var(--c); transform: translateY(-1px); }
.gta-chip.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.gta-chip.is-active::before { background: #fff; }
.gta-chip.is-active > span { background: rgba(255, 255, 255, .22); color: #fff; }
.gta-chip.is-today::after { content: "heute"; padding: 4px 7px; border-radius: 6px; background: var(--beige); color: var(--brown-900); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.gta-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.gta-table { width: 100%; border-collapse: collapse; }
.gta-table thead th { padding: 16px 18px; background: var(--brown); color: #fff; text-align: left; white-space: nowrap; font: 700 12px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.gta-table thead th .icon { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; opacity: .85; }
.gta-table td, .gta-row__name { padding: 13px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 15.5px; }
.gta-row { transition: background .2s; }
.gta-row:hover { background: var(--beige-100); }
.gta-row__name { font-weight: 700; color: var(--ink); }
.gta-name { display: flex; align-items: center; gap: 14px; }
.gta-name small { display: block; margin-top: 2px; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.gta-row__icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--beige-100); color: var(--brown); transition: background .25s, color .25s, transform .35s var(--ease); }
.gta-row:hover .gta-row__icon { background: var(--brown); color: #fff; transform: rotate(-6deg) scale(1.06); }
.gta-row__when { white-space: nowrap; }
.gta-days { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-right: 10px; vertical-align: middle; }
.gta-day { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--c); color: #fff; font: 700 11.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.gta-time { font-variant-numeric: tabular-nums; }
.gta-row.is-hidden { display: none !important; }
.gta-row.is-in { animation: gtaIn .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 35ms); }
@keyframes gtaIn { from { opacity: 0; transform: translateY(8px); } }
.gta-empty { margin: 0; padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 1100px) { .gta-table td, .gta-row__name { padding-inline: 14px; font-size: 15px; } .gta-row__when { white-space: normal; } .gta-days { display: flex; margin: 0 0 6px; } }
@media (max-width: 860px) {
    .gta-intro { grid-template-columns: 1fr; }
    .gta-poster { transform: none; max-width: 520px; }
    .gta-card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .gta-table, .gta-table tbody { display: block; }
    .gta-table thead { display: none; }
    .gta-table tbody { display: grid; gap: 12px; }
    .gta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
    .gta-row__name { grid-column: 1 / -1; padding: 0; border: 0; font-size: 17px; }
    .gta-row td { display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; font-size: 15px; }
    .gta-row td::before { content: attr(data-label); font: 700 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
    .gta-row td[data-label="Leitung"] { grid-column: 1 / -1; }
    .gta-row td.gta-row__when { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
    .gta-row td.gta-row__when::before { width: 100%; }
    .gta-days { margin: 0; }
}
@media (max-width: 420px) { .gta-chip { height: 40px; padding-inline: 12px 10px; } }

/* Schnellzugriff (Eltern) */
.quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-grid > li { display: flex; }
.quick-card { flex: 1; display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(114, 84, 82, .35); color: var(--text); }
.quick-card__icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--beige-100); color: var(--brown); transition: background .3s, color .3s, transform .4s var(--ease); }
.quick-card:hover .quick-card__icon { background: var(--brown); color: #fff; transform: rotate(-6deg); }
.quick-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.quick-card__text strong { font: 500 17px/1.3 var(--font-head); color: var(--ink); }
.quick-card__text span { font-size: 14.5px; color: var(--muted); }
.quick-card__arrow { flex-shrink: 0; color: var(--brown); transition: transform .3s var(--ease); }
.quick-card:hover .quick-card__arrow { transform: translateX(4px); }
@media (max-width: 980px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .quick-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cookie-Hinweis – dezent, nur Information (es gibt keine optionalen Cookies)
   ========================================================================== */
.cookie {
    position: fixed; z-index: 380; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
    max-width: min(540px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
    background: rgba(255, 255, 255, .97); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 12px 32px -14px rgba(45, 38, 36, .38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-visible { opacity: 1; transform: none; }
.cookie.is-leaving { opacity: 0; transform: translateY(6px); transition-duration: .3s; }
.cookie__icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--beige-100); color: var(--brown); }
.cookie__icon .icon { width: 18px; height: 18px; }
.cookie__text { margin: 0; }
.cookie__text a { color: var(--brown); font-weight: 700; white-space: nowrap; text-underline-offset: 2px; }
.cookie__text a:hover { color: var(--brown-700); }
.cookie__ok { flex-shrink: 0; height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--brown); color: #fff; font: 700 var(--btn-fs)/1 var(--font-body); cursor: pointer; transition: background .2s; }
.cookie__ok:hover { background: var(--brown-600); }
.cookie__ok:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
@media (max-width: 560px) {
    .cookie { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); max-width: none; gap: 10px; font-size: 13.5px; }
    .cookie__icon { display: none; }
}

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.admin-table th { background: var(--beige-100); font: 700 12px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--brown-700); }
.admin-msg { white-space: pre-wrap; max-width: 60ch; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .tile, .js .reveal { opacity: 1; transform: none; }
    .page-hero__img, .page-hero::before { animation: none !important; }
    .page-hero__shape::after, .stage__light { display: none; }
}

/* ---------- Druck ---------- */
@media print {
    .site-header, .site-footer, .menu-overlay, .page-hero__art, .tour__ui, .cookie { display: none !important; }
    .page-hero { background: none; min-height: 0; }
}
