@charset "UTF-8";
/* ==========================================================================
   Hausarztpraxis am Quirlsberg — v8
   One stylesheet serves all four language versions, LTR and RTL.
   There are no physical direction properties in this file: everything uses
   logical properties (inline-start/end, margin-inline, inset-inline …), so the
   Hebrew layout mirrors without an override file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted, subset, WOFF2. No request ever leaves the origin.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.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: "Noto Sans Hebrew";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/noto-sans-hebrew-wght-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC,
    U+FB1D-FB4F;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette — v7's system, with two contrast corrections.
     --orange #f2a65a scores 2.02:1 on white: decorative and on-dark use only.
     --muted was #8aa3a6 (2.67:1 on white) and is now text-safe at 4.9:1. */
  --ink: #1d3e42;
  --ink-soft: #40605f;      /* 6.0:1 on white  — secondary prose */
  --ink-quiet: #4f6d70;     /* 4.8:1 on white  — tertiary        */
  --teal: #00747f;          /* 5.5:1 on white                    */
  --teal-deep: #005e68;     /* 7.5:1 on white                    */
  --aqua: #3e9ea8;          /* decorative rules only             */
  --aqua-soft: #e8f3f3;
  --aqua-pale: #f0f7f7;
  --orange: #f2a65a;        /* decorative fills + text on --ink  */
  --orange-deep: #9a5410;   /* 5.8:1 on white — orange as text   */
  --orange-soft: #fdf1e2;
  --mist: #f4f8f7;
  --paper: #ffffff;
  --muted: #5b7679;         /* 4.9:1 on white, 4.6:1 on mist     */

  --line: #dce6e5;
  --line-strong: #c3d5d4;
  --line-light: rgba(255, 255, 255, .22);

  --focus: var(--teal-deep);
  --shadow-sm: 0 2px 10px rgba(29, 62, 66, .05);
  --shadow-md: 0 14px 40px rgba(29, 62, 66, .07);
  --shadow-lg: 0 26px 70px rgba(29, 62, 66, .10);

  --sans: "Inter", "Noto Sans Hebrew", ui-sans-serif, -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Fluid type scale. Every heading is tested at German (longest),
     Spanish, English and Hebrew (most compact) string lengths. */
  --step--2: clamp(.688rem, .672rem + .08vw, .75rem);
  --step--1: clamp(.813rem, .789rem + .12vw, .875rem);
  --step-0:  clamp(1rem, .977rem + .12vw, 1.063rem);
  --step-1:  clamp(1.125rem, 1.063rem + .31vw, 1.313rem);
  --step-2:  clamp(1.313rem, 1.156rem + .78vw, 1.75rem);
  --step-3:  clamp(1.625rem, 1.281rem + 1.72vw, 2.5rem);
  --step-4:  clamp(2rem, 1.406rem + 2.97vw, 3.5rem);
  --step-5:  clamp(2.375rem, 1.531rem + 4.22vw, 4.5rem);

  --gutter: clamp(20px, 5vw, 44px);
  --shell: 1200px;
  --space-section: clamp(64px, 9vw, 124px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 68px;
}

@media (min-width: 700px) { :root { --header-h: 86px; } }

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-synthesis-weight: none;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-inline-size: 100%; }

/* Inline SVG icons must never inherit the intrinsic size of their viewBox. */
.icon {
  inline-size: 1.15em;
  block-size: 1.15em;
  flex: 0 0 auto;
  fill: currentColor;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  /* hyphens:auto below needs an OS hyphenation dictionary. Where one is
     missing, a word like "Datenschutzerklärung" would otherwise overflow the
     viewport at 400% zoom instead of breaking. */
  overflow-wrap: break-word;
}
h1 { font-size: var(--step-5); }
p  { margin: 0; text-wrap: pretty; overflow-wrap: break-word; }
li, dd, dt, td, th, address { overflow-wrap: break-word; }

/* German compounds are long enough to overflow narrow columns; Hebrew never
   hyphenates. Both are handled by the language attribute on <html>. */
:lang(de) p, :lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) li { hyphens: auto; }
:lang(he) { letter-spacing: normal; }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { letter-spacing: normal; line-height: 1.22; }

/* Anything numeric stays LTR even inside an RTL paragraph. */
[dir="ltr"] { unicode-bidi: isolate; }

/* Directional glyphs mirror in RTL. */
.glyph { display: inline-block; font-style: normal; }
[dir="rtl"] .glyph--flip { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   4. Accessibility primitives
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  inline-size: 1px; block-size: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  padding: 12px 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 640;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */

.shell { inline-size: min(var(--shell), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--space-section); }

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: clamp(28px, 4vw, 52px);
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-index::after {
  content: "";
  inline-size: 44px;
  block-size: 1px;
  background: currentColor;
  opacity: .5;
}
:lang(he) .section-index { letter-spacing: .04em; }

.overline, .eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: var(--step--2);
  font-weight: 720;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
:lang(he) .overline, :lang(he) .eyebrow { letter-spacing: .04em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  inline-size: 24px;
  block-size: 2px;
  background: var(--orange);
}

.lead {
  max-inline-size: 62ch;
  margin-block-start: 26px;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.6;
}

.prose > p + p { margin-block-start: 1.15em; }
.prose p { max-inline-size: 66ch; color: var(--ink-soft); }
.prose em { font-style: normal; font-weight: 620; color: var(--ink); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.button {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  min-block-size: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 660;
  letter-spacing: -.005em;
  text-align: center;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease,
              transform .22s var(--ease), box-shadow .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  --btn-bg: var(--teal); --btn-fg: var(--paper); --btn-bd: var(--teal);
  box-shadow: 0 10px 26px rgba(0, 116, 127, .20);
}
.button-primary:hover { --btn-bg: var(--teal-deep); --btn-bd: var(--teal-deep); }
.button-outline { --btn-bd: var(--line-strong); --btn-fg: var(--ink); }
.button-outline:hover { --btn-bd: var(--teal); --btn-fg: var(--teal-deep); }
.button-light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.button-ghost { --btn-fg: var(--teal-deep); padding-inline: 8px; }
.button-ghost:hover { text-decoration: underline; text-underline-offset: 5px; }

.button[aria-disabled="true"] {
  --btn-bg: transparent;
  --btn-fg: var(--muted);
  --btn-bd: var(--line);
  box-shadow: none;
  cursor: default;
}
.button[aria-disabled="true"]:hover { transform: none; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 34px;
}

/* --------------------------------------------------------------------------
   7. Announcement bar (opening date)
   -------------------------------------------------------------------------- */

.announce {
  color: var(--paper);
  background: var(--teal-deep);
  --focus: var(--orange);
}
.announce-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-block: 11px;
  font-size: var(--step--1);
  line-height: 1.45;
}
.announce-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 720;
  letter-spacing: .1em;
  font-size: var(--step--2);
  text-transform: uppercase;
  color: var(--orange);
}
:lang(he) .announce-kicker { letter-spacing: .03em; }
.announce-kicker::before {
  content: "";
  inline-size: 7px; block-size: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.announce-inner strong { font-weight: 620; }

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  /* Solid, not translucent: at 88% the page text underneath stayed legible
     through the bar wherever backdrop-filter is unsupported or disabled. */
  background: var(--mist);
  border-block-end: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-block-end-color: var(--line);
  box-shadow: 0 8px 30px rgba(29, 62, 66, .05);
}
.header-inner {
  min-block-size: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { inline-size: 48px; block-size: 38px; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; line-height: 1.05; }
.brand-copy strong { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
.brand-copy span {
  color: var(--teal);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .17em;
}
:lang(he) .brand-copy span { letter-spacing: .12em; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
  margin-inline-start: auto;
}
.desktop-nav a {
  position: relative;
  padding-block: 6px;
  color: var(--ink-quiet);
  font-size: var(--step--1);
  font-weight: 620;
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  inline-size: 0;
  block-size: 2px;
  background: var(--aqua);
  transition: inline-size .25s var(--ease);
}
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { inline-size: 100%; }
.desktop-nav a[aria-current="page"] { color: var(--teal-deep); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-block-size: 44px;
  padding: 10px 20px;
  color: var(--paper);
  background: var(--teal);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 660;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 116, 127, .16);
  transition: background .2s ease;
}
.header-phone:hover { background: var(--teal-deep); }
.header-phone svg { inline-size: 15px; block-size: 15px; fill: currentColor; }

/* --------------------------------------------------------------------------
   9. Language switcher — native names, no flags, keyboard operable
   -------------------------------------------------------------------------- */

.langswitch { position: relative; flex: 0 0 auto; }
.langswitch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 9px 14px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 620;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.langswitch-toggle:hover { border-color: var(--teal); background: var(--paper); }
.langswitch-toggle svg { inline-size: 15px; block-size: 15px; fill: currentColor; opacity: .75; }
.langswitch-toggle .chev {
  inline-size: 9px; block-size: 9px;
  transition: transform .2s ease;
  fill: none; stroke: currentColor; stroke-width: 2.2;
}
.langswitch-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.langswitch-list {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  min-inline-size: 190px;
  padding: 7px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.langswitch-list[hidden] { display: none; }
.langswitch-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: var(--step--1);
  font-weight: 580;
  transition: background .15s ease;
}
.langswitch-list a:hover { background: var(--aqua-pale); }
.langswitch-list a[aria-current="true"] { color: var(--teal-deep); font-weight: 700; }
.langswitch-list a[aria-current="true"]::after {
  content: "";
  inline-size: 7px; block-size: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   10. Mobile menu
   -------------------------------------------------------------------------- */

.menu-button {
  display: none;
  position: relative;
  inline-size: 46px; block-size: 46px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}
.menu-button span {
  position: absolute;
  inset-inline: 13px;
  block-size: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s ease;
}
.menu-button span:nth-child(1) { top: 17px; }
.menu-button span:nth-child(2) { top: 25px; }
.menu-button[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset-inline: 0;
  inset-block-start: var(--header-h);
  inset-block-end: 0;
  z-index: 990;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--mist);
  border-block-start: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner {
  inline-size: min(100% - (var(--gutter) * 2), 640px);
  margin-inline: auto;
  padding-block: 20px max(40px, env(safe-area-inset-bottom));
}
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-block-size: 62px;
  padding-block: 10px;
  border-block-end: 1px solid var(--line);
  font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.03em;
}
:lang(he) .mobile-menu nav a { letter-spacing: normal; }
.mobile-menu nav a[aria-current="page"] { color: var(--teal-deep); }
.mobile-menu-cta { display: grid; gap: 10px; margin-block-start: 26px; }
.mobile-menu-cta .button { inline-size: 100%; }
.mobile-lang { margin-block-start: 30px; }
.mobile-lang h2 {
  margin-block-end: 12px;
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mobile-lang ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.mobile-lang a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
}
.mobile-lang a[aria-current="true"] {
  color: var(--paper);
  background: var(--teal);
  border-color: var(--teal);
}

body.menu-open .site-header { position: fixed; inset-inline: 0; inset-block-start: 0; background: var(--mist); }

/* --------------------------------------------------------------------------
   11. Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 82px) clamp(52px, 7vw, 92px);
}
.hero h1 { max-inline-size: 15ch; }
:lang(he) .hero h1 { max-inline-size: 18ch; }
.hero .lead { max-inline-size: 56ch; }

.hero-facts {
  display: grid;
  gap: 0;
  margin-block-start: 36px;
  border-block-start: 1px solid var(--line);
  list-style: none;
}
.hero-facts li {
  display: grid;
  grid-template-columns: minmax(120px, 26%) 1fr;
  gap: 8px 22px;
  align-items: baseline;
  padding-block: 13px;
  border-block-end: 1px solid var(--line);
}
.hero-facts dt, .hero-facts .k {
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:lang(he) .hero-facts .k { letter-spacing: .03em; }
.hero-facts .v { font-size: var(--step--1); font-weight: 560; color: var(--ink); }

.hero-card {
  align-self: center;
  padding: clamp(26px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-logo { inline-size: min(220px, 80%); margin-inline: auto; margin-block-end: 24px; }
.hero-card hr { block-size: 1px; margin: 0 0 24px; border: 0; background: var(--line); }
.hero-card .k {
  display: block;
  margin-block-end: 10px;
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-card h2 { font-size: var(--step-2); font-weight: 580; line-height: 1.22; }
.hero-card .sub { margin-block-start: 6px; color: var(--teal); font-size: var(--step--1); font-weight: 620; }
.hero-card address { margin-block: 18px; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }
.hero-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-deep);
  font-size: var(--step--1);
  font-weight: 680;
}
.hero-card .card-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* --------------------------------------------------------------------------
   12. Quick strip
   -------------------------------------------------------------------------- */

.quick {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 28px;
  border-inline-end: 1px solid var(--line);
}
.quick-item:first-child { padding-inline-start: 0; }
.quick-item:last-child { padding-inline-end: 0; border-inline-end: 0; }
.quick-num {
  margin-block-start: 2px;
  color: var(--orange-deep);
  font-size: var(--step--2);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.quick-body { display: grid; gap: 5px; min-inline-size: 0; }
.quick-body .k {
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 720;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:lang(he) .quick-body .k { letter-spacing: .03em; }
.quick-body strong { font-size: var(--step--1); font-weight: 640; overflow-wrap: anywhere; }
.quick-item a:hover strong { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   13. Split section (heading + prose)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 84px);
  align-items: start;
}
.split h2 { font-size: var(--step-4); max-inline-size: 16ch; }
/* Schedule and contact use their own two-column layouts, so they miss .split's
   heading scale and were rendering visibly smaller than every other section. */
.schedule-layout h2, .contact-layout h2 { font-size: var(--step-4); max-inline-size: 16ch; }
.split .prose { font-size: var(--step-1); line-height: 1.68; }

/* --------------------------------------------------------------------------
   14. Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-block-start: clamp(36px, 5vw, 60px);
  list-style: none;
}
/* The card is nested inside the <li>; without this the anchor shrink-wraps its
   own text and the "Mehr erfahren" link floats mid-cell on shorter cards. */
.card-grid > li { display: flex; }
.card-grid > li > .card { flex: 1 1 auto; }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.card h2, .card h3 { font-size: var(--step-2); font-weight: 580; line-height: 1.18; }
.card p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.65; }
a.card:hover, .card-link-wrap:hover .card {
  border-color: var(--aqua);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-num {
  margin-block-end: 4px;
  color: var(--orange-deep);
  font-size: var(--step--2);
  font-weight: 760;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.card-more {
  margin-block-start: auto;
  padding-block-start: 14px;
  color: var(--teal-deep);
  font-size: var(--step--1);
  font-weight: 680;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   15. Doctors
   -------------------------------------------------------------------------- */

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 3vw, 34px);
  margin-block-start: clamp(36px, 5vw, 58px);
}
.doctor-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--aqua-soft);
  border-radius: var(--radius);
}
.doctor-media img {
  inline-size: 100%; block-size: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.doctor:hover .doctor-media img { transform: scale(1.02); }
.doctor-copy { padding-block-start: 22px; }
.doctor-copy .role {
  margin-block-end: 8px;
  color: var(--teal);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:lang(he) .doctor-copy .role { letter-spacing: .03em; }
.doctor-copy h3 { font-size: var(--step-3); }
.doctor-copy p { max-inline-size: 52ch; margin-block-start: 14px; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.7; }
.doctor-note {
  margin-block-start: clamp(24px, 3vw, 36px);
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--line-strong);
  color: var(--muted);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   16. Schedule
   -------------------------------------------------------------------------- */

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}
.schedule-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.schedule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 18px 24px;
  border-block-end: 1px solid var(--line);
  font-size: var(--step--2);
  font-weight: 740;
  letter-spacing: .09em;
  text-transform: uppercase;
}
:lang(he) .schedule-head { letter-spacing: .03em; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  color: var(--teal-deep);
  background: var(--aqua-soft);
  border-radius: 999px;
  letter-spacing: .04em;
}
.status-pill::before {
  content: "";
  inline-size: 8px; block-size: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.status-pill[data-state="open"] { color: #145c2f; background: #e2f3e7; }
.status-pill[data-state="open"]::before { background: #1c7a3e; }
.status-pill[data-state="closed"] { color: var(--ink-soft); background: var(--mist); }
.status-pill[data-state="closed"]::before { background: var(--muted); }

.hours { padding: 8px 24px; list-style: none; }
.hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  border-block-end: 1px solid var(--line);
  font-size: var(--step--1);
}
.hours li:last-child { border-block-end: 0; }
.hours li[data-today="true"] { font-weight: 700; color: var(--teal-deep); }
.hours .d { color: var(--ink-soft); }
.hours li[data-today="true"] .d { color: inherit; }
.hours .t { font-weight: 640; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours .t[data-closed="true"] { font-weight: 500; color: var(--muted); }

.schedule-note {
  margin: 0;
  padding: 18px 24px;
  color: var(--ink-soft);
  background: var(--aqua-pale);
  border-block-start: 1px solid var(--line);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   17. Language table
   -------------------------------------------------------------------------- */

.lang-table { inline-size: 100%; margin-block-start: clamp(30px, 4vw, 48px); border-collapse: collapse; }
.lang-table caption { text-align: start; }
.lang-table th, .lang-table td {
  padding: 16px 18px;
  text-align: start;
  border-block-end: 1px solid var(--line);
  font-size: var(--step--1);
}
.lang-table thead th {
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 720;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-block-end-color: var(--line-strong);
}
:lang(he) .lang-table thead th { letter-spacing: .03em; }
.lang-table tbody th { font-size: var(--step-1); font-weight: 580; }
.lang-table tbody th small { display: block; color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.lang-table td { color: var(--ink-soft); }
.lang-table .mark { color: var(--teal-deep); font-weight: 700; }
.lang-table .dash { color: var(--muted); }
.lang-table tbody tr:hover { background: var(--paper); }

.callout {
  margin-block-start: clamp(28px, 4vw, 44px);
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--orange);
  border-radius: var(--radius-sm);
}
.callout h2, .callout h3 { font-size: var(--step-2); font-weight: 580; margin-block-end: 10px; }
.callout p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.7; }
.callout p + p { margin-block-start: .8em; }

/* --------------------------------------------------------------------------
   18. Directions (dark)
   -------------------------------------------------------------------------- */

.directions {
  padding-block: var(--space-section);
  color: var(--paper);
  background: var(--ink);
  --focus: var(--orange);
}
.directions-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 86px);
  align-items: start;
}
.directions .section-index { color: rgba(255, 255, 255, .6); }
.directions .overline { color: #9ad9de; }
.directions h2 { font-size: var(--step-4); max-inline-size: 14ch; }
.directions .lead { color: rgba(255, 255, 255, .78); }
.directions address { margin-block: 26px; color: rgba(255, 255, 255, .78); font-size: var(--step--1); line-height: 1.7; }
.directions address strong { display: block; color: var(--paper); font-weight: 660; font-size: var(--step-0); }

.route { position: relative; list-style: none; }
.route::before {
  content: "";
  position: absolute;
  inset-block: 20px 34px;
  inset-inline-start: 21px;
  inline-size: 1px;
  background: var(--line-light);
}
.route li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding-block-end: clamp(28px, 3.5vw, 44px);
}
.route li:last-child { padding-block-end: 0; }
.route .step {
  position: relative;
  z-index: 1;
  inline-size: 44px; block-size: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border-radius: 50%;
  font-size: var(--step--2);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}
.route h3 { margin-block-end: 8px; font-size: var(--step-2); font-weight: 600; }
.route p { max-inline-size: 54ch; color: rgba(255, 255, 255, .74); font-size: var(--step--1); line-height: 1.72; }

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */

.contact { padding-block: var(--space-section); background: var(--aqua-soft); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}
.contact-list { list-style: none; border-block-start: 1px solid var(--line-strong); }
.contact-list a, .contact-list .row {
  display: grid;
  grid-template-columns: minmax(110px, 20%) 1fr auto;
  gap: 10px 22px;
  align-items: center;
  min-block-size: 84px;
  padding-block: 16px;
  border-block-end: 1px solid var(--line-strong);
}
.contact-list .k {
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 720;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:lang(he) .contact-list .k { letter-spacing: .03em; }
.contact-list .v { font-size: var(--step-2); font-weight: 580; min-inline-size: 0; overflow-wrap: anywhere; }
.contact-list .v small { display: block; margin-block-start: 4px; color: var(--muted); font-size: var(--step--1); font-weight: 500; letter-spacing: normal; text-transform: none; }
.contact-list .glyph { color: var(--teal-deep); font-size: 1.2rem; }
.contact-list a:hover .v { color: var(--teal-deep); }
.contact-list .row .v { color: var(--muted); }
.contact-hint {
  margin-block-start: 26px;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .6);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   20. Emergency band — present on every page, never obscured
   -------------------------------------------------------------------------- */

.emergency {
  padding-block: clamp(34px, 4.5vw, 54px);
  color: var(--paper);
  background: #16333a;
  --focus: var(--orange);
}
.emergency-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 20px;
  color: var(--orange);
  font-size: var(--step--2);
  font-weight: 740;
  letter-spacing: .14em;
  text-transform: uppercase;
}
:lang(he) .emergency-kicker { letter-spacing: .03em; }
.emergency-kicker::after { content: ""; flex: 1; block-size: 1px; background: var(--line-light); }
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.emergency-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
}
.emergency-num {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 720;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.emergency-item h2, .emergency-item h3 { font-size: var(--step-0); font-weight: 660; letter-spacing: -.01em; }
.emergency-item p { margin-block-start: 4px; color: rgba(255, 255, 255, .74); font-size: var(--step--1); line-height: 1.55; }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */

.site-footer { padding-block: clamp(50px, 6vw, 76px) 26px; background: var(--paper); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.footer-intro p { max-inline-size: 34ch; margin-block-start: 16px; color: var(--muted); font-size: var(--step--1); }
.footer-intro address { margin-block-start: 14px; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.7; }
.footer-col h2 {
  margin-block-end: 14px;
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 740;
  letter-spacing: .12em;
  text-transform: uppercase;
}
:lang(he) .footer-col h2 { letter-spacing: .03em; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-soft); font-size: var(--step--1); font-weight: 560; }
.footer-col a:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  margin-block-start: clamp(38px, 5vw, 58px);
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--2);
}
.footer-base p { margin: 0; }

/* --------------------------------------------------------------------------
   22. Legal & simple pages
   -------------------------------------------------------------------------- */

.page-head { padding-block: clamp(44px, 6vw, 76px) clamp(24px, 3vw, 40px); }
.page-head h1 { max-inline-size: 18ch; }
.page-head .lead { max-inline-size: 60ch; }

.legal { padding-block: clamp(20px, 3vw, 34px) var(--space-section); }
.legal-body { inline-size: min(760px, 100%); }
.legal-body h2 {
  margin-block: clamp(34px, 4vw, 48px) 12px;
  font-size: var(--step-2);
  font-weight: 600;
}
.legal-body h2:first-of-type { margin-block-start: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.72; }
.legal-body p + p { margin-block-start: .9em; }
.legal-body ul { margin-block-start: .8em; padding-inline-start: 1.2em; }
.legal-body li { margin-block-end: .4em; }
.legal-body a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }

.notice {
  margin-block: 26px 40px;
  padding: 20px 22px;
  background: var(--orange-soft);
  border: 1px solid #f0d3ac;
  border-inline-start: 4px solid var(--orange-deep);
  border-radius: var(--radius-sm);
  color: #5c3a12;
  font-size: var(--step--1);
  line-height: 1.65;
}

.todo {
  display: inline;
  padding: 2px 8px;
  color: #6b3a06;
  background: #ffe9c9;
  border: 1px dashed #c98a3c;
  border-radius: 6px;
  font-size: .9em;
  font-weight: 620;
}
.todo::before { content: "⚠ "; }

/* --------------------------------------------------------------------------
   23. 404
   -------------------------------------------------------------------------- */

.notfound { padding-block: clamp(60px, 9vw, 120px); }
.notfound-links { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 32px; list-style: none; }
.notfound-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 11px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
}
.notfound-links a:hover { border-color: var(--teal); color: var(--teal-deep); }

/* --------------------------------------------------------------------------
   23b. Utilities
   ---------------------------------------------------------------------------
   Every one of these exists because the markup must carry NO style attribute:
   `style-src 'self'` in _headers has no 'unsafe-inline', so an inline style
   would simply not apply. Utilities keep the CSP intact.
   -------------------------------------------------------------------------- */

.u-flush-top { padding-block-start: 0; }
.u-tight-top { padding-block-start: clamp(24px, 3vw, 40px); }
.u-no-mt { margin-block-start: 0; }
.u-mt { margin-block-start: clamp(30px, 4vw, 48px); }
.u-narrow { max-inline-size: 66ch; }
.u-wide { max-inline-size: 72ch; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.page-note {
  margin-block-start: 14px;
  color: var(--muted);
  font-size: var(--step--1);
}

/* Portrait crops. The subject sits high in both source images, so a plain
   centre crop cuts the forehead. */
/* Crop anchors tuned to the current supplied portraits; re-check if the
   practice replaces the photography. */
.doctor--linn-kraemer img { object-position: 50% 12%; }
.doctor--rolf-heuser img  { object-position: 50% 10%; }

/* --------------------------------------------------------------------------
   24. Reveal motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-item:nth-child(2n) { padding-inline-end: 0; border-inline-end: 0; }
  .quick-item:nth-child(2n+1) { padding-inline-start: 0; }
  .quick-item:nth-child(-n+2) { border-block-end: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .desktop-nav, .langswitch { display: none; }
  .menu-button { display: block; }
  /* Tap-to-call must not be buried behind the hamburger on a practice site. */
  .header-phone { padding: 10px; gap: 0; min-inline-size: 44px; justify-content: center; }
  /* Hidden visually, not from assistive tech: display:none would strip the
     link's only accessible name. */
  .header-phone span {
    position: absolute;
    inline-size: 1px; block-size: 1px;
    margin: -1px; padding: 0; border: 0;
    clip-path: inset(50%);
    overflow: hidden; white-space: nowrap;
  }
  .header-phone .icon { inline-size: 20px; block-size: 20px; }
  .header-actions { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  /* Was capped at 560px, which left a ragged gap beside it in the 620-900px
     band where the column is much wider than the card. */
  .hero-card { max-inline-size: none; }
  .split, .schedule-layout, .directions-layout, .contact-layout { grid-template-columns: 1fr; }
  .split h2, .directions h2, .schedule-layout h2, .contact-layout h2 { max-inline-size: 20ch; }
}

@media (max-width: 620px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { padding-inline: 0 !important; border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .quick-item:last-child { border-block-end: 0; }
  .hero-facts li { grid-template-columns: 1fr; gap: 3px; }
  .button-row .button { inline-size: 100%; }
  .contact-list a, .contact-list .row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .contact-list .k { grid-column: 1 / -1; }
  .doctor-media { aspect-ratio: 4 / 5; }
  .route li { grid-template-columns: 40px 1fr; gap: 16px; }
  .route::before { inset-inline-start: 19px; }
  .route .step { inline-size: 40px; block-size: 40px; }
  .lang-table th, .lang-table td { padding: 13px 10px; }
  .lang-table th:first-child, .lang-table td:first-child { padding-inline-start: 0; }
  .lang-table th:last-child, .lang-table td:last-child { padding-inline-end: 0; }
  .emergency-item { gap: 16px; padding: 18px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Coarse pointers get larger hit areas regardless of viewport width. */
@media (pointer: coarse) {
  .desktop-nav a { padding-block: 12px; }
  .footer-col a, .langswitch-list a { min-block-size: 44px; display: flex; align-items: center; }
}

/* --------------------------------------------------------------------------
   26. Reduced motion & forced colours
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button:hover, a.card:hover, .doctor:hover .doctor-media img { transform: none; }
}

@media (forced-colors: active) {
  .card, .hero-card, .schedule-card, .emergency-item { border: 1px solid CanvasText; }
  .status-pill::before, .eyebrow::before { forced-color-adjust: none; }
  .button { border: 1px solid CanvasText; }
}

@media print {
  .site-header, .mobile-menu, .announce, .reveal { display: revert; }
  .site-header, .mobile-menu { display: none; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}

/* --------------------------------------------------------------------------
   27. Very narrow viewports (360px and below, and 400% zoom on a 1280px
       screen, which reflows to an effective 320px). WCAG 2.1 SC 1.4.10.
   -------------------------------------------------------------------------- */

@media (max-width: 380px) {
  /* At 320px the brand lockup plus the call and menu buttons exceeded the
     header's content box by a few pixels. Tightening the gap resolves it
     without dropping the practice name. */
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { inline-size: 34px; }
  .brand-copy strong { font-size: var(--step--1); }
  .brand-copy span { font-size: var(--step--2); }
}

/* --------------------------------------------------------------------------
   28. Narrow prose column (practice page long-form sections)
   -------------------------------------------------------------------------- */

.narrow-prose { max-inline-size: 68ch; }
.narrow-prose .prose h2 {
  font-size: var(--step-3);
  margin-block-end: 16px;
}
.narrow-prose .prose p {
  font-size: var(--step-1);
  line-height: 1.68;
  color: var(--ink-soft);
}
.narrow-prose .prose p + p { margin-block-start: 16px; }
.narrow-prose .prose + .prose { margin-block-start: clamp(34px, 4vw, 52px); }

/* --------------------------------------------------------------------------
   29. Staff block on the team page
   -------------------------------------------------------------------------- */

/* A single trainee card must not stretch to the full width of the doctor grid,
   which is sized for two portraits side by side. */
.doctor-grid--staff {
  /* Sized for one portrait, not two: without a hard cap a single card inherits
     the two-up column width and the photo dominates the page. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 320px));
  justify-content: start;
}
.doctor-grid--staff .doctor-media { aspect-ratio: 4 / 5; }
.doctor-grid--staff .doctor-copy h3 { font-size: var(--step-2); }
.doctor--alexandra-trevejo img { object-position: 50% 18%; }
