/* ==========================================================================
   Backenzahn Bartel — fictional dental practice demo (Bartel Media)
   Direction B "Klinisch-klar": white, ice blue, graphite, coral, Swiss grid
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-200-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-200-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --ice: #EAF2FB;
  --ice-2: #F4F8FC;
  --ink: #111820;
  --ink-2: #1E2833;
  --blue: #1F5FBF;
  --blue-strong: #174A96;
  --coral: #E2553F;
  --coral-text: #B33A27;
  --coral-soft: #FCEBE7;
  --line: #DCE3EC;
  --line-strong: #111820;
  --muted: #55606D;
  --ok: #1C6B3F; --ok-bg: #E3F3E9;
  --warn-bg: #FFF3D1;
  --stop: #A3261B; --stop-bg: #FCE6E2;

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", system-ui, sans-serif;

  --r: 4px;
  --r-lg: 8px;
  --shadow: 0 1px 0 rgba(17, 24, 32, .04), 0 18px 40px -24px rgba(17, 24, 32, .25);
  --container: 80rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 4.5rem;
}

html[data-font="1"] { font-size: 112.5%; }
html[data-font="2"] { font-size: 125%; }
html[data-readable="true"] { --font-body: "Atkinson Hyperlegible", system-ui, sans-serif; --font-display: "Atkinson Hyperlegible", system-ui, sans-serif; }
html[data-contrast="true"] { --ice: #E4ECF6; --ice-2: #F0F4F9; --ink: #000; --ink-2: #000; --muted: #1F1F1F; --blue: #0B3F8C; --blue-strong: #0B3F8C; --line: #3A3A3A; --coral-text: #7A2E0C; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); max-width: 22ch; }
h3 { font-size: 1.4rem; letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.7); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--r); }
.skip-link:focus { top: 1rem; }

/* ---------- Demo bar & header ---------- */
.demo-bar { background: var(--ice); color: var(--ink); font-size: .875rem; padding: .5rem var(--gutter); border-bottom: 1px solid var(--line); }
.demo-tag { display: inline-block; background: var(--coral); color: #fff; padding: 0 .5rem; margin-right: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { width: min(100% - 2 * var(--gutter), 90rem); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: .78rem; color: var(--muted); }
.main-nav ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; white-space: nowrap; }
.main-nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 999px; border: 1px solid transparent; background: transparent; overflow: hidden; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.main-nav a::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .38rem; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--ice); border-color: var(--line); color: var(--ink); transform: translateY(-1px); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.main-nav a[aria-current="true"] { background: var(--ice); border-color: var(--line); font-weight: 700; }
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: var(--r); font-size: .82rem; font-weight: 600; background: var(--ice); color: var(--ink); white-space: nowrap; }
.status-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted); }
.status-pill.is-open { background: var(--ok-bg); color: var(--ok); }
.status-pill.is-open .status-dot { background: #2E9E5B; animation: pulse 2.4s infinite; }
.status-pill.is-closed { background: var(--stop-bg); color: var(--stop); }
.status-pill.is-closed .status-dot { background: var(--stop); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,158,91,.45); } 70% { box-shadow: 0 0 0 .5rem rgba(46,158,91,0); } 100% { box-shadow: 0 0 0 0 rgba(46,158,91,0); } }
.icon-btn { width: 2.75rem; height: 2.75rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; transition: border-color .2s, background .2s; }
.icon-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); }
.icon-btn[aria-expanded="true"] svg { stroke: #fff; }
.menu-btn { display: none; }
.a11y-panel { border-top: 1px solid var(--line); background: var(--ice-2); }
.a11y-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1rem; }
.a11y-inner fieldset { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: .75rem; }
.a11y-inner legend { float: left; font-weight: 600; margin-right: .75rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); padding: .2rem; gap: .2rem; background: #fff; }
.seg button { min-width: 2.75rem; min-height: 2.6rem; border: 0; border-radius: 3px; background: transparent; font-weight: 700; }
.seg .seg-m { font-size: 1.15em; } .seg .seg-l { font-size: 1.35em; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; cursor: pointer; min-height: 2.75rem; }
.switch input { appearance: none; width: 2.8rem; height: 1.6rem; border-radius: 999px; background: #C5CDD8; position: relative; transition: background .2s; margin: 0; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(1.2rem); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.4rem; border-radius: var(--r); border: 1px solid transparent; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background .2s, color .2s, border-color .2s; position: relative; overflow: hidden; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-small { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-primary { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-primary:hover:not(:disabled) { background: #C9452F; border-color: #C9452F; color: #fff; transform: translateY(-1px); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ice); color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.link-btn { background: none; border: 0; padding: .5rem 0; color: inherit; text-decoration: underline; text-underline-offset: .2em; min-height: 2.75rem; }

/* ---------- Common ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 7.5rem); }
.section-ice { background: var(--ice-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: .9rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .75rem; }
.eyebrow .num { color: var(--coral); font-variant-numeric: tabular-nums; }
.eyebrow .num::after { content: "—"; margin-left: .75rem; color: var(--line-strong); }
.eyebrow-light { color: rgba(255,255,255,.7); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.card-dark { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.fineprint { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 36rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.25rem; height: 1.25rem; border-radius: 2px; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5FBF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / .8rem no-repeat; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 4vw, 5rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; }
.kicker { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker-num { color: var(--blue); }
.hero-title { font-size: clamp(2.8rem, 1.2rem + 5.4vw, 6rem); line-height: .98; letter-spacing: -0.04em; font-weight: 750; }
.hero-title .line { display: inline-block; }
.hero-title .accent { color: var(--coral); }
.quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-top: .5rem; }
.quick { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1rem 1.1rem 0; margin-right: 1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; transition: color .2s; }
.quick::after { content: ""; position: absolute; left: 0; right: 1rem; bottom: -1px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.quick:hover::after, .quick:focus-visible::after { transform: scaleX(1); }
.quick-num { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.quick strong { font-size: 1.05rem; font-family: var(--font-display); letter-spacing: -0.01em; }
.quick span:last-child { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.hero-visual { position: relative; }
.hero-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1.08; background: var(--ice); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 84% 50%; will-change: transform; }
.hero-chip { position: absolute; left: -1.25rem; bottom: 1.5rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: var(--r); padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .1rem; }
.chip-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hero-chip strong { font-size: 1.1rem; font-family: var(--font-display); }
.chip-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
.stats-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.75rem, .5rem + .8vw, 1.25rem); margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); margin-bottom: clamp(2rem, 1.25rem + 2vw, 3.25rem); }
.stat { position: relative; padding: 1.35rem 1.25rem 1.25rem; background: rgba(31, 95, 191, .06); border: 1px solid rgba(31, 95, 191, .10); border-radius: 1rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; transition: background .25s, border-color .25s; }
.stat:hover { background: rgba(31, 95, 191, .09); border-color: rgba(31, 95, 191, .18); }
.stat-icon { position: absolute; top: 1rem; right: 1rem; width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; padding-right: 1.75rem; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Ticker ---------- */
.tooth-divider { display: flex; align-items: center; gap: clamp(.75rem, .5rem + 1vw, 1.5rem); padding-block: clamp(1rem, .5rem + 1.5vw, 2rem); }
.td-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(31, 95, 191, .28)); }
.td-line:last-child { background: linear-gradient(90deg, rgba(31, 95, 191, .28), transparent); }
.td-row { display: flex; align-items: flex-end; gap: clamp(.2rem, .1rem + .4vw, .45rem); }
.td-tooth { fill: #fff; stroke: #5B85C6; stroke-width: 1.6; stroke-linejoin: round; transition: transform .25s, stroke .25s; }
.td-lg { width: 1.7rem; height: 1.7rem; }
.td-md { width: 1.45rem; height: 1.45rem; }
.td-sm { width: 1.25rem; height: 1.25rem; }
.td-tooth.is-mark { fill: var(--coral); stroke: var(--coral-text); }
.td-mid { width: 1px; height: 2rem; margin-inline: .3rem; background: rgba(31, 95, 191, .3); align-self: center; }
.td-tooth:hover { transform: translateY(-3px); stroke: var(--blue); }

/* ---------- Benefits ---------- */
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.benefit { background: #fff; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; transition: background .25s; }
.benefit:hover { background: var(--ice-2); }
.benefit svg { width: 2rem; height: 2rem; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .4rem; }
.benefit h3 { font-size: 1.2rem; }
.benefit p { color: var(--muted); font-size: .97rem; }
.benefit-dog svg { stroke: var(--coral); }
.benefit-dog { background: var(--coral-soft); }

/* ---------- Molar ---------- */
.molar-story { padding-block: clamp(3rem, 2rem + 4vw, 6rem); background: var(--ink); color: #fff; overflow: hidden; }
.molar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.molar-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.molar-copy .eyebrow .num { color: var(--coral); }
.molar-copy .eyebrow .num::after { color: rgba(255,255,255,.4); }
.molar-hint { font-size: .95rem; }
.layer-list { display: flex; flex-direction: column; gap: .6rem; }
.layer-btn { display: flex; gap: .9rem; align-items: flex-start; text-align: left; width: 100%; padding: 1rem 1.2rem; border-radius: var(--r); border: 0; background: rgba(255,255,255,.06); border-left: 3px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.5; transition: background .35s, border-color .35s, transform .35s; }
.layer-btn strong { color: #fff; }
.layer-btn:hover { background: rgba(255,255,255,.1); transform: translateX(4px); }
.layer-btn[aria-pressed="true"] { background: rgba(255,255,255,.14); border-left-color: var(--coral); }
.layer-dot { flex: none; width: .75rem; height: .75rem; border-radius: 50%; margin-top: .45rem; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.layer-dot-schmelz { background: #8DB8F2; } .layer-dot-dentin { background: #4A8FE8; } .layer-dot-pulpa { background: var(--coral); }
.molar-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.molar-frame { position: relative; width: min(100%, 28rem); aspect-ratio: 1060 / 1484; }
.molar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%); }
.molar-img.is-current { opacity: 1; }
.no-js .molar-img[data-molar-img="overview"] { opacity: 1; }
.molar-caption { display: flex; flex-direction: column; align-items: center; gap: .1rem; text-align: center; }
.molar-caption-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.molar-caption strong { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }

/* ---------- Tooth map ---------- */
.schema-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.schema-copy { display: flex; flex-direction: column; gap: 1.1rem; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.result { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--ice-2); border: 1px solid var(--line); transition: background .3s; }
.result > div { display: flex; flex-direction: column; gap: .15rem; }
.result span:not(.result-dot) { color: var(--muted); font-size: .95rem; }
.result-dot { flex: none; width: .9rem; height: .9rem; border-radius: 50%; margin-top: .35rem; background: #C5CDD8; }
.result[data-level="high"] { background: var(--stop-bg); border-color: #F2B8B1; }
.result[data-level="high"] .result-dot { background: var(--stop); }
.result[data-level="mid"] { background: var(--warn-bg); border-color: #F0D68E; }
.result[data-level="mid"] .result-dot { background: #D39A12; }
.result[data-level="low"] { background: var(--ok-bg); border-color: #B8E0C6; }
.result[data-level="low"] .result-dot { background: #2E9E5B; }
.schema-visual { display: flex; flex-direction: column; gap: .6rem; }
.schema-visual.card { background: rgba(31, 95, 191, .06); border-color: rgba(31, 95, 191, .12); border-radius: 1rem; }
.tooth-map { width: 100%; height: auto; overflow: visible; }
.tooth-map .jaw-label { font: 700 14px var(--font-body); letter-spacing: .18em; fill: var(--muted); }
.tooth-map .side-label { font: 700 13px var(--font-body); fill: var(--muted); }
.tooth { cursor: pointer; outline: none; }
.tooth .crown { fill: #fff; stroke: #5B85C6; stroke-width: 1.8; transition: fill .2s, stroke .2s, transform .25s; transform-box: fill-box; transform-origin: center; }
.tooth .num { font: 600 14px var(--font-body); fill: var(--muted); pointer-events: none; }
.tooth:hover .crown { fill: var(--ice); stroke: var(--blue); }
.tooth:focus-visible .crown { stroke: var(--coral); stroke-width: 3; }
.tooth.is-selected .crown { fill: var(--coral); stroke: var(--coral-text); transform: scale(1.12); }
.tooth.is-selected .num { fill: var(--coral-text); font-weight: 800; }
.tooth-select { margin-top: .25rem; }
.map-legend { text-align: center; font-size: .8rem; color: var(--muted); }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; min-height: 3rem; padding: .7rem .9rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 5rem; resize: vertical; }
.field input[type="file"] { padding: .55rem .9rem; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--stop); box-shadow: 0 0 0 3px rgba(163,38,27,.15); }
.field .err { color: var(--stop); font-weight: 600; font-size: .85rem; }
.field-inline { flex-direction: row; align-items: center; gap: .6rem; }
.field-inline select { width: auto; min-height: 2.6rem; padding-block: .4rem; }
.checks { display: flex; flex-direction: column; gap: .3rem; border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 600; margin-bottom: .3rem; }
.check { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; cursor: pointer; font-weight: 500; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--blue); flex: none; margin: 0; }
.inline-radios { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.inline-radios legend { font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.error { font-weight: 600; font-size: .9rem; color: var(--stop); }
.form-msg { font-weight: 600; color: var(--ok); }
.form-msg:empty { display: none; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.card-dark .summary dt { color: rgba(255,255,255,.7); }

/* ---------- Calendar + booking ---------- */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem; align-items: start; }
.calendar { display: flex; flex-direction: column; gap: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cal-head h3 { font-size: 1.5rem; }
.cal-filters { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.cal-weekdays span { text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: .2rem; }
.cal-cell { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s, transform .15s; padding: 0; }
.cal-cell:disabled { color: #B7BFCA; background: var(--ice-2); cursor: not-allowed; }
.cal-cell.is-other { visibility: hidden; }
.cal-cell:not(:disabled):hover { border-color: var(--ink); transform: translateY(-1px); }
.cal-cell.is-today { border-color: var(--blue); }
.cal-cell[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-cell .dot { width: .4rem; height: .4rem; border-radius: 50%; }
.dot-many { background: #2E9E5B; } .dot-few { background: #D39A12; } .dot-none { background: #C5CDD8; }
.cal-cell[aria-pressed="true"] .dot { outline: 2px solid rgba(255,255,255,.6); }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .8rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend .dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; }
.cal-day { border-top: 1px solid var(--line); padding-top: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.slot { min-height: 2.9rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; padding: .3rem; transition: background .2s, color .2s, border-color .2s; }
.slot small { font-weight: 500; font-size: .72rem; color: var(--muted); }
.slot:hover { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.slot[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.slot-none { color: var(--muted); font-size: .95rem; }
.booking { display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.booking-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.booking-head h3 { font-size: 1.5rem; }
.step-count { white-space: nowrap; font-size: .85rem; color: rgba(255,255,255,.7); }
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
.progress span { height: .3rem; border-radius: 2px; background: rgba(255,255,255,.18); transition: background .35s; }
.progress span.is-done { background: var(--coral); }
.step { display: flex; flex-direction: column; gap: .9rem; }
.step h4 { font-size: 1.05rem; color: rgba(255,255,255,.85); }
.chosen-slot { padding: .9rem 1rem; border-radius: var(--r); background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.chosen-slot.is-set { border-style: solid; border-color: var(--coral); }
.chosen-slot small { display: block; font-weight: 500; color: rgba(255,255,255,.7); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 3rem; padding: .7rem .9rem; border-radius: var(--r); border: 1px solid rgba(255,255,255,.25); font-weight: 600; font-size: .95rem; transition: background .2s, border-color .2s, color .2s; }
.opt input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.booking .field input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }
.booking .field input::placeholder { color: rgba(255,255,255,.5); }
.booking .field input[aria-invalid="true"] { border-color: #FF9C8F; box-shadow: 0 0 0 3px rgba(255,156,143,.25); }
.booking .field .err, .booking .error { color: #FFB4A8; }
.booking .check input { accent-color: var(--coral); }
.note { font-size: .82rem; color: rgba(255,255,255,.65); }
.booking-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: .3rem; }
.booking-nav [data-next] { margin-left: auto; }
.step-done p { color: rgba(255,255,255,.85); }

.requests { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.req-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.req-head h3 { font-size: 1.5rem; }
.tabs { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .25rem; border-radius: var(--r); background: var(--ice); }
.tabs button { min-height: 2.6rem; padding-inline: 1.2rem; border: 0; border-radius: 3px; background: transparent; font-weight: 700; color: var(--ink); transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; align-items: start; }
.field-wide, .form-foot { grid-column: 1 / -1; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.file-preview { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }

/* ---------- Portal ---------- */
.portal { display: flex; flex-direction: column; gap: 1.5rem; }
.portal-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.portal-login-copy { display: flex; flex-direction: column; gap: .8rem; }
.demo-creds { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; padding: 1rem 1.2rem; background: var(--ice-2); border-left: 3px solid var(--blue); font-size: .95rem; }
.demo-creds dt { color: var(--muted); }
.demo-creds dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.portal-form { display: flex; flex-direction: column; gap: .9rem; }
.portal-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.portal-top strong { font-family: var(--font-display); font-size: 1.15rem; }
.portal-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.portal-tabs button { min-height: 2.9rem; padding: .5rem 1.1rem; border: 0; border-bottom: 2px solid transparent; background: transparent; font-weight: 700; color: var(--muted); white-space: nowrap; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.portal-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.portal-panel { display: flex; flex-direction: column; gap: 1rem; padding-top: .5rem; }
.appt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.appt-list li { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.appt-list li.is-next { border-left: 4px solid var(--coral); }
.appt-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.appt-past li { background: var(--ice-2); }
.appt-empty { color: var(--muted); padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: var(--r); }
.bonus-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; }
.stamp { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; font-weight: 700; font-variant-numeric: tabular-nums; background: #fff; position: relative; }
.stamp small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.stamp.is-stamped { border-color: var(--blue); background: var(--ice-2); }
.stamp.is-stamped::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: var(--blue); opacity: .18; transform: rotate(-12deg); }
.stamp.is-gap { border-style: dashed; color: var(--muted); }
.stamp.is-new { animation: stampIn .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stampIn { from { transform: scale(1.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.doc-list li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--r); }
.doc-list li div { display: flex; flex-direction: column; }
.doc-icon { width: 3rem; height: 3rem; border-radius: var(--r); background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; letter-spacing: .05em; }
.recall-form { display: flex; flex-direction: column; gap: 1rem; }
.recall-next { padding: .9rem 1rem; background: var(--ice-2); border-left: 3px solid var(--blue); font-weight: 600; }
.recall-next:empty { display: none; }

/* ---------- Anamnese ---------- */
.anamnese-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.anamnese-grid > div { display: flex; flex-direction: column; gap: 1rem; }
.anamnese { display: flex; flex-direction: column; gap: 1.1rem; }
.an-progress { height: .3rem; background: var(--ice); border-radius: 2px; overflow: hidden; }
.an-progress span { display: block; height: 100%; width: 16%; background: var(--coral); transition: width .4s ease; }
.an-step { display: flex; flex-direction: column; gap: .9rem; }
.an-step h3 { font-size: 1.25rem; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale span { display: grid; place-items: center; min-height: 3rem; border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; }
.scale input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.scale input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.scale-legend { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 500; color: var(--muted); }
.an-nav { display: flex; justify-content: space-between; gap: .6rem; }
.an-nav [data-an-next], .an-nav [data-an-print] { margin-left: auto; }

/* ---------- Insurance ---------- */
.kasse-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.kasse-copy { display: flex; flex-direction: column; gap: 1.3rem; }
.toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .25rem; max-width: 30rem; position: relative; }
.toggle button { position: relative; z-index: 1; min-height: 2.9rem; border: 0; border-radius: 3px; background: transparent; font-weight: 700; transition: color .3s; }
.toggle button[aria-checked="true"] { color: #fff; }
.toggle::before { content: ""; position: absolute; top: .25rem; bottom: .25rem; left: .25rem; width: calc(50% - .25rem); border-radius: 3px; background: var(--ink); transition: transform .35s cubic-bezier(.6,.1,.2,1); }
.toggle[data-state="pkv"]::before { transform: translateX(100%); }
.ins-panel { display: flex; flex-direction: column; gap: 1.2rem; }
.calc { display: flex; flex-direction: column; gap: 1rem; background: rgba(31, 95, 191, .05); border-color: rgba(31, 95, 191, .18); }
.bonus { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.bonus legend { font-weight: 600; margin-bottom: .2rem; width: 100%; }
.bar { height: .7rem; border-radius: 2px; background: var(--ice); overflow: hidden; }
.bar span { display: block; height: 100%; width: 60%; background: var(--blue); transition: width .6s cubic-bezier(.6,.1,.2,1); }
.calc-rows { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.calc-rows div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .35rem; border-bottom: 1px solid var(--line); }
.calc-rows dt { color: var(--muted); }
.calc-rows dd { margin: 0; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.calc-total dt, .calc-total dd { color: var(--ink); font-size: 1.15rem; }
.kasse-visual { margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.kasse-visual img { border-radius: var(--r-lg); aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 58% 50%; width: 100%; }
.kasse-visual figcaption { font-size: .9rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: #fff; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; text-align: left; border: 0; min-height: 15rem; transition: background .25s; }
.service:hover { background: var(--ice-2); }
.service .num { font-size: .75rem; color: var(--coral); font-weight: 700; font-variant-numeric: tabular-nums; }
.service h3 { font-size: 1.2rem; }
.service p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.service .more { font-weight: 700; font-size: .9rem; color: var(--blue); display: inline-flex; align-items: center; gap: .3rem; }
.service-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.service-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.service-photo figcaption { font-size: .9rem; color: var(--muted); padding-top: .6rem; }
.service-dialog h2 { font-size: 1.8rem; }
.service-dialog .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: var(--muted); }
.service-dialog ol { padding-left: 1.2rem; display: grid; gap: .4rem; margin: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: .55rem; top: .5rem; width: 2px; height: var(--tl-progress, 0%); background: var(--coral); transition: height .1s linear; }
.tl-step { display: grid; grid-template-columns: 1.2rem 1fr; gap: 1.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.tl-dot { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin-top: .25rem; position: relative; z-index: 1; transition: border-color .3s, background .3s, transform .3s; }
.tl-step.is-active .tl-dot { border-color: var(--coral); background: var(--coral); transform: scale(1.2); }
.tl-step > div { display: grid; grid-template-columns: 7rem 1fr; gap: .3rem 2rem; align-items: baseline; }
.tl-step h3 { font-size: 1.35rem; }
.tl-step p { grid-column: 2; color: var(--muted); max-width: 46rem; }
.tl-time { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Team ---------- */
.team-filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.team-filter button { min-height: 2.6rem; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-weight: 600; font-size: .9rem; }
.team-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.team-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.person { display: flex; flex-direction: column; gap: .6rem; transition: opacity .3s, transform .3s; }
.person.is-hidden { display: none; }
.person figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ice); }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .6s ease; }
.person:hover img { transform: scale(1.04); }
.person-quote { position: absolute; inset: auto 0 0 0; padding: 1rem; background: linear-gradient(to top, rgba(17,24,32,.85), rgba(17,24,32,0)); color: #fff; font-size: .9rem; line-height: 1.4; transform: translateY(100%); transition: transform .35s ease; }
.person:hover .person-quote, .person:focus-within .person-quote { transform: none; }
.person h3 { font-size: 1.15rem; }
.person .role { font-size: .85rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.person p { color: var(--muted); font-size: .95rem; }
.person-dog .role { color: var(--coral-text); }

/* ---------- Hours & contact ---------- */
.hours-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.hours-col { display: flex; flex-direction: column; gap: 1.5rem; }
.hours { display: flex; flex-direction: column; gap: 1rem; }
.status-line { font-weight: 700; font-size: 1.1rem; }
.status-line.is-open { color: var(--ok); }
.status-line.is-closed { color: var(--stop); }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours-table td { text-align: right; }
.hours-table tr.is-today th, .hours-table tr.is-today td { background: var(--ice); font-weight: 700; }
.today-tag { display: inline-block; margin-left: .5rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: var(--coral); color: #fff; border-radius: 2px; padding: .1rem .45rem; vertical-align: middle; }
.contact { display: flex; flex-direction: column; gap: 1.5rem; }

/* ---------- Procedural city map card (generated in script.js, seeded/deterministic) ---------- */
.map-card { position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
.map-frame { position: relative; border-radius: 16px; overflow: visible; background: var(--ice-2); aspect-ratio: 640 / 420; min-height: 320px; }
.map-fallback, .map-zoomable { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map-fallback { display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: 1.5rem; background: var(--ice); }
.map-fallback-kicker { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin: 0; }
.map-fallback address, .map-fallback p { margin: 0; font-style: normal; }
.map-zoomable { transform: scale(var(--map-zoom, 1)); transform-origin: 50% 50%; transition: transform .25s ease; background: #fff; }
.city-map { width: 100%; height: 100%; display: block; }
.map-markers { position: absolute; inset: 0; pointer-events: none; }
.map-marker { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; min-width: 2.75rem; min-height: 2.75rem; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; }
.map-marker-dot { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(17,24,32,.25); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; }
.map-marker[data-marker="practice"] .map-marker-dot { background: var(--coral); width: 2.2rem; height: 2.2rem; font-size: 1.1rem; position: relative; }
.map-marker[data-marker="practice"] .map-marker-ring { position: absolute; inset: -.5rem; border-radius: 50%; border: 2px solid var(--coral); animation: mapPulse 2.2s ease-out infinite; }
html[data-calm="true"] .map-marker-ring { animation: none; opacity: .5; }
@media (prefers-reduced-motion: reduce) { .map-marker-ring { animation: none; opacity: .5; } }
@keyframes mapPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.map-marker-label { position: absolute; top: calc(100% + .35rem); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .2rem .55rem; font-size: .78rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); }
.map-zoom-controls { position: absolute; right: 1.6rem; top: 1.6rem; display: flex; flex-direction: column; gap: .35rem; z-index: 3; }
.map-zoom-controls button { width: 2.5rem; height: 2.5rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-size: 1.2rem; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
.map-popover { position: absolute; z-index: 4; max-width: 15rem; background: var(--ink); color: #fff; border-radius: var(--r); padding: .65rem .8rem; font-size: .85rem; box-shadow: var(--shadow); }
.map-popover::after { content: ""; position: absolute; bottom: -6px; left: 1.2rem; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.map-popover strong { display: block; margin-bottom: .15rem; }
.map-label { font: 600 10.5px var(--font-body); fill: var(--muted); opacity: .8; pointer-events: none; }
.map-route-bg { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; }
.map-route { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map-compass-n { font: 700 10px var(--font-body); fill: var(--ink); }
.map-panel { display: flex; flex-direction: column; gap: .8rem; }
.eyebrow-mini { margin: 0; font-size: .78rem; color: var(--blue); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.map-panel address { font-style: normal; }
.map-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.btn-copy { min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.btn-copy:hover { border-color: var(--ink); }
.copy-confirm { color: var(--ok); font-weight: 700; font-size: .85rem; }
.phone-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(31, 95, 191, .08); border: 1px solid rgba(31, 95, 191, .16); color: var(--blue-strong); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s; }
.phone-chip:hover { background: rgba(31, 95, 191, .14); border-color: rgba(31, 95, 191, .3); }
.phone-chip:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.phone-chip svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone-chip-tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; background: #fff; color: var(--muted); }
.fact-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fact-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--ice); border-radius: var(--r); padding: .45rem .7rem; font-size: .85rem; font-weight: 600; }
.fact-chip svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.route-block { border-top: 1px solid var(--line); padding-top: 1rem; }
.route-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.route-tabs [role="tab"] { min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.route-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-route-panel] p { margin: 0; }
.contact-photo-card { margin: 0; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; }
.contact-photo-card img { width: 100%; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 12%; }
.contact-photo-card figcaption { font-size: .85rem; color: var(--muted); }
html[data-contrast="true"] .map-marker-dot { border-width: 3px; }
html[data-contrast="true"] .fact-chip { border: 1px solid var(--line-strong); }

/* ---------- Footer, float CTA, dialogs ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 6rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.footer-col h3 { font-size: .85rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col address, .footer-col p { margin: 0 0 .55rem; font-style: normal; }
.footer-brand-col { display: flex; flex-direction: column; gap: .9rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer-brand .brand-mark { width: 2.2rem; height: 2.2rem; background: #fff; border-radius: 50%; padding: .3rem; }
.footer-claim { color: rgba(255,255,255,.65); line-height: 1.5; max-width: 22rem; }
.footer-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: rgba(255,255,255,.85); }
.footer-status .status-dot { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255,255,255,.4); }
.footer-status.is-open .status-dot { background: #2E9E5B; }
.footer-status.is-closed .status-dot { background: var(--coral); }
.footer-bottom { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.credit-legal { margin: 0; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer .link-btn { color: rgba(255,255,255,.75); }
.site-footer .link-btn:hover { color: #fff; }
.site-footer .credit { margin: 0; }
.site-footer .credit a { color: rgba(255,255,255,.85); }
.site-footer .credit a:hover { color: #fff; }
.float-cta { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; box-shadow: 0 14px 30px -12px rgba(17,24,32,.6); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity .3s, transform .3s; }
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
dialog.legal { max-width: 38rem; width: calc(100% - 2rem); border: 0; border-radius: var(--r-lg); padding: 2rem; color: var(--ink); background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
dialog.legal::backdrop { background: rgba(17,24,32,.5); backdrop-filter: blur(3px); }
dialog.legal > * + *, dialog.legal > div > * + * { margin-top: 1rem; }
dialog.legal h2 { font-size: 1.8rem; }
dialog.demo-call { max-width: 34rem; text-align: left; padding: 2.25rem 2rem 2rem; }
dialog.demo-call::backdrop { background: rgba(234, 242, 251, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.demo-call[open] { animation: demo-call-in .28s ease-out; }
.demo-call-badge { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--coral-soft); }
.demo-call-badge svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--coral-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
dialog.demo-call .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
dialog.demo-call .btn-row form { margin: 0; }
.btn-icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-left: .35rem; vertical-align: -.15em; }
@keyframes demo-call-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.demo-call[open] { animation: none; } }
html[data-calm="true"] dialog.demo-call[open] { animation: none; }
.doc-sheet { border: 1px solid var(--line); padding: 1.2rem; font-size: .95rem; background: var(--ice-2); }
.doc-sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc-sheet td { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.doc-sheet td:last-child { text-align: right; font-weight: 600; }
.xray { aspect-ratio: 16 / 7; background: radial-gradient(ellipse at 50% 30%, #3A4A5E, #0E141B 70%); border-radius: var(--r); display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: .9rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }

/* ---------- Responsive ---------- */
@media (max-width: 1560px) { .main-nav { display: none; } .menu-btn { display: inline-grid; } }
@media (max-width: 1900px) {
  html[data-font="1"] .main-nav, html[data-font="2"] .main-nav { display: none; }
  html[data-font="1"] .menu-btn, html[data-font="2"] .menu-btn { display: inline-grid; }
}
.main-nav.is-open { display: block !important; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; }
.main-nav.is-open ul { flex-direction: column; gap: .35rem; }
.main-nav.is-open a { display: flex; padding: .9rem 1.1rem; font-size: 1.1rem; border-radius: var(--r); background: var(--ice-2); border-color: var(--line); }
.main-nav.is-open a::after { left: 1.1rem; right: 1.1rem; }
@media (max-width: 1100px) {
  .hide-md { display: none; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-font="2"] .status-pill [data-open-text] { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .molar-grid, .schema-grid, .booking-layout, .kasse-grid, .hours-grid, .anamnese-grid, .portal-login { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 34rem; width: 100%; margin-inline: auto; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
  .hero-chip { position: relative; left: auto; bottom: auto; width: fit-content; margin: -1.5rem auto 0; }
  .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking { position: static; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kasse-visual img { aspect-ratio: 16 / 11; }
  .tl-step > div { grid-template-columns: minmax(0, 1fr); }
  .tl-step p { grid-column: 1; }
}
@media (max-width: 640px) {
  .td-lg { width: .95rem; height: .95rem; } .td-md { width: .82rem; height: .82rem; } .td-sm { width: .72rem; height: .72rem; }
  .td-row { gap: .12rem; } .td-mid { margin-inline: .15rem; height: 1.1rem; } .tooth-divider { gap: .5rem; }
  body { font-size: 1rem; }
  .hide-sm { display: none; }
  .status-pill { font-size: .75rem; padding: .35rem .6rem; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 2.1rem; height: 2.1rem; }
  .header-inner { gap: .5rem; }
  .quick-row { grid-template-columns: minmax(0, 1fr); }
  .quick { margin-right: 0; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:last-child { grid-column: 1 / -1; }
  .benefit-grid, .services { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: 0; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .option-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .summary dd { margin-bottom: .5rem; }
  .a11y-inner { flex-direction: column; align-items: flex-start; }
  .float-cta { left: 1rem; right: 1rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .molar-frame { width: min(100%, 20rem); }
  .toggle button { font-size: .9rem; padding-inline: .4rem; }
  .card { padding: 1.25rem; }
  .hours-table th, .hours-table td { padding: .6rem .5rem; font-size: .95rem; }
  .booking-head { flex-wrap: wrap; }
  .cal-head { flex-wrap: nowrap; }
  .cal-head h3 { font-size: 1.2rem; text-align: center; }
  .appt-list li, .doc-list li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .cal-cell { font-size: .9rem; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) { .status-pill [data-open-text] { display: none; } .status-pill { padding: .55rem; } }

/* ---------- Reduced motion / calm ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .timeline::after { height: 100%; }
  .tl-dot { border-color: var(--coral); }
}
html[data-calm="true"] { scroll-behavior: auto; }
html[data-calm="true"] *, html[data-calm="true"] *::before, html[data-calm="true"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
html[data-calm="true"].js .reveal { opacity: 1; transform: none; }
html[data-calm="true"] .timeline::after { height: 100%; }

/* ---------- Print (Anamnese) ---------- */
@media print {
  body * { visibility: hidden; }
  .print-sheet, .print-sheet * { visibility: visible; }
  .print-sheet { position: absolute; left: 0; top: 0; width: 100%; padding: 2rem; font-size: 12pt; }
  .print-sheet h1 { font-size: 20pt; margin-bottom: 1rem; }
  .print-sheet dl { display: grid; grid-template-columns: 12rem 1fr; gap: .4rem 1rem; }
  .print-sheet dd { margin: 0; }
}
