/* ==========================================================================
   Apotheke – nextValue-Vorlage · Design „Wegbegleiter“
   Markenfarben kommen aus den Einstellungen (Inline-Stylesheet --brand / --accent).
   Motive: Bildmarke als Wasserzeichen, rote „Stab“-Linie (Kicker), Fluss-Welle (Abschnittsgrenzen).
   Schriften: Jost (Überschriften, SIL OFL), Source Sans 3 (Text, SIL OFL) – lokal eingebunden.
   ========================================================================== */

@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --brand: #006089; --brand-deep: #003e59; --brand-soft: #e6eff3; --accent: #c80538; --accent-soft: #fae6eb;
  --bg: #fbfaf7; --surface: #ffffff; --surface-2: #f1f5f7; --ink: #10232e; --text: #2b3b45; --muted: #52636d;
  --line: #dbe3e8; --on-brand: #ffffff; --shadow: 0 1px 2px rgba(16, 35, 46, .05), 0 14px 40px -18px rgba(16, 35, 46, .22);
  --shadow-lg: 0 30px 70px -30px rgba(10, 30, 42, .45);
  --ok: #18804a; --warn: #a35d00; --off: #b4233c;
  --night: #0a1f2b; --night-2: #0f2a39;
  --f-head: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 20px; --r-sm: 12px; --header-h: 78px;
  --container: 1240px; --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
[data-theme=dark] {
  --bg: #0b1a23; --surface: #11242f; --surface-2: #142c3a; --ink: #eef4f7; --text: #cfdde4; --muted: #a0b5c0;
  --line: #23404f; --on-brand: #06141b; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .85); --ok: #4ccb86; --warn: #f0b04a; --off: #ff8197;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4, .h3, .h4 { font-family: var(--f-head); color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .9rem; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 400; }
h3, .h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4, .h4 { font-size: 1.15rem; }
h1 em, h2 em { font-style: normal; color: var(--accent); font-weight: 400; }
strong { color: var(--ink); font-weight: 650; }
ul, ol { padding-left: 1.2rem; }
abbr[title] { text-decoration: none; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden, .sprite { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .92rem; color: var(--muted); }
.break { overflow-wrap: anywhere; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.icon-lg { width: 1.7rem; height: 1.7rem; }
.flip { transform: scaleX(-1); }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 1rem; color: var(--bg); }
main:focus { outline: none; }

/* ---------------------------------------------------------------- Kicker, Buttons, Links */
.kicker { display: inline-flex; align-items: center; gap: .7rem; font: 600 .8rem/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .18em; color: var(--brand); margin: 0 0 1rem; }
.kicker .staff { width: 2px; height: 1.5em; background: var(--accent); border-radius: 2px; transform-origin: bottom; }
.kicker--light { color: #fff; }
.kicker--light .staff { background: #ff8fa3; }
.btn { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .8rem 1.45rem; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--on-brand); font: 500 1rem/1.2 var(--f-head); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 70%); opacity: 0; transition: opacity .3s; }
.btn:hover { transform: translateY(-2px); color: var(--on-brand); background: var(--brand-deep); border-color: var(--brand-deep); box-shadow: 0 12px 26px -12px var(--brand); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: var(--on-brand); }
.btn--light { background: #fff; border-color: #fff; color: #0a2a3a; }
.btn--light:hover { background: #eaf4f8; border-color: #eaf4f8; color: #0a2a3a; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.btn--outline-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .7); color: #fff; backdrop-filter: blur(6px); }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: #0a2a3a; }
.btn--dark { background: var(--night); border-color: var(--night); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn-row--center { justify-content: center; }
.btn-row:empty { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font: 500 1rem var(--f-head); color: var(--brand); text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--accent); color: #fff; font: 600 .72rem/1.5 var(--f-head); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
[data-theme=dark] .badge { color: #1b0710; }

/* ---------------------------------------------------------------- Fortschritt, Header */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span { --p: 0; display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(var(--p)); transform-origin: left; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background-color .35s, border-color .35s, box-shadow .35s, color .35s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; height: 100%; max-width: 1400px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 52px; height: 52px; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .25); object-fit: contain; flex: none; }
.brand-mark--cross { display: grid; place-items: center; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; font-family: var(--f-head); text-transform: uppercase; line-height: 1.02; }
.brand-1 { font-weight: 400; font-size: 1.02rem; letter-spacing: .14em; color: var(--ink); }
.brand-2 { font-weight: 400; font-size: 1.32rem; letter-spacing: .12em; color: var(--accent); }
.brand-3 { font-weight: 500; font-size: .62rem; letter-spacing: .2em; color: var(--muted); margin-top: .2rem; }
.brand-full { max-height: 58px; width: auto; }
.main-nav { margin-left: auto; display: none; }
.nav-list { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-link { position: relative; display: block; white-space: nowrap; padding: .6rem .8rem; color: var(--ink); font: 500 .98rem var(--f-head); text-decoration: none; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover { color: var(--brand); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.theme-toggle, .menu-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .3s var(--ease), background-color .3s, color .3s; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--brand); transform: rotate(-12deg); }
.theme-toggle .i-sun, [data-theme=dark] .theme-toggle .i-moon { display: none; }
[data-theme=dark] .theme-toggle .i-sun { display: block; }
.menu-toggle .i-close, .menu-toggle[aria-expanded=true] .i-menu { display: none; }
.menu-toggle[aria-expanded=true] .i-close { display: block; }
.header-cta { display: none; white-space: nowrap; }
/* über dem Hero: transparent, helle Schrift */
.has-hero .site-header:not(.is-scrolled):not(.is-open) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) :is(.brand-1, .nav-link, .status) { color: #fff; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .brand-2 { color: #ffb3c1; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .brand-3 { color: rgba(255, 255, 255, .85); }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.has-hero .site-header:not(.is-scrolled):not(.is-open) :is(.theme-toggle, .menu-toggle) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .header-cta { background: #fff; border-color: #fff; color: #0a2a3a; }
.has-hero .site-header:not(.is-scrolled):not(.is-open) .nav-link::after { background: #ff8fa3; }

.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 99; overflow-y: auto; background: var(--bg); padding: 1.5rem var(--gutter) 6rem; display: flex; flex-direction: column; gap: 2rem; animation: menu-in .35s var(--ease); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav nav a { display: block; padding: .95rem 0; font: 400 clamp(1.5rem, 6vw, 2rem)/1.2 var(--f-head); color: var(--ink); text-decoration: none; }
.mobile-nav nav a[aria-current] { color: var(--accent); }
.mobile-nav-foot { display: grid; gap: .8rem; max-width: 420px; }
.mobile-nav-mark { position: absolute; right: -40px; bottom: 60px; width: 260px; opacity: .06; pointer-events: none; filter: grayscale(1); }
.menu-open { overflow: hidden; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }

@media (min-width: 1140px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
}
@media (min-width: 760px) { .header-cta { display: inline-flex; } }
.header-actions .status--header { display: none; }
@media (min-width: 1480px) { .header-actions .status--header { display: inline-flex; } }
@media (min-width: 1140px) and (max-width: 1279px) { .header-cta span { display: none; } .header-cta { width: 46px; padding: 0; } }
@media (max-width: 420px) {
  :root { --header-h: 68px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
  .brand-1 { font-size: .86rem; letter-spacing: .1em; }
  .brand-2 { font-size: 1.08rem; letter-spacing: .1em; }
  .brand-3 { font-size: .52rem; letter-spacing: .14em; }
  .theme-toggle, .menu-toggle { width: 42px; height: 42px; }
}

/* ---------------------------------------------------------------- Live-Status */
.status { display: inline-flex; align-items: flex-start; gap: .55rem; margin: 0; font: 500 .95rem/1.35 var(--f-head); color: var(--ink); }
.status-dot { position: relative; width: 10px; height: 10px; margin-top: .4em; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-state=open] .status-dot { background: var(--ok); }
.status[data-state=soon] .status-dot { background: var(--warn); }
.status[data-state=closed] .status-dot { background: var(--off); }
.status[data-state=open] .status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); animation: pulse 2s infinite; }
.status--light, .hero .status { color: #fff; }
.status--light[data-state=open] .status-dot, .status--header[data-state=open] .status-dot { background: #5ee39b; }
.status--header { font-size: .88rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); }
.has-hero .site-header:not(.is-scrolled) .status--header { border-color: rgba(255, 255, 255, .35); }
.card .status, .quick .status { margin-top: .6rem; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); isolation: isolate; }
.hero-bg { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.hero-pic, .hero-pic img { width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 62% 50%; animation: kenburns 16s var(--ease) both; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6, 24, 35, .9) 0%, rgba(6, 24, 35, .72) 32%, rgba(6, 24, 35, .22) 62%, rgba(6, 24, 35, 0) 82%),
  linear-gradient(0deg, rgba(6, 24, 35, .75) 0%, rgba(6, 24, 35, 0) 40%),
  linear-gradient(180deg, rgba(6, 24, 35, .55) 0%, rgba(6, 24, 35, 0) 22%); }
.hero-mark { position: absolute; right: clamp(-60px, -2vw, 0px); bottom: -40px; width: clamp(240px, 32vw, 520px); z-index: -1; opacity: .13; filter: brightness(0) invert(1); pointer-events: none; animation: float 12s ease-in-out infinite; }
.hero-inner { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(7.5rem, 15vh, 10rem); max-width: var(--container); }
.hero-title { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; font-weight: 300; letter-spacing: -.02em; max-width: 13ch; margin-bottom: 1.4rem; }
.hero-title .hl { display: block; padding-bottom: .04em; }
.hero-title .hw { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .hw-2 { animation-delay: .14s; }
.hero-title em { color: #ffb3c1; font-style: normal; font-weight: 400; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34rem; color: rgba(255, 255, 255, .92); }
.hero .kicker { animation: fade-up .9s var(--ease) both; }
.hero-anim { animation: fade-up .9s var(--ease) both; }
.a-3 { animation-delay: .35s; } .a-4 { animation-delay: .5s; }
.scroll-cue { position: absolute; left: 50%; bottom: 6.6rem; translate: -50% 0; display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; animation: bob 2.4s ease-in-out infinite; }
.scroll-cue:hover { color: #fff; background: rgba(255, 255, 255, .12); }
@media (min-width: 900px) and (min-height: 760px) { .scroll-cue { display: grid; } }
@media (max-aspect-ratio: 4/5) {
  .hero-pic img { object-position: 50% 30%; }
  .hero-shade { background: linear-gradient(0deg, rgba(6, 24, 35, .95) 0%, rgba(6, 24, 35, .86) 40%, rgba(6, 24, 35, .35) 66%, rgba(6, 24, 35, .5) 100%); }
  .hero-inner { padding-bottom: 8.5rem; }
  .hero-mark { width: 200px; right: -30px; top: calc(var(--header-h) + 20px); bottom: auto; }
}
@media (max-height: 640px) and (min-aspect-ratio: 4/5) { .hero-lead { display: none; } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(.35em); } }
@keyframes fade-up { from { opacity: .01; transform: translateY(22px); } }
@keyframes float { 50% { transform: translateY(-16px) rotate(-1.5deg); } }
@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------------------------------------------------------------- Auf einen Blick */
.quick { position: relative; z-index: 3; margin-top: -4.5rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .5rem; }
.quick-item { display: flex; gap: .9rem; padding: 1.3rem 1.2rem; border-radius: 14px; transition: background-color .3s; }
.quick-item + .quick-item { border-left: 1px solid var(--line); }
.quick-item:hover { background: var(--surface-2); }
.quick-item > .icon { color: var(--brand); margin-top: .15rem; }
.quick-label { margin: 0 0 .2rem; font: 600 .74rem/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.quick-value { display: block; font: 500 1.08rem/1.35 var(--f-head); color: var(--ink); text-decoration: none; }
a.quick-value:hover { color: var(--brand); }
.quick-sub, .quick-link { display: block; font-size: .92rem; color: var(--muted); margin-top: .15rem; }
.quick-link, a.quick-sub { color: var(--brand); }
.quick .status { margin: 0; font-size: 1.02rem; }
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-item:nth-child(3) { border-left: 0; }
  .quick-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .quick { margin-top: -3rem; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item + .quick-item { border-left: 0; border-top: 1px solid var(--line); }
  .quick-item { padding: 1rem; }
}

/* ---------------------------------------------------------------- Abschnitte */
.section { position: relative; padding-block: clamp(4.2rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head > p { font-size: 1.12rem; color: var(--muted); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.split-head .section-head { margin-bottom: 0; }
.wave { width: 100%; height: 34px; color: var(--brand); opacity: .35; }
.wave--top { position: absolute; top: -17px; left: 0; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.3rem); color: var(--text); }

/* Willkommen */
.welcome-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.welcome-media { position: relative; margin: 0; }
.frame img { border-radius: var(--r); box-shadow: var(--shadow-lg); }
.welcome-media::before { content: ""; position: absolute; inset: 2rem -1.4rem -1.4rem 2rem; border-radius: var(--r); border: 1.5px solid var(--brand); opacity: .35; z-index: -1; }
.welcome-mark { position: absolute; left: -1.5rem; bottom: -1.5rem; width: 92px; height: 92px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.welcome-text .section-head { margin-bottom: 1rem; }
.welcome-text .section-head p:first-of-type { font-size: clamp(1.15rem, 1.6vw, 1.32rem); color: var(--ink); }
@media (max-width: 900px) { .welcome-grid { grid-template-columns: 1fr; } .welcome-media { max-width: 640px; } .welcome-media::before { inset: 1.2rem -.6rem -.6rem 1.2rem; } .welcome-mark { left: -.4rem; width: 76px; height: 76px; } }

/* Zahlen */
.facts { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 1.6rem 1.2rem 0 0; }
.fact strong { display: flex; align-items: baseline; gap: .3rem; font: 300 clamp(2.6rem, 4.6vw, 3.8rem)/1 var(--f-head); color: var(--brand); letter-spacing: -.02em; }
.fact-star { width: .55em; height: .55em; color: #e3a008; align-self: center; }
.fact-label { display: block; margin-top: .55rem; color: var(--muted); font-size: 1rem; max-width: 16rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 0 1rem; } }

/* Leistungen */
.section--services { background: var(--surface-2); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service { position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.6rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; overflow: hidden; }
.service::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::after { transform: scaleY(1); }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); margin-bottom: 1.3rem; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.service-icon .icon { width: 28px; height: 28px; }
.service:hover .service-icon { transform: rotate(-8deg) scale(1.06); background: var(--brand); color: var(--on-brand); }
.service h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.service-link { color: var(--ink); text-decoration: none; }
.service-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.service p { color: var(--muted); font-size: 1rem; margin-bottom: 1.2rem; }
.service .more { margin-top: auto; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--brand); transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.service:hover .more { background: var(--brand); color: var(--on-brand); border-color: var(--brand); transform: translateX(4px); }
.services--detail { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 1240px) { .services--detail { grid-template-columns: repeat(3, 1fr); } }
.service--detail { padding: 1.8rem 1.6rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.service--detail p { color: var(--text); }
.service--detail:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.checks li { display: flex; gap: .55rem; align-items: flex-start; }
.checks .icon { color: var(--accent); margin-top: .25rem; width: 1.05em; height: 1.05em; }
@media (max-width: 1080px) { .services, .services--detail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services, .services--detail { grid-template-columns: 1fr; } }

/* Aktuelles */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.section--news .news { margin-top: 0; }
.news-card { padding: 1.8rem; border-radius: var(--r); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--line); }
.news-meta { display: inline-flex; align-items: center; gap: .45rem; font: 600 .8rem var(--f-head); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

/* Team-Laufband */
.section--team { overflow: hidden; }
.tm { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.tm:hover .tm-track, .tm:focus-within .tm-track, .tm:focus .tm-track { animation-play-state: paused; }
.tm:focus-visible { outline-offset: -3px; }
.tm-list { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0 .55rem; }
.tm-list li { width: clamp(170px, 18vw, 230px); }
.tm-list .pic img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; filter: saturate(.92); transition: filter .4s, transform .5s var(--ease); }
.tm-list li:hover .pic img { filter: saturate(1.05); transform: translateY(-6px); }
.tm-list span { display: block; margin-top: .6rem; font: 500 .98rem/1.3 var(--f-head); color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Zeitstrahl */
.timeline { list-style: none; margin: 0; padding: 0; }
.ms-when { display: block; font: 300 clamp(2.4rem, 4vw, 3.4rem)/1 var(--f-head); color: var(--brand); letter-spacing: -.02em; margin-bottom: .8rem; }
.ms h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.ms p { color: var(--muted); font-size: 1rem; margin: 0; }
.timeline--row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; position: relative; padding-top: 2.2rem; }
.timeline--row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: .5; }
.timeline--row .ms { position: relative; }
.timeline--row .ms::before { content: ""; position: absolute; top: calc(-2.2rem - 7px); left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }
.timeline--col { position: relative; padding-left: 2.2rem; display: grid; gap: 2.2rem; }
.timeline--col::before { content: ""; position: absolute; left: 7px; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(180deg, var(--brand), var(--accent)); opacity: .5; }
.timeline--col .ms { position: relative; }
.timeline--col .ms::before { content: ""; position: absolute; left: calc(-2.2rem); top: .7rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }
.timeline--col .ms-when { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: .5rem; }
@media (max-width: 900px) { .timeline--row { grid-template-columns: repeat(2, 1fr); row-gap: 2.6rem; } .timeline--row::before { display: none; } .timeline--row .ms::before { top: -1.6rem; } }
@media (max-width: 520px) { .timeline--row { grid-template-columns: 1fr; } }

/* Gesundheitstipps */
.section--tips { background: linear-gradient(180deg, var(--bg), var(--surface-2)); }
.tips-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tips { display: grid; gap: 1.2rem; }
.tip { position: relative; display: flex; gap: 1.3rem; padding: 1.7rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.tip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tip-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.tip-icon .icon { width: 30px; height: 30px; }
.tip h3 { margin-bottom: .4rem; }
.tip-link { color: var(--ink); text-decoration: none; }
.tip-link::before { content: ""; position: absolute; inset: 0; }
.tip p { color: var(--muted); margin-bottom: .6rem; }
@media (max-width: 900px) { .tips-grid { grid-template-columns: 1fr; } }

/* Rezensionen */
.rating-badge { display: inline-flex; align-items: center; gap: .9rem; padding: .8rem 1.3rem .8rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); margin: 0; }
a.rating-badge:hover { border-color: var(--brand); color: var(--ink); }
.rb-google { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.rb-score { font: 400 2.3rem/1 var(--f-head); }
.rb-meta { display: grid; gap: .15rem; }
.rb-meta small { color: var(--muted); font-size: .85rem; }
.stars { display: inline-flex; gap: 2px; color: #e3a008; }
.stars .icon { width: 1.05rem; height: 1.05rem; }
.stars .off { color: var(--line); }
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 31%, 400px); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.5rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.slider-track:focus-visible { outline-offset: 2px; }
.review { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review::before { content: "“"; position: absolute; right: 1.2rem; top: .2rem; font: 300 5rem/1 var(--f-head); color: var(--brand); opacity: .14; }
.review blockquote { margin: 0; font-size: 1.05rem; color: var(--text); flex: 1; }
.review blockquote p:last-child { margin: 0; }
.review figcaption { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.review figcaption strong { display: block; font-family: var(--f-head); font-weight: 500; }
.review figcaption small { color: var(--muted); font-size: .86rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 500 1.05rem var(--f-head); flex: none; }
.review:nth-child(3n+2) .avatar { background: var(--accent); color: #fff; }
[data-theme=dark] .review:nth-child(3n+2) .avatar { color: #1b0710; }
.slider-nav { display: flex; gap: .6rem; justify-content: flex-end; }
.slider-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.slider-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.slider-btn:disabled { opacity: .45; cursor: default; }
.reviews-note { color: var(--muted); font-size: .92rem; margin-top: 1rem; }
@media (max-width: 600px) { .slider-track { grid-auto-columns: 86%; } }

/* FAQ */
.section--faq { background: var(--surface-2); }
.faq-wrap { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-list { display: grid; gap: .8rem; }
.faq-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.12rem; font-weight: 500; line-height: 1.35; }
.faq-icon { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); flex: none; transition: transform .35s var(--ease), background-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--brand); translate: -50% -50%; border-radius: 2px; }
.faq-icon::after { rotate: 90deg; transition: rotate .35s var(--ease); }
.faq-item[open] .faq-icon { background: var(--brand); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--on-brand); }
.faq-item[open] .faq-icon::after { rotate: 0deg; }
.faq-a { padding: 0 1.4rem 1.2rem; color: var(--text); }
.faq-a p:last-child { margin: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* Besuch */
.visit-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.visit-cards { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.card { padding: 1.6rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.card h3, .card h2 { display: flex; align-items: center; gap: .5rem; }
.card h3 .icon, .card h2 .icon { color: var(--brand); }
.visit-map, .visit-map .embed { height: 100%; min-height: 420px; }
@media (max-width: 1080px) { .visit-grid { grid-template-columns: 1fr; } .visit-map, .visit-map .embed { min-height: 380px; } }
@media (max-width: 600px), (min-width: 1081px) and (max-width: 1240px) { .visit-cards { grid-template-columns: 1fr; } }

/* Öffnungszeiten */
.hours { margin: 0; display: grid; gap: .1rem; }
.hours-row { display: grid; grid-template-columns: 4.8rem 1fr; gap: .8rem; padding: .5rem .6rem; border-radius: 10px; }
.hours dt { font: 500 1rem var(--f-head); color: var(--ink); }
.hours dd { margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; color: var(--text); font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--muted); }
.hours-row.is-today { background: var(--brand-soft); }
.hours-row.is-today dt::after { content: "heute"; display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 600; }

/* Kontakt-Liste */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: .2rem; }
.contact-list small { display: block; font: 600 .74rem/1.4 var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--brand); }
.contact-list a.link-arrow { color: var(--brand); font-weight: 500; font-size: .95rem; }

/* Nachtdienst-Box */
.duty { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--r); background: var(--night); color: #d9e7ee; margin-top: 1.2rem; position: relative; overflow: hidden; }
.duty::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }
.duty > .icon { color: #ffd27a; }
.duty-title { font: 500 1.15rem var(--f-head); color: #fff; margin-bottom: .3rem; }
.duty strong { color: #fff; }
.duty p:last-child { margin: 0; }
.duty-links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.duty .link-arrow { color: #9fd3ea; }
.duty .link-arrow:hover { color: #fff; }
.duty--big { padding: 2rem; margin-top: 0; }

/* Karte (2-Klick) */
.embed { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); min-height: 360px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; background:
  radial-gradient(circle at 30% 20%, var(--brand-soft), transparent 60%), repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--line) 50%, transparent) 22px 23px), var(--surface-2); }
.embed-consent .inner { max-width: 26rem; }
.embed-consent .icon { color: var(--accent); margin: 0 auto .6rem; }
.embed-title { font: 500 1.3rem var(--f-head); color: var(--ink); margin-bottom: .4rem; }
.embed-consent p { font-size: .95rem; }
.remember { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .9rem; font-size: .92rem; color: var(--muted); cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--brand); }
.map-wide .embed { min-height: 440px; margin: 1.5rem 0; }

/* ---------------------------------------------------------------- Unterseiten-Kopf */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem); background: radial-gradient(1200px 500px at 85% 0%, var(--brand-soft), transparent 70%), var(--bg); }
.page-hero-mark { position: absolute; right: max(-60px, calc((100vw - 1400px) / 2)); bottom: -30px; width: clamp(220px, 26vw, 380px); opacity: .07; pointer-events: none; filter: grayscale(1) contrast(1.4); }
[data-theme=dark] .page-hero-mark { filter: brightness(0) invert(1); opacity: .06; }
.page-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; position: relative; }
.page-hero--img .page-hero-grid { grid-template-columns: 1.1fr .9fr; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 44rem; color: var(--muted); }
.page-hero-media { margin: 0; }
.page-hero-media img { border-radius: var(--r); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero .wave--hero { position: absolute; bottom: 8px; left: 0; height: 30px; }
.page-hero--center { text-align: center; }
.page-hero--center .lead, .page-hero--center h1 { margin-inline: auto; }
.err-code { font: 300 clamp(5rem, 14vw, 9rem)/1 var(--f-head); color: var(--brand); margin: 0 0 .5rem; letter-spacing: -.04em; }
.hint-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: var(--on-brand); margin-bottom: 1.2rem; }
.hint-icon .icon { width: 40px; height: 40px; }
.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips--center { justify-content: center; }
.chips a { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 500 .98rem var(--f-head); }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 900px) { .page-hero--img .page-hero-grid { grid-template-columns: 1fr; } }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; opacity: .6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* ---------------------------------------------------------------- Die Apotheke */
.chronik-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.chronik-text .prose p:first-of-type::first-letter { float: left; font: 400 4.2rem/.8 var(--f-head); color: var(--accent); margin: .35rem .6rem 0 0; }
@media (max-width: 900px) { .chronik-grid { grid-template-columns: 1fr; } }
.section--team-page { background: var(--surface-2); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem 1.2rem; }
.member { margin: 0; }
.member-photo { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.member-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.member-photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform .7s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member:hover .member-photo::after { transform: scaleX(1); }
.member figcaption { padding: .9rem .2rem 0; }
.member figcaption strong { display: block; font: 500 1.08rem/1.3 var(--f-head); }
.member figcaption span { display: block; color: var(--muted); font-size: .95rem; margin-top: .15rem; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); gap: 1.3rem .9rem; } }
.section-title { margin-bottom: 2rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item { margin: 0; }
.gallery-item img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-item figcaption { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Leistungen-Seite */
.prev-card { display: flex; gap: clamp(1.2rem, 3vw, 2.2rem); padding: clamp(1.8rem, 4vw, 3rem); border-radius: calc(var(--r) + 6px); background: linear-gradient(120deg, var(--brand-soft), var(--surface) 65%); border: 1px solid var(--line); }
.prev-icon { width: 64px; height: 64px; color: var(--brand); flex: none; }
.prev-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
@media (max-width: 640px) { .prev-card { flex-direction: column; } }
.tabs { margin-top: .5rem; }
.tab-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.tab-list button { display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 1.02rem var(--f-head); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.tab-list button:hover { border-color: var(--brand); }
.tab-list button[aria-selected=true] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tab-panel { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.js .tabs[data-ready] .tab-panel[hidden] { display: none; }
.tabs:not([data-ready]) .tab-panel + .tab-panel { margin-top: 1.5rem; }
.tabs[data-ready] .tab-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------------------------------------------------------------- Fließtext (Ratgeber, Rechtliches) */
.prose { max-width: 72ch; }
.tab-panel.prose { max-width: none; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.4rem; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-top: 2rem; }
.prose h4 { margin-top: 1.4rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: .35rem; }
.prose ul li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol li { margin-bottom: .35rem; }
.prose .cols { columns: 2 16rem; column-gap: 2.5rem; }
.prose .cols li { break-inside: avoid; }
.prose .callout { padding: 1.1rem 1.3rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; margin: 1.2rem 0; }
.prose .callout p:last-child { margin: 0; }
.plants { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.plant { padding: 1.3rem 1.4rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.plant h5 { font: 500 1.15rem/1.3 var(--f-head); color: var(--ink); margin: 0 0 .7rem; }
.plant dl { margin: 0; display: grid; gap: .55rem; }
.plant dt { font: 600 .74rem/1.4 var(--f-head); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.plant dd { margin: 0; font-size: .98rem; }
.plant .warn { margin: .8rem 0 0; font-size: .95rem; color: var(--accent); }
.legal h2 { font-size: 1.5rem; }
.legal h3 { font-size: 1.2rem; }

/* ---------------------------------------------------------------- Nachtdienst */
.duty-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.duty-aside { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.duty-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; counter-reset: d; }
.duty-item { counter-increment: d; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem 1rem 3.4rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.duty-item::before { content: counter(d); position: absolute; left: 1rem; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 600 .85rem var(--f-head); }
.duty-item strong { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; }
.duty-item span, .duty-item small { display: block; color: var(--muted); font-size: .95rem; }
.duty-item--self { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.duty-item--self::before { background: var(--accent); color: #fff; }
.duty-item--self span.badge { display: inline-block; color: #fff; }
[data-theme=dark] .duty-item--self span.badge, [data-theme=dark] .duty-item--self::before { color: #1b0710; }
.duty-phone { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font: 500 .95rem var(--f-head); white-space: nowrap; }
.duty-phone span { display: inline; color: inherit; font-size: inherit; }
.duty-phone:hover { border-color: var(--brand); color: var(--brand); }
.note { display: flex; gap: .9rem; padding: 1.2rem 1.4rem; border-radius: 16px; background: var(--brand-soft); color: var(--text); }
.note .icon { color: var(--brand); }
.note p:last-child { margin: 0; }
@media (max-width: 1000px) { .duty-grid { grid-template-columns: 1fr; } .duty-aside { position: static; } }
@media (max-width: 560px) { .duty-item { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------------- Kontakt-Seite & Formular */
.contact-page { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-side { display: grid; gap: 1.6rem; }
.contact-main { padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: calc(var(--r) + 4px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 960px) { .contact-page { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 .98rem var(--f-head); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field [aria-invalid=true] { border-color: var(--off); }
.field-error { color: var(--off); font-size: .92rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: .15rem; accent-color: var(--brand); }
.field--check label { font: 400 .98rem/1.5 var(--f-body); color: var(--text); }
.field--check .field-error { grid-column: 2; }
.field--hp { position: absolute; left: -9999px; }
.form-hint { font-size: .9rem; color: var(--muted); margin: 1.1rem 0; }
.form-status { margin-top: 1rem; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 1rem 1.2rem; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ink); }
.form-status.is-error { padding: 1rem 1.2rem; background: var(--accent-soft); color: var(--ink); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Social */
.social { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.social-link { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; color: inherit; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.social-link:hover { transform: translateY(-3px); background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.contact-side .social-link { color: var(--brand); }

/* Sitemap */
.sitemap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.sitemap-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
@media (max-width: 600px) { .sitemap-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Abschluss-Band */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(4rem, 8vw, 6rem); background: radial-gradient(900px 400px at 10% 0%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(120deg, var(--night) 0%, #0d3a52 100%); color: #d9e7ee; }
.cta-mark { position: absolute; right: 4%; bottom: -60px; width: clamp(220px, 26vw, 360px); opacity: .1; filter: brightness(0) invert(1); pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-copy { max-width: 40rem; }
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: #ffb3c1; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer { position: relative; background: var(--night); color: #b9cdd8; padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: 1rem; }
.site-footer .wave--footer { position: absolute; top: 18px; left: 0; color: #5aa6c8; opacity: .3; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 2.5rem; }
.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand-1 { color: #fff; }
.brand--footer .brand-2 { color: #ffb3c1; }
.brand--footer .brand-3 { color: #b9cdd8; }
.footer-tagline { font: 400 1.25rem/1.35 var(--f-head); color: #fff; margin-bottom: .6rem; }
.footer-title { font: 600 .8rem var(--f-head); color: #fff; text-transform: uppercase; letter-spacing: .18em; margin: .4rem 0 1.2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #e6f1f6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { color: #7cc2e0; margin-top: .25rem; }
.hours--footer .hours-row { grid-template-columns: 4.4rem 1fr; padding: .35rem .5rem; margin-inline: -.5rem; }
.hours--footer dt { color: #fff; }
.hours--footer dd, .hours--footer .closed { color: #b9cdd8; }
.hours--footer .hours-row.is-today { background: rgba(255, 255, 255, .07); }
.hours--footer .hours-row.is-today dt::after { color: #7cc2e0; }
.site-footer .status { color: #fff; margin-top: .9rem; }
.site-footer .status[data-state=open] .status-dot { background: #5ee39b; }
.site-footer .status[data-state=open] .status-dot::after { border-color: #5ee39b; }
.site-footer .status[data-state=closed] .status-dot { background: #ff8197; }
.footer-duty { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.footer-duty .icon { color: #ffd27a; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-block: 1.6rem 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom .linklike { color: #e6f1f6; text-decoration: none; }
.footer-bottom .linklike:hover { text-decoration: underline; color: #fff; }
.site-footer .social-link { color: #e6f1f6; border-color: rgba(255, 255, 255, .35); }
.site-footer .social-link:hover { background: #fff; border-color: #fff; color: var(--night); text-decoration: none; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { padding-bottom: 6.5rem; } }

/* Mobile Schnellkontakt */
.mobile-cta { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 90; display: none; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .55rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: translateY(140%); transition: transform .45s var(--ease); }
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 48px; }
@media (max-width: 759px) { .mobile-cta { display: grid; } }

/* Datenschutz-Dialog */
.privacy-dialog { max-width: min(92vw, 30rem); padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.privacy-dialog::backdrop { background: rgba(4, 15, 22, .6); backdrop-filter: blur(4px); }
.privacy-dialog .remember { justify-content: flex-start; }

/* ---------------------------------------------------------------- Einblendungen */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.d-1 { transition-delay: .08s !important; } .d-2 { transition-delay: .16s !important; } .d-3 { transition-delay: .24s !important; }
.js .reveal .kicker .staff { transform: scaleY(0); transition: transform .8s .3s var(--ease); }
.js .reveal.is-visible .kicker .staff { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tm { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tm-list[aria-hidden] { display: none; }
}

/* Druck */
@media print {
  .site-header, .mobile-cta, .progress, .hero-bg, .embed, .cta-band, .privacy-dialog, .scroll-cue, .tm { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero-title, .hero-lead { color: #000; }
}
