@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 116.4%; ascent-override: 84%; descent-override: 21.9%; line-gap-override: 0%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"); size-adjust: 99.3%; ascent-override: 99.1%; descent-override: 31.8%; line-gap-override: 0%; }
/* ==========================================================================
   Kleintierpraxis Zusamaltheim — Designsystem v2
   Fotografie zuerst. Warmes Papier, Tinte, das Blau der Team-Kasacks,
   das Ziegelrot vom Dach als zweite Stimme, Signalrot nur für Notfälle.
   ========================================================================== */

:root {
  --paper: #f3efe7;
  --paper-2: #ebe5da;
  --paper-3: #ddd5c7;
  --card: #fbf9f4;
  --ink: #1d2130;
  --ink-2: #4a4f5e;
  --ink-3: #5c606b;
  --line: #d9d1c3;
  --blue: #b3261e;
  --blue-d: #8e1c16;
  --blue-l: #f6e0dc;
  --ziegel: #ad4f2b;
  --ziegel-l: #f1ddd1;
  --red: #c62a21;
  --night: #1b2030;

  --f-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --f-text: "Atkinson Hyperlegible Next", "Atkinson Fallback", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --r-img: 18px;
  --r-card: 14px;
  --shadow: 0 1px 2px rgb(40 30 20 / .06), 0 14px 34px -18px rgb(40 30 20 / .35);
  --shadow-lift: 0 2px 4px rgb(40 30 20 / .08), 0 28px 56px -22px rgb(40 30 20 / .45);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --z-nav: 50; --z-menu: 60; --z-lightbox: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: clamp(1.02rem, .97rem + .22vw, 1.14rem); line-height: 1.62; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-l); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gut), 820px); margin-inline: auto; }

h1, h2, h3, h4 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-family: var(--f-display); font-weight: 420; line-height: 1.02; letter-spacing: -.025em; margin: 0 0 .5em; font-variation-settings: "SOFT" 30, "opsz" 144; text-wrap: balance; }
h1 { font-size: clamp(3rem, 1.6rem + 6vw, 7.6rem); letter-spacing: -.045em; line-height: .94; }
h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem); letter-spacing: -.038em; line-height: .98; }
h3 { font-size: clamp(1.4rem, 1.15rem + .9vw, 2rem); letter-spacing: -.02em; line-height: 1.1; font-variation-settings: "SOFT" 30, "opsz" 48; }
h4 { font-size: 1.15rem; letter-spacing: -.01em; font-variation-settings: "SOFT" 30, "opsz" 24; font-weight: 500; }
h1 em, h2 em, h3 em, .ital { font-style: italic; font-weight: 340; font-variation-settings: "SOFT" 100, "opsz" 144; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 54ch; line-height: 1.55; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .01em; }
.hand { font-family: var(--f-display); font-style: italic; font-weight: 380; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Abschnittsmarke: Strich + Begriff in Mono, Satzschreibung */
.plate { display: inline-flex; align-items: center; gap: .7em; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.plate::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.plate--ziegel { color: #8f3d1e; }
.plate--red { color: var(--red); }

/* Buttons */
.btn { --bg: var(--blue); --fg: #fff; display: inline-flex; align-items: center; gap: .6em; font: 600 1rem/1 var(--f-text); color: var(--fg); background: var(--bg); padding: 1.05em 1.4em; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; transition: transform .35s var(--ease), background .2s, box-shadow .35s var(--ease); box-shadow: 0 10px 24px -14px rgb(140 28 22 / .55); }
.btn:hover { color: var(--fg); background: var(--blue-d); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgb(140 28 22 / .55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn--red { --bg: var(--red); box-shadow: 0 10px 24px -14px rgb(150 20 15 / .8); }
.btn--red:hover { background: #a8211a; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .5em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------------- Kopf ---------------- */
.topbar { border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.topbar .wrap { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; height: 40px; flex-wrap: nowrap; white-space: nowrap; }
.topbar .tb-left { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar .status-dot > span { overflow: hidden; text-overflow: ellipsis; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .tb-right { display: flex; gap: 1.2rem; align-items: center; }
.status-dot { display: inline-flex; align-items: center; gap: .55em; }
.status-dot::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #9aa0aa; flex: none; }
.status-dot[data-open="true"]::before { background: #3f9a52; box-shadow: 0 0 0 3px rgb(63 154 82 / .18); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgb(63 154 82 / .04); } }
.tb-emerg { color: var(--red) !important; font-weight: 600; }

.nav { position: sticky; top: 0; z-index: var(--z-nav); background: rgb(243 239 231 / .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); transition: box-shadow .3s; }
.nav.is-stuck { box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 500; line-height: 1; font-size: 1.14rem; letter-spacing: -.015em; font-variation-settings: "SOFT" 40, "opsz" 30; }
.brand-name small { display: block; font-family: var(--f-text); font-weight: 500; font-size: .76rem; color: var(--ink-3); letter-spacing: 0; margin-top: .32em; }
.nav-links { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .55em .78em; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; position: relative; transition: background .2s; }
.nav-links a:hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: .78em; right: .78em; bottom: .3em; height: 1.5px; background: var(--blue); }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.nav-cta .btn { padding: .8em 1.05em; font-size: .95rem; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; width: 24px; height: 1.8px; background: currentColor; margin: 6px 0; transition: transform .35s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7.8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.8px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: block; position: fixed; inset: 0; top: var(--menu-top, 76px); z-index: var(--z-menu); background: var(--paper); padding: 1.5rem var(--gut) 3rem; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
  .mobile-menu ul { list-style: none; margin: 0 0 2rem; padding: 0; }
  .mobile-menu li a { display: block; padding: .55rem 0; font-family: var(--f-display); font-size: 2rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .brand-name small { display: none; } .nav-cta .btn span { display: none; } .nav-cta .btn { padding: .8em .85em; } .topbar .tb-hide { display: none; } }

/* ---------------- Abschnitte ---------------- */
section { position: relative; }
.sec { padding-block: clamp(90px, 12vw, 180px); }
.sec--tight { padding-block: clamp(56px, 7vw, 100px); }
.sec-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 90px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; }
@media (max-width: 880px) { .sec-head { grid-template-columns: 1fr; } }
.bg-2 { background: var(--paper-2); }

/* Reveal-Grundzustände (JS setzt .js; ohne JS bleibt alles sichtbar) */
.js .rv { opacity: 0; transform: translateY(36px); }
.js [data-reveal] { clip-path: inset(100% 0 0 0); }
.js [data-reveal] > img { transform: scale(1.18); }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .js [data-reveal] { clip-path: none; } .js [data-reveal] > img { transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.js .rv.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease); }
.js [data-reveal].in > img { transform: none; transition: transform 1.6s var(--ease); }
.media { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--paper-3); }
.media > img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: clamp(40px, 6vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(24px, 4vw, 70px); align-items: end; }
.hero h1 { margin: 0; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 em { color: var(--blue); }
.hero-side .lead { margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.pano-wrap { margin-top: clamp(40px, 6vw, 80px); }
.pano { position: relative; height: clamp(300px, 46vw, 760px); overflow: hidden; border-radius: var(--r-img); margin-inline: auto; width: min(100% - 2 * var(--gut), var(--wrap)); }
.pano img { position: absolute; inset: -6% 0; width: 100%; height: 112% !important; object-fit: cover; object-position: 50% 55%; }
.pano-cap { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 14px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .92rem; color: var(--ink-2); }
.pano-cap em { font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); }
@media (max-width: 700px) { .pano { height: 62vw; } }

/* =====================================================================
   INFO: Sprechzeiten · Notfall · Adresse
   ===================================================================== */
.info { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1000px) { .info { grid-template-columns: 1fr 1fr; } .info > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .info { grid-template-columns: 1fr; } }
.tile { background: var(--card); border-radius: var(--r-card); padding: clamp(22px, 2.6vw, 34px); box-shadow: var(--shadow); position: relative; overflow: hidden; display: block; color: var(--ink); text-decoration: none; }
a.tile { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.tile h3, .tile .tile-h { font-size: 1.5rem; margin-bottom: .9rem; letter-spacing: -.02em; line-height: 1.1; }
.tile .k { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); display: block; margin-bottom: .7rem; }
.tile .big { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); letter-spacing: -.035em; line-height: 1; color: var(--ink); display: block; font-variant-numeric: tabular-nums; margin-bottom: .7rem; }
.tile p { font-size: .96rem; color: var(--ink-2); margin-bottom: .5rem; }
.tile--red { background: #fff3f1; box-shadow: inset 0 0 0 1.5px rgb(198 42 33 / .3), var(--shadow); }
.tile--red .big { color: var(--red); }
.tile--photo { padding: 0; display: grid; grid-template-rows: 190px auto; }
.tile--photo .media { border-radius: 0; }
.tile--photo .tx { padding: 20px 24px 24px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .75em 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .98rem; }
.hours th { font-weight: 600; width: 38%; padding-right: 1rem; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today th { color: var(--blue); }
.hours tr.today th::after { content: "heute"; display: inline-block; margin-left: .5em; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; color: var(--blue); background: var(--blue-l); padding: .2em .45em; border-radius: 4px; vertical-align: .15em; }
.sb-note { margin: 14px 0 0; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 640px) { .hours th, .hours td { display: block; width: auto; border: 0; padding: 0; } .hours tr { display: block; padding: .75em 0; border-bottom: 1px solid var(--line); } .hours th { margin-bottom: .2em; } }

/* =====================================================================
   HALTUNG — Satz mit eingebetteten Fotos
   ===================================================================== */
.stance-big { font-family: var(--f-display); font-weight: 360; font-size: clamp(2.1rem, 1.1rem + 3.8vw, 5rem); line-height: 1.08; letter-spacing: -.04em; margin: 0; font-variation-settings: "SOFT" 50, "opsz" 144; max-width: 21ch; }
.stance-big em { color: var(--blue); font-style: italic; }
.inline-ph { display: inline-block; width: 1.9em; height: .92em; border-radius: 999px; overflow: hidden; vertical-align: -.04em; margin: 0 .06em; background: var(--paper-3); }
.inline-ph img { width: 100%; height: 100% !important; object-fit: cover; }
.stance-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(50px, 7vw, 100px); padding-top: 34px; border-top: 1px solid var(--line); }
.stance-sub h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.stance-sub p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.stance-sub .mono { color: var(--ziegel); display: block; margin-bottom: .8rem; }
@media (max-width: 860px) { .stance-sub { grid-template-columns: 1fr; } }

/* =====================================================================
   PATIENTEN-WAND
   ===================================================================== */
.patients { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 11vw, 168px); gap: clamp(10px, 1.2vw, 16px); }
.pt { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--paper-3); display: block; color: #fff; text-decoration: none; margin: 0; }
.pt > img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--ease); }
.pt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(15 18 28 / .66)); pointer-events: none; }
.pt .ptc { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; font-family: var(--f-display); font-size: clamp(1.05rem, .95rem + .45vw, 1.4rem); line-height: 1.15; letter-spacing: -.01em; transition: transform .6s var(--ease); }
.pt .ptc small { display: block; font-family: var(--f-mono); font-size: .68rem; opacity: .82; letter-spacing: 0; margin-bottom: .4em; }
.pt:hover > img { transform: scale(1.06); }
.pt:hover .ptc { transform: translateY(-4px); }
.pt:hover { color: #fff; }
.pt.a { grid-area: 1 / 1 / 4 / 6; } .pt.b { grid-area: 1 / 6 / 3 / 10; } .pt.c { grid-area: 1 / 10 / 3 / 13; }
.pt.d { grid-area: 3 / 6 / 5 / 9; } .pt.e { grid-area: 3 / 9 / 5 / 13; } .pt.f { grid-area: 4 / 1 / 6 / 6; }
.pt.g { grid-area: 5 / 6 / 8 / 10; } .pt.h { grid-area: 5 / 10 / 8 / 13; } .pt.i { grid-area: 6 / 1 / 8 / 6; }
@media (max-width: 860px) { .patients { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 36vw; } .pt.a, .pt.b, .pt.c, .pt.d, .pt.e, .pt.f, .pt.g, .pt.h, .pt.i { grid-area: auto / span 3 / span 1 / auto; } .pt.a { grid-column: span 6; grid-row: span 2; } }

/* =====================================================================
   BEFUND-VIEWER (Diagnostik)
   ===================================================================== */
.diag { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 980px) { .diag { grid-template-columns: 1fr; } }
.diag-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.diag-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.diag-list li b { font-weight: 600; }
.diag-list li span { color: var(--ink-2); }
@media (max-width: 560px) { .diag-list li { grid-template-columns: 1fr; gap: .2rem; } }
.viewer { background: var(--night); border-radius: 22px; padding: 14px; box-shadow: var(--shadow-lift); color: #c9cfdc; }
.vw-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 4px 6px 12px; font-family: var(--f-mono); font-size: .72rem; color: #8d95a8; }
.vw-top .live { display: inline-flex; gap: .5em; align-items: center; color: #b9e3c3; }
.vw-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5cd07a; box-shadow: 0 0 10px #5cd07a; }
.vw-stage { position: relative; aspect-ratio: 16 / 10.5; border-radius: 12px; overflow: hidden; background: #000; cursor: crosshair; touch-action: none; }
.vw-stage img.study { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: contain; }
.vw-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #9fe0ff; box-shadow: 0 0 20px 5px rgb(140 210 255 / .7); opacity: 0; z-index: 3; pointer-events: none; }
.vw-veil { position: absolute; inset: 0; background: #000; z-index: 2; pointer-events: none; opacity: 0; }
.vw-hair { position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .2s; }
.vw-stage:hover .vw-hair { opacity: 1; }
.vw-hair i { position: absolute; background: rgb(159 224 255 / .45); }
.vw-hair .hx { left: 0; right: 0; height: 1px; top: 50%; }
.vw-hair .hy { top: 0; bottom: 0; width: 1px; left: 50%; }
.vw-lens { position: absolute; width: 170px; height: 170px; border-radius: 50%; pointer-events: none; z-index: 5; opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .2s, transform .35s var(--ease); box-shadow: 0 0 0 1.5px rgb(159 224 255 / .9), 0 18px 40px rgb(0 0 0 / .6); background-repeat: no-repeat; background-color: #000; }
.vw-stage:hover .vw-lens { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vw-hud { position: absolute; z-index: 6; font-family: var(--f-mono); font-size: .68rem; line-height: 1.5; color: #9fe0ff; pointer-events: none; text-shadow: 0 1px 2px #000; }
.vw-hud.tl { top: 12px; left: 14px; } .vw-hud.tr { top: 12px; right: 14px; text-align: right; } .vw-hud.bl { bottom: 12px; left: 14px; } .vw-hud.br { bottom: 12px; right: 14px; text-align: right; }
.vw-bottom { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; padding: 14px 4px 2px; }
.vw-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.vw-thumbs button { flex: none; width: 76px; border: 0; padding: 0; background: none; cursor: pointer; color: #8d95a8; font: 500 .64rem/1.25 var(--f-mono); text-align: left; }
.vw-thumbs button span.t { display: block; aspect-ratio: 4/3; border-radius: 7px; overflow: hidden; margin-bottom: 6px; transition: box-shadow .2s, opacity .2s; opacity: .5; background: #000; }
.vw-thumbs button span.t img { width: 100%; height: 100% !important; object-fit: cover; }
.vw-thumbs button[aria-pressed="true"] { color: #e6ebf5; }
.vw-thumbs button[aria-pressed="true"] span.t { opacity: 1; box-shadow: 0 0 0 2px #9fe0ff; }
.vw-thumbs button:hover span.t { opacity: 1; }
.vw-ctrl { display: grid; gap: 8px; font-family: var(--f-mono); font-size: .66rem; color: #8d95a8; min-width: 150px; }
.vw-ctrl label { display: grid; gap: 4px; }
.vw-ctrl input { width: 100%; accent-color: #9fe0ff; }
.vw-note { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 640px) { .vw-bottom { grid-template-columns: 1fr; } .vw-lens { display: none; } .vw-hud.tr, .vw-hud.br { display: none; } }

/* =====================================================================
   TIERARTEN
   ===================================================================== */
.species-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: stretch; }
@media (max-width: 900px) { .species-wrap { grid-template-columns: 1fr; } }
.species { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.6rem; }
.species button { font: 600 1rem var(--f-text); padding: .7em 1.1em; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .25s, color .25s, box-shadow .25s; }
.species button:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.species button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.species-panel { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); counter-reset: sp; }
.species-panel li { padding: .85em 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.6em 1fr; animation: liIn .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.species-panel li::before { content: counter(sp, decimal-leading-zero); counter-increment: sp; font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); padding-top: .3em; }
@keyframes liIn { from { opacity: 0; transform: translateY(10px); } }
.species-photo { position: relative; border-radius: var(--r-img); overflow: hidden; min-height: 520px; background: var(--paper-3); }
.species-photo img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.species-photo img.on { opacity: 1; transform: none; }
.species-photo .sp-cap { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: var(--card); padding: .5em .85em; border-radius: 9px; font-family: var(--f-display); font-style: italic; font-size: 1.05rem; box-shadow: var(--shadow); }
@media (max-width: 900px) { .species-photo { min-height: 72vw; order: -1; } }

/* =====================================================================
   RUNDGANG — Raumkarussell + Vorher/Nachher
   ===================================================================== */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 30px; flex-wrap: wrap; }
.rail-head h2 { margin: 0; }
.rail-btns { display: flex; gap: 8px; }
.rail-btns button { width: 50px; height: 50px; border-radius: 12px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: 1.15rem; color: var(--ink); transition: box-shadow .2s, background .2s; }
.rail-btns button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 29vw, 410px); gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2)); cursor: grab; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail figure { margin: 0; scroll-snap-align: start; }
.rail .media { aspect-ratio: 4 / 4.7; }
.rail img { pointer-events: none; user-select: none; }
.rail figcaption { margin-top: 14px; display: block; }
.rail figcaption .n { display: block; font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); margin-bottom: .35rem; }
.rail figcaption strong { display: block; font-family: var(--f-display); font-weight: 430; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .25rem; }
.rail figcaption span:not(.n) { display: block; color: var(--ink-2); font-size: .95rem; }
.rail-progress { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 28px auto 0; height: 2px; background: var(--line); position: relative; border-radius: 2px; overflow: hidden; }
.rail-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--ink); border-radius: 2px; }

.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-img); overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--paper-3); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; pointer-events: none; }
.ba .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); z-index: 3; box-shadow: 0 0 12px rgb(0 0 0 / .35); }
.ba .handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-lift); }
.ba .lbl { position: absolute; top: 16px; z-index: 2; background: rgb(255 255 255 / .94); color: var(--ink); font-family: var(--f-mono); font-size: .72rem; padding: .45em .7em; border-radius: 7px; }
.ba .lbl.l { left: 16px; } .ba .lbl.r { right: 16px; }
.ba-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 10vw, 140px); }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-steps { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 1px solid var(--line); }
.ba-steps li { display: grid; grid-template-columns: 7.5em 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.ba-steps li b { font-family: var(--f-mono); font-weight: 500; font-size: .78rem; color: var(--ziegel); padding-top: .25em; }
.ba-steps li span { color: var(--ink-2); }
@media (max-width: 560px) { .ba-steps li { grid-template-columns: 1fr; gap: .2rem; } }

/* =====================================================================
   TEAM
   ===================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 18px); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.tm { margin: 0; }
.tm .media { aspect-ratio: 4 / 5; }
.tm .media > img { object-position: 50% 28%; transition: transform 1.1s var(--ease); }
.tm:hover .media > img { transform: scale(1.05); }
.tm figcaption { margin-top: 10px; line-height: 1.25; }
.tm figcaption strong { display: block; font-weight: 600; font-size: .97rem; }
.tm figcaption span { font-size: .83rem; color: var(--ink-3); }
@media (min-width: 1001px) { .team-grid .tm:nth-child(6n+2), .team-grid .tm:nth-child(6n+5) { margin-top: 44px; margin-bottom: -44px; } }
.team-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.badge { margin: 0; position: relative; }
.badge .ph { aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; background: var(--paper-3); }
.badge .ph img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 28%; transition: transform 1.1s var(--ease); }
.badge:hover .ph img { transform: scale(1.05); }
.badge figcaption { margin-top: 12px; line-height: 1.3; }
.badge figcaption strong { display: block; font-weight: 600; }
.badge figcaption span { font-size: .88rem; color: var(--ink-3); }
.badge .clip { display: none; }
.azubi { margin-top: clamp(100px, 12vw, 170px); display: grid; grid-template-columns: 1fr 1.1fr; background: var(--blue); color: #fff; border-radius: 24px; overflow: hidden; }
.azubi .tx { padding: clamp(30px, 5vw, 70px); }
.azubi h3 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); letter-spacing: -.035em; line-height: 1; margin-bottom: 1.2rem; }
.azubi p { color: rgb(255 255 255 / .86); }
.azubi ul { list-style: none; padding: 0; margin: 1.4rem 0 2rem; border-top: 1px solid rgb(255 255 255 / .2); }
.azubi li { padding: .8rem 0; border-bottom: 1px solid rgb(255 255 255 / .2); color: rgb(255 255 255 / .92); font-size: .98rem; }
.azubi .btn { --bg: #fff; --fg: var(--blue); box-shadow: none; }
.azubi .btn:hover { background: var(--blue-l); color: var(--blue); }
.azubi .plate { color: rgb(255 255 255 / .8); }
.azubi figure { margin: 0; position: relative; min-height: 440px; }
.azubi figure img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
@media (max-width: 900px) { .azubi { grid-template-columns: 1fr; } .azubi figure { min-height: 280px; order: -1; } }

/* =====================================================================
   NICHT IN DER PRAXIS — Zeitleiste
   ===================================================================== */
.story-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(60px, 8vw, 110px); }
.story-intro blockquote { margin: 0; font-family: var(--f-display); font-weight: 330; font-style: italic; font-size: clamp(1.7rem, 1.1rem + 2vw, 3rem); line-height: 1.12; letter-spacing: -.025em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.story-intro blockquote footer { font-family: var(--f-text); font-style: normal; font-size: .95rem; color: var(--ink-3); margin-top: 1rem; letter-spacing: 0; }
@media (max-width: 900px) { .story-intro { grid-template-columns: 1fr; } }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--line); transform: translateX(-50%); }
.timeline .tl-fill { position: absolute; left: 50%; top: 0; width: 1.5px; height: 0; background: var(--ziegel); transform: translateX(-50%); }
.tl-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 130px); align-items: center; padding: clamp(24px, 4vw, 54px) 0; position: relative; }
.tl-item::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--ziegel); transform: translate(-50%, -50%); transition: background .4s; }
.tl-item.passed::after { background: var(--ziegel); }
.tl-item:nth-child(odd) .tl-media { order: 2; }
.tl-media { aspect-ratio: 4 / 3; }
.tl-text .yr { font-family: var(--f-mono); font-size: .78rem; color: var(--ziegel); display: block; margin-bottom: .7rem; }
.tl-text h3 { margin-bottom: .7rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); }
.tl-text p { color: var(--ink-2); max-width: 46ch; }
.tl-text .q { font-family: var(--f-display); font-style: italic; color: var(--ink); font-size: 1.15rem; }
@media (max-width: 800px) { .timeline::before, .timeline .tl-fill, .tl-item::after { left: 6px; } .tl-item::after { top: 30px; } .tl-item { grid-template-columns: 1fr; gap: 18px; padding-left: 34px; } .tl-item:nth-child(odd) .tl-media { order: 0; } }
.side-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); margin-top: clamp(90px, 11vw, 150px); }
@media (max-width: 900px) { .side-stories { grid-template-columns: 1fr; } }
.ss { display: block; text-decoration: none; color: var(--ink); }
.ss .media { aspect-ratio: 4 / 5; }
.ss .media > img { transition: transform 1.2s var(--ease); }
.ss:hover .media > img { transform: scale(1.05); }
.ss .k { font-family: var(--f-mono); font-size: .74rem; color: var(--ziegel); display: block; margin-top: 16px; }
.ss h3 { margin: .4rem 0 .4rem; font-size: 1.7rem; }
.ss p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.ss:hover { color: var(--ink); }
.ponies { margin-top: clamp(90px, 11vw, 150px); }
.pony-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 1000px) { .pony-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .pony-row { grid-template-columns: repeat(2, 1fr); } }
.pony { perspective: 1000px; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pony .in { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.pony.flipped .in { transform: rotateY(180deg); }
@media (hover: hover) { .pony:hover .in { transform: rotateY(180deg); } }
.pony .fr, .pony .bk { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pony .fr img { width: 100%; height: 100% !important; object-fit: cover; }
.pony .fr .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 10px; background: linear-gradient(transparent, rgb(15 18 28 / .72)); color: #fff; font-family: var(--f-display); font-size: 1.2rem; }
.pony .bk { transform: rotateY(180deg); background: var(--ziegel); color: #fff; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; font-size: .84rem; line-height: 1.4; }
.pony .bk strong { font-family: var(--f-display); font-weight: 430; font-size: 1.35rem; }
.pony .bk em { font-family: var(--f-display); font-size: 1rem; }

/* =====================================================================
   AKTUELLES (Startseite)
   ===================================================================== */
.news-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 900px) { .news-home { grid-template-columns: 1fr; } }
.nh { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-card); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.nh:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.nh .media { border-radius: 0; aspect-ratio: 16 / 10; }
.nh .b { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.nh time { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); }
.nh h3 { font-size: 1.5rem; margin: 0; }
.nh p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.nh .more { margin-top: auto; padding-top: .8rem; font-weight: 600; color: var(--blue); }
.nh--want { background: var(--ziegel); color: #fff; }
.nh--want:hover { color: #fff; }
.nh--want time, .nh--want p { color: rgb(255 255 255 / .86); }
.nh--want .more { color: #fff; }

/* =====================================================================
   ANFAHRT
   ===================================================================== */
.route-rail { grid-auto-columns: clamp(220px, 21vw, 290px); }
.route-rail .media { aspect-ratio: 4 / 3; }
.route-rail figcaption { display: block; }
.route-rail figcaption .n { display: block; margin-bottom: .3rem; }
.route-rail figcaption em { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
.arrive { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(16px, 2vw, 26px); margin-top: clamp(60px, 8vw, 100px); align-items: stretch; }
@media (max-width: 900px) { .arrive { grid-template-columns: 1fr; } }
.arrive .media { min-height: 440px; }
.destination { background: var(--card); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.destination address { font-style: normal; font-family: var(--f-display); font-size: 1.9rem; line-height: 1.12; letter-spacing: -.025em; margin: .2rem 0 1.1rem; }
.destination p { color: var(--ink-2); font-size: .96rem; }
.destination .hero-actions { margin-top: auto; padding-top: 1rem; }
.wait { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 60px); }
.wait figure { margin: 0; }
.wait .media { aspect-ratio: 1; border-radius: 12px; }
.wait figcaption { font-size: .88rem; margin-top: 8px; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 760px) { .wait { grid-template-columns: 1fr 1fr; } }
.map { margin-top: clamp(16px, 2vw, 26px); border-radius: var(--r-img); overflow: hidden; aspect-ratio: 21 / 7; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* =====================================================================
   FUSS
   ===================================================================== */
.footer { background: var(--night); color: #c6cbd8; padding: 0 0 40px; }
.footer-photo { position: relative; height: clamp(280px, 38vw, 560px); overflow: hidden; }
.footer-photo img { position: absolute; inset: -10% 0; width: 100%; height: 120% !important; object-fit: cover; object-position: 50% 92%; }
.footer-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(27 32 48 / 0) 45%, var(--night) 98%); }
.footer-photo p { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8%; margin: 0; }
.footer-photo p span { display: block; width: min(100% - 2 * var(--gut), var(--wrap)); margin: 0 auto; font-family: var(--f-display); font-size: clamp(2rem, 1.2rem + 3vw, 4.4rem); letter-spacing: -.04em; line-height: 1; color: #fff; font-weight: 360; }
.footer-photo p em { font-style: italic; font-variation-settings: "SOFT" 100, "opsz" 144; }
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding-top: clamp(40px, 5vw, 70px); }
.footer h4, .footer .footer-h { color: #fff; font-size: 1.1rem; margin-bottom: .9em; letter-spacing: -.01em; line-height: 1.2; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5em; }
.footer li a { text-decoration: none; color: #c6cbd8; }
.footer li a:hover { color: #fff; }
.footer .big { font-family: var(--f-display); font-size: 2rem; color: #fff; text-decoration: none; letter-spacing: -.03em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .86rem; color: #8d93a5; }
.footer-bottom a { color: #b5bbcc; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   UNTERSEITEN
   ===================================================================== */
.page-hero { padding-block: clamp(50px, 8vw, 120px) clamp(30px, 4vw, 60px); }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 1.6rem + 5vw, 6.4rem); }
.page-hero .lead { margin-top: 1.4rem; }
.crumbs { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); margin-bottom: 1.6rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-cover { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 0 auto clamp(50px, 7vw, 100px); border-radius: var(--r-img); overflow: hidden; height: clamp(280px, 38vw, 560px); background: var(--paper-3); }
.page-cover img { width: 100%; height: 100% !important; object-fit: cover; object-position: var(--pos, 50% 62%); }
.subnav { position: sticky; top: 76px; z-index: 20; background: rgb(243 239 231 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.subnav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 9px 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; white-space: nowrap; padding: .45em .85em; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .93rem; transition: background .2s, color .2s; }
.subnav a:hover, .subnav a.active { background: var(--ink); color: #fff; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose td, .prose th { padding: .6em .6em .6em 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose td:first-child { white-space: nowrap; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); width: 8.5em; padding-top: .85em; }
.prose strong { font-weight: 650; }
.prose img { border-radius: 12px; margin: 1.2em 0; max-width: min(100%, 460px); }
.prose a[data-lb] { display: inline-block; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 6vw, 100px); align-items: start; }
.split aside { position: sticky; top: 150px; }
.split aside h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.split aside img { border-radius: var(--r-img); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split aside { position: static; } }
.chapter { padding-block: clamp(50px, 7vw, 100px); border-top: 1px solid var(--line); }
.chapter:first-of-type { border-top: 0; }
.chapter-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: start; margin-bottom: 2.4rem; }
@media (max-width: 880px) { .chapter-head { grid-template-columns: 1fr; } }
.gallery { columns: 4 230px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--paper-3); }
.gallery img { width: 100%; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .86rem; color: var(--ink-2); padding: 7px 2px 0; line-height: 1.35; }
.gallery.more figure:nth-child(n+13) { display: none; }
.more-btn { margin-top: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card { display: block; text-decoration: none; color: var(--ink); }
.card > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; border-radius: var(--r-img); }
.card .b { padding: 14px 2px 0; }
.card .b strong { font-family: var(--f-display); font-weight: 450; font-size: 1.45rem; letter-spacing: -.02em; display: block; line-height: 1.12; margin-bottom: .35em; }
.card .b span { color: var(--ink-2); font-size: .94rem; display: block; }
.card .b .count { margin-top: .6em; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); }
.card:hover { color: var(--ink); }
.card:hover .b strong { color: var(--blue); }
.news-list { display: grid; }
.news { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: clamp(14px, 3vw, 40px); padding: 30px 0; border-top: 1px solid var(--line); }
.news time { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); padding-top: .5em; }
.news h3 { margin-bottom: .5em; }
.news .prose { font-size: 1rem; }
.news img { border-radius: 12px; max-width: min(100%, 440px); margin-top: .8rem; }
.news a[data-lb] { display: block; max-width: 100%; }
@media (max-width: 640px) { .news { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.news h3, .news .prose { overflow-wrap: anywhere; }
.year-mark { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 6rem); letter-spacing: -.05em; color: var(--paper-3); margin: 50px 0 0; line-height: 1; }
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dl-list a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; background: var(--card); border-radius: 12px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .35s var(--ease); }
.dl-list a:hover { box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateX(4px); }
.dl-list .ic { width: 44px; height: 52px; border-radius: 6px; background: var(--ziegel-l); color: var(--ziegel); display: grid; place-items: center; font-family: var(--f-mono); font-size: .66rem; font-weight: 600; }
.dl-list small { font-family: var(--f-mono); color: var(--ink-3); }
.video { border-radius: 14px; overflow: hidden; background: #000; max-width: 720px; }
.video video { width: 100%; }
.memoriam { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.memoriam figure { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.memoriam img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; filter: grayscale(.7); }
.memoriam figcaption { font-size: .94rem; color: var(--ink-2); }
.memoriam figcaption strong { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 450; font-size: 1.3rem; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgb(20 22 30 / .95); display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lb .stage { display: grid; place-items: center; padding: 60px 76px 10px; min-height: 0; }
.lb img { max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 8px; transition: opacity .3s, transform .45s var(--ease); }
.lb img.swap { opacity: 0; transform: scale(.98); }
.lb .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 26px 24px; color: #eee; }
.lb .bar p { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; line-height: 1.2; max-width: 70ch; }
.lb .bar .n { font-family: var(--f-mono); font-size: .78rem; color: #9a9faf; white-space: nowrap; }
.lb button { position: absolute; background: rgb(255 255 255 / .1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 14px; cursor: pointer; font-size: 1.3rem; display: grid; place-items: center; transition: background .2s; }
.lb button:hover { background: rgb(255 255 255 / .22); }
.lb .x { top: 16px; right: 16px; } .lb .prev { left: 14px; top: 50%; transform: translateY(-50%); } .lb .next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb .stage { padding: 64px 10px 10px; } .lb .prev, .lb .next { top: auto; bottom: 84px; transform: none; } }


/* =====================================================================
   v2.1 — Scroll-Erlebnis
   ===================================================================== */
/* Wortweise Überschriften */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wd > span { display: inline-block; will-change: transform; }

/* ---------- Leuchtkasten ---------- */
.lk { background: var(--paper-2); overflow: clip; }
.lk-pin { display: flex; align-items: center; }
.lk-wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 0 auto; display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(90px, 11vw, 160px) 40px; }
.lk h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); }
.lk h2 em { color: var(--blue); }
.lk-count { margin: 2rem 0 1rem; font-size: .9rem; color: var(--ink-3); }
.lk-cur { color: var(--ink); }
.lk-caps { position: relative; min-height: 7.5em; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.lk-cap { position: absolute; left: 0; right: 0; top: 1.2rem; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.lk-cap.on { opacity: 1; transform: none; }
.lk-cap .mono { color: var(--blue); display: block; margin-bottom: .55rem; }
.lk-cap strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; font-variation-settings: "SOFT" 60, "opsz" 72; }
.lk-note { font-size: .86rem; color: var(--ink-3); max-width: 36ch; margin-top: 1.4rem; }
.lk-box { position: relative; height: min(72vh, 700px); cursor: pointer; outline: none; container-type: size; border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, #ffffff 0%, #fbfaf7 45%, #ece8df 100%);
  box-shadow: inset 0 0 0 10px #dcd7cd, inset 0 0 0 11.5px #c9c3b7, inset 0 0 80px rgb(255 255 255 / .95), var(--shadow-lift); }
.lk-box::after { content: ""; position: absolute; inset: 0; background: #2b2a27; opacity: var(--off, 0); pointer-events: none; transition: opacity .2s; border-radius: inherit; }
.lk-film { position: absolute; left: 50%; top: 50%; margin: 0; width: min(80cqw, 78cqh * var(--ar), var(--max)); aspect-ratio: var(--ar); transform: translate(-50%, -50%) rotate(var(--r)); will-change: transform; }
.lk-film img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 28px 50px -22px rgb(0 0 0 / .5); }
.lk-film figcaption { display: none; }
.lk-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); padding-block: 30px clamp(90px, 10vw, 140px); }
.lk-facts div { border-top: 1px solid var(--line); padding-top: 18px; }
.lk-facts b { display: block; font-weight: 600; margin-bottom: .4rem; }
.lk-facts span { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 899px) {
  .lk-pin { min-height: 0; }
  .lk-wrap { grid-template-columns: 1fr; padding-block: 90px 10px; }
  .lk-count, .lk-caps { display: none; }
  .lk-box { height: auto; container-type: normal; overflow: visible; background: none; box-shadow: none; display: grid; gap: 44px; }
  .lk-box::after { display: none; }
  .lk-film { position: relative; left: auto; top: auto; width: 100%; max-width: var(--max); transform: rotate(calc(var(--r) * .5)); }
  .lk-film figcaption { display: block; margin-top: 14px; }
  .lk-film figcaption .mono { color: var(--blue); display: block; margin-bottom: .3rem; }
  .lk-film figcaption strong { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; }
  .lk-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .lk-facts { grid-template-columns: 1fr; } }

/* ---------- Gepinnter Rundgang ---------- */
.hs-count { display: none; color: var(--ink-3); font-size: .85rem; }
.hs-cur { color: var(--ink); }
.hs.is-pinned { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 60px; }
.hs.is-pinned .rail-btns { display: none; }
.hs.is-pinned .hs-count { display: block; font-size: 1rem; }
.hs.is-pinned .rail { overflow: visible; scroll-snap-type: none; cursor: default; grid-auto-columns: min(30vw, 44vh); will-change: transform; }
.hs.is-pinned .rail .media img { width: 116%; max-width: none; margin-left: -8%; }
.hs.is-pinned .rail-progress i { width: 0; transform: none; }
#rundgang.sec { padding-top: 0; }
#rundgang .ba-grid { margin-top: clamp(60px, 8vw, 110px); }

/* ---------- Anfahrt als Raster ---------- */
@media (min-width: 900px) {
  .rail--grid .rail { display: grid; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding-inline: 0; width: min(100% - 2 * var(--gut), var(--wrap)); margin: 0 auto; row-gap: 34px; cursor: default; }
  .rail--grid .rail-btns, .rail--grid .rail-progress { display: none; }
}

.lk-js .lk-film { transform: none; }

/* Leuchtkasten zum Durchklicken */
.lk-tabs { list-style: none; padding: 0; margin: 2.2rem 0 0; border-top: 1px solid var(--line); }
.lk-tab { width: 100%; display: grid; grid-template-columns: 2.6em 1fr auto; align-items: baseline; gap: .6rem; padding: .85em .2em; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: var(--ink-3); text-align: left; cursor: pointer; position: relative; transition: color .3s; }
.lk-tab > span { transition: transform .45s var(--ease); }
.lk-tab .n { font-family: var(--f-mono); font-size: .72rem; }
.lk-tab .t { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: -.01em; }
.lk-tab .k { font-family: var(--f-mono); font-size: .68rem; }
.lk-tab:hover { color: var(--ink); }
.lk-tab[aria-pressed="true"] { color: var(--ink); }
.lk-tab[aria-pressed="true"] > span:not(.k) { transform: translateX(.7em); }
.lk-tab[aria-pressed="true"] .n, .lk-tab[aria-pressed="true"] .k { color: var(--blue); }
.lk-tab::before { content: ""; position: absolute; left: 0; top: 20%; width: 3px; height: 60%; background: var(--blue); transform: scaleY(0); transition: transform .4s var(--ease); border-radius: 2px; }
.lk-tab[aria-pressed="true"]::before { transform: scaleY(1); }
.lk-ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--ink-3); }
.lk-ctrl .lk-cur { color: var(--ink); }
.lk-arrows { display: flex; gap: 8px; }
.lk-arrows button { width: 52px; height: 52px; border-radius: 12px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: 1.2rem; color: var(--ink); transition: background .2s, color .2s, box-shadow .2s; }
.lk-arrows button:hover { background: var(--blue); color: #fff; box-shadow: none; }
.lk-box:focus-visible { box-shadow: inset 0 0 0 10px #dcd7cd, inset 0 0 0 11.5px #c9c3b7, 0 0 0 3px var(--blue), var(--shadow-lift); }
@media (max-width: 899px) { .lk-tabs, .lk-ctrl { display: none; } .lk-box { cursor: default; } }

/* Karte erst nach Einwilligung laden */
.map-ph { height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  background: linear-gradient(rgb(235 229 218 / .82), rgb(235 229 218 / .82)), url("../img/bilder__umgebung/000-s.webp") center / cover; }
.map-ph p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.map-ph p strong { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 450; font-size: 1.4rem; margin-bottom: .2rem; }

/* Hero-Einstieg ohne JS-Abhängigkeit (schneller erster Paint) */
@keyframes lnUp { from { transform: translateY(115%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero h1 .ln > span { animation: lnUp 1.4s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.hero-side > * { animation: fadeUp 1.1s var(--ease) both; animation-delay: .35s; }
.hero-side > * + * { animation-delay: .45s; }

/* ===== Ergänzungen Verwaltungsbereich: Hinweis-Leiste und Kontaktformular ===== */
.notice { background: var(--night); color: #fff; font-size: .95rem; line-height: 1.45; position: relative; z-index: calc(var(--z-nav) + 1); }
.notice .wrap { display: flex; align-items: center; gap: .9rem 1.2rem; padding-block: .75rem; }
.notice p { margin: 0; flex: 1; min-width: 0; }
.notice p span { color: rgb(255 255 255 / .86); }
.notice-k { flex: none; font: 600 .74rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: .45em .7em; border-radius: 6px; background: rgb(255 255 255 / .12); }
.notice--urlaub .notice-k { background: var(--red); }
.notice--notdienst .notice-k { background: #a8650a; }
.notice--vertretung .notice-k { background: #2c5282; }
.notice-x { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: rgb(255 255 255 / .75); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.notice-x:hover { background: rgb(255 255 255 / .1); color: #fff; }
.notice-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .notice .wrap { flex-wrap: wrap; align-items: flex-start; } .notice p { flex-basis: calc(100% - 52px); order: 2; } .notice-k { order: 1; } .notice-x { order: 1; margin-left: auto; } }

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.contact-intro h3 { font: 400 clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem)/1.08 var(--f-display); letter-spacing: -.01em; margin: 0 0 1rem; }
.contact-intro h3 em { color: var(--red); }
.contact-intro p { color: var(--ink-2); max-width: 44ch; }
.contact-warn { margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; }
.contact-warn strong { color: var(--red); }
.contact-warn a { color: var(--ink); font-weight: 700; }
.cform { display: grid; gap: 1.1rem; background: var(--card); border-radius: var(--r-card); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.cf-topic { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cf-topic legend { font-weight: 700; margin-bottom: .6rem; padding: 0; }
.cf-topic label { position: relative; cursor: pointer; }
.cf-topic input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cf-topic span { display: inline-block; padding: .62em 1em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: .93rem; font-weight: 600; transition: background-color .2s, box-shadow .2s, color .2s; }
.cf-topic input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.cf-topic input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-field { display: grid; gap: .4rem; font-weight: 600; font-size: .93rem; }
.cf-field i { color: var(--red); font-style: normal; }
.cf-field input, .cf-field textarea { font: 400 1rem/1.5 var(--f-text); color: var(--ink); width: 100%; padding: .78em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: #fffdf8; transition: border-color .2s, box-shadow .2s; }
.cf-field textarea { resize: vertical; min-height: 130px; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(29 33 48 / .12); }
.cf-hint { margin: -.4rem 0 0; font-size: .86rem; color: var(--ink-3); }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.cf-check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--red); flex: none; }
.cf-check i { color: var(--red); font-style: normal; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cf-actions .btn[disabled] { opacity: .6; pointer-events: none; }
.cf-status { margin: 0; font-weight: 600; font-size: .95rem; }
.cf-status[data-ok="0"] { color: var(--red); }
.cf-status[data-ok="1"] { color: #2f6b45; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } .cf-actions .btn { width: 100%; justify-content: center; } }
