/* Zahn am Spitz · Pitch von wedolegacy
   Prinzip „Vier Kreise“: die Bildmarke der Ordination (vier überlagerte Kreise, in der Mitte der Zahn)
   liegt genau dort auf dem Stadtplan, wo am Spitz alle Linien zusammenlaufen. */
@font-face { font-family: "Jost"; src: url("../assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --white: #fff;
  --mist: #F3F7F1;
  --sage: #CCDBC6;       /* Fläche des Praxisschilds */
  --c1: #E2F0DF;         /* ein Kreis der Bildmarke */
  --green: #4E8F7B;      /* „ZAHNARZT“ am Praxisschild */
  --green-d: #2C6654;    /* dieselbe Farbe, lesbar als Text */
  --fir: #17332C;        /* dunkler Block */
  --ink: #16201D;
  --ink-2: #4B5955;
  --line: #D9E3D6;
  --amber: #A9571F;      /* aus dem Marmor des Empfangs (Vorschlag) */
  --amber-l: #E7A870;
  --kreis: rgba(55, 115, 65, .15);
  --f: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4.4vw, 72px);
  --max: 1440px;
  --hd: 86px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --out: cubic-bezier(.16, .84, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: var(--hd); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f); font-size: 18px; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--green-d); outline-offset: 3px; border-radius: 2px; }
[data-theme="dark"] :focus-visible { outline-color: var(--amber-l); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typo ---------- */
.lbl, .kick, .sh__n { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.h2 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 400; line-height: 1.04; letter-spacing: -.015em; }
.h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.005em; }
.sh { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.sh__n { display: flex; gap: 14px; align-items: baseline; color: var(--green-d); }
.sh__n small { font-size: inherit; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sh__p { max-width: 34em; color: var(--ink-2); font-size: clamp(18px, 1.35vw, 20px); }
[data-theme="dark"] { background: var(--fir); color: #EDF3EC; }
[data-theme="dark"] .sh__n { color: #A9CDB8; }
[data-theme="dark"] .sh__n small, [data-theme="dark"] .sh__p { color: #B9CBC0; }
[data-theme="mist"] { background: var(--mist); }
[data-theme="sage"] { background: var(--sage); }
[data-theme="sage"] .sh__n { color: #1F4F40; }
[data-theme="sage"] .sh__p, [data-theme="sage"] .sh__n small { color: #2F403A; }
section { padding: clamp(84px, 11vw, 168px) 0; position: relative; }

/* redaktioneller Verweis statt Knopf */
.lnk { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 14px 0 12px; border-bottom: 1px solid currentColor; min-height: 44px; }
.lnk b { font-weight: 600; letter-spacing: .06em; font-size: 15px; }
.lnk svg { width: 24px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .5s var(--ease); }
.lnk:hover svg { transform: translateX(6px); }
.lnk--s { padding: 6px 0 5px; min-height: 0; font-size: 12px; }

/* ---------- Header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hd); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); background: var(--white); transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s; }
.hd.is-scrolled { box-shadow: 0 1px 0 rgba(22, 32, 29, .08); }
.hd[data-on="mist"] { background: var(--mist); }
.hd[data-on="sage"] { background: var(--sage); }
.hd[data-on="dark"] { background: var(--fir); color: #EDF3EC; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.hd__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.hd__mark { width: 58px; height: 58px; flex: none; }
.hd__word { height: 46px; width: auto; transition: filter .5s; }
.hd[data-on="dark"] .hd__word, .ft__word { filter: invert(1) brightness(1.6); }
.hd__nav { display: flex; gap: clamp(18px, 2.4vw, 36px); font-size: 15px; }
.hd__nav a { padding: 10px 0; position: relative; }
.hd__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.hd__nav a:hover::after, .hd__nav a.is-on::after { transform: scaleX(1); }
.hd__r { display: flex; align-items: center; gap: 22px; }
.hd__tel { font-weight: 500; font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
.lang { display: flex; gap: 2px; }
.lang button { font-size: 12px; letter-spacing: .14em; font-weight: 500; padding: 10px 6px; color: var(--ink-2); border-bottom: 1px solid transparent; }
.lang button[aria-pressed="true"] { color: var(--ink); border-color: currentColor; }
.hd[data-on="dark"] .lang button { color: #B9CBC0; }
.hd[data-on="dark"] .lang button[aria-pressed="true"] { color: #fff; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; top: 18px; transition: transform .45s var(--ease); }
.burger i + i { top: 26px; }
.burger[aria-expanded="true"] i { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i + i { transform: translateY(-4px) rotate(-45deg); }
.burger:active { opacity: .6; }

.menu { position: fixed; inset: 0; z-index: 35; background: var(--white); padding: calc(var(--hd) + 18px) var(--pad) 28px; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; scrollbar-width: none; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu nav a { display: grid; padding: 16px 0; border-bottom: 1px solid var(--line); transform: translateY(14px); opacity: 0; transition: transform .6s var(--out), opacity .6s; }
.menu.is-open nav a { transform: none; opacity: 1; }
.menu nav a:nth-child(2) { transition-delay: .05s; } .menu nav a:nth-child(3) { transition-delay: .1s; } .menu nav a:nth-child(4) { transition-delay: .15s; } .menu nav a:nth-child(5) { transition-delay: .2s; }
.menu nav b { font-size: 34px; font-weight: 400; letter-spacing: -.01em; line-height: 1.1; }
.menu nav small { color: var(--ink-2); font-size: 15px; }
.menu__ft { margin-top: auto; padding-top: 28px; display: grid; gap: 4px; }
.menu__ft a { font-size: 26px; font-weight: 500; }
.menu__ft span { color: var(--ink-2); font-size: 15px; }

/* ---------- Hero: der Plan ---------- */
.hero { min-height: 100svh; padding: var(--hd) 0 0; display: grid; grid-template-rows: 1fr auto; overflow: clip; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0 42% 0 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .94) 45%, rgba(255, 255, 255, 0)); pointer-events: none; }
.plan { --u: max(.9px, .0725vw); --px: 69vw; --py: 52%; position: absolute; left: var(--px); top: var(--py); width: 0; height: 0; z-index: -1; pointer-events: none; }
.plan__zoom { position: absolute; width: calc(1600 * var(--u)); height: calc(1600 * var(--u)); left: calc(-800 * var(--u)); top: calc(-800 * var(--u)); will-change: transform; }
.plan__img { position: absolute; inset: 0; width: 100%; height: 100%; animation: planin 1.5s var(--out) backwards; }
.plan__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln { fill: none; stroke: var(--green-d); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: draw 1.5s cubic-bezier(.5, 0, .2, 1) calc(.25s + var(--i) * 70ms) backwards; }
.ln--u6, .ln--sbahn { stroke: var(--fir); stroke-width: 4.2; }
.ln--sbahn { opacity: .55; }
@keyframes planin { from { opacity: .01; transform: scale(1.06); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.bloom { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.blw { position: absolute; left: calc(var(--dx) * var(--u)); top: calc(var(--dy) * var(--u)); }
.blw--t { --dx: 0; --dy: -83; --n: 0; } .blw--r { --dx: 83; --dy: 0; --n: 1; } .blw--b { --dx: 0; --dy: 83; --n: 2; } .blw--l { --dx: -83; --dy: 0; --n: 3; }
.blw i { position: absolute; width: calc(354 * var(--u)); height: calc(354 * var(--u)); left: calc(-177 * var(--u)); top: calc(-177 * var(--u)); border-radius: 50%; background: var(--kreis); animation: bloom 1.25s var(--out) calc(1.15s + var(--n) * 120ms) backwards; }
@keyframes bloom { from { opacity: 0; transform: translate(calc(var(--dx) * var(--u) * -1), calc(var(--dy) * var(--u) * -1)) scale(.08); } }
.bloom__zahn { position: absolute; max-width: none; width: calc(120.6 * var(--u)); height: calc(162 * var(--u)); left: calc(-60.3 * var(--u)); top: calc(-71.6 * var(--u)); animation: zahn .9s var(--out) 1.95s backwards; }
@keyframes zahn { from { opacity: 0; transform: translateY(10px) scale(.86); } }
.pl { position: absolute; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--green-d); white-space: nowrap; transform-origin: 0 50%; animation: fade 1s 1.7s backwards; background: rgba(255, 255, 255, .86); padding: 2px 8px; }
.pl--prager { left: calc(646 * var(--u)); top: calc(430 * var(--u)); transform: rotate(68.2deg); }
.pl--bruenner { left: calc(866 * var(--u)); top: calc(544 * var(--u)); transform: rotate(-66.2deg); }
.pl--u6 { left: calc(836 * var(--u)); top: calc(1350 * var(--u)); transform: rotate(-71deg); }
@keyframes fade { from { opacity: 0; } }

.hero__copy { align-self: center; padding: clamp(28px, 5vh, 64px) var(--pad); max-width: min(760px, 56vw); display: grid; gap: clamp(18px, 2.6vh, 30px); justify-items: start; }
.kick { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--green-d); white-space: nowrap; }
.kick span + span::before { content: "·"; margin-right: 22px; margin-left: 0; }
.hero__h { font-size: clamp(72px, 11.6vw, 190px); font-weight: 500; line-height: .86; letter-spacing: -.035em; margin-left: -.045em; animation: rise .9s var(--out) backwards; }
.hero__h span { display: block; white-space: nowrap; }
.hero__h span + span { color: var(--green-d); }
@keyframes rise { from { transform: translateY(22px); } }
.hero__lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; max-width: 25em; color: var(--ink-2); animation: fade .9s .25s backwards; }
.status { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; min-height: 28px; animation: fade .9s .35s backwards; }
.status__dot { width: 18px; height: 12px; position: relative; flex: none; }
.status__dot::before, .status__dot::after { content: ""; position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); opacity: .45; transition: transform .8s var(--out), background-color .5s, opacity .5s; }
.status__dot::after { left: 6px; }
.status.is-open .status__dot::before, .status.is-open .status__dot::after { background: var(--green); opacity: .75; }
.status.is-open .status__dot::after { transform: translateX(-3px); }
.status small { font-size: inherit; font-weight: 400; color: var(--ink-2); }
.hero__act { display: flex; flex-wrap: wrap; gap: 6px 36px; animation: fade .9s .45s backwards; }
.hero__strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; padding: 20px var(--pad) 26px; font-size: 14px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 55%); animation: fade 1s 2.1s backwards; }
.hero__strip p, .near { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.hero__strip p span + span, .near li + li { position: relative; }
.hero__strip p { color: var(--ink-2); letter-spacing: .04em; }
.near li { display: flex; gap: 10px; align-items: baseline; }
.near b { font-weight: 500; }
.near span { color: var(--green-d); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Ordination: die Woche ---------- */
.zeiten__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.week { display: grid; }
.week { --c1: 158px; --c3: 163px; }
.wk { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr) var(--c3); gap: 18px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); font-size: clamp(18px, 1.5vw, 22px); }
.wk:last-of-type { border-bottom: 1px solid var(--line); }
.wk__d { font-weight: 400; }
.wk__t { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk__t small { font-weight: 400; font-size: .8em; color: var(--ink-2); }
.wk__tr { position: relative; height: 26px; }
.wk__tr::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.wk__bar { position: absolute; top: 7px; height: 12px; border-radius: 6px; background: var(--green); opacity: .5; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--out) calc(var(--i) * 90ms); }
.week.rv-in .wk__bar { transform: none; }
.wk.is-today .wk__d { font-weight: 600; }
.wk.is-today .wk__bar { opacity: 1; background: var(--green-d); }
.wk__now { position: absolute; top: 0; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: rgba(169, 87, 31, .22); opacity: 0; transition: opacity .6s 1s; }
.wk__now::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--amber); }
.week.rv-in .wk__now { opacity: 1; }
.wk--scale { border: 0; padding: 0 0 6px; font-size: 12px; color: var(--ink-2); letter-spacing: .08em; }
.wk--scale .wk__tr { height: 16px; }
.wk--scale .wk__tr::before { display: none; }
.wk--scale b { position: absolute; top: 0; font-weight: 400; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.zeiten__side { display: grid; gap: 26px; }
.now { display: grid; gap: 2px; }
.now__t { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.now__s { color: var(--ink-2); }
.now.is-open .now__t { color: var(--green-d); }
.zeiten__q { color: var(--ink-2); max-width: 22em; }
.tel { display: grid; font-size: clamp(34px, 3.6vw, 54px); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; font-variant-numeric: tabular-nums; justify-self: start; }
.tel small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--green-d); margin-bottom: 8px; }
.kassen { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.kassen ul { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 20px; font-weight: 500; }
.notd { font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; justify-items: start; max-width: 26em; }
.notd .lnk { color: var(--ink); }

/* ---------- Leistungen ---------- */
.leist__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.leist__fig { position: sticky; top: calc(var(--hd) + 4vh); }
.vier { --s: 100%; position: relative; width: var(--s); aspect-ratio: 1; }
.v { position: absolute; width: 68.12%; height: 68.12%; left: 15.94%; top: 15.94%; border-radius: 50%; background: var(--kreis); transition: transform 1.1s var(--out), background-color .7s var(--ease), opacity .7s; }
.v--t { transform: translateY(-23.4%); } .v--b { transform: translateY(23.4%); } .v--l { transform: translateX(-23.4%); } .v--r { transform: translateX(23.4%); }
.v--m { width: 36.2%; height: 36.2%; left: 31.9%; top: 31.9%; background: transparent; }
.vier[data-sel="t"] .v--t, .vier[data-sel="r"] .v--r, .vier[data-sel="b"] .v--b, .vier[data-sel="l"] .v--l { background: rgba(44, 102, 84, .62); }
.vier[data-sel="m"] .v--m { background: rgba(44, 102, 84, .7); }
.vier[data-sel="t"] .v--t { transform: translateY(-27%); } .vier[data-sel="b"] .v--b { transform: translateY(27%); } .vier[data-sel="l"] .v--l { transform: translateX(-27%); } .vier[data-sel="r"] .v--r { transform: translateX(27%); }
.vier__zahn { position: absolute; width: 20.3%; left: 39.85%; top: 37.6%; height: auto; transition: transform .9s var(--out); }
.vier[data-sel="m"] .vier__zahn { transform: scale(1.08); }
.js .vier.rv .v { transform: scale(.1); opacity: 0; }
.js .vier.rv.rv-in .v { opacity: 1; }
.js .vier.rv.rv-in .v--t { transform: translateY(-23.4%); } .js .vier.rv.rv-in .v--b { transform: translateY(23.4%); transition-delay: .1s; } .js .vier.rv.rv-in .v--l { transform: translateX(-23.4%); transition-delay: .15s; } .js .vier.rv.rv-in .v--r { transform: translateX(23.4%); transition-delay: .05s; }
.js .vier.rv.rv-in .v--m { transform: none; }
.filt { display: grid; gap: 12px; margin-bottom: 26px; }
.filt .lbl { color: var(--ink-2); }
.filt__o { display: flex; flex-wrap: wrap; gap: 0 26px; }
.filt__o button { padding: 10px 0 8px; font-size: 17px; color: var(--ink-2); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; min-height: 44px; }
.filt__o button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.ll li { border-top: 1px solid var(--line); transition: opacity .5s var(--ease); }
.ll li:last-child { border-bottom: 1px solid var(--line); }
.ll li.is-dim { opacity: .28; }
.ll button { width: 100%; text-align: left; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; padding: clamp(18px, 2vw, 28px) 0; }
.ll small { font-size: 13px; letter-spacing: .12em; color: var(--green-d); font-variant-numeric: tabular-nums; font-weight: 500; }
.ll b { font-size: clamp(23px, 2.5vw, 38px); font-weight: 400; line-height: 1.12; letter-spacing: -.012em; transition: transform .6s var(--out); }
.ll span { grid-column: 2; color: var(--ink-2); font-size: 17px; max-width: 30em; }
.ll svg { width: 24px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; grid-row: 1; grid-column: 3; align-self: center; opacity: .35; transition: transform .6s var(--out), opacity .4s; }
.ll button:hover b, .ll button:focus-visible b { transform: translateX(8px); }
.ll button:hover svg, .ll button:focus-visible svg { opacity: 1; transform: translateX(6px); }
.note { margin-top: 22px; font-size: 15px; color: var(--ink-2); max-width: 34em; }

/* ---------- Detail-Blatt ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__bg { position: absolute; inset: 0; background: rgba(23, 51, 44, .46); opacity: 0; transition: opacity .55s var(--ease); }
.sheet.is-open .sheet__bg { opacity: 1; }
.sheet__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--white); display: flex; flex-direction: column; overflow: hidden; transform: translateX(102%); transition: transform .7s var(--out); }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(22px, 3vw, 40px); border-bottom: 1px solid var(--line); color: var(--green-d); flex: none; }
.x { width: 44px; height: 44px; position: relative; color: var(--ink); margin-right: -10px; }
.x i { position: absolute; left: 11px; right: 11px; top: 21px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.x i + i { transform: rotate(-45deg); }
.x:hover { opacity: .6; }
.sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; display: flex; flex-direction: column; }
.sheet__in { padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; transition: opacity .28s var(--ease), transform .5s var(--out); }
.sheet__in.is-swap { opacity: 0; transform: translateY(12px); }
.vier--s { --s: min(190px, 46vw); margin: -6px 0 2px -8px; }
.sheet__t { font-size: clamp(30px, 3vw, 42px); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; }
.sheet__p { font-size: 19px; color: var(--ink-2); }
.sheet__in .lbl { color: var(--green-d); margin-top: 8px; }
.sheet__ul li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 18px; }
.sheet__ul li:last-child { border-bottom: 1px solid var(--line); }
.sheet__k { font-size: 16px; padding: 14px 16px; background: var(--mist); color: #33423D; }
.sheet__act { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.next { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; text-align: left; padding: 22px clamp(22px, 3vw, 40px); background: var(--fir); color: #EDF3EC; }
.next small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #B9CBC0; }
.next b { font-size: 22px; font-weight: 400; grid-column: 1; }
.next svg { width: 24px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; grid-row: 1 / 3; grid-column: 2; transition: transform .5s var(--ease); }
.next:hover svg { transform: translateX(6px); }

/* ---------- Weg ---------- */
.weg__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.lines { display: grid; gap: 4px; margin-bottom: 34px; }
.lines__g { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); align-items: baseline; border-top: 1px solid rgba(255, 255, 255, .14); padding: 4px 0; }
.lines__g > span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #B9CBC0; font-weight: 500; }
.lines__g div { display: flex; flex-wrap: wrap; gap: 0 4px; }
.lines button { min-width: 48px; min-height: 48px; padding: 4px 8px; font-size: clamp(22px, 2vw, 28px); font-weight: 400; color: #C9D8CE; position: relative; font-variant-numeric: tabular-nums; transition: color .3s; }
.lines button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 2px; background: var(--amber-l); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--out); }
.lines button:hover { color: #fff; }
.lines button[aria-selected="true"] { color: #fff; font-weight: 600; }
.lines button[aria-selected="true"]::after { transform: scaleX(1); }
.lines button:active { transform: scale(.94); }
.steps { display: grid; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); gap: 0 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); align-items: baseline; }
.steps small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #B9CBC0; font-weight: 500; grid-row: 1 / 3; }
.steps b { font-size: clamp(22px, 2.1vw, 30px); font-weight: 400; line-height: 1.15; transition: opacity .3s; }
.steps span { grid-column: 2; color: #B9CBC0; font-size: 16px; transition: opacity .3s; }
.steps.is-swap b, .steps.is-swap li > span:not(.floors) { opacity: 0; }
.steps__last { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.floors { display: flex; gap: 6px; margin-top: 10px; }
.floors span { width: 36px; grid-column: auto; height: 30px; display: grid; place-items: center; font-size: 13px; border: 1px solid rgba(255, 255, 255, .22); color: #B9CBC0; }
.floors .on { background: var(--amber-l); border-color: var(--amber-l); color: var(--fir); font-weight: 600; }
.weg__act { display: flex; flex-wrap: wrap; gap: 4px 34px; margin-top: 28px; }
.weg__map { position: sticky; top: calc(var(--hd) + 3vh); }
.weg__stage { position: relative; width: min(100%, 74vh); margin-left: auto; }
.weg__svg { width: 100%; height: auto; }
.w-b { fill: rgba(255, 255, 255, .065); }
.w-home { fill: #4E8F7B; }
.w-rail, .w-u, .w-tram { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: .9; }
.w-u { stroke: rgba(255, 255, 255, .34); stroke-width: 1.6; }
.w-route { fill: none; stroke: var(--amber-l); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.w-route.is-on { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.5, 0, .2, 1) .15s; }
.w-stop circle { fill: var(--fir); stroke: #C9D8CE; stroke-width: 1.6; transition: fill .4s, stroke .4s; }
.w-stop.is-on circle { fill: var(--amber-l); stroke: var(--amber-l); }
.w-door circle { fill: #fff; }
.w-door .w-door__halo { fill: rgba(255, 255, 255, .16); }
.wl { position: absolute; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: #C9D8CE; transition: color .4s; pointer-events: none; }
.wl.is-on, .wl--door { color: #fff; }
.weg__map figcaption { font-size: 12px; color: #9DB3A7; margin-top: 10px; letter-spacing: .04em; }

/* ---------- Ärztin ---------- */
.arzt__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: center; margin-bottom: clamp(70px, 9vw, 130px); }
.arzt__fig { position: relative; }
.arzt__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-d); font-weight: 500; text-align: center; }
.h2--name small { display: block; font-size: .36em; letter-spacing: 0; color: var(--ink-2); line-height: 1.5; }
.arzt .sh { margin-bottom: 34px; }
.facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); align-items: baseline; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-d); font-weight: 500; }
.facts dd { font-size: 19px; }
.src { font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.besuch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: 30px; counter-reset: b; }
.besuch li { counter-increment: b; border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.besuch li::before { content: "0" counter(b); font-size: 13px; letter-spacing: .12em; color: var(--green-d); font-weight: 500; }
.besuch b { font-size: 24px; font-weight: 500; line-height: 1.15; }
.besuch p { color: var(--ink-2); }

/* ---------- Rückruf ---------- */
.ruf__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.ruf .sh { margin: 0; }
.form { display: grid; gap: 20px; }
.fld { display: grid; gap: 4px; }
.fld span, .slots legend { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: #2F403A; padding: 0; }
.fld input, .fld select { background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; font-size: 21px; width: 100%; appearance: none; -webkit-appearance: none; min-height: 48px; }
.fld select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316201D' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px; }
.fld input:focus-visible, .fld select:focus-visible { outline: 0; border-bottom-width: 2px; padding-bottom: 9px; }
.slots { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.slots div { display: flex; flex-wrap: wrap; gap: 0 22px; }
.slots label { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; min-height: 44px; font-size: 18px; cursor: pointer; }
.slots input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); margin: 0; transition: box-shadow .3s; }
.slots input:checked { background: var(--fir); border-color: var(--fir); box-shadow: 7px 0 0 -1px rgba(23, 51, 44, .32); }
.btn { justify-self: start; background: var(--fir); color: #fff; padding: 18px 30px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; transition: background-color .3s, transform .2s; }
.btn:hover { background: #0F251F; }
.btn:active { transform: scale(.97); }
.form__err { color: #7A2D12; font-weight: 500; }
.form__hint { font-size: 14px; color: #2F403A; }
.ok { display: grid; gap: 14px; justify-items: start; outline: 0; }
.vier--ok { --s: 170px; margin-left: -14px; }
.vier--ok .v { background: rgba(23, 51, 44, .14); animation: okb 1.1s var(--out) backwards; }
.vier--ok .v--r { animation-delay: .08s; } .vier--ok .v--b { animation-delay: .16s; } .vier--ok .v--l { animation-delay: .24s; }
@keyframes okb { from { transform: scale(.1); opacity: 0; } }
.ok p { max-width: 26em; }

/* ---------- Footer ---------- */
.ft { padding: clamp(60px, 7vw, 100px) 0 110px; font-size: 16px; }
.ft__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.ft__logo { display: flex; gap: 14px; align-items: center; }
.ft__mark { width: 64px; height: 64px; flex: none; }
.ft__word { height: 46px; width: auto; }
.ft__c { display: grid; gap: 14px; }
.ft__c a { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.ft__h li { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-variant-numeric: tabular-nums; }
.ft__b { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px 34px; font-size: 13px; color: #9DB3A7; }

/* ---------- Dock, Toast ---------- */
.dock { display: none; }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 80; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 12px 20px; font-size: 15px; opacity: 0; visibility: hidden; transition: opacity .35s, transform .5s var(--out), visibility 0s .5s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); visibility: visible; transition: opacity .35s, transform .5s var(--out); }

/* ---------- Reveal ---------- */
.js .rv:not(.vier):not(.week) { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1.1s var(--out); transition-delay: calc(var(--d, 0) * 80ms); }
.js .rv.rv-in:not(.vier):not(.week) { opacity: 1; transform: none; }

/* ---------- Tablet / Handy ---------- */
@media (max-width: 1080px) {
  .hd__nav { display: none; }
  .burger { display: block; }
  .zeiten__grid, .leist__grid, .weg__grid, .arzt__grid, .ruf__grid { grid-template-columns: minmax(0, 1fr); }
  .leist__fig { position: static; width: 100%; max-width: 420px; margin: 0 auto; }
  .weg__map { position: static; }
  .arzt__fig { width: 100%; max-width: 360px; }
  .ft__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --hd: 68px; }
  body { font-size: 17px; }
  .hd { gap: 10px; }
  .hd__mark { width: 46px; height: 46px; }
  .hd__word { height: 34px; }
  .hd__tel { display: none; }
  .hd__r { gap: 6px; }
  .hero { grid-template-rows: auto 300px auto; min-height: 0; }
  .hero::after { display: none; }
  .plan { --u: .54px; --px: 50vw; --py: calc(100% - 222px); }
  .hero__copy { max-width: none; padding-top: 22px; padding-bottom: 46px; gap: 13px; align-self: start; background: linear-gradient(#fff 84%, rgba(255, 255, 255, 0)); }
  .kick { font-size: 11px; letter-spacing: .13em; gap: 4px 12px; }
  .kick span + span::before { margin-right: 12px; }
  .hero__h { font-size: clamp(64px, 21.5vw, 104px); }
  .hero__lead { font-size: 17px; max-width: 20em; }
  .hero__act { gap: 0 26px; }
  .hero__act .lnk span { display: none; }
  .hero__act .lnk + .lnk span { display: inline; }
  .hero__strip { grid-row: 3; padding: 14px var(--pad) 20px; font-size: 13px; gap: 6px 20px; background: #fff; }
  .hero__strip p { display: none; }
  .near { gap: 2px 14px; justify-content: space-between; width: 100%; }
  .near li { display: grid; gap: 0; }
  .pl--prager, .pl--bruenner { display: none; }
  .pl { font-size: 10px; }
  .week { --c1: 96px; --c3: 72px; }
  .wk { gap: 10px; padding: 14px 0; }
  .wk__t small { display: none; }
  .leist__fig { max-width: 300px; }
  .ll button { grid-template-columns: 2em minmax(0, 1fr) auto; }
  .ll span { font-size: 16px; }
  .sheet__panel { top: auto; left: 0; width: 100%; max-height: 92svh; transform: translateY(102%); border-radius: 0; }
  .lines__g { grid-template-columns: minmax(0, 1fr); padding: 10px 0 2px; }
  .lines__g div { margin-left: -8px; }
  .steps li { grid-template-columns: 6.4em minmax(0, 1fr); }
  .weg__grid { gap: 0; }
  .weg__l { display: contents; }
  .lines { order: 1; }
  .weg__map { order: 2; margin: 0 calc(var(--pad) * -1) 26px; }
  .steps { order: 3; }
  .weg__act { order: 4; }
  .weg__stage { width: 100%; }
  .weg__map figcaption { padding: 0 var(--pad); }
  .besuch { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ft__grid { grid-template-columns: minmax(0, 1fr); }
  .ft__word { height: 38px; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; background: var(--fir); color: #fff; padding-bottom: env(safe-area-inset-bottom); transform: translateY(105%); transition: transform .6s var(--out); }
  .dock.is-on { transform: none; }
  .dock a { padding: 17px 10px; text-align: center; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
  .dock a + a { border-left: 1px solid rgba(255, 255, 255, .16); }
  .dock a:active { background: #0F251F; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .vier.rv .v { opacity: 1 !important; }
  .w-route.is-on { stroke-dashoffset: 0; }
}

/* Plan-Beschriftung im Nahbereich */
.wl--spitz { transform: translate(calc(-100% - 14px), -50%); }
.wl--u6 { transform: translate(15px, -50%); }
.wl--bahnhof { transform: translate(calc(-100% - 14px), -50%); }
.wl--door { transform: translate(18px, -170%); }
