/* =========================================================
   Zahnarztpraxis Dr. Alyousef, Lochau — Konzeptentwurf (VCSLV)
   Colours from the practice itself: warm charcoal, the oak of the
   reception, the brass of the golden tooth, white walls, and the
   Bodensee blue for "open". EB Garamond for headlines, Jost for text.
   ========================================================= */

@font-face { font-family: 'EB Garamond'; src: url('../fonts/eb-garamond.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('../fonts/eb-garamond-italic.woff2') format('woff2'); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --ink: #1e1b18;
  --night: #181614;
  --night-2: #211e1a;
  --night-3: #2b2723;
  --brass: #c29b55;
  --brass-2: #ad8644;
  --brass-d: #85622a;
  --brass-l: #e2c48a;
  --brass-soft: rgba(194, 155, 85, .14);
  --oak: #c9955a;
  --lake: #2d6e85;
  --lake-l: #8cc7d8;
  --paper: #f6f3ee;
  --paper-2: #ece6dc;
  --paper-3: #fcfaf7;
  --muted: #6b635a;
  --off: #eaa894;
  --line: rgba(30, 27, 24, .12);
  --line-2: rgba(30, 27, 24, .24);
  --line-inv: rgba(246, 243, 238, .12);
  --line-inv-2: rgba(246, 243, 238, .26);
  --muted-inv: rgba(246, 243, 238, .68);

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 2px;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1400px;
  --hdr-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-anchor: none; }   /* main.js restores the position itself; anchoring moved a bottom reload by a screen */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; font-variant-numeric: lining-nums;
}
img, video, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
::selection { background: #ead9b6; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 16px; }
@media (max-width: 719px) { .hide-s { display: none !important; } }
@media (min-width: 720px) { .show-s { display: none !important; } }

/* ---------- Type ---------- */
.h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; }
.h2 em { font-style: italic; font-weight: 400; color: var(--brass-d); }
[data-theme="dark"] .h2 em { color: var(--brass-l); }
.h-label { display: inline-flex; align-items: center; gap: 12px; color: var(--brass-d); }
.h-label::before { content: ''; width: 22px; height: 1px; flex: none; background: currentColor; }
.h-label--inv { color: var(--brass-l); }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 20px 0 22px; border-radius: var(--r);
  font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::after { transform: translateY(0); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass::after { background: var(--brass-l); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::after { background: var(--brass-d); }
.btn--line { border-color: currentColor; }
.btn--line::after { background: currentColor; opacity: .14; }
/* the wipe is a light tint of the button's own colour and the label keeps its colour, so it reads on any ground
   (a full currentColor fill plus a hover colour hid the label: the fill takes the hover colour too) */
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost::after { background: var(--paper-2); }
.btn--ghost:hover svg { transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: gap .4s var(--ease); white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 16px; }
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lake-l); flex: none; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(140, 199, 216, .55); animation: pulse 2.4s 4; }
.dot.is-closed { background: var(--off); }
.dot.is-closed::after { animation: none; opacity: 0; }
.dot.is-off::after { animation-play-state: paused; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3.6); opacity: 0; } }
.rbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background-color .3s, color .3s, border-color .3s, opacity .3s; flex: none; }
.rbtn:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.rbtn:disabled { opacity: .35; cursor: default; }
.rbtn:disabled:hover { background: none; color: inherit; border-color: var(--line-2); }
.rbtn--inv { border-color: var(--line-inv-2); }
.rbtn--inv:disabled:hover { border-color: var(--line-inv-2); }
.rbtn svg { width: 17px; height: 17px; }

/* segmented control with a sliding plate */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: calc(var(--r) + 3px); background: rgba(30, 27, 24, .06); max-width: 100%; }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 15px; border-radius: var(--r); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--muted); transition: color .4s var(--ease); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { color: var(--paper); }
.seg__pill { position: absolute; z-index: 0; top: 3px; left: 0; height: 36px; border-radius: var(--r); background: var(--ink); transition: transform .55s var(--ease), width .55s var(--ease); }
.seg--sm button { height: 34px; padding: 0 13px; font-size: 13.5px; }
.seg--sm .seg__pill { height: 34px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: var(--paper);
  transition: color .5s var(--ease), transform .6s var(--ease), height .5s var(--ease), box-shadow .5s;
}
.hdr::before { content: ''; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background-color .5s var(--ease); }
.hdr.is-solid { --hdr-h: 64px; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid::before { background: rgba(246, 243, 238, .94); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.hdr.is-solid.on-dark { color: var(--paper); box-shadow: 0 1px 0 var(--line-inv); }
.hdr.is-solid.on-dark::before { background: var(--hdr-dark, rgba(24, 22, 20, .94)); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__brand { display: flex; align-items: center; gap: 12px; flex: none; transition: opacity .6s var(--ease); }
.hdr__mark { width: 30px; height: 33px; color: var(--brass); }
.hdr__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1; letter-spacing: -.005em; white-space: nowrap; }
.hdr__name small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; opacity: .8; }
.hdr.has-crest .hdr__brand { opacity: 0; pointer-events: none; }
.hdr:not(.is-solid) { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hdr__nav { display: flex; gap: clamp(18px, 2.2vw, 36px); font-size: 14.5px; font-weight: 500; transition: opacity .4s var(--ease); }
.hdr__nav a { position: relative; padding: 6px 0; opacity: .92; white-space: nowrap; }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.hdr__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.hdr__tel svg { width: 17px; height: 17px; }
.hdr__book { --h: 42px; font-size: 14px; padding: 0 16px 0 18px; }
.hdr__book svg { width: 15px; height: 15px; }
.hdr__menu { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 4px 0 10px; font-size: 14px; font-weight: 500; }
.hdr__burger { width: 26px; height: 10px; position: relative; display: block; }
.hdr__burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.hdr__burger i:first-child { top: 0; }
.hdr__burger i:last-child { top: 8.5px; }
.menu-open .hdr__burger i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .hdr__burger i:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-open .hdr { color: var(--paper); }
.menu-open .hdr::before { background: var(--night) !important; backdrop-filter: none !important; }
.menu-open .hdr.is-solid { box-shadow: none; }
.menu-open .hdr__brand { opacity: 1 !important; pointer-events: auto !important; }
.menu-open .hdr__nav { opacity: 0; pointer-events: none; }
@media (max-width: 1240px) { .hdr__tel { display: none; } }
@media (max-width: 1080px) { .hdr__nav { display: none; } }
@media (max-width: 719px) {
  :root { --hdr-h: 64px; }
  .hdr.is-solid { --hdr-h: 56px; }
  .hdr__book { display: none; }
  .hdr__mark { width: 26px; height: 29px; }
  .hdr__name { font-size: 1.32rem; }
  .hdr__name small { font-size: 9px; letter-spacing: .22em; }
  .hdr__menu-label { display: none; }
  .hdr__menu { width: 44px; justify-content: center; padding: 0; }
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: 1fr auto;
  padding: calc(var(--hdr-h) + 24px) var(--gutter) 28px; gap: 0 6vw; clip-path: inset(0 0 100% 0);
}
.menu[hidden] { display: none !important; }
.menu__media { position: relative; grid-row: 1 / 3; overflow: hidden; border-radius: var(--r); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.menu__media img.is-on { opacity: 1; transform: scale(1); }
.menu__nav { align-self: center; }
.menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line-inv); }
.menu__nav a { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, min(2.8vw, 5svh), 3rem); line-height: 1.1; letter-spacing: -.01em; transition: color .4s, padding .5s var(--ease); }
.menu__nav a:hover { padding-left: 14px; color: var(--brass-l); }
.menu__no { color: var(--muted-inv); }
.menu__nav em { font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .02em; color: var(--muted-inv); text-align: right; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 15px; padding-top: 24px; }
.menu__foot a:not(.btn) { display: inline-flex; align-items: center; gap: 10px; }
.menu__foot svg { width: 18px; height: 18px; }
.menu__foot .btn { margin-left: auto; }
@media (max-width: 899px) {
  .menu { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: calc(var(--hdr-h) + 8px); overflow-y: auto; overscroll-behavior: contain; }
  .menu__media { grid-row: auto; height: 15vh; min-height: 100px; }
  .menu__nav a { grid-template-columns: 34px 1fr; font-size: clamp(1.6rem, 7vw, 2.2rem); padding: 9px 0; }
  .menu__nav em { grid-column: 2; text-align: left; margin-top: -2px; }
  .menu__foot { gap: 10px 20px; padding-top: 16px; }
  .menu__foot .btn { margin-left: 0; width: 100%; }
}

/* =========================================================
   Hero: the faceted tooth draws itself, the name rises;
   behind it the reception with the golden tooth on the wall
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--hdr-h);
  overflow: hidden; overflow-anchor: none; color: var(--paper); isolation: isolate; background: var(--night);
}
.hero__scene { position: absolute; inset: 0; overflow: hidden; }
.hero__scene picture { position: absolute; inset: 0; }
.hero__fg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 45%; will-change: transform; }
.js .hero__fg, .js .hero__shade { opacity: 0; }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
  radial-gradient(48% 34% at 50% var(--crest-y, 36%), rgba(20, 18, 16, .78), rgba(20, 18, 16, .46) 60%, rgba(20, 18, 16, 0) 100%),
  linear-gradient(90deg, rgba(20, 18, 16, .78) 0%, rgba(20, 18, 16, .55) 26%, rgba(20, 18, 16, .12) 44%, rgba(20, 18, 16, 0) 64%, rgba(20, 18, 16, .5) 100%),
  linear-gradient(180deg, rgba(20, 18, 16, .76) 0%, rgba(20, 18, 16, .46) 20%, rgba(20, 18, 16, .4) 44%, rgba(20, 18, 16, .52) 60%, rgba(20, 18, 16, .84) 80%, rgba(20, 18, 16, .95) 100%); }

.crest {
  position: relative; z-index: 4; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(10px, 2.4svh, 34px) 16px clamp(16px, 3svh, 40px); color: var(--paper);
  will-change: transform, opacity;
}
.crest__lockup { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.crest__mark { height: clamp(112px, 18svh, 196px); width: auto; aspect-ratio: 212 / 232; overflow: visible; flex: none; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .5)); }
.crest__line { fill: none; stroke: var(--brass-l); stroke-width: 1.1; stroke-dasharray: 1 1; stroke-dashoffset: 0; opacity: .7; }
.crest__words { display: flex; flex-direction: column; align-items: flex-start; }
.crest__kind { font-size: 12px; font-weight: 600; letter-spacing: .46em; text-transform: uppercase; color: var(--brass-l); padding-left: .1em; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.crest__name { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem, min(6.4vw, 11.5svh), 6.8rem); line-height: 1; letter-spacing: -.015em; white-space: nowrap; margin: .1em -.1em .1em -.04em; overflow: hidden; padding: 0 .1em .16em 0; /* room for the italic f and the y below the rise mask */ text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.crest__name span { display: inline-block; }
.crest__place { display: flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: rgba(246, 243, 238, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.crest__place span { white-space: nowrap; }
.crest__place i { width: 46px; height: 1px; background: var(--brass-l); transform-origin: left; }
.crest__place i:last-child { display: none; }
.js .crest__line { stroke-dashoffset: 1; }
.js .crest__tile, .js .crest__kind, .js .crest__name, .js .crest__place { opacity: 0; }
.no-anim .crest__line, .is-static .crest__line { stroke-dashoffset: 0 !important; }
.no-anim .crest__kind, .no-anim .crest__name, .no-anim .crest__place, .no-anim .hero__fg, .no-anim .hero__shade,
.is-static .crest__kind, .is-static .crest__name, .is-static .crest__place, .is-static .hero__fg, .is-static .hero__shade { opacity: 1 !important; }
.no-anim .crest__tile, .is-static .crest__tile { opacity: var(--o, 1) !important; }

/* ---------- Termin console: a dark rail with the three steps, a light stage ---------- */
.tq {
  position: relative; z-index: 5; width: calc(100% - 2 * var(--gutter)); max-width: 1120px; margin: 0 auto clamp(16px, 3vh, 30px);
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  background: var(--paper-3); color: var(--ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .4) inset;
}
.js .hero .tq { opacity: 0; }
.no-anim .hero .tq, .is-static .tq { opacity: 1 !important; }
.tq__rail { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; background: var(--night-2); color: var(--paper); }
.tq__rail::after { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--brass); transform-origin: top; transform: scaleY(var(--tq-p, .34)); transition: transform .8s var(--ease); }
.tq__lab { color: var(--brass-l); white-space: nowrap; }
.tq__steps { display: grid; gap: 4px; }
.tq__steps button { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 7px 8px 7px 4px; border-radius: var(--r); text-align: left; transition: background-color .3s, opacity .3s; }
.tq__steps i { width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal; font-size: 12px; font-weight: 600; border: 1px solid var(--line-inv-2); color: var(--muted-inv); transition: background-color .3s, border-color .3s, color .3s; }
.tq__steps span { display: flex; flex-direction: column; min-width: 0; }
.tq__steps b { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.tq__steps em { font-style: normal; font-size: 12.5px; line-height: 1.35; color: var(--muted-inv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* beside the form the column is narrow: the chosen wish ("Beratung oder zweite Meinung") wraps instead of ending in … */
@media (min-width: 720px) { .tq__steps em { white-space: normal; } }
.tq__steps button[aria-current="step"] { background: rgba(246, 243, 238, .06); }
.tq__steps button[aria-current="step"] i { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.tq__steps button.is-done i { border-color: var(--brass-l); color: var(--brass-l); }
.tq__steps button:disabled { cursor: default; opacity: .55; }
.tq__live { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; color: var(--muted-inv); }
.tq__body { display: flex; flex-direction: column; min-width: 0; }
.tq__stage { position: relative; display: grid; flex: 1; padding: 18px 24px 4px; min-width: 0; }
/* all steps share one cell: the console keeps the height of the tallest step, nothing jumps */
.tq__step { grid-area: 1 / 1; display: block; min-width: 0; }
.tq__step[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.tq__q { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin-bottom: 12px; }
.tq__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); text-align: left; font-size: 15px; font-weight: 500; transition: border-color .3s, background-color .3s, color .3s; }
.chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chip .chip__s { display: none; }
@media (max-width: 899px) { .chip .chip__l.has-s { display: none; } .chip .chip__s { display: inline; } }
.chip svg { width: 20px; height: 20px; color: var(--brass-d); flex: none; opacity: .2; transition: opacity .3s; }
.chip:hover { border-color: var(--brass-d); }
.chip[aria-checked="true"] svg { opacity: 1; }
.chip[aria-checked="true"] { border-color: var(--brass-d); background: var(--brass-soft); box-shadow: inset 0 0 0 1px var(--brass-d); }
.chip--pain[aria-checked="true"] { border-color: #b4553f; background: rgba(180, 85, 63, .08); box-shadow: inset 0 0 0 1px #b4553f; }
.chip--pain[aria-checked="true"] svg { color: #b4553f; }
.tq__hint { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--muted); min-height: 2.8em; }
.tq__hint svg { width: 17px; height: 17px; color: var(--lake); flex: none; }
.tq__hint a { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; white-space: nowrap; }
.tq__hint.is-warn, .tq__hint.is-pain { color: var(--ink); }
.tq__hint.is-warn svg, .tq__hint.is-pain svg { color: #b4553f; }
.tq__grid2 { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 12px 26px; }
.tq__f--days { grid-row: span 2; }
.tq__flab { display: block; margin-bottom: 7px; color: var(--muted); white-space: nowrap; }
.tq__days { display: flex; gap: 6px; }
.day { width: 70px; height: 86px; border: 1px solid var(--line-2); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: border-color .3s, background-color .3s, color .3s; }
.day b { font-size: 17px; font-weight: 600; line-height: 1.1; }
.day small { font-size: 12px; color: var(--muted); line-height: 1.25; white-space: nowrap; }
.day small + small { font-size: 11px; }
.day:hover { border-color: var(--brass-d); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-pressed="true"] small { color: var(--brass-l); }
.tq__hint--time { margin-top: 8px; min-height: 0; }
.tq__grid3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 18px; }
.field { display: block; min-width: 0; }
.field span { display: block; margin-bottom: 7px; color: var(--muted); white-space: nowrap; }
.field input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 15px; transition: border-color .3s; }
.field input:focus { outline: none; border-color: var(--brass-d); box-shadow: 0 0 0 3px rgba(194, 155, 85, .18); }
.field input.is-bad { border-color: #b4553f; box-shadow: 0 0 0 3px rgba(180, 85, 63, .16); }
.field input::placeholder { color: rgba(107, 99, 90, .6); }
.tq__nav { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 10px 24px 18px; }
.tq__back { width: 48px; height: 48px; border-radius: var(--r); border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: border-color .3s, opacity .3s; }
.tq__back svg { width: 18px; height: 18px; }
.tq__back:hover { border-color: var(--ink); }
.tq__back:disabled { opacity: .35; cursor: default; }
.tq__next { --h: 48px; min-width: 220px; }
.tq__done { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.tq__done[hidden] { display: grid !important; }
.tq__ticket { position: relative; border: 1px dashed rgba(133, 98, 42, .55); border-radius: var(--r); padding: 12px 16px; background: #fff; }
.tq__tlab { display: flex; align-items: center; gap: 8px; color: var(--lake); margin-bottom: 6px; }
.tq__tlab svg { width: 18px; height: 18px; flex: none; }
.tq__tk { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin-bottom: 6px; }
.tq__tl { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 4px 16px; }
.tq__tl li { min-width: 0; }
.tq__tl span { display: block; color: var(--muted); }
.tq__tl b { display: block; font-weight: 500; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tq__fine { font-size: 13px; line-height: 1.45; color: var(--muted); }
.tq__x { display: none; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; place-items: center; z-index: 2; transition: background-color .3s; }
.tq__x svg { width: 18px; height: 18px; }
.tq__x:hover { background: var(--paper-2); }

/* ---------- Termin sheet (the console moves in here) ---------- */
html.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.sheet[hidden] { display: none !important; }
.sheet__veil { position: absolute; inset: 0; background: rgba(20, 18, 16, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet__slot { position: relative; width: min(1080px, 100%); }
.sheet .tq { width: 100%; max-width: none; margin: 0; opacity: 1; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); }
.sheet .tq__x { display: grid; }
.sheet .tq__stage { padding-right: 56px; }
.sheet-open .dock { transform: translateY(140%); }

/* =========================================================
   Heute in der Praxis: status, the week as a timeline, Notdienst
   ========================================================= */
.today { position: relative; background: var(--night); color: var(--paper); }
.today__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 72px); align-items: stretch; }
.today__main { display: flex; flex-direction: column; min-width: 0; }
.now { margin-top: clamp(14px, 3svh, 34px); padding: clamp(12px, 2svh, 20px) 0; border-top: 1px solid var(--line-inv-2); border-bottom: 1px solid var(--line-inv); }
.now__cap { display: flex; justify-content: space-between; gap: 16px; color: var(--muted-inv); }
.now__clock { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; color: var(--paper); }
.now__main { position: relative; overflow: hidden; margin-top: 4px; font-family: var(--serif); font-weight: 500; line-height: 1.12; white-space: nowrap; }
.now__main > span, .now__side > span { display: inline-block; }
.now.is-open .now__main { color: #cbe7ef; }
.now.is-closed .now__main { color: #f4d2c6; }
.now__side { position: relative; overflow: hidden; color: var(--muted-inv); white-space: nowrap; }
.week { margin-top: clamp(12px, 2.6svh, 30px); display: grid; gap: clamp(4px, .9svh, 9px); }
.wk { display: grid; grid-template-columns: 74px minmax(0, 1fr) 150px; align-items: center; gap: 14px; }
.wk__d { font-size: 14px; font-weight: 500; white-space: nowrap; }
.wk__d small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted-inv); }
.wk__track { position: relative; height: 12px; border-radius: 1px; background: rgba(246, 243, 238, .07); }
.wk__track i { position: absolute; top: 0; bottom: 0; border-radius: 1px; }
.wk__open { background: linear-gradient(90deg, var(--brass), var(--brass-l)); }
.wk__nd { background: repeating-linear-gradient(-45deg, var(--lake-l) 0 3px, rgba(140, 199, 216, .55) 3px 6px); }
.wk__now { top: -5px !important; bottom: -5px !important; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.wk__t { font-size: 13px; color: var(--muted-inv); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.wk__t.is-nd { color: var(--lake-l); }
.wk.is-today .wk__d { color: var(--brass-l); }
.wk.is-today .wk__track { background: rgba(246, 243, 238, .14); box-shadow: 0 0 0 1px var(--line-inv-2); }
.wk.is-today .wk__t { color: var(--paper); }
.wk--axis .wk__track { height: 14px; background: none; }
.wk--axis span.ax { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--muted-inv); font-variant-numeric: tabular-nums; }
.week__leg { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--muted-inv); }
.week__leg i { display: inline-block; width: 16px; height: 8px; border-radius: 1px; margin-right: 7px; vertical-align: 0; }
.today__fig { position: relative; border-radius: var(--r); overflow: hidden; background: var(--night-3); min-height: 280px; }
.today__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.nd { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; padding: 14px 16px 15px; border-radius: var(--r); background: rgba(24, 22, 20, .9); box-shadow: 0 0 0 1px var(--line-inv); }
.nd__lab { display: flex; align-items: center; gap: 10px; color: var(--lake-l); }
.nd__lab svg { width: 18px; height: 18px; flex: none; }
.nd__t { color: var(--paper); line-height: 1.45; }
.nd .link-arrow { justify-self: start; margin-top: 4px; font-size: 14px; color: var(--brass-l); }

/* =========================================================
   Leistungen: the index of seven, the photo, the text
   ========================================================= */
.svc { background: var(--paper); }
.svc__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4.4vw, 80px); align-items: stretch; }
.svc__index { display: flex; flex-direction: column; min-width: 0; }
.svc__list { margin-top: clamp(14px, 3svh, 34px); border-top: 1px solid var(--line); }
.svc__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: baseline; gap: 10px; width: 100%; padding: clamp(7px, 1.35svh, 13px) 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); transition: color .4s var(--ease), padding .5s var(--ease); }
.svc__item::before { content: ''; position: absolute; left: -16px; top: 22%; bottom: 22%; width: 2px; background: var(--brass); transform: scaleY(0); transition: transform .5s var(--ease); }
.svc__item b { font-family: var(--serif); font-weight: 500; color: var(--brass-d); opacity: .7; font-variant-numeric: lining-nums; }
.svc__item span { font-family: var(--serif); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc__item svg { width: 18px; height: 18px; align-self: center; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); }
.svc__item:hover { color: var(--ink); }
.svc__item[aria-selected="true"] { color: var(--ink); padding-left: 10px; }
.svc__item[aria-selected="true"]::before { transform: scaleY(1); }
.svc__item[aria-selected="true"] b { opacity: 1; }
.svc__item[aria-selected="true"] svg { opacity: 1; transform: none; color: var(--brass-d); }
.svc__item .show-s { display: none; }
.svc__detail { display: flex; flex-direction: column; gap: clamp(12px, 2.2svh, 24px); min-width: 0; }
.svc__media { position: relative; flex: 1; min-height: 240px; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.svc__media img, .prx__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.svc__media img.is-on, .prx__media img.is-on { opacity: 1; }
.svc__cap, .prx__cap { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 7px 13px; border-radius: var(--r); background: rgba(24, 22, 20, .78); color: var(--paper); font-size: 13px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.svc__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.svc__no { color: var(--muted); }
.svc__title { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
.svc__t { max-width: 58ch; }
.svc__cta { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; margin-top: clamp(6px, 1.4svh, 14px); }
.svc__more { color: var(--brass-d); }

/* =========================================================
   Implantate & Knochenaufbau: a cross-section that builds up step by step
   ========================================================= */
.imp { background: radial-gradient(90% 90% at 20% 40%, #26221e 0%, var(--night) 70%); color: var(--paper); }
.imp__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4.4vw, 80px); align-items: center; }
.imp__vis { min-width: 0; }
.scheme { --sc-bg: var(--paper-3); --sc-ink: #2a2622; --sc-bone: #efe5d3; --sc-hatch: rgba(133, 98, 42, .28); --sc-gum: #ead0c4; --sc-tooth: #fff;
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--sc-bg); color: var(--sc-ink); overflow: hidden;
  height: clamp(360px, calc(var(--scr-h) - 10px), 640px); transition: background-color .7s var(--ease), color .7s var(--ease); }
.scheme.s-xray { --sc-bg: #12171a; --sc-ink: #cfe3ea; --sc-bone: #3a4a50; --sc-hatch: rgba(207, 227, 234, .22); --sc-gum: #2b383d; --sc-tooth: #dfeef3; }
.scheme__lab { position: absolute; left: 18px; top: 16px; z-index: 1; display: flex; gap: 12px; align-items: baseline; }
.scheme__lab span:first-child { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--brass-d); }
.scheme.s-xray .scheme__lab span:first-child { color: var(--lake-l); }
.scheme__svg { flex: 1; min-height: 0; width: 100%; padding: 46px 18px 8px; overflow: visible; }
.scheme__svg * { transition: opacity .7s var(--ease), transform .9s var(--ease), fill .7s var(--ease), stroke .7s var(--ease); }
.sc-bonebg { fill: var(--sc-bone); }
.sc-hatch { stroke: var(--sc-hatch); stroke-width: 1.4; }
.sc-gum { fill: var(--sc-gum); }
.sc-gap { fill: var(--sc-bg); }
.sc-grow { opacity: 0; transform: scaleY(.2); transform-box: fill-box; transform-origin: 50% 100%; stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 3 4; }
.sc-tooth path { fill: var(--sc-tooth); stroke: var(--sc-ink); stroke-width: 1.6; stroke-linejoin: round; }
.sc-ask circle { fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-dasharray: 4 5; }
.sc-ask text { font-family: var(--serif); font-size: 40px; font-style: italic; fill: var(--brass-d); }
.sc-xray { opacity: 0; }
.sc-xray rect, .sc-xray path { fill: none; stroke: var(--lake-l); stroke-width: 1.4; stroke-dasharray: 6 6; }
.sc-implant { opacity: 0; transform: translateY(-60px); }
.sc-screw, .sc-abut { fill: #b7bec2; stroke: var(--sc-ink); stroke-width: 1.4; stroke-linejoin: round; }
.sc-thread { fill: none; stroke: var(--sc-ink); stroke-width: 1.2; opacity: .55; }
.sc-crown { opacity: 0; transform: translateY(-40px); fill: var(--sc-tooth); stroke: var(--brass-d); stroke-width: 2; stroke-linejoin: round; }
.sc-care { opacity: 0; transform: scale(.8); transform-box: fill-box; transform-origin: 50% 50%; }
.sc-care path, .sc-care circle { fill: none; stroke: var(--lake); stroke-width: 2; stroke-linecap: round; }
.sc-care circle { stroke-dasharray: 3 7; }
.scheme.s-ask .sc-ask { opacity: 1; }
.sc-ask { opacity: 0; }
.scheme.s-xray .sc-xray { opacity: 1; }
.scheme.s-grow .sc-grow { opacity: 1; transform: none; }
.scheme.s-imp .sc-implant { opacity: 1; transform: none; }
.scheme.s-crown .sc-crown { opacity: 1; transform: none; }
.scheme.s-care .sc-care { opacity: 1; transform: none; }
.scheme__rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.scheme.s-xray .scheme__rail { border-top-color: rgba(207, 227, 234, .16); }
.scheme__rail button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px 12px; text-align: left; color: inherit; opacity: .55; transition: opacity .3s, background-color .3s; }
.scheme__rail button + button { border-left: 1px solid var(--line); }
.scheme.s-xray .scheme__rail button + button { border-left-color: rgba(207, 227, 234, .16); }
.scheme__rail button::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.scheme__rail button:hover { opacity: .9; }
.scheme__rail button[aria-selected="true"] { opacity: 1; }
.scheme__rail button[aria-selected="true"]::before, .scheme__rail button.is-past::before { transform: scaleX(1); }
.scheme__rail button.is-past::before { opacity: .45; }
.scheme__rail b { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1; }
.scheme__rail span { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.imp__text { display: flex; flex-direction: column; min-width: 0; }
.imp__card { position: relative; margin-top: clamp(12px, 2.6svh, 28px); padding: 14px 64px 16px 0; border-top: 1px solid var(--line-inv-2); min-height: 9.2em; }
.imp__k { display: flex; gap: 6px; align-items: baseline; color: var(--muted-inv); }
.imp__k span:first-child { font-family: var(--serif); font-size: 1.5rem; color: var(--brass-l); }
.imp__t { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin-top: 2px; }
.imp__p { margin-top: 6px; color: rgba(246, 243, 238, .86); max-width: 50ch; }
.imp__nav { position: absolute; right: 0; top: 14px; display: flex; flex-direction: column; gap: 8px; }
.imp__fig { position: relative; margin-top: clamp(10px, 2svh, 22px); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 7; background: var(--night-3); }
.imp__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.imp__fig figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 11px; border-radius: var(--r); background: rgba(24, 22, 20, .8); font-size: 13px; }
.imp__cta { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: clamp(12px, 2.4svh, 26px); }
.imp__fine { flex: 1 1 260px; font-size: 13.5px; line-height: 1.45; color: var(--muted-inv); }

/* =========================================================
   Die Praxis: a short tour, the quote, the faces
   ========================================================= */
.prx { background: var(--paper-2); }
.prx__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4.4vw, 80px); align-items: center; }
.prx__stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.prx__media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper); height: clamp(320px, calc(var(--scr-h) - 64px), 660px); }
.prx__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.prx__tabs button { position: relative; display: flex; align-items: baseline; gap: 10px; height: 44px; padding: 0 12px; border-radius: var(--r); background: rgba(255, 255, 255, .5); color: var(--muted); font-size: 14px; font-weight: 500; text-align: left; overflow: hidden; transition: background-color .3s, color .3s; }
.prx__tabs button b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--brass-d); align-self: center; }
.prx__tabs button span { align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prx__tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .8); }
.prx__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.prx__tabs button[aria-selected="true"] b { color: var(--brass-l); }
.prx__text { min-width: 0; }
.prx__quote { margin-top: clamp(14px, 3svh, 34px); padding-left: 20px; border-left: 2px solid var(--brass); }
.prx__quote p { font-family: var(--serif); font-style: italic; line-height: 1.35; }
.prx__quote footer { margin-top: 8px; color: var(--muted); }
.faces { display: flex; gap: 8px; margin-top: clamp(14px, 3svh, 32px); }
.faces li { width: clamp(52px, 5vw, 76px); aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.faces img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.prx__where { display: flex; align-items: flex-start; gap: 10px; margin-top: clamp(12px, 2.4svh, 26px); color: var(--muted); max-width: 44ch; }
.prx__where svg { width: 18px; height: 18px; color: var(--brass-d); flex: none; margin-top: 3px; }
.prx__book { margin-top: clamp(14px, 2.6svh, 28px); }

/* =========================================================
   Kontakt & Anfahrt: the address, the hours, the map
   ========================================================= */
.contact { background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4.4vw, 80px); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; min-width: 0; }
.contact__addr { font-style: normal; margin-top: clamp(12px, 2.6svh, 28px); font-size: var(--t-lead); line-height: 1.45; }
.contact__lines { margin-top: clamp(8px, 1.6svh, 16px); display: grid; gap: 4px; }
.contact__lines a, .contact__lines span { display: inline-flex; align-items: center; gap: 12px; font-size: 15.5px; }
.contact__lines a:hover { color: var(--brass-d); }
.contact__lines svg { width: 19px; height: 19px; color: var(--brass-d); flex: none; }
.hours { margin-top: clamp(12px, 2.4svh, 26px); }
.hours__lab { color: var(--brass-d); }
.hours__list { margin-top: 6px; }
.hours__list li { display: flex; justify-content: space-between; gap: 16px; padding: clamp(4px, .75svh, 7px) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours__list li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.hours__list li.is-today { font-weight: 600; }
.hours__list li.is-today span:first-child::after { content: 'heute'; margin-left: 10px; padding: 1px 8px; border-radius: var(--r); background: var(--brass-soft); color: var(--brass-d); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hours__list li.is-nd span:last-child { color: var(--lake); }
.contact__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(14px, 2.6svh, 28px); }
.map { position: relative; display: flex; flex-direction: column; min-height: 320px; border-radius: var(--r); overflow: hidden; background: #f1ece4; box-shadow: 0 0 0 1px var(--line); }
.map__svg { flex: 1; width: 100%; height: 100%; min-height: 0; }
.map__lake { fill: #cfe0e6; }
.map__water path { fill: none; stroke: #cfe0e6; stroke-width: 6; stroke-linecap: round; }
.map__bld path { fill: #e3dbcf; }
.map__road path, .map__rail path, .map__walk { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map__road--foot path { stroke: #fff; stroke-width: 3; opacity: .7; }
.map__road--small path { stroke: #fff; stroke-width: 5; }
.map__road--mid path { stroke: #fff; stroke-width: 10; }
.map__road--big path { stroke: #fff; stroke-width: 16; }
.map__rail path { stroke: #a8a197; stroke-width: 3; stroke-dasharray: 14 8; }
.map__praxis { fill: var(--brass); }
.map__walk { stroke: var(--lake); stroke-width: 6; stroke-dasharray: 2 12; }
.map__walkm { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .map__walkm { stroke-dashoffset: 1; }
.no-anim .map__walkm { stroke-dashoffset: 0 !important; }
.map__bus rect { fill: var(--lake); }
.map__bus path, .map__st path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.map__st circle { fill: var(--ink); }
.map__pin circle { fill: var(--brass); }
.map__pin .map__core { fill: #fff; }
.map__pulse { opacity: .28; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.6s 4; }
.map.is-off .map__pulse { animation-play-state: paused; }
@keyframes mapPulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.map__lab { font-family: var(--sans); font-size: 17px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #f1ece4; stroke-width: 5px; stroke-linejoin: round; }
.map__lab--s { font-weight: 400; }
@media (max-width: 899px) { .map__lab { font-size: 36px; stroke-width: 8px; } .map__lab--s { display: none; } }
.map__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--paper-3); font-size: 13px; color: var(--muted); }
.map__foot .link-arrow { font-size: 14px; color: var(--ink); }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--paper); padding: clamp(56px, 7vw, 110px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot__big { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.foot__brand { display: flex; align-items: center; gap: 18px; }
.foot__mark { width: 52px; height: 57px; color: var(--brass); }
.foot__name { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 500; line-height: 1; }
.foot__name small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass-l); }
.foot__slogan { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3.4rem); line-height: 1.05; font-weight: 400; }
.foot__slogan em { font-style: italic; color: var(--brass-l); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(36px, 5vw, 72px); padding-top: 32px; border-top: 1px solid var(--line-inv); }
.foot__cols h4 { color: var(--muted-inv); margin-bottom: 14px; }
.foot__cols a, .foot__cols p, .foot__cols button { display: block; font-size: 15px; padding: 3px 0; color: rgba(246, 243, 238, .86); text-align: left; }
.foot__cols a:hover, .foot__cols button:hover { color: var(--brass-l); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--muted-inv); }
.foot__base a { border-bottom: 1px solid var(--line-inv-2); }
@media (max-width: 719px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Dock (mobile) ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .dock {
    display: flex; gap: 6px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
    padding: 6px; border-radius: calc(var(--r) + 6px); background: rgba(24, 22, 20, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); transform: translateY(140%); transition: transform .6s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock__book { flex: 1; display: grid; place-items: center; height: 48px; border-radius: var(--r); background: var(--brass); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
  .dock__ico, .dock__note { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; color: var(--paper); border: 1px solid var(--line-inv-2); flex: none; }
  .dock__ico svg { width: 20px; height: 20px; }
  .dock__note i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-l); box-shadow: 0 0 0 4px rgba(226, 196, 138, .2); }
  .menu-open .dock { transform: translateY(140%); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Concept note ---------- */
.note { position: fixed; left: max(10px, calc(var(--gutter) / 2 - 14px)); top: 50%; z-index: 52; font-size: 14px; opacity: 0; visibility: hidden; transform: translate(-6px, -50%); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.note.is-shown, .note.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.note__btn { display: inline-flex; align-items: center; gap: 10px; writing-mode: vertical-rl; transform: rotate(180deg); width: 28px; padding: 14px 0 12px; border-radius: var(--r); background: rgba(24, 22, 20, .84); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line-inv); }
.note__btn i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass-l); }
.note__panel { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); width: min(340px, calc(100vw - 32px)); background: var(--paper-3); color: var(--ink); border-radius: var(--r); padding: 22px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.note__panel b { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.note__panel .btn { --h: 44px; margin-top: 6px; justify-self: start; }
.note__fine { font-size: 12px; line-height: 1.45; color: var(--muted); }
.note__fine a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 899px) {
  .note { left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateY(8px); }
  .note.is-open { transform: none; }
  .note.is-shown:not(.is-open) { opacity: 0; visibility: hidden; }
  .note__btn { display: none; }
  .note__panel { position: static; width: auto; transform: none; }
}

[data-img-reveal] { overflow: hidden; }
.ln-mask { padding: 0 .16em .24em .06em; margin: 0 -.16em -.24em -.06em; }
.is-nudge { animation: nudge .7s var(--ease); }
@keyframes nudge { 0% { transform: scale(1.025); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Screens: every section fits one viewport. Big visuals take
   the height that is left; phones subtract the dock.
   ========================================================= */
:root {
  --scr-t: calc(var(--hdr-h) + clamp(14px, 3.4svh, 46px));
  --scr-b: clamp(18px, 3.8svh, 50px);
  --scr-h: calc(100svh - var(--scr-t) - var(--scr-b));
  --h2s: clamp(2.2rem, min(3.6vw, 5.8svh), 4rem);
}
@media (max-width: 899px) { :root { --scr-b: calc(86px + env(safe-area-inset-bottom)); } }
@media (max-width: 719px) { :root { --scr-t: calc(var(--hdr-h) + 12px); --h2s: clamp(2rem, 8.6vw, 2.5rem); } }

main .h2 { font-size: var(--h2s); }
main .h-label { margin-bottom: clamp(8px, 1.6svh, 20px); }
main > section:not(.hero) { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) {
  main > section:not(.hero) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .today__grid, .svc__grid, .contact__grid { height: clamp(440px, var(--scr-h), 760px); }
  .imp__grid, .prx__grid { min-height: 0; }
  .map { align-self: center; width: 100%; height: clamp(380px, calc(var(--scr-h) * .8), 620px); }
}
@media (min-width: 900px) and (max-height: 800px) {
  .svc__t { font-size: 15px; }
  .imp__fig { aspect-ratio: 16 / 5.4; }
  .prx__where { display: none; }
  .now { margin-top: 12px; }
}
@media (min-width: 900px) and (max-height: 740px) {
  .week__leg { display: none; }
  .imp__fine { display: none; }
  .hours__list li { padding: 3px 0; }
  .contact__lines { gap: 0; }
}

/* =========================================================
   Type system — one voice
   EB Garamond: headlines, figures, the status line, the quote.
   Jost: text, controls and two label tiers —
   LABEL 600 · .18em (names a block) · CAPTION 500 · .14em (names a value)
   The wordmark (header, hero, footer) keeps its own spacing.
   ========================================================= */
:root {
  --t-lab: 11.5px; --t-cap: 11px; --t-lead: 17px; --t-body: 15.5px; --t-small: 14px;
  --h3m: clamp(1.7rem, min(2.2vw, 3.8svh), 2.2rem);
  --h3s: clamp(1.3rem, min(1.6vw, 2.8svh), 1.6rem);
  --quote: clamp(1.3rem, min(1.7vw, 2.8svh), 1.7rem);
}
@media (max-width: 719px) {
  :root { --t-lab: 11px; --t-cap: 10.5px; --t-lead: 15px; --t-body: 14.5px; --t-small: 13.5px; --h3m: 1.5rem; --h3s: 1.2rem; --quote: 1.15rem; }
}
body { font-synthesis: none; }
b, strong { font-weight: 600; }

/* LABEL */
.h-label, .tq__lab, .foot__cols h4, .note__btn, .hours__lab, .nd__lab, .tq__tlab span {
  font-family: var(--sans); font-size: var(--t-lab); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-style: normal;
}
/* CAPTION */
.tq__flab, .field span, .tq__tl span, .svc__no, .now__cap, .menu__no, .scheme__lab span:last-child, .imp__k span:last-child, .prx__quote footer, .map__foot span {
  font-family: var(--sans); font-size: var(--t-cap); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-style: normal;
}
/* Headings */
.tq__q, .svc__title, .imp__t, .now__main { font-size: var(--h3m); }
.svc__item span, .tq__tk { font-size: var(--h3s); }
/* Text */
.svc__t, .imp__p, .contact__addr { font-size: var(--t-lead); }
.nd__t, .prx__where { font-size: var(--t-body); }
.now__side { font-size: var(--t-small); }
.prx__quote p { font-size: var(--quote); }

/* =========================================================
   Phones and tablets
   ========================================================= */
@media (max-width: 1080px) and (min-width: 720px) {
  .tq { grid-template-columns: 210px minmax(0, 1fr); }
  .tq__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tq__grid2 { grid-template-columns: minmax(0, 1fr); }
  .tq__f--days { grid-row: auto; }
  .day { width: 62px; }
}
@media (max-width: 899px) {
  .today__grid, .svc__grid, .imp__grid, .prx__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  /* hero: mark, name, line, console in one column */
  .hero__fg { object-position: 50% 50%; }
  .hero__shade { background:
    radial-gradient(90% 28% at 50% var(--crest-y, 22%), rgba(20, 18, 16, .78), rgba(20, 18, 16, .36) 62%, rgba(20, 18, 16, 0) 100%),
    linear-gradient(180deg, rgba(20, 18, 16, .74) 0%, rgba(20, 18, 16, .42) 24%, rgba(20, 18, 16, .28) 40%, rgba(20, 18, 16, .4) 56%, rgba(20, 18, 16, .88) 74%, rgba(20, 18, 16, .96) 100%); }
  .crest { flex: 0 0 auto; padding: clamp(8px, 2.4svh, 26px) 12px 0; }
  .hero::after { content: ''; flex: 1 0 10px; }
  .crest__lockup { flex-direction: column; gap: clamp(8px, 1.6svh, 16px); text-align: center; }
  .crest__mark { height: clamp(76px, 12svh, 110px); }
  .crest__words { align-items: center; }
  .crest__kind { font-size: 10.5px; letter-spacing: .4em; padding-left: .4em; }
  .crest__name { font-size: clamp(2.7rem, 13vw, 3.5rem); margin: .06em 0 .1em; }
  .crest__place { gap: 12px; font-size: 10.5px; letter-spacing: .3em; }
  .crest__place i { width: 26px; }
  .crest__place i:last-child { display: block; transform-origin: right; }
  .tq { order: 2; width: auto; margin: 0 10px 10px; grid-template-columns: minmax(0, 1fr); }
  .tq__rail { flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; }
  .tq__rail::after { top: auto; bottom: 0; left: 0; width: 100%; height: 2px; transform-origin: left; transform: scaleX(var(--tq-p, .34)); }
  .tq__lab, .tq__live { display: none; }
  .tq__steps { flex: 1; display: flex; justify-content: space-between; gap: 2px; }
  .tq__steps button { align-items: center; gap: 7px; padding: 4px 8px 4px 3px; width: auto; }
  .tq__steps i { width: 22px; height: 22px; margin: 0; }
  .tq__steps b { font-size: 13px; }
  .tq__steps em { display: none; }
  .tq__stage { padding: 12px 12px 2px; }
  .tq__q { font-size: 1.32rem; margin-bottom: 9px; }
  .tq__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .chip { height: 42px; padding: 0 10px; gap: 8px; font-size: 14px; }
  .chip svg { width: 18px; height: 18px; }
  .tq__hint { font-size: 12.5px; margin-top: 8px; gap: 8px; }
  .tq__grid2 { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tq__f--days { grid-row: auto; }
  .tq__days { gap: 5px; }
  .day { flex: 1; width: auto; height: 58px; min-width: 0; }
  .day b { font-size: 15px; }
  .day small { font-size: 11px; }
  .day small + small { font-size: 10px; }
  /* the options name themselves on phones; the labels stay for screen readers */
  .tq__grid2 .tq__f:not(.tq__f--days) .tq__flab, .tq__grid3 .tq__f .tq__flab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tq__grid2 .seg, .tq__grid3 .seg { display: flex; width: 100%; }
  .tq__grid2 .seg button, .tq__grid3 .seg button { flex: 1; padding: 0 6px; }
  .tq__grid3 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .field input { height: 40px; }
  .tq__flab, .field span { margin-bottom: 5px; }
  .tq__nav { padding: 8px 12px 12px; }
  .tq__back { width: 46px; height: 46px; }
  .tq__next { --h: 46px; flex: 1; min-width: 0; }
  .tq__tl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tq__tl li { display: flex; gap: 10px; align-items: baseline; }
  .tq__tl span { flex: 0 0 64px; }
  .tq__tl b { -webkit-line-clamp: 1; }
  .tq__fine { font-size: 12px; }
  .sheet { padding: 0; place-items: end stretch; }
  .sheet__slot { width: 100%; }
  .sheet .tq { margin: 0; border-radius: 10px 10px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet .tq__rail { padding-right: 48px; }
  .sheet .tq__stage { padding-right: 12px; }
  .sheet .tq__x { top: 6px; right: 6px; color: var(--paper); }
  .sheet .tq__x:hover { background: rgba(246, 243, 238, .1); }

  /* Heute */
  .today .h-label { display: none; }
  .now { margin-top: 10px; padding: 8px 0; }
  .now__main { font-size: min(1.5rem, 6.2vw); }
  .week { margin-top: 10px; gap: 5px; }
  .wk { grid-template-columns: 50px minmax(0, 1fr) 96px; gap: 8px; }
  .wk__d { font-size: 13px; }
  .wk__d small { display: none; }
  .wk__track { height: 10px; }
  .wk__t { font-size: 11.5px; }
  .wk--axis span.ax { font-size: 10px; }
  .week__leg { font-size: 11px; gap: 4px 12px; }
  .today__grid { gap: 12px; }
  .today__fig { min-height: 0; height: clamp(160px, 24svh, 240px); }
  .nd { left: 8px; right: 8px; bottom: 8px; padding: 9px 12px 10px; gap: 2px; }
  .nd__t { font-size: 13px; line-height: 1.35; }
  .nd .link-arrow { font-size: 13px; margin-top: 2px; }

  /* Leistungen */
  .svc__grid { gap: 10px; }
  .svc .h-label { display: none; }
  .svc__list { margin-top: 10px; display: flex; gap: 6px; overflow-x: auto; border: 0; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .svc__list::-webkit-scrollbar { display: none; }
  .svc__list li { flex: none; scroll-snap-align: start; }
  .svc__item { display: flex; align-items: center; gap: 7px; width: auto; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); white-space: nowrap; }
  .svc__item::before, .svc__item svg { display: none; }
  .svc__item[aria-selected="true"] { padding-left: 12px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .svc__item[aria-selected="true"] b { color: var(--brass-l); }
  .svc__item b { font-size: 14px; }
  .svc__item span { font-family: var(--sans); font-size: 14px; font-weight: 500; }
  .svc__item .hide-s { display: none; }
  .svc__item .show-s { display: inline; }
  .svc__detail { gap: 10px; }
  .svc__media { flex: none; min-height: 0; height: clamp(150px, 31svh, 300px); }
  .svc__no { display: none; }
  .svc__title { font-size: 1.4rem; }
  .svc__t { font-size: 14.5px; line-height: 1.5; }
  .svc__cta .btn { --h: 46px; }
  .svc__more { display: none; }

  /* Implantate */
  .imp__grid { gap: 12px; }
  .imp .h-label { display: none; }
  .imp__vis { order: 2; }
  .imp__text { display: contents; }
  .imp__text .h2 { order: 1; }
  .imp__card { order: 3; margin-top: 0; padding: 6px 0 0; min-height: 0; border-top: 0; }
  .imp__k { min-height: 40px; align-items: center; }
  .imp__nav { flex-direction: row; top: 6px; }
  .imp__nav .rbtn { width: 38px; height: 38px; }
  .imp__fig { display: none; }
  .imp__cta { order: 4; margin-top: 4px; }
  .imp__cta .btn { --h: 46px; }
  .imp__fine { font-size: 12.5px; flex-basis: 100%; }
  .scheme { height: clamp(220px, 34svh, 320px); }
  .scheme__svg { padding: 34px 6px 4px; }
  .scheme__lab { left: 12px; top: 10px; }
  .scheme__lab span:first-child { font-size: 1.3rem; }
  .scheme__rail button { padding: 7px 6px 8px; }
  .scheme__rail b { font-size: .95rem; }
  .scheme__rail span { display: none; }
  .imp__t { font-size: 1.32rem; }
  .imp__p { font-size: 14px; line-height: 1.5; }
  .imp__k span:first-child { font-size: 1.2rem; }

  /* Praxis */
  .prx__grid { gap: 12px; }
  .prx .h-label { display: none; }
  .prx__stage { order: 2; gap: 6px; }
  .prx__media { height: clamp(170px, 27svh, 280px); }
  .prx__tabs button { height: 38px; padding: 0 8px; font-size: 12.5px; gap: 6px; }
  .prx__tabs button b { font-size: .95rem; }
  .prx__quote { margin-top: 10px; padding-left: 14px; }
  .prx__quote footer { margin-top: 4px; }
  .faces { margin-top: 12px; gap: 6px; }
  .faces li { width: calc((100% - 30px) / 6); }
  .prx__where { display: none; }
  .prx__book { --h: 46px; margin-top: 14px; order: 3; }
  .prx__text { display: contents; }
  .prx__text .h2, .prx__quote, .faces { order: 1; }

  /* Kontakt */
  .contact__grid { gap: 12px; }
  .contact .h-label { display: none; }
  .contact__addr { margin-top: 8px; font-size: 14.5px; }
  .contact__lines { margin-top: 6px; gap: 0; }
  .contact__lines a, .contact__lines span { font-size: 14.5px; }
  .hours { display: none; }
  .contact__cta { margin-top: 12px; }
  .contact__cta .btn { --h: 46px; flex: 1; padding: 0 14px; }
  .map { min-height: 0; height: clamp(170px, 36svh, 340px); }
  .map__foot { padding: 7px 12px; }
}
@media (max-width: 719px) and (max-height: 780px) {
  :root { --h2s: 1.85rem; }
  .crest__place { display: none; }
  .now__side { display: none; }
  .week__leg { display: none; }
  .today__fig { height: 128px; }
  .svc__media { height: 19svh; }
  .scheme { height: 29svh; }
  .imp__fine { display: none; }
  .prx__media { height: 22svh; }
  .prx__quote p { font-size: 1.05rem; }
  .map { height: 33svh; }
}
@media (min-width: 720px) and (max-width: 899px) {
  .today__fig { min-height: 0; height: 30svh; }
  .svc__media { flex: none; height: 32svh; }
  .scheme { height: 40svh; }
  .prx__media { height: 38svh; }
  .map { height: 34svh; }
}
.crest__tile { opacity: var(--o, 1); }
.js .crest__tile { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js .map__walkm { stroke-dashoffset: 0; } }
