/* Handy Chirurg Potsdam
   A clinic for phones. The brand's own colours: skyline teal, heartbeat red,
   logo charcoal, on clinical white and mint. Wide Archivo echoes the spaced
   capitals of the logo. Every "medical" device on the page carries real
   information: the monitor shows the opening state, the signs are the
   services, the board is the opening hours. */

/* Self-hosted fonts (no request to Google). Archivo is variable in weight and width. */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-wdth.woff2) format('woff2-variations'), url(/assets/fonts/archivo-latin-wdth.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: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-ext-wdth.woff2) format('woff2-variations'), url(/assets/fonts/archivo-latin-ext-wdth.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: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(/assets/fonts/plex-mono-500.woff2) format('woff2'); }

:root {
  --white: #ffffff;
  --mint-50: #f3f8f6;
  --mint-100: #e4f0ec;
  --mint-200: #c9e2da;
  --teal: #2f7a68;        /* logo skyline */
  --teal-700: #23604f;
  --teal-800: #1a4a3e;
  --deep: #0f2621;        /* scrubs */
  --ink: #2a2a2a;         /* logo lettering */
  --grey: #5c6764;
  --rule: rgba(42, 42, 42, .12);
  --red: #c8312a;         /* logo heartbeat */
  --red-l: #ff6b5e;
  --signal: #6fe3c0;      /* monitor trace */

  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --t-hero: clamp(2.6rem, 1rem + 4.1vw, 5.25rem);
  --t-1: clamp(2.1rem, 1.3rem + 3.2vw, 4.25rem);
  --t-2: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
  --t-lede: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px), 4vw);
  --max: 80rem;
  --r: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--white); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-stretch: 125%; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.logo__tag { font: 500 17px var(--sans); font-stretch: 112%; font-variant: small-caps; letter-spacing: .16em; fill: var(--teal); }

/* kicker: the logo's spaced capitals with a small cross, like a ward sign */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .75rem/1 var(--sans); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal);
}
.kicker__cross { position: relative; width: 11px; height: 11px; flex: none; color: var(--red); }
.kicker__cross::before, .kicker__cross::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.kicker__cross::before { left: 4px; top: 0; width: 3px; height: 11px; }
.kicker__cross::after { left: 0; top: 4px; width: 11px; height: 3px; }
.kicker--light { color: var(--signal); }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* One system: 52 px tall (48 on phones), 10 px radius, 600 weight; primary is
   filled teal, quiet is outlined, white/outline-light are their versions on
   dark backgrounds. Hover lifts 1 px, press settles, focus shows a ring. */
.btn {
  --btn-shadow: 0 0 0 rgba(15, 38, 33, 0);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.25rem; padding: 0 1.6rem; border-radius: 10px;
  font: 600 1rem/1.1 var(--sans); font-stretch: 108%; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); transition-duration: .08s; }
.btn:focus-visible { outline: none; box-shadow: var(--btn-shadow), 0 0 0 3px var(--white), 0 0 0 5.5px var(--teal); }
.btn--primary { background: var(--teal); color: var(--white); --btn-shadow: 0 1px 2px rgba(15, 38, 33, .18), 0 6px 16px -8px rgba(15, 38, 33, .45); }
.btn--primary:hover { background: var(--teal-700); --btn-shadow: 0 2px 4px rgba(15, 38, 33, .16), 0 12px 24px -10px rgba(15, 38, 33, .5); }
.btn--quiet { background: var(--white); color: var(--teal-700); border-color: var(--mint-200); }
.btn--quiet:hover { border-color: var(--teal); background: var(--mint-50); }
.btn--white { background: var(--white); color: var(--teal-800); --btn-shadow: 0 6px 18px -10px rgba(0, 0, 0, .45); }
.btn--white:hover { background: var(--mint-100); }
.btn--outline-light { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--white:focus-visible, .btn--outline-light:focus-visible, .btn--signal:focus-visible { box-shadow: var(--btn-shadow), 0 0 0 3px var(--teal-800), 0 0 0 5.5px var(--white); }
@media (max-width: 600px) { .btn { min-height: 3rem; padding: 0 1.3rem; } }
.reduced .btn, .reduced .btn:hover, .reduced .btn:active { transform: none; }

/* ---------- intro ---------- */

.intro { display: none; }
.js:not(.reduced):not(.intro-seen) .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 90;
  background: var(--white);
  transition: background-color .6s var(--ease);
  /* failsafe: if the script never runs to the end, the intro still goes */
  animation: introGone .4s ease 5s forwards;
}
@keyframes introGone { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro.is-leaving { background: transparent; pointer-events: none; }
.intro.is-skipping { opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.intro__logo { position: relative; width: min(80vw, 640px); transform-origin: 0 0; will-change: transform; }
.intro__svg { display: block; width: 100%; height: auto; overflow: visible; }
.intro__skyline path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__sky, .intro__tag, .intro__pen, .intro__spark { opacity: 0; }
.js:not(.reduced):not(.intro-seen):not(.intro-done) .is-home .nav__logo { opacity: 0; animation: logoIn .3s ease 5s forwards; }
@keyframes logoIn { to { opacity: 1; } }
.js.intro-done .nav__logo, .reduced .nav__logo { opacity: 1; }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__in { display: flex; align-items: center; gap: 1.5rem; height: 5rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.nav__logo { display: block; width: 140px; flex: none; }
.nav__logo img { display: block; width: 100%; height: auto; }
.nav__links { display: flex; align-items: center; gap: .25rem; margin-left: auto; font-size: .9375rem; font-weight: 500; }
.nav__links a { position: relative; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--grey); transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav__links a:hover { color: var(--ink); background: var(--mint-50); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; border-radius: 1px; background: var(--teal); }
/* Franchise: set apart with a quiet outline, never louder than the call button */
.nav__links .nav__franchise { margin-left: .5rem; padding: .45rem .85rem; color: var(--teal-700); border: 1.5px solid var(--mint-200); font-weight: 600; }
.nav__links .nav__franchise:hover { border-color: var(--teal); background: var(--mint-50); color: var(--teal-800); }
.nav__links .nav__franchise[aria-current="page"] { border-color: var(--teal); background: var(--mint-50); }
.nav__links .nav__franchise[aria-current="page"]::after { display: none; }
/* opening state: one line, dot + label + time, same baseline */
.nav__state { display: inline-flex; align-items: center; gap: .5rem; height: 2rem; padding: 0 .8rem 0 .7rem; border-radius: 999px; background: var(--mint-50); border: 1px solid var(--mint-100); font: 500 .8125rem/1 var(--sans); color: var(--grey); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav__state::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #9aa5a1; }
.nav__state.is-open::before { background: #1f9e78; box-shadow: 0 0 0 3px rgba(31, 158, 120, .16); }
.nav__state.is-closed::before { background: var(--red); box-shadow: 0 0 0 3px rgba(200, 49, 42, .12); }
.nav__state-label { color: var(--ink); font-weight: 600; }
.nav__state-time:empty { display: none; }
.nav__state--menu { display: none; }
.nav__call {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: 0 1.1rem; border-radius: 10px;
  background: var(--teal); color: var(--white); text-decoration: none;
  font: 600 .9375rem var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 38, 33, .18), 0 6px 16px -8px rgba(15, 38, 33, .45);
  transition: background-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.nav__call:hover { background: var(--teal-700); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15, 38, 33, .16), 0 12px 24px -10px rgba(15, 38, 33, .5); }
.nav__call:active { transform: scale(.985); transition-duration: .08s; }
.nav__call:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--white), 0 0 0 5.5px var(--teal); }
.nav__call { flex: none; line-height: 1; }
.nav__call svg { flex: none; display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.nav__call-short { display: none; }
.nav__menu { display: none; }
/* WhatsApp next to the call button: same height, outlined in WhatsApp green */
.nav__wa {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 1rem; border-radius: 10px; line-height: 1;
  background: var(--white); color: #128c4a; border: 1.5px solid #25d366; text-decoration: none;
  font: 600 .9375rem var(--sans); white-space: nowrap;
  transition: background-color .22s var(--ease), transform .22s var(--ease);
}
.nav__wa:hover { background: #effcf4; transform: translateY(-1px); }
.nav__wa:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--white), 0 0 0 5.5px #25d366; }
.nav__wa svg { flex: none; display: block; width: 18px; height: 18px; fill: #25d366; }
.nav__in > .nav__wa + .nav__call { margin-left: -.5rem; }

/* narrower desktops: drop the status first, then tighten the links */
/* the status chip only where everything fits; the phone button keeps its size and stays at the content edge */
@media (max-width: 1439px) { .nav__in > .nav__state { display: none; } }
.nav__in { gap: 1rem; } .nav__links a { padding-inline: .55rem; } .nav__links a[aria-current="page"]::after { left: .55rem; right: .55rem; }
.nav__links { white-space: nowrap; }
@media (max-width: 1100px) { .nav__links a { padding: .55rem .5rem; } .nav__links a[aria-current="page"]::after { left: .5rem; right: .5rem; } .nav__in { gap: 1rem; } }
/* tablets and phones: logo, call, menu; everything else in the menu */
@media (max-width: 980px) {
  .nav__in { gap: .75rem; height: 4rem; }
  .nav__logo { width: 100px; }
  .nav__call { margin-left: auto; }
  .nav__wa { margin-left: auto; padding: 0; }
  .nav__wa svg { width: 22px; height: 22px; }
  .nav__wa-text { display: none; }
  .nav__in > .nav__wa + .nav__call { margin-left: -.25rem; }
  .nav__call-long { display: none; }
  .nav__call-short { display: inline; }
  .nav__menu { flex: none; display: grid; place-content: center; gap: 6px; width: 2.75rem; height: 2.75rem; background: none; border: 0; padding: 0; cursor: pointer; }
  .nav__menu span { width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
  .nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: .5rem var(--gutter) 1.25rem; background: var(--white); border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(15, 38, 33, .35);
    max-height: calc(100dvh - 4rem); overflow-y: auto;
    font-size: 1.375rem; font-stretch: 125%; font-weight: 700; display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .js:not(.reduced) .nav.is-open .nav__links { animation: menuIn .22s var(--ease); }
  .nav__links a { padding: .7rem 0; border-radius: 0; color: var(--ink); border-bottom: 1px solid var(--rule); }
  .nav__links a:hover { background: none; color: var(--teal-700); }
  .nav__links a[aria-current="page"] { color: var(--teal-700); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .nav__franchise { margin: .9rem 0 0; padding: .75rem 1rem; border-radius: 10px; text-align: center; font-size: 1.125rem; border-bottom: 1.5px solid var(--mint-200); }
  .nav__state--menu { display: inline-flex; align-self: flex-start; margin-top: 1rem; height: 2.25rem; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- story ---------- */

.story { position: relative; height: 460vh; background: var(--white); }
@media (max-width: 760px) { .story { height: 400vh; } }
.story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--mint-50), var(--white) 25%, var(--white) 75%, var(--mint-50));
}
.story__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* the operating lamp: a soft pool of light the phone lies in */
.story__lamp {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(80vw, 1040px); aspect-ratio: 1; right: -10vw; top: 52%; translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 1) 0%, rgba(240, 247, 244, .9) 55%, rgba(228, 240, 236, 0) 100%);
}
.story__poster {
  /* Still of the 3D phone in its first pose: shown while the scene loads and when WebGL is unavailable */
  position: absolute; z-index: 1; pointer-events: none;
  height: 57.3%; width: auto; top: 50.1%; left: calc(50% + 34.5vh); translate: -50% -50%;
  transition: opacity .4s ease;
}
.webgl-ready .story__poster { opacity: 0; }
.no-webgl .story__poster { position: absolute; height: min(70vh, 640px); top: 50%; left: auto; right: 6vw; translate: 0 -50%; }
@media (max-width: 760px), (max-aspect-ratio: 3/4) { .story__poster { display: none; } }
.story__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.story__canvas:active { cursor: grabbing; }

.scene { position: absolute; z-index: 3; pointer-events: none; }
.scene a, .scene button { pointer-events: auto; }
.scene .kicker { margin-bottom: 1.4rem; }

.scene--hero {
  left: var(--gutter); top: calc(50% + 2.5rem); transform: translateY(-50%);
  max-width: 40rem;
  opacity: clamp(0, (.14 - var(--p, 0)) * 12, 1);
  translate: 0 calc(var(--p, 0) * -40vh);
}
.scene--hero h1 { font-size: var(--t-hero); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
.scene__lede { margin-top: 1.4rem; font-size: var(--t-lede); line-height: 1.45; color: var(--grey); max-width: 31ch; }
.scene--hero .actions { margin-top: 2rem; }

/* the monitor: live opening state drawn as a heart trace */
.monitor {
  margin-top: 2rem; width: min(100%, 23rem);
  padding: .9rem 1.1rem 1rem; border-radius: 14px;
  background: var(--deep); color: #d9ebe5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -22px rgba(15, 38, 33, .6);
}
.monitor__top, .monitor__bottom { display: flex; justify-content: space-between; gap: 1rem; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .04em; color: rgba(217, 235, 229, .6); text-transform: uppercase; }
.monitor__hours { color: #d9ebe5; }
.monitor__state { margin-top: .5rem; font-size: 1.375rem; font-stretch: 125%; font-weight: 700; letter-spacing: -.01em; color: var(--signal); }
.monitor__state.is-closed { color: var(--red-l); }
.ecg { display: block; width: 100%; height: 56px; margin: .35rem 0 .5rem; }
.monitor__bottom span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .45rem; border-radius: 50%; background: var(--signal); vertical-align: 1px; }

.scene__title { font-size: var(--t-1); font-stretch: 125%; font-weight: 800; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.scene--open {
  left: var(--gutter); bottom: 10vh; max-width: 31rem;
  opacity: clamp(0, min((var(--p, 0) - .27) * 14, (.6 - var(--p, 0)) * 14), 1);
}
.scene--done {
  left: var(--gutter); top: 50%; transform: translateY(-40%); max-width: 34rem;
  opacity: clamp(0, (var(--p, 0) - .86) * 14, 1);
}
.scene--done .actions { margin-top: 2rem; }
.story[data-scene="mid"] .scene--hero, .story[data-scene="mid"] .scene--done,
.story[data-scene="hero"] .scene--done, .story[data-scene="done"] .scene--hero { visibility: hidden; transition: visibility 0s .3s; }

.tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; opacity: 0;
  display: grid; gap: .15rem; width: max-content; max-width: 12rem;
  margin: -2.6rem 0 0 -1rem; padding: .5rem .7rem .55rem;
  background: var(--white); border: 1px solid var(--mint-200); border-radius: 8px;
  font: 400 .75rem/1.3 var(--mono); color: var(--grey);
  box-shadow: 0 8px 20px -14px rgba(15, 38, 33, .5);
  will-change: transform, opacity;
}
.tag b { font: 700 .9375rem var(--sans); font-stretch: 125%; color: var(--ink); }
.tag { transition: border-color .3s var(--ease), box-shadow .3s var(--ease), scale .3s var(--ease); }
.tag.is-active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47, 122, 104, .14), 0 12px 26px -14px rgba(15, 38, 33, .55); scale: 1.06; }
.tag.is-active b { color: var(--teal-800); }

.hint {
  position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 3;
  font: 400 .75rem var(--mono); color: var(--grey); white-space: nowrap;
  opacity: clamp(0, (.08 - var(--p, 0)) * 16, 1);
}

@media (max-width: 760px), (max-aspect-ratio: 3/4) {
  .story__lamp { width: 130vw; right: -15vw; top: 72%; }
  .scene--hero { top: calc(5.25rem + env(safe-area-inset-top, 0px)); transform: none; right: var(--gutter); }
  .scene--hero h1 { font-size: clamp(2.3rem, 10.2vw, 4.5rem); }
  .scene--hero .scene__lede { margin-top: 1rem; }
  .scene--hero .actions { margin-top: 1.4rem; }
  .monitor { margin-top: 1.4rem; width: 100%; }
  .ecg { height: 40px; }
  .scene--open { top: calc(5.25rem + env(safe-area-inset-top, 0px)); bottom: auto; right: var(--gutter); }
  .scene__title { font-size: clamp(2rem, 9vw, 3.25rem); }
  .scene--done { top: auto; bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px)); transform: none; right: var(--gutter); }
  .scene--done .scene__lede { margin-top: .9rem; }
  .scene--done .actions { margin-top: 1.25rem; }
  .tag { margin: -1.2rem 0 0 .25rem; }
  .hint { display: none; }
}

.no-webgl .story { height: auto; }
.no-webgl .story__sticky { position: relative; height: auto; min-height: 92vh; padding: 7rem 0 4rem; }
.no-webgl .scene--hero { position: relative; top: auto; transform: none; opacity: 1; translate: none; }
.no-webgl .scene--open, .no-webgl .scene--done, .no-webgl .tags, .no-webgl .hint, .no-webgl .story__canvas { display: none; }
@media (min-width: 761px) and (min-aspect-ratio: 3/4) { .no-webgl .scene--hero { max-width: min(40rem, 52vw); } }

/* ---------- sections ---------- */

.sec { padding: clamp(5.5rem, 3.5rem + 7vw, 10rem) 0; }
.sec--white { background: var(--white); }
.sec--mint { background: var(--mint-50); }
.sec--deep { background: var(--deep); color: #e7f1ee; }
.sec--white + .sec--white { padding-top: 0; }

.head { margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); max-width: 44rem; }
.head h2, .faq h2 { font-size: var(--t-1); line-height: 1.02; margin-top: 1.1rem; }
.head__lede { margin-top: 1.25rem; font-size: var(--t-lede); line-height: 1.45; color: var(--grey); max-width: 38ch; }
.head__lede a { color: var(--teal-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.head--row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: none; flex-wrap: wrap; }

.js:not(.reduced) .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js:not(.reduced) .reveal.is-in { opacity: 1; transform: none; }
.js:not(.reduced) .signs .reveal:nth-child(2), .js:not(.reduced) .charter__list .reveal:nth-child(2) { transition-delay: .08s; }
.js:not(.reduced) .signs .reveal:nth-child(3), .js:not(.reduced) .charter__list .reveal:nth-child(3) { transition-delay: .16s; }
.js:not(.reduced) .signs .reveal:nth-child(4), .js:not(.reduced) .charter__list .reveal:nth-child(4) { transition-delay: .24s; }

/* signs: hospital wayfinding panels */
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sign {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto;
  gap: 1rem 1.5rem; min-height: 15rem;
  padding: 1.5rem; border-radius: var(--r);
  background: var(--teal); color: var(--white);
  transition: background-color .3s var(--ease);
}
.sign:hover { background: var(--teal-700); }
.sign__pict {
  width: 64px; height: 64px; padding: 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.sign h3 { font-size: var(--t-2); line-height: 1.05; display: flex; align-items: center; gap: .6rem; }

.sign p { margin-top: .6rem; color: rgba(255, 255, 255, .8); max-width: 34ch; }
.sign__time {
  grid-column: 1 / -1; justify-self: start; align-self: end;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.25rem;
  padding: .35rem .75rem; border-radius: 6px;
  background: rgba(255, 255, 255, .14); color: var(--white); text-decoration: none;
  font: 500 .75rem var(--mono); letter-spacing: .03em;
  transition: background-color .2s;
}
.sign__time::after { content: "Preise →"; font-family: var(--sans); font-weight: 600; opacity: .8; }
.sign__time:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 760px) { .signs { grid-template-columns: 1fr; } .sign { min-height: 0; } }

/* Befund: the diagnosis fee as a findings form */
.rx { margin-top: 12px; border: 1.5px solid var(--teal); border-radius: var(--r); overflow: hidden; background: var(--white); }
.rx__head { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1.5rem; background: var(--mint-100); font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.rx__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 2.5rem; align-items: center; padding: 1.75rem 1.5rem; }
.rx__price { font-size: var(--t-1); font-stretch: 125%; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--teal-800); font-variant-numeric: tabular-nums; }
.rx__text { color: var(--grey); max-width: 52ch; padding-left: 2.5rem; border-left: 1px dashed var(--mint-200); }
.rx__text strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .rx__body { grid-template-columns: 1fr; } .rx__text { padding: 1rem 0 0; border-left: 0; border-top: 1px dashed var(--mint-200); } }

/* charter */
.charter__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 5rem; align-items: start; }
.charter__head h2 { font-size: var(--t-1); line-height: 1.02; margin-top: 1.1rem; color: var(--white); }
@media (min-width: 861px) { .charter__head { position: sticky; top: 7rem; } }
.charter__list li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); padding: 1.75rem 0; border-top: 1px solid rgba(231, 241, 238, .14); }
.charter__list li:last-child { border-bottom: 1px solid rgba(231, 241, 238, .14); }
.charter__no { grid-row: span 2; font: 500 .875rem/2 var(--mono); color: var(--signal); }
.charter__list h3 { font-size: var(--t-2); color: var(--white); }
.charter__list p { margin-top: .4rem; color: rgba(231, 241, 238, .66); max-width: 44ch; }
@media (max-width: 860px) { .charter__grid { grid-template-columns: 1fr; } }

/* treatment path */
.switch { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--white); border: 1px solid var(--mint-200); }
.switch button { border: 0; background: none; cursor: pointer; padding: .6rem 1.2rem; border-radius: 7px; font-weight: 600; font-size: .9375rem; color: var(--grey); transition: background-color .2s, color .2s; }
.switch button[aria-selected="true"] { background: var(--teal); color: var(--white); }

.path { position: relative; }
.path__line { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.path__line path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js:not(.reduced) .path__line path { stroke-dashoffset: 1; transition: stroke-dashoffset 2s cubic-bezier(.6, .05, .3, 1); }
.js:not(.reduced) .path__line.is-in path { stroke-dashoffset: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; text-align: center; }
[hidden] { display: none !important; }
.steps li { padding-top: 20px; }
.steps__station {
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 1.4rem;
  border-radius: 50%; background: var(--white); border: 2px solid var(--teal);
  font: 800 1rem var(--sans); font-stretch: 125%; color: var(--teal-800);
  position: relative; z-index: 1;
}
.steps h3 { font-size: 1.375rem; }
.steps p { margin: .5rem auto 0; color: var(--grey); max-width: 26ch; }
@media (max-width: 860px) {
  .path__line { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .steps li { position: relative; padding: 0 0 2rem 4rem; }
  .steps li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--red); }
  .steps li:last-child::before { display: none; }
  .steps__station { position: absolute; left: 0; top: 0; margin: 0; }
  .steps h3 { padding-top: .4rem; }
  .steps p { margin-left: 0; }
}

/* visit: photo and the door board */
.visit { display: block; }
/* hours board across the full width: name, note and buttons left, the week right */
@media (min-width: 861px) {
  .visit .board { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "head table" "note table" "actions table"; grid-template-rows: auto auto 1fr; column-gap: clamp(2rem, 1rem + 4vw, 5rem); }
  .visit .board__head { grid-area: head; }
  .visit .hours { grid-area: table; margin: 0; align-self: start; }
  .visit .board__note { grid-area: note; margin: 1.5rem 0; }
  .visit .board .actions { grid-area: actions; align-self: start; }
}
/* "Sprechzeiten" stays one word on one line */
#laden .board h2 { font-size: clamp(1.9rem, .9rem + 2.2vw, 2.7rem); line-height: 1.02; overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
@media (max-width: 560px) {
  .visit .board__head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .visit .board__logo { width: 96px; }
}
.visit__photo { border-radius: var(--r); overflow: hidden; }
.visit__photo picture { display: block; height: 100%; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.board { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-radius: var(--r); background: var(--teal-800); color: var(--white); }
.board__head { display: flex; gap: 1.25rem; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.board__logo { width: 84px; height: auto; flex: none; }
.board h2 { font-size: var(--t-2); }
.board__head p { margin-top: .2rem; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.hours { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .55rem .6rem; text-align: left; font-weight: 400; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hours td { text-align: right; font: 400 .9375rem var(--mono); color: rgba(255, 255, 255, .8); }
.hours tr.is-today th, .hours tr.is-today td { background: var(--white); color: var(--teal-800); font-weight: 600; border-bottom-color: transparent; }
.hours tr.is-today th { border-radius: 6px 0 0 6px; }
.hours tr.is-today td { border-radius: 0 6px 6px 0; }
.board__note { margin-bottom: 1.5rem; font-weight: 600; font-stretch: 112%; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit__photo img { aspect-ratio: 4 / 3; } }

/* faq */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 5rem; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; font-size: 1.1875rem; font-weight: 600; font-stretch: 110%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--mint-100); color: var(--teal-800); font: 400 1.25rem/1 var(--sans); transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--teal); color: var(--white); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--grey); max-width: 60ch; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* call */
.call { position: relative; overflow: hidden; padding-bottom: 0; }
.call__title { margin-top: 1.25rem; font-size: var(--t-2); color: rgba(231, 241, 238, .8); font-weight: 600; }
.call__number {
  display: inline-block; margin-top: .5rem; color: var(--white); text-decoration: none;
  font-size: clamp(1.375rem, .95rem + 1.7vw, 2.5rem); font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap;
  font-variant-numeric: tabular-nums; transition: color .25s;
}
.call__number:hover { color: var(--signal); }
.call__meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.75rem; font: 400 .875rem var(--mono); color: rgba(231, 241, 238, .6); }
.call__meta a { color: var(--white); text-decoration: none; }
.ecg--wide { width: 100%; height: 120px; margin: 3.5rem 0 0; }

/* franchise */
.franchise__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 5rem; align-items: start; }
.franchise h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.04; margin-top: 1.1rem; }
.franchise .head__lede { margin-bottom: 2rem; }
.franchise__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fcard { padding: 1.5rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--mint-200); }
.fcard h3 { font-size: 1.125rem; padding-bottom: .9rem; margin-bottom: .25rem; border-bottom: 2px solid var(--teal); }
.fcard li { padding: .65rem 0 .65rem 1.4rem; border-bottom: 1px solid var(--rule); color: var(--grey); position: relative; }
.fcard li:last-child { border-bottom: 0; }
.fcard li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
@media (max-width: 860px) { .franchise__grid, .franchise__cards { grid-template-columns: 1fr; } }

/* footer */
.foot { position: relative; overflow: hidden; padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; color: var(--grey); background: linear-gradient(var(--white), var(--mint-50)); }
.foot__pulse { display: block; width: 100%; height: 60px; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.foot__pulse-line { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.foot__pulse-beat { stroke: var(--red); stroke-width: 1.8; }
.js:not(.reduced) .foot__pulse { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s cubic-bezier(.6, 0, .3, 1); }
.js:not(.reduced) .foot.is-in .foot__pulse { clip-path: inset(0 0 0 0); }
.foot__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--rule); }
.foot__claim { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem); font-stretch: 125%; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ink); max-width: 14ch; }
.foot__claim-dot { color: var(--red); }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 3rem; padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.foot__h { font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .8rem; }
.foot p + p { margin-top: .75rem; }
.foot a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: .2rem; transition: color .22s var(--ease); }
.foot a:hover { color: var(--teal); }
.foot a.btn { display: inline-flex; padding-block: 0; }
.foot .btn--primary { color: var(--white); }
.foot .btn--primary:hover { color: var(--white); }
.foot__small { font-size: .8125rem; max-width: 36ch; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); font-size: .8125rem; }
.foot__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot__up span { display: inline-block; transition: transform .22s var(--ease); }
.foot__up:hover span { transform: translateY(-2px); }
.foot__mark { position: relative; z-index: 0; margin-top: clamp(1rem, 2vw, 2rem); padding-inline: var(--gutter); pointer-events: none; }
.foot__mark img { display: block; width: 100%; max-width: 1400px; margin: 0 auto; height: auto; opacity: .09; filter: saturate(.6); margin-bottom: -6%; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } .foot__top { align-items: start; } }

/* ---------- shared page parts (sub-pages) ---------- */

.narrow { max-width: 48rem; }
.center { text-align: center; }
.actions--center { justify-content: center; }
.h2 { font-size: var(--t-1); line-height: 1.02; }
.page-head { padding-top: calc(5rem + clamp(3rem, 2rem + 4vw, 6rem)); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-title { margin-top: 1.1rem; font-size: var(--t-1); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.page-title--light { color: var(--white); max-width: 18ch; }
.head__lede--light { color: rgba(231, 241, 238, .78); }
.head__lede.center { margin-inline: auto; }
.page-hero { padding-top: calc(5rem + clamp(3rem, 2rem + 4vw, 6rem)); padding-bottom: 0; overflow: hidden; }
.page-hero .actions { margin-top: 2rem; }
.btn--signal { background: var(--signal); color: var(--deep); }
.btn--signal:hover { background: #8ff0d2; }
.link-arrow { align-self: end; font-weight: 600; color: var(--teal-700); text-decoration: none; white-space: nowrap; padding: .5rem 0; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--ink); }
.notfound { padding-top: calc(5rem + clamp(4rem, 3rem + 6vw, 8rem)); }
.notfound .head__lede { margin-bottom: 2rem; }

/* prose for legal pages */
.prose { color: var(--ink); }
.prose h2 { font-size: var(--t-2); margin: 2.5rem 0 .75rem; }
.prose p, .prose ul { margin: 0 0 1rem; max-width: 66ch; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.legal { padding-top: 0; }

/* content still to be confirmed by the client: visible on purpose */
mark.todo { background: #fff1c2; color: #6b4b00; padding: .1rem .35rem; border-radius: 4px; font: 500 .875rem/1.5 var(--mono); }

/* ---------- price selector ---------- */

.selector { border-radius: var(--r); background: var(--white); border: 1px solid var(--mint-200); overflow: hidden; }
.selector__demo { margin: 0; padding: .9rem 1.25rem; background: #fff6d8; color: #6b4b00; font-size: .9375rem; border-bottom: 1px solid #f0dca0; }
.page-head .selector__demo { margin-top: 1.5rem; border: 1px solid #f0dca0; border-radius: 8px; }
.selector__demo a { color: inherit; font-weight: 600; }
.selector__controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; padding: 1.5rem; border-bottom: 1px solid var(--mint-200); }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9375rem; }
.field select, .field input {
  width: 100%; min-height: 3.25rem; padding: 0 1rem; border-radius: 8px;
  border: 1.5px solid var(--mint-200); background: var(--white); color: var(--ink);
  font: 500 1rem var(--sans); appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select:disabled { background-color: var(--mint-50); color: var(--grey); }
.field select:focus, .field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47, 122, 104, .18); }
.field--search label { color: var(--grey); font-weight: 500; }
.field__no { display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--teal); color: var(--white); font: 800 .8125rem var(--sans); font-stretch: 125%; }
.selector__result { padding: 1.5rem; min-height: 9rem; }
.selector__empty { display: flex; align-items: center; gap: .75rem; color: var(--grey); margin: 0; }
.selector__empty a { color: var(--teal-700); font-weight: 600; }
.selector__model { display: grid; gap: 1rem; }
.selector__name { display: flex; align-items: center; gap: .75rem; font-size: var(--t-2); font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; }
.selector fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.repairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 10px; }
.repair {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4rem;
  padding: .85rem 1.1rem; border-radius: 8px; border: 1.5px solid var(--mint-200); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.repair input { position: absolute; opacity: 0; pointer-events: none; }
.repair:hover { border-color: var(--teal); }
.repair:has(input:checked) { border-color: var(--teal); background: var(--mint-50); box-shadow: inset 0 0 0 1px var(--teal); }
.repair:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.repair__name { font-weight: 600; display: grid; }
.repair__name small, .repair__price small { font: 400 .75rem var(--mono); color: var(--grey); }
.repair__price { text-align: right; display: grid; font-size: 1.375rem; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--teal-800); }
.repair__price.is-request { font-size: 1rem; font-weight: 600; color: var(--grey); }
.selector__cta { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--mint-200); display: grid; gap: 1rem; }
.selector__cta > p:first-child { font-weight: 600; }
.selector__cta > p:first-child span { display: block; font: 500 .6875rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: .2rem; }
.selector__hint { font-size: .875rem; color: var(--grey); margin: 0; }
@media (max-width: 860px) { .selector__controls { grid-template-columns: 1fr 1fr; } .field--search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .selector__controls { grid-template-columns: 1fr; padding: 1.1rem; } .selector__result { padding: 1.1rem; } }

/* ---------- price list page ---------- */

.pricelist { padding-top: 0; }
.pricelist__tools { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1rem 2rem; align-items: end; margin-bottom: 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--mint-200); background: var(--white); font-weight: 600; cursor: pointer; color: var(--grey); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pricelist__brand { margin-bottom: 3rem; }
.pricelist__brand h2 { font-size: var(--t-2); margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--mint-200); border-radius: var(--r); }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: .8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ptable thead th { background: var(--mint-50); font: 500 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable tbody th { font-weight: 600; }
.ptable small { display: block; font: 400 .75rem var(--mono); color: var(--grey); }
.ptable .num { text-align: right; white-space: nowrap; font-weight: 700; }
.pricelist__none { color: var(--grey); }
.pricelist__foot { margin-top: 2rem; color: var(--grey); display: grid; gap: .3rem; }
@media (max-width: 760px) { .pricelist__tools { grid-template-columns: 1fr; } }
.pricelist__tools--single { grid-template-columns: minmax(0, 28rem); margin-bottom: 1rem; }
.hits { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .35rem; max-width: 28rem; }
.hits a { display: block; padding: .7rem 1rem; border: 1.5px solid var(--mint-200); border-radius: 8px; font-weight: 600; color: var(--teal-800); text-decoration: none; }
.hits a:hover, .hits a:focus-visible { border-color: var(--teal); background: var(--mint-50); }
.hits__none { color: var(--grey); }
.hits__none a { display: inline; padding: 0; border: 0; }
.pricelist__type { font-weight: 600; color: var(--teal-800); margin: 0 0 1rem; }
.brandgrid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 10px; }
.brandcard { display: grid; gap: .3rem; min-height: 6.5rem; align-content: end; padding: 1.1rem 1.25rem; border: 1.5px solid var(--mint-200); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.brandcard:hover, .brandcard:focus-visible { border-color: var(--teal); background: var(--mint-50); }
.brandcard__name { font-size: var(--t-2); font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; }
.brandcard__meta { font: 400 .8125rem var(--mono); color: var(--grey); }
.brandnav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: 1.25rem; font-weight: 600; }
.brandnav a { color: var(--teal-700); }
.brandnav a[aria-current] { color: var(--ink); text-decoration: none; }
.kicker a { color: inherit; }
.pricelist__brand h2 { margin-top: 1rem; }
.pmodel { border-bottom: 1px solid var(--rule); }
.pmodel > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.25rem; padding: .5rem .25rem; cursor: pointer; font-weight: 600; list-style: none; }
.pmodel > summary::-webkit-details-marker { display: none; }
.pmodel > summary::after { content: "+"; font: 500 1.25rem var(--mono); color: var(--teal); }
.pmodel[open] > summary::after { content: "−"; }
.pmodel > summary small { margin-left: auto; font: 400 .75rem var(--mono); color: var(--grey); }
.pmodel > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.pmodel .ptable { margin-bottom: 1rem; border: 1px solid var(--mint-200); border-radius: 8px; border-collapse: separate; border-spacing: 0; }
.pmodel[hidden], [data-group][hidden] { display: none; }

/* Preview builds: visible marker so a preview can never be mistaken for the live site */
.preview-flag {
  position: fixed; right: 8px; top: calc(5rem + 6px + env(safe-area-inset-top, 0px)); z-index: 80; margin: 0; opacity: .9;   /* below the header, clear of the footer links and the reviews strip */
  padding: .4rem .8rem; border-radius: 999px; background: #6b4b00; color: #fff6d8;
  font: 500 .75rem/1.2 var(--mono); letter-spacing: .04em; pointer-events: none; white-space: nowrap;
}

/* ---------- services page ---------- */
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 10px; }
.svc__item { display: grid; align-content: start; gap: .75rem; padding: 1.4rem 1.4rem 1.25rem; border: 1px solid var(--mint-200); border-radius: var(--r); background: var(--white); }
.svc__title { font-size: 1.25rem; margin: 0; }
.svc__item p { margin: 0; color: var(--grey); }
.svc__facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.svc__facts div { display: flex; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; background: var(--mint-50); font: 500 .75rem var(--mono); }
.svc__facts dt { color: var(--teal-700); }
.svc__facts dd { margin: 0; color: var(--ink); }
.svc__item .link-arrow { margin-top: auto; }
.svc__note { margin-top: 1.5rem; color: var(--grey); font-size: .9375rem; }
.svc-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
.svc-visit__photos { display: grid; gap: 10px; }
.svc-visit__photos img { width: 100%; height: auto; border-radius: var(--r); display: block; }
@media (max-width: 860px) { .svc-visit { grid-template-columns: 1fr; } }

/* ---------- model offer page ---------- */
.offer-head { padding-bottom: 1.5rem; }
.offer { padding-top: 0; }
.offer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: 2rem; align-items: start; }
.offer__form { display: grid; gap: 2rem; min-width: 0; }
.offer__block { border: 0; margin: 0; padding: 0; min-width: 0; }
.offer__legend { display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: 1rem; font-size: 1.125rem; font-weight: 700; }
.offer__legend small { font-weight: 500; color: var(--grey); font-size: .875rem; }
.extras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 10px; }
.extra { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; min-height: 4rem; padding: .85rem 1.1rem; border-radius: 8px; border: 1.5px solid var(--mint-200); cursor: pointer; transition: border-color .2s, background-color .2s; }
.extra input { position: absolute; opacity: 0; pointer-events: none; }
.extra__box { width: 1.25rem; height: 1.25rem; border-radius: 4px; border: 1.5px solid var(--teal); display: grid; place-items: center; }
.extra:has(input:checked) { border-color: var(--teal); background: var(--mint-50); }
.extra:has(input:checked) .extra__box { background: var(--teal); box-shadow: inset 0 0 0 3px var(--white); }
.extra:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.extra:hover { border-color: var(--teal); }
.extra__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--teal-800); }
.offer__sum { position: sticky; top: 6rem; display: grid; gap: 1rem; padding: 1.5rem; border-radius: var(--r); background: var(--mint-50); border: 1px solid var(--mint-200); }
.offer__sum-h { font-size: 1.125rem; margin: 0; }
.offer__lines { margin: 0; display: grid; gap: .5rem; }
.offer__lines div { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.offer__lines dt { color: var(--grey); }
.offer__lines dd { margin: 0; font-weight: 600; white-space: nowrap; }
.offer__total { padding-top: .75rem; margin-top: .25rem; border-top: 1px dashed var(--mint-200); }
.offer__total dt { color: var(--ink); font-weight: 700; }
.offer__total dd { font-size: 1.75rem; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; color: var(--teal-800); }
.offer__actions .btn { flex: 1 1 auto; justify-content: center; }
.offer-visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.offer-visit__info { display: grid; gap: 1rem; }
.offer-visit__info p { margin: 0; }
.offer-visit__more { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pmodel__open { display: inline-block; margin: 0 0 1rem; }
@media (max-width: 900px) {
  .offer__grid, .offer-visit__grid { grid-template-columns: 1fr; }
  .offer__sum { position: static; }
}
.offer__bar { display: none; }
@media (max-width: 900px) {
  .offer__bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; padding: .8rem 1.1rem; border-radius: var(--r); background: var(--teal-800); color: var(--white); text-decoration: none; box-shadow: 0 10px 30px rgba(15, 38, 33, .25); }
  .offer__bar strong { font-size: 1.125rem; font-stretch: 125%; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .offer__bar-go { margin-left: auto; font-weight: 600; font-size: .875rem; white-space: nowrap; }
  .offer { padding-bottom: 6rem; }
}
@media (max-width: 860px) { .preview-flag { top: calc(4rem + 6px + env(safe-area-inset-top, 0px)); } }

/* ---------- contact: tabs, and a letter that folds into an envelope ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem 4rem; align-items: start; }
.contact__visit { display: grid; gap: .8rem; justify-items: start; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.contact__visit p { margin: 0; color: var(--grey); line-height: 1.55; }
.contact__visit strong { color: var(--ink); }
.contact__box { position: relative; min-width: 0; }
.ctabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 1rem; border-radius: 12px; background: var(--mint-50); border: 1px solid var(--mint-100); width: fit-content; max-width: 100%; overflow-x: auto; }
.ctab { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: 0 1rem; border: 0; border-radius: 9px; background: none; font: 600 .9375rem var(--sans); color: var(--grey); cursor: pointer; white-space: nowrap; transition: background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease); }
.ctab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ctab:hover { color: var(--ink); }
.ctab[aria-selected="true"] { background: var(--white); color: var(--teal-800); box-shadow: 0 1px 2px rgba(15, 38, 33, .1), 0 4px 12px -6px rgba(15, 38, 33, .25); }
.ctab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.cpanel { position: relative; }
.js:not(.reduced) .cpanel:not([hidden]) { animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }
.cpanel__big { margin: .5rem 0 1rem; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-stretch: 120%; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.cpanel__big a { color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.cpanel__big span { color: var(--grey); font-weight: 600; font-size: .6em; }
.cpanel__text { color: var(--grey); max-width: 36rem; margin-bottom: 1.25rem; line-height: 1.55; }
#cp-anruf .nav__state { margin-bottom: 1.5rem; }

/* the letter: a sheet of paper with ruled lines, address line and signature */
.letter { position: relative; z-index: 2; display: grid; gap: 1.25rem; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: 6px 6px 12px 12px; background:
    repeating-linear-gradient(transparent 0 31px, rgba(47, 122, 104, .07) 31px 32px), linear-gradient(#fffefb, #fffdf7);
  border: 1px solid #ece8dc; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 24px 48px -28px rgba(15, 38, 33, .45); transform-origin: 50% 100%; }
.letter__to { margin: 0; padding-bottom: .9rem; border-bottom: 1px dashed #dcd6c6; font-size: .9375rem; color: var(--grey); overflow-wrap: anywhere; }
.letter__to span { display: inline-block; margin-right: .4rem; font: 600 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.letter__field { display: grid; gap: .3rem; }
.letter__field label { font-weight: 600; font-size: .875rem; color: var(--ink); }
.letter__field label small { font-weight: 500; color: var(--grey); }
.letter input, .letter textarea { width: 100%; padding: .55rem 0; border: 0; border-bottom: 1.5px solid #d9d3c3; border-radius: 0; background: transparent; font: 500 1.0625rem/1.5 var(--sans); color: var(--ink); resize: vertical; transition: border-color .22s var(--ease), box-shadow .22s var(--ease); }
.letter textarea { min-height: 7.5rem; }
.letter input:focus, .letter textarea:focus { outline: none; border-bottom-color: var(--teal); box-shadow: 0 1.5px 0 var(--teal); }
.letter [aria-invalid="true"] { border-bottom-color: var(--red); }
.letter__hint { font: 400 .75rem var(--mono); color: var(--grey); transition: color .22s var(--ease); }
.letter__hint.is-ok { color: #1f8a6a; }
.letter__hint.is-ok::before { content: "✓ "; }
.letter__hint.is-bad { color: var(--red); }
.letter__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.letter__greet { grid-column: 1 / -1; margin: .25rem 0 0; font-style: italic; color: var(--grey); }
.letter__ready { margin: 0; min-height: 1.2em; font-weight: 600; color: #1f8a6a; }
.contact__error { margin: 0; color: var(--red); font-weight: 600; }
.contact__send { display: grid; gap: .6rem; justify-items: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .letter__sign { grid-template-columns: 1fr; } .ctab { padding: 0 .8rem; } }

/* sending: the sheet folds and slides into an envelope, the flap closes */
.envelope { position: absolute; left: 50%; bottom: 0; z-index: 1; width: min(100%, 26rem); aspect-ratio: 1.6; translate: -50% 0; opacity: 0; pointer-events: none; }
.envelope__back, .envelope__front, .envelope__flap { position: absolute; inset: 0; border-radius: 8px; }
.envelope__back { background: #e8e1cf; }
.envelope__front { z-index: 3; background: linear-gradient(to top right, #f1ebdb 50%, transparent 50.5%) left / 50% 100% no-repeat, linear-gradient(to top left, #f1ebdb 50%, transparent 50.5%) right / 50% 100% no-repeat, linear-gradient(to top, #ece5d3 0 55%, transparent 55.5%); }
.envelope__flap { z-index: 4; background: linear-gradient(to bottom, #e3dbc6 0, #e9e2cf 100%); clip-path: polygon(0 0, 100% 0, 50% 58%); transform-origin: 50% 0; transform: rotateX(180deg); transition: transform .4s var(--ease) .55s; }
.cpanel.is-sending .envelope { opacity: 1; transition: opacity .2s; }
.cpanel.is-sending .letter { animation: letterIn .7s cubic-bezier(.6, 0, .3, 1) forwards; }
.cpanel.is-sending .envelope__flap { transform: rotateX(0); }
.cpanel.is-sent .envelope { animation: envOut .5s var(--ease) forwards; }
@keyframes letterIn { 60% { transform: scale(.62, .32) translateY(40%); opacity: 1; } 100% { transform: scale(.55, .2) translateY(120%); opacity: 0; } }
@keyframes envOut { to { transform: translateY(-30px) rotate(-4deg); opacity: 0; } }

.contact__send .selector__hint a { color: var(--teal-700); }
.contact h2, .offer-visit h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.04; margin-top: 1.1rem; }
.fhigh { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.fhigh li { display: grid; gap: .2rem; padding-top: .8rem; border-top: 1px solid var(--mint-200); }
.fhigh span { color: var(--grey); font-size: .9375rem; }
.fstores__h { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.08; margin-bottom: 1.5rem; }
@media (max-width: 700px) { .fhigh { grid-template-columns: 1fr; } }

/* ---------- franchise page ---------- */
.fsec__h { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.06; margin-bottom: 1rem; }
.fsec__h--light { color: var(--white); }
.fhero { padding-top: calc(5rem + clamp(2rem, 1rem + 3vw, 4rem)); overflow: hidden; background: radial-gradient(120% 90% at 15% 40%, var(--white) 0%, var(--mint-50) 55%, var(--mint-100) 100%); }
.fhero__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 4rem; align-items: center; }
.fhero__doc { display: block; justify-self: center; width: min(100%, 340px); }
.fhero__doc img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(15, 38, 33, .18)); }
.js:not(.reduced) .fhero__doc.is-in img { animation: docFloat 6s ease-in-out 1s infinite; }
@keyframes docFloat { 50% { transform: translateY(-10px) rotate(-.6deg); } }
.fhero .page-title { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.25rem); line-height: 1.02; }
.fhero__brand { color: var(--teal); }
.fhero .actions { margin-top: 2rem; }

.fstores { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); margin-top: 2rem; }
.fstores__item { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 38, 33, .08), 0 18px 40px -18px rgba(15, 38, 33, .35); outline-offset: 4px; }
.fstores__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease); }
.fstores__item:hover img, .fstores__item:focus-visible img { transform: scale(1.035); }
.fstores__zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.fstores__zoom::before, .fstores__zoom::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--teal-800); border-radius: 1px; }
.fstores__zoom::after { transform: rotate(90deg); }
.fstores__item:hover .fstores__zoom, .fstores__item:focus-visible .fstores__zoom { opacity: 1; transform: none; }
@media (hover: none) { .fstores__zoom { opacity: 1; transform: none; } }

.fbenefits__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 4rem; align-items: start; }
.fchecks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .9rem; }
.fchecks li { position: relative; padding-left: 2.4rem; font-size: 1.0625rem; line-height: 1.5; }
.fchecks li::before { content: ""; position: absolute; left: 0; top: .05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--mint-100); }
.fchecks li::after { content: ""; position: absolute; left: .52rem; top: .5rem; width: .55rem; height: .3rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.ftiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ftile { padding: 2rem 1.25rem; border-radius: 14px; text-align: center; background: linear-gradient(180deg, var(--mint-50), var(--white)); border: 1px solid var(--mint-200); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.ftile:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 18px 36px -20px rgba(15, 38, 33, .35); }
.ftile svg { width: 40px; height: 40px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.ftile h3 { font-size: 1.125rem; margin-bottom: .4rem; }
.ftile p { color: var(--grey); font-size: .9375rem; }
.js:not(.reduced) .ftiles .reveal:nth-child(2) { transition-delay: .08s; }
.js:not(.reduced) .ftiles .reveal:nth-child(3) { transition-delay: .16s; }
.js:not(.reduced) .ftiles .reveal:nth-child(4) { transition-delay: .24s; }

.freq { position: relative; overflow: hidden; background: var(--mint-50); }
.freq__bg { position: absolute; inset: 0; }
.freq__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: saturate(.8) blur(1px); }
.freq__in { position: relative; }
.freq__list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; counter-reset: none; }
.freq__list li { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 12px; background: rgba(255, 255, 255, .92); border: 1px solid var(--mint-200); box-shadow: 0 10px 24px -18px rgba(15, 38, 33, .4); font-size: 1.0625rem; }
.freq__no { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--teal); color: var(--white); font: 600 1rem var(--sans); }
.js:not(.reduced) .freq__list .reveal:nth-child(2) { transition-delay: .08s; }
.js:not(.reduced) .freq__list .reveal:nth-child(3) { transition-delay: .16s; }
.js:not(.reduced) .freq__list .reveal:nth-child(4) { transition-delay: .24s; }

.fcta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-700) 60%, var(--teal-800) 100%); color: var(--white); padding-bottom: 0; }
.fcta .actions { margin-top: 2rem; }
.fcta .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.fcta .ecg { margin-top: 3rem; }

.zoom { padding: 0; border: 0; background: transparent; max-width: min(94vw, 1600px); max-height: 92vh; overflow: visible; }
.zoom::backdrop { background: rgba(10, 22, 19, .82); }
.zoom img { display: block; max-width: 100%; max-height: 92vh; border-radius: 10px; }
.zoom__close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font: 400 1.75rem/1 var(--sans); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.js:not(.reduced) .zoom[open] { animation: zoomIn .35s var(--ease); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }

@media (max-width: 860px) {
  .fhero__grid, .fbenefits__grid { grid-template-columns: 1fr; }
  .fhero__doc { width: min(46vw, 220px); }
}
@media (max-width: 600px) {
  .fstores, .ftiles, .freq__list { grid-template-columns: 1fr; }
  .zoom__close { top: 8px; right: 8px; }
}
.why__list { list-style: none; counter-reset: why; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.75rem 2rem; }
.why__list li { counter-increment: why; display: grid; gap: .4rem; padding-top: 1rem; border-top: 1px solid var(--mint-200); }
.why__list li::before { content: counter(why, decimal-leading-zero); font: 500 .75rem var(--mono); color: var(--teal); }
.why__list h3 { font-size: 1.0625rem; margin: 0; }
.why__list p { margin: 0; color: var(--grey); }
.foot__brands { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
@media (max-width: 900px) {
  body:has(.offer__bar) .foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
  .offer__bar.is-away { opacity: 0; pointer-events: none; transform: translateY(1rem); }
  .offer__bar { transition: opacity .2s, transform .2s; }
}

/* ---------- Preisrechner page (/reparatur-finden/) ---------- */
.finder-head { padding-top: calc(5rem + clamp(2.5rem, 2rem + 3vw, 5rem)); padding-bottom: 2rem; }
.finder { background: var(--white); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.finder__progress { position: sticky; top: calc(5rem + env(safe-area-inset-top, 0px)); z-index: 30; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.finder__progress ol { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding-block: .6rem; }
.finder__progress button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .6rem; align-items: center; text-align: left;
  padding: .45rem .6rem; border: 0; border-radius: 8px; background: none; cursor: pointer; font: inherit; color: var(--ink); min-height: 3rem; }
.finder__progress button .field__no { grid-row: span 2; background: var(--mint-200); color: var(--teal-800); transition: background-color .2s, color .2s; }
.finder__progress button > span:not(.field__no) { font-weight: 700; }
.finder__progress small { font: 400 .75rem var(--mono); color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder__progress button[aria-current] .field__no { background: var(--teal); color: var(--white); }
.finder__progress button[aria-current] { background: var(--mint-50); }
.finder__progress button:disabled { cursor: default; opacity: .5; }
.finder__progress button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.finder__grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; padding-top: 2rem; }
.finder__main { min-width: 0; }
.finder__status:empty { display: none; }
.finder__status { margin: 0 0 1.5rem; padding: .9rem 1.1rem; border-radius: 8px; background: var(--mint-50); color: var(--teal-800); }
.finder__status a { color: inherit; font-weight: 600; }
.finder.is-failed .fstep { display: none; }
.fstep__h { font-size: var(--t-2); margin: 0 0 1.25rem; outline: none; text-wrap: balance; }
.fstep__sub { margin: 1.75rem 0 .75rem; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.fstep.is-in { animation: fstep-in .32s var(--ease); }
@keyframes fstep-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fsearch { position: relative; display: grid; gap: .45rem; max-width: 36rem; }
.fsearch label { font-weight: 600; }
.fsearch input, .fmodels__tools input { width: 100%; min-height: 3.5rem; padding: 0 1.1rem; border-radius: 10px; border: 1.5px solid var(--mint-200); font: 500 1.0625rem var(--sans); color: var(--ink); background: var(--white); }
.fsearch input:focus, .fmodels__tools input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47, 122, 104, .18); }
.fsearch__hits { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: .35rem; list-style: none; background: var(--white);
  border: 1px solid var(--mint-200); border-radius: 10px; box-shadow: 0 18px 40px rgba(15, 38, 33, .14); max-height: 22rem; overflow-y: auto; }
.fsearch__hits li { display: flex; align-items: baseline; gap: .4rem; padding: .75rem .8rem; border-radius: 7px; cursor: pointer; }
.fsearch__hits li small { margin-left: auto; font: 400 .75rem var(--mono); color: var(--grey); }
.fsearch__hits li[aria-selected="true"], .fsearch__hits li:hover { background: var(--mint-50); }
.fsearch__hits .fsearch__none { color: var(--grey); cursor: default; }
.fbrands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 8px; }
.fbrand { width: 100%; display: grid; gap: .15rem; text-align: left; padding: 1rem 1.1rem; min-height: 4.5rem; border-radius: 10px; border: 1.5px solid var(--mint-200); background: var(--white);
  cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, background-color .2s, transform .2s; }
.fbrand__name { font-size: 1.125rem; font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; }
.fbrand__meta { font: 400 .75rem var(--mono); color: var(--grey); }
.fbrand:hover { border-color: var(--teal); }
.fbrand[aria-pressed="true"] { border-color: var(--teal); background: var(--mint-50); box-shadow: inset 0 0 0 1px var(--teal); }
.fbrand:focus-visible, .fmodel:focus-visible, .frepair:focus-visible, .fback:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.fmodels { margin-top: 1.5rem; }
.fmodels__tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: .75rem 1rem; align-items: center; margin-bottom: 1rem; }
.fmodels__tools input { min-height: 2.75rem; font-size: 1rem; }
.fmodels__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 6px; max-height: 32rem; overflow-y: auto; padding-right: 2px; }
.fmodels__group { grid-column: 1 / -1; margin: 1rem 0 .15rem; padding-bottom: .3rem; border-bottom: 1px solid var(--rule); font: 700 .8125rem var(--sans); color: var(--teal-700); }
.fmodels__group:first-child { margin-top: 0; }
.fmodel { width: 100%; display: grid; text-align: left; padding: .7rem .85rem; min-height: 3.25rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--white); cursor: pointer; font: 600 .9375rem var(--sans); color: var(--ink); }
.fmodel small { font: 400 .6875rem var(--mono); color: var(--grey); }
.fmodel:hover { border-color: var(--teal); background: var(--mint-50); }
.fmodel[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.fempty { color: var(--grey); }
.fempty a, .fstep .selector__hint a { color: var(--teal-700); font-weight: 600; }
.fback { border: 0; background: none; padding: .4rem 0; margin: -.5rem 0 1rem; font: 600 .9375rem var(--sans); color: var(--teal-700); cursor: pointer; }
.fback::before { content: "← "; }
.fback-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.frepairs { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 10px; }
.frepair { width: 100%; height: 100%; display: grid; align-content: start; gap: .35rem; text-align: left; padding: 1.1rem 1.2rem; min-height: 6.5rem; border-radius: 10px;
  border: 1.5px solid var(--mint-200); background: var(--white); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, background-color .2s, transform .2s; }
.frepair:hover { border-color: var(--teal); transform: translateY(-1px); }
.frepair[aria-pressed="true"] { border-color: var(--teal); background: var(--mint-50); box-shadow: inset 0 0 0 1px var(--teal); }
.frepair__name { font-size: 1.0625rem; font-weight: 700; }
.frepair__price { display: grid; gap: .1rem; font-variant-numeric: tabular-nums; color: var(--teal-800); }
.frepair__price > b { font-size: 1.375rem; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; }
.frepair__price > b.is-request { font-size: 1rem; font-weight: 600; color: var(--grey); }
.frepair__price span { font-size: .9375rem; color: var(--grey); }
.frepair__price span b { color: var(--teal-800); }
.frepair__meta { font: 400 .75rem var(--mono); color: var(--grey); }
.fresult { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--r); border: 1px solid var(--mint-200); background: var(--mint-50); }
.fresult__facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fresult__facts dt { font: 500 .6875rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.fresult__facts dd { margin: .2rem 0 0; font-size: 1.125rem; font-weight: 700; }
.fresult fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fresult legend { padding: 0; margin-bottom: .6rem; font-weight: 700; }
.fresult legend small { font-weight: 500; color: var(--grey); }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; flex: 1 1 10rem; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; gap: .1rem; padding: .8rem 1rem; min-height: 3.5rem; border-radius: 8px; border: 1.5px solid var(--mint-200); background: var(--white); cursor: pointer; font-weight: 700; }
.segmented small { font: 500 .8125rem var(--mono); color: var(--teal-800); }
.segmented input:checked + span { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.segmented input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.fresult__price { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; border-top: 1px dashed var(--mint-200); }
.fresult__price span { font-weight: 700; }
.fresult__price strong { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; font-stretch: 125%; letter-spacing: -.03em; color: var(--teal-800); font-variant-numeric: tabular-nums; text-align: right; }
.fresult .actions .btn { flex: 1 1 auto; justify-content: center; }
.fdevice { position: sticky; top: calc(10rem + env(safe-area-inset-top, 0px)); display: grid; justify-items: center; gap: .4rem; padding: 1.25rem 1rem; border-radius: var(--r); background: var(--mint-50); }
.fdevice__svg { width: 100%; max-width: 13rem; height: auto; }
.fdevice__svg .dv { display: none; fill: none; stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.fdevice__svg[data-cat="Smartphone"] .dv--phone, .fdevice__svg[data-cat=""] .dv--phone, .fdevice__svg[data-cat="Sonstiges"] .dv--phone,
.fdevice__svg[data-cat="Tablet"] .dv--tablet, .fdevice__svg[data-cat="Smartwatch"] .dv--watch, .fdevice__svg[data-cat="Laptop"] .dv--laptop { display: inline; }
.fdevice__svg .dv__body { fill: var(--white); }
.fdevice__svg .part { stroke: var(--mint-200); stroke-width: 2; fill: none; transition: stroke .25s, fill .25s; }
.fdevice__svg .part--backcover, .fdevice__svg .part--wasserschaden, .fdevice__svg .part--fehleranalyse, .fdevice__svg .part--wifi-bluetooth { stroke: none; }
.fdevice__svg[data-part="display"] .part--display, .fdevice__svg[data-part="panzerglas"] .part--panzerglas,
.fdevice__svg[data-part="akku"] .part--akku, .fdevice__svg[data-part="frontkamera"] .part--frontkamera,
.fdevice__svg[data-part="hauptkamera"] .part--hauptkamera, .fdevice__svg[data-part="lautsprecher"] .part--lautsprecher,
.fdevice__svg[data-part="ladebuchse"] .part--ladebuchse, .fdevice__svg[data-part="backcover"] .part--backcover,
.fdevice__svg[data-part="wifi-bluetooth"] .part--wifi-bluetooth, .fdevice__svg[data-part="wasserschaden"] .part--wasserschaden,
.fdevice__svg[data-part="fehleranalyse"] .part--fehleranalyse { stroke: var(--red); stroke-width: 3; fill: rgba(200, 49, 42, .1); }
.fdevice__svg[data-part="backcover"] .part--backcover { stroke-dasharray: 7 6; fill: none; }
.fdevice__svg[data-part="display"] .dv__screen { stroke: var(--red); fill: rgba(200, 49, 42, .1); }
/* photo of the chosen model until a repair is chosen; then the drawing with the part in red */
.fdevice__photo { display: block; width: 100%; max-width: 13rem; height: auto; aspect-ratio: 3 / 4; object-fit: contain; padding: .5rem; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 38, 33, .06); animation: dv-in .35s var(--ease) both; }
.fdevice__photo[hidden] { display: none; }
.fdevice__note a { color: inherit; }
@keyframes dv-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.fdevice__svg:not([data-part=""]) .dv { animation: dv-in .35s var(--ease) both; }
.fdevice__svg[data-part="display"] .part--display, .fdevice__svg[data-part="panzerglas"] .part--panzerglas, .fdevice__svg[data-part="akku"] .part--akku,
.fdevice__svg[data-part="frontkamera"] .part--frontkamera, .fdevice__svg[data-part="hauptkamera"] .part--hauptkamera, .fdevice__svg[data-part="lautsprecher"] .part--lautsprecher,
.fdevice__svg[data-part="ladebuchse"] .part--ladebuchse, .fdevice__svg[data-part="backcover"] .part--backcover, .fdevice__svg[data-part="wifi-bluetooth"] .part--wifi-bluetooth,
.fdevice__svg[data-part="wasserschaden"] .part--wasserschaden, .fdevice__svg[data-part="fehleranalyse"] .part--fehleranalyse { animation: dv-pulse 1.6s ease-in-out .35s infinite; }
@keyframes dv-pulse { 50% { fill: rgba(200, 49, 42, .3); stroke-width: 4; } }
@media (prefers-reduced-motion: reduce) { .fdevice__photo, .fdevice__svg .dv, .fdevice__svg .part { animation: none !important; } }
.reduced .fdevice__photo, .reduced .fdevice__svg .dv, .reduced .fdevice__svg .part { animation: none !important; }
.fdevice__name { margin: 0; font-weight: 700; text-align: center; }
.fdevice__part { margin: 0; font: 500 .75rem var(--mono); color: var(--red); text-align: center; min-height: 1em; }
.fdevice__note { margin: 0; font-size: .75rem; color: var(--grey); text-align: center; }
.fdevice__note:empty { display: none; }
@media (max-width: 900px) {
  .finder__grid { grid-template-columns: 1fr; }
  /* compact row under the steps once a model is chosen */
  .fdevice { display: none; position: static; grid-template-columns: 4.5rem 1fr; grid-template-rows: auto auto 1fr; justify-items: start; align-items: start; column-gap: 1rem; row-gap: .15rem; padding: .75rem 1rem; }
  .fdevice[data-model] { display: grid; order: -1; }
  .fdevice__svg, .fdevice__photo { grid-row: 1 / 4; max-width: 4.5rem; max-height: 7rem; }
  .fdevice__name, .fdevice__part, .fdevice__note { text-align: left; }
  .fdevice__part { min-height: 0; }
  .finder__progress { top: calc(4rem + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 560px) {
  .finder__progress ol { gap: 2px; }
  .finder__progress button { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: .35rem .2rem; row-gap: .15rem; }
  .finder__progress button .field__no { grid-row: auto; }
  .finder__progress small { max-width: 100%; }
  .fmodels__tools { grid-template-columns: 1fr; }
  .fmodels__list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .fresult__facts { grid-template-columns: 1fr; }
  .fbrands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .fstep.is-in { animation: none; } .frepair:hover { transform: none; } }
/* home: entry to the Preisrechner */
.entry { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.entry__main { display: grid; gap: .6rem; align-content: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r); background: var(--teal); color: var(--white); text-decoration: none; transition: background-color .2s; }
.entry__main:hover { background: var(--teal-700); }
.entry__main:focus-visible { outline: 3px solid var(--teal-800); outline-offset: 3px; }
.entry__steps { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 600; font-size: .9375rem; }
.entry__steps .field__no { background: var(--white); color: var(--teal-800); }
.entry__steps .field__no:not(:first-child) { margin-left: .5rem; }
.entry__title { font-size: var(--t-2); font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; }
.entry__title::after { content: " →"; }
.entry__meta { font: 400 .8125rem var(--mono); color: var(--white); }
.entry__brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.entry__brands a { display: flex; align-items: center; min-height: 3.25rem; padding: 0 1.1rem; border-radius: 8px; border: 1.5px solid var(--mint-200); background: var(--white); font-weight: 700; color: var(--ink); text-decoration: none; }
.entry__brands a:hover, .entry__brands a:focus-visible { border-color: var(--teal); }
.head__cta { margin: 1.5rem 0 0; }
@media (max-width: 760px) { .entry { grid-template-columns: 1fr; } }
.entry__brands .entry__all { color: var(--teal-700); }

/* ---------- interaction states, shared by all pages ----------
   Cards and choices (home entry, calculator, price list, services) react the
   same way: teal border, light mint fill, a 1 px lift with a soft shadow on
   hover, settle on press, the teal focus ring for keyboards. 220 ms. */
.repair, .chip, .hits a, .brandcard, .fbrand, .fmodel, .frepair, .entry__brands a, .entry__main, .svc__item, .ftile {
  transition: border-color .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.brandcard:hover, .fbrand:hover, .frepair:hover, .entry__brands a:hover { border-color: var(--teal); background: var(--mint-50); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(15, 38, 33, .45); }
.fmodel:hover, .hits a:hover { transform: translateY(-1px); }
.entry__main:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -22px rgba(15, 38, 33, .6); }
.chip:hover { border-color: var(--teal); color: var(--teal-800); }
.chip[aria-pressed="true"]:hover { color: var(--white); background: var(--teal-700); }
.brandcard:active, .fbrand:active, .fmodel:active, .frepair:active, .entry__brands a:active, .entry__main:active, .chip:active, .hits a:active { transform: scale(.985); transition-duration: .08s; }
.chip:focus-visible, .entry__brands a:focus-visible, .brandcard:focus-visible, .hits a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.link-arrow { transition: color .22s var(--ease); }
.link-arrow::after { display: inline-block; transition: transform .22s var(--ease); }
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: translateX(3px); }
.fback { transition: color .22s var(--ease); }
.fback:hover { color: var(--ink); }
.reduced :is(.brandcard, .fbrand, .fmodel, .frepair, .entry__brands a, .entry__main, .chip, .hits a, .ftile, .nav__call):is(:hover, :active),
.reduced .link-arrow:hover::after, .reduced .fstores__item:hover img { transform: none; }

/* ---------- narrow screens: long words, prices and URLs never get cut off ---------- */
.repairs { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.repair__name { min-width: 0; overflow-wrap: anywhere; }
.link-arrow { white-space: normal; }
.prose a { overflow-wrap: anywhere; }
@media (max-width: 900px) { .offer__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px), (max-aspect-ratio: 3/4) { .scene--hero h1 { font-size: clamp(2rem, 10.2vw, 4.5rem); } }
.board, .visit__photo { min-width: 0; }
.offer__sum { min-width: 0; }
.offer__lines dt { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) { .offer__bar > span:first-child { display: none; } }
/* no WebGL on phones: the hero text sits in normal flow, inset by margins instead of `left` */
@media (max-width: 760px), (max-aspect-ratio: 3/4) { .no-webgl .scene--hero { left: auto; right: auto; margin-inline: var(--gutter); } }
/* wax seal with the cross from the logo */
.envelope__front::after { content: ""; position: absolute; left: 50%; top: 52%; width: 15%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: linear-gradient(#fff, #fff) center / 46% 14% no-repeat, linear-gradient(#fff, #fff) center / 14% 46% no-repeat, radial-gradient(circle at 35% 30%, #3f9a84, var(--teal-800));
  box-shadow: 0 2px 6px rgba(15, 38, 33, .35); transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1) .85s; }
.cpanel.is-sending .envelope__front::after { transform: scale(1); }


/* ---------- final polish: Apple-like details ---------- */

/* section headings a step larger, words rise from a mask when they come into view */
.sec h2[id]:not(.fstores__h):not(.foot__h):not(.offer__sum-h):not(.fsec__h):not(.svc__title) { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4.25rem); line-height: 1.02; letter-spacing: -.03em; }
.wr { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wr > span { max-width: 100%; overflow-wrap: anywhere; }
.wr > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i) * 45ms); }
.rise.is-in .wr > span { transform: none; }

/* page to page: a calm cross-fade, the header stays put (browsers with View Transitions) */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* primary buttons: a thin sheen passes on hover */
.btn--primary, .nav__call { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .nav__call::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.2, .7, .1, 1); }
.btn--primary:hover::after, .nav__call:hover::after { transform: translateX(120%); }

/* cards: soft light under the pointer */
.fbrand, .brandcard, .svc__item, .ftile, .frepair, .entry__main, .sign { position: relative; isolation: isolate; }
.fbrand::before, .brandcard::before, .svc__item::before, .ftile::before, .frepair::before, .sign::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 227, 192, .18), transparent 70%);
}
.entry__main::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 70%); }
:is(.fbrand, .brandcard, .svc__item, .ftile, .frepair, .entry__main, .sign):hover::before { opacity: 1; }
@media (hover: none) { :is(.fbrand, .brandcard, .svc__item, .ftile, .frepair, .entry__main, .sign)::before { display: none; } }
.reduced .btn--primary::after, .reduced .nav__call::after { display: none; }

/* contact: the doctor changes with the chosen tab */
.contact__doc { position: relative; width: 230px; aspect-ratio: 320 / 430; margin-top: 2rem; }
.contact__doc picture { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .4s var(--ease), transform .5s cubic-bezier(.2, .7, .1, 1); }
.contact__doc picture.is-on { opacity: 1; transform: none; }
.contact__doc img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(15, 38, 33, .16)); }
@media (max-width: 860px) { .contact__doc { width: 150px; margin: 1.5rem 0 0; } }
.reduced .contact__doc picture { transition: none; }
#kontakt-h { font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem); }
#cp-besuch .nav__state { margin-bottom: 1.25rem; }

/* ============ Google reviews: thin blue strip with a continuously moving row of cards ============ */
.rv { --rv-blue: #1b4fbf; --rv-blue-2: #2563d6; background: linear-gradient(90deg, var(--rv-blue), var(--rv-blue-2)); color: var(--white); overflow: hidden; }
.rv__in { display: flex; align-items: center; gap: 1.25rem; padding: .7rem var(--gutter); max-width: none; }
.rv__label { display: flex; align-items: center; gap: .45rem; margin: 0; flex: none; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.rv__label small { font-weight: 500; opacity: .85; }
.rv__label .gmark { padding: 3px; border-radius: 50%; background: var(--white); width: 1.5rem; height: 1.5rem; }
.rv__score { font-size: 1rem; font-variant-numeric: tabular-nums; }
.rv__sample { padding: .1rem .45rem; border-radius: 4px; background: #fff4d6; color: #6b4e00 !important; opacity: 1 !important; }
.gmark { width: 1.1rem; height: 1.1rem; flex: none; }
.rv__link { flex: none; margin-left: auto; font-weight: 700; font-size: .875rem; color: var(--white); text-decoration: none; white-space: nowrap; }
.rv__link:hover { text-decoration: underline; }
.rv__link:focus-visible, .rv__viewport:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
.rv__viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
.rv__track { display: flex; gap: .75rem; width: max-content; margin: 0; padding: 0; list-style: none; animation: rv-run var(--rv-dur, 60s) linear infinite; }
.rv__viewport:is(:hover, :focus-within) .rv__track, .rv.is-paused .rv__track { animation-play-state: paused; }
@keyframes rv-run { to { transform: translateX(calc(-50% - .375rem)); } }
.rv__card { display: grid; grid-template-columns: 1fr; align-content: start; gap: .45rem; width: 19rem; min-height: 10.5rem; padding: .9rem 1rem; border-radius: 10px; background: var(--white); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.rv__head { display: flex; align-items: center; gap: .5rem; }
.rv__avatar { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; flex: none; background: var(--rv-blue); color: var(--white); font-weight: 700; font-size: .8125rem; }
.rv__who { display: flex; align-items: baseline; gap: .4rem; min-width: 0; flex: 1; }
.rv__who b { font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv__who a { color: inherit; text-decoration: none; }
.rv__who small { font: 500 .6875rem var(--mono); color: var(--grey); white-space: nowrap; }
.rv__card .stars svg { width: .8rem; height: .8rem; }
.rv__text { margin: 0; font-size: .875rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.rv--empty .rv__in { padding-block: .55rem; }
@media (max-width: 760px) {
  .rv__in { flex-wrap: wrap; gap: .5rem .75rem; }
  .rv__viewport { order: 3; flex-basis: 100%; margin-inline: calc(-1 * var(--gutter)); }
  .rv__card { width: 16.5rem; min-height: 10rem; }
  .rv__label { flex-wrap: wrap; white-space: normal; row-gap: .25rem; min-width: 0; flex: 1; }
  .rv__label small:not(.rv__sample) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv__track { animation: none; }
  .rv__viewport { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .rv__track [aria-hidden="true"] { display: none; }
}
.reduced .rv__track { animation: none; }
.foot > .rv { position: relative; z-index: 1; margin: 0 0 calc(-1.5rem - env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
body:has(.offer__bar) .foot > .rv { margin-bottom: 0; }
.foot .rv__link, .foot .rv__link:hover { color: var(--white); padding: 0; }
.foot .rv__card a { color: inherit; padding: 0; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 1rem; height: 1rem; fill: #cfd8ea; }
.stars svg.is-on { fill: #fbbc04; }
.stars svg.is-half { fill: url(#star-half); }
/* back cover and main camera: turn the drawing to its back (camera top left, no screen) */
.fdevice__svg .dv--phone { transform-box: view-box; transform-origin: 110px 150px; transition: transform .45s var(--ease); }
.fdevice__svg:is([data-part="backcover"], [data-part="hauptkamera"]) .dv--phone { transform: scaleX(-1); }
.fdevice__svg:is([data-part="backcover"], [data-part="hauptkamera"]) :is(.part--display, .part--frontkamera, .part--lautsprecher, .part--akku, .part--wifi-bluetooth, .part--wasserschaden, .part--fehleranalyse) { display: none; }
.fdevice__svg[data-part="backcover"] .part--backcover { fill: rgba(200, 49, 42, .12); stroke-dasharray: none; }
.reduced .fdevice__svg .dv--phone { transition: none; }

.foot__social { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }


/* WhatsApp + call in the header on narrower desktops: WhatsApp as icon, call as "Anrufen" */
@media (max-width: 1279px) {
  .nav__wa { padding: 0; }
  .nav__wa svg { width: 22px; height: 22px; }
  .nav__wa-text { display: none; }
  .nav__call-long { display: none; }
  .nav__call-short { display: inline; }
}
/* contact tabs: four tabs share the width on phones */
@media (max-width: 560px) {
  .ctabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .ctab { justify-content: center; padding: 0 .3rem; font-size: .875rem; }
  .ctab svg { display: none; }
}
@media (max-width: 370px) { .ctab { font-size: .8125rem; padding: 0 .15rem; } }

/* wide screens with the opening-state chip: WhatsApp as an icon, and the chip gives way (shortens) instead of
   pushing the call button out of the header, whatever its text ("Geschlossen · öffnet Mo 10:00" etc.) */
@media (min-width: 1440px) {
  .nav__wa { padding: 0; }
  .nav__wa svg { width: 22px; height: 22px; }
  .nav__wa-text { display: none; }
  .nav__in { gap: .6rem; padding-inline: min(var(--gutter), 3.5rem); }
  .nav__links a { padding-inline: .4rem; }
  .nav__call { padding: 0 .95rem; }
  .nav__in > .nav__state { gap: .4rem; padding: 0 .65rem 0 .6rem; font-size: .75rem; }
  .nav__links a[aria-current="page"]::after { left: .4rem; right: .4rem; }
  .nav__in > .nav__state { flex: 0 1 auto; min-width: 0; max-width: 220px; overflow: hidden; }   /* gives way on very wide screens (wider page margin) */
  .nav__in > .nav__state .nav__state-time { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .nav__in > .nav__state .nav__state-label { flex: none; }
}
