/* =========================================================
   Praxis für Chirurgie, Schwerpunkt Kinderchirurgie
   Layout & interactions modelled on dr-mosallam.de ("atelier" theme),
   brand colours & type from Gaber's identity.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #e7f2f8;
  --text: #153662;
  --muted: #40596a;
  --primary: #155d95;
  --primary-2: #153662;
  --accent: #82bd42;       /* sun */
  --accent-ink: #153662;
  --accent-deep: #396420;
  --lime: #b9dd88;
  --dark: #153662;
  --on-dark: #f5fafc;
  --muted-on-dark: #d6e5ec;
  --hero-angle: 90deg;
  --border: #bad4dd;
  --shadow: 0 18px 44px rgba(23, 45, 52, .11);
  --radius: 14px;
  --max: 1200px;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
  --motion-fast: 180ms;
  --motion-base: 280ms;
  --motion-slow: 680ms;
  --font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 300 17px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
p { color: var(--muted); margin: 0 0 1em; }
strong, b { font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 16px; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); font-weight: 700; letter-spacing: -.02em; max-width: 940px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.08rem; font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; inset-inline-start: 8px; inset-block-start: 8px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: 8px; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }
.eyebrow { color: var(--accent-deep); text-transform: uppercase; font-weight: 500; letter-spacing: .12em; font-size: .8rem; margin-bottom: .6rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.28rem); max-width: 760px; color: var(--muted); }
.note { font-size: .92rem; color: var(--muted); }
.muted { background: var(--surface-2); }

/* Placeholder highlight – values still to be filled in */
.fill { background: color-mix(in srgb, var(--accent), white 62%); color: var(--accent-ink); border-radius: 6px; padding: 0 .3em; font-weight: 500; white-space: nowrap; }

/* ---------- Buttons & links ---------- */
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 22px; border-radius: 999px; background: var(--primary); color: #fff; text-decoration: none; border: 1.5px solid var(--primary); font-weight: 500; font-size: .96rem; cursor: pointer; box-shadow: 0 12px 24px rgba(43, 95, 110, .2); transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out), background-color var(--motion-fast) ease; }
.button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.26) 48%, transparent 72%); transform: translateX(-130%); transition: transform 620ms var(--ease-out); }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(43, 95, 110, .26); }
.button:hover::after { transform: translateX(130%); }
.button.small { min-height: 40px; padding: 9px 16px; font-size: .9rem; }
.button.ghost { background: transparent; color: var(--primary); box-shadow: none; }
.button.ghost:hover { background: color-mix(in srgb, var(--primary), transparent 92%); }
.button.sun { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 24px rgba(69, 122, 32, .18); }
.text-link { position: relative; font-weight: 500; color: var(--primary); text-decoration: none; }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(.35); transform-origin: left; transition: transform var(--motion-base) var(--ease-out); }
.text-link:hover::after { transform: scaleX(1); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface), transparent 8%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow var(--motion-base) ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(16, 36, 50, .1); }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 76px; transition: min-height var(--motion-base) var(--ease-out); }
.site-header.is-scrolled .header-inner { min-height: 62px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; transition: transform var(--motion-base) var(--ease-out); }
.brand:hover { transform: translateY(-1px); }
.brand img { display: block; width: 144px; height: auto; border-radius: 5px; transition: width var(--motion-base) var(--ease-out); }
.site-header.is-scrolled .brand img { width: 120px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; padding: 9px 11px; border-radius: 999px; color: var(--muted); font-weight: 400; font-size: .92rem; white-space: nowrap; transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out); }
.site-nav a:hover { transform: translateY(-1px); }
.site-nav a:hover, .site-nav a.active { background: var(--surface-2); color: var(--primary-2); }
.site-nav a.doc { border: 2px solid var(--accent); padding: 7px 11px; color: var(--text); }
.site-nav a.cta { background: var(--primary); color: #fff; }
.site-nav a.cta:hover { background: var(--primary-2); }
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: .86rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 15px; height: 15px; transition: transform var(--motion-base) var(--ease-out); }
.header-phone:hover svg { transform: rotate(-12deg) scale(1.08); }
.header-language { position: relative; }
.language-toggle { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font: 500 .82rem var(--font-body); color: var(--primary-2); transition: transform var(--motion-fast) var(--ease-out), border-color var(--motion-fast) ease; }
.language-toggle svg { width: 16px; height: 16px; }
.language-toggle:hover, .header-language.open .language-toggle { transform: translateY(-1px); border-color: var(--primary); }
.language-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); display: none; min-width: 170px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); z-index: 40; }
.header-language.open .language-menu { display: grid; gap: 2px; animation: drop-in var(--motion-base) var(--ease-out); }
.language-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .9rem; transition: background-color var(--motion-fast) ease; }
.language-menu a span { color: var(--muted); font-size: .78rem; font-weight: 500; }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--surface-2); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: 44px; height: 44px; font-size: 1.2rem; color: var(--primary-2); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: min(720px, calc(100vh - 76px)); padding: 80px 0 72px; overflow: hidden;
  background-image: linear-gradient(var(--hero-angle), rgba(21,54,98,.99) 0%, rgba(21,54,98,.94) 55%, rgba(21,54,98,.65) 100%), var(--hero-image);
  background-color: var(--dark); background-size: cover; background-position: center; animation: hero-focus 1400ms var(--ease-out) both; }
.hero > .container { position: relative; z-index: 1; }
.hero-content { max-width: 780px; }
.hero h1 .typewriter { display: inline-block; min-width: 1ch; color: var(--primary); white-space: nowrap; }
.js-enabled .typewriter::after { content: ""; display: inline-block; width: .07em; height: .8em; margin-left: .06em; background: var(--accent); animation: caret-blink 1s steps(1) infinite; vertical-align: -.04em; }
.hero h1, .hero .region strong { color: var(--on-dark); }
.hero .lead, .hero .region span { color: var(--muted-on-dark); }
.hero .eyebrow, .hero h1 .typewriter { color: var(--lime); }
.hero .button:not(.ghost) { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.hero .button.ghost { background: rgba(12,35,54,.55); border-color: var(--muted-on-dark); color: var(--on-dark); }
.hero .button.ghost:hover { background: var(--dark); }
.plaster { display: inline-flex; align-items: center; gap: .6rem; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: .95rem; padding: .5rem 1.1rem; border-radius: 999px; margin-bottom: 1.4rem; }
.plaster i { width: 7px; height: 7px; border-radius: 50%; background: #3a2a00; opacity: .35; }
.region { border-left: 5px solid var(--accent); padding: .4rem 0 .4rem 1.1rem; margin-top: 1.4rem; max-width: 60ch; }
.region strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.3; color: var(--primary-2); }
.region span { display: block; margin-top: .3rem; color: var(--muted); }

/* Page hero (subpages) */
.page-hero { padding: 72px 0 56px; background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 70%); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 70%), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* ---------- Sections & grids ---------- */
.section { padding: 80px 0; }
.section.muted { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-action { margin-top: 28px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }

/* ---------- Orientation strip ---------- */
.orientation-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.orientation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.orientation-item { padding: 22px 24px; border-right: 1px solid var(--border); transition: background-color var(--motion-base) ease, transform var(--motion-base) var(--ease-out); }
.orientation-item:last-child { border-right: 0; }
.orientation-item:hover { background: var(--surface-2); transform: translateY(-2px); }
.orientation-item strong { display: block; font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; color: var(--primary-2); }
.orientation-item span { color: var(--muted); font-size: .95rem; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(16, 36, 50, .07); padding: 26px; transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), border-color var(--motion-base) ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16, 36, 50, .1); border-color: color-mix(in srgb, var(--primary), var(--border) 68%); }
.cont { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; max-width: none; }
.cont strong { color: var(--primary-2); }

/* Tiles (adults / children) */
.tile { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--primary); border-radius: 18px; padding: 1.6rem 1.7rem; box-shadow: 0 10px 28px rgba(16,36,50,.07); transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.tile.kids { border-left-color: var(--accent); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.tile strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--primary-2); }
.tile span:not(.tile-k) { color: var(--muted); }
.tile em { font-style: normal; color: var(--primary); font-weight: 500; margin-top: .4rem; }

/* Service teaser cards */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { display: grid; grid-template-rows: 170px auto 1fr; overflow: hidden; text-decoration: none; background: var(--surface); border-radius: 18px; box-shadow: 0 22px 60px rgba(55, 47, 36, .14); transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 28px 64px rgba(55, 47, 36, .2); }
.service-card img { width: 100%; height: 170px; object-fit: cover; transition: transform 720ms var(--ease-out); }
.service-card:hover img { transform: scale(1.05); }
.service-card .icon-head { height: 170px; display: grid; place-items: center; background: linear-gradient(140deg, var(--primary) 0%, var(--primary-2) 100%); color: #fff; }
.service-card .icon-head.sun { background: linear-gradient(140deg, #537734 0%, #304e25 100%); }
.service-card .icon-head svg { width: 64px; height: 64px; opacity: .92; transition: transform 720ms var(--ease-out); }
.service-card:hover .icon-head svg { transform: scale(1.1) rotate(-4deg); }
.service-card span { color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; padding: 18px 18px 0; }
.service-card small { color: var(--muted); padding: 6px 18px 20px; font-size: .93rem; line-height: 1.5; }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.trust-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 18px 45px rgba(55, 47, 36, .1); transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.trust-item:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(55, 47, 36, .14); }
.trust-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); transition: transform var(--motion-base) var(--ease-out), background-color var(--motion-base) ease; }
.trust-item:nth-child(even) .trust-icon { background: color-mix(in srgb, var(--accent), white 72%); color: var(--accent-deep); }
.trust-item:hover .trust-icon { transform: scale(1.08) rotate(-4deg); }
.trust-icon svg { width: 26px; height: 26px; }
.trust-item h3 { margin-bottom: 6px; font-size: 1.12rem; }
.trust-item p { margin: 0; font-size: .96rem; }

/* Fact box */
.fact-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fact-box strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--primary-2); }
.fact-box a.big { color: var(--primary); font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; text-decoration: none; }

/* Spec groups */
.spec { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 10px 28px rgba(16, 36, 50, .06); transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.spec:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16, 36, 50, .09); }
.spec.focus { border-top-color: var(--accent); }
.spec h4 { color: var(--primary-2); margin-bottom: 10px; }
.spec ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.spec li { position: relative; padding-left: 22px; color: var(--muted); }
.spec li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary), transparent 86%); }
.spec.focus li::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 80%); }
.spec p:last-child { margin-bottom: 0; }
.sublabel { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-deep); font-weight: 500; margin: 14px 0 8px; }
h3.group { font-size: 1.45rem; font-weight: 700; color: var(--primary-2); margin: 48px 0 18px; display: flex; align-items: center; gap: 12px; }
h3.group::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.3rem 0 0; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .4rem .95rem; font-size: .92rem; }

/* Steps */
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: 0 10px 28px rgba(16, 36, 50, .06); }
.step .num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-bottom: 12px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 10px 0; box-shadow: 0 6px 18px rgba(16, 36, 50, .05); transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease; }
details[open] { border-color: color-mix(in srgb, var(--primary), var(--border) 58%); box-shadow: 0 14px 32px rgba(16, 36, 50, .08); }
details[open] p { animation: detail-open var(--motion-base) var(--ease-out) both; }
summary { cursor: pointer; font-weight: 500; color: var(--primary-2); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform var(--motion-base) var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; }

/* Callout */
.callout { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border: 2px solid var(--primary); border-radius: 20px; padding: 24px 28px; background: var(--surface); }
.callout strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--primary-2); }
.callout span { color: var(--muted); }
.callout .cta-row { margin-top: 0; }

/* Hours table */
.hours { overflow-x: auto; }
.hours table { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--border); font-weight: 300; }
.hours th { font-weight: 500; color: var(--primary-2); }
.hours tr.sat th, .hours tr.sat td { color: var(--primary); font-weight: 500; }
.hours tr.kids th, .hours tr.kids td { background: color-mix(in srgb, var(--accent), white 80%); color: var(--accent-ink); font-weight: 500; }
.hours tr.kids th { border-radius: 10px 0 0 10px; }
.hours tr.kids td:last-child { border-radius: 0 10px 10px 0; }

/* Contact list */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.dl a { color: var(--primary); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--primary); }
.timeline li { padding: 0 0 1.2rem 1.4rem; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline b { font-weight: 500; display: block; color: var(--primary-2); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; }

/* Image placeholders (real photos to follow) */
.ph { background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, color-mix(in srgb, var(--surface-2), white 40%) 14px 28px); border: 2px dashed color-mix(in srgb, var(--primary), transparent 70%); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center; color: var(--primary); font-size: .88rem; font-weight: 500; padding: 1rem; }
.ph svg { width: 32px; height: 32px; opacity: .6; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.photo:hover img { transform: scale(1.03); }
figure { margin: 0; }
figcaption { margin-top: .7rem; }
figcaption strong { display: block; color: var(--primary-2); }
figcaption span { color: var(--muted); font-size: .94rem; }

/* Team */
.team-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 10px 28px rgba(16, 36, 50, .07); transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); aspect-ratio: 4/3.4; }
.team-card .ph.lead-doc { background: linear-gradient(140deg, var(--primary), var(--primary-2)); color: #fff; }
.team-card div.body { padding: 16px 18px 18px; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card p { margin: 0; font-size: .9rem; }

/* Colleague letter */
.colleague { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow); }
.colleague ul.plain { padding-left: 1.2rem; color: var(--muted); }
.colleague ul.plain li { margin: .4rem 0; }
.sig { margin-top: 1.8rem; font-weight: 500; color: var(--primary-2); }

/* Social */
.social { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .8rem 0 0; }
.social a { display: inline-block; padding: .4rem .95rem; border-radius: 999px; border: 1.5px solid var(--primary); color: var(--primary); text-decoration: none; font-size: .88rem; font-weight: 500; transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease; }
.social a:hover { background: var(--primary); color: #fff; }

/* Final CTA */
.final-cta { padding: 56px 0; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: radial-gradient(circle at 90% 10%, rgba(195,223,120,.16), transparent 45%), linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: #fff; box-shadow: 0 30px 60px rgba(31, 70, 85, .25); }
.final-cta-inner h2, .final-cta-inner p { color: #fff; }
.final-cta-inner p { opacity: .88; margin: 0; }
.final-cta-inner .eyebrow { color: var(--accent); }
.final-cta-inner .cta-row { margin-top: 0; min-width: 0; }
.final-cta-inner .button { background: #fff; color: var(--primary-2); border-color: #fff; }
.final-cta-inner .button.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.final-cta-inner .social a { border-color: rgba(255,255,255,.7); color: #fff; }
.final-cta-inner .social a:hover { background: #fff; color: var(--primary-2); }

/* Legal */
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal-warning { background: color-mix(in srgb, var(--accent), white 75%); border: 1px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 26px; background: linear-gradient(160deg, var(--dark), #153662); border-top: 3px solid var(--lime); color: var(--on-dark); }
.site-footer p { color: var(--muted-on-dark); font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: minmax(260px, 1.6fr) minmax(160px, .9fr) minmax(160px, .9fr) minmax(140px, .7fr); gap: clamp(24px, 4vw, 48px); }
.footer-brand img { display: block; width: min(210px, 100%); height: auto; margin-bottom: 14px; border-radius: 6px; }
.footer-title { display: block; font-family: var(--font-head); font-weight: 600; color: var(--on-dark); margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(214,229,236,.25); color: var(--muted-on-dark); font-size: .86rem; }

/* ---------- Reveal ---------- */
.js-enabled .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js-enabled .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] body, body[dir="rtl"] { font-family: "IBM Plex Sans Arabic", var(--font-body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: "IBM Plex Sans Arabic", var(--font-head); letter-spacing: 0; }
[dir="rtl"] .site-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .region { border-left: 0; border-right: 5px solid var(--accent); padding: .4rem 1.1rem .4rem 0; }
[dir="rtl"] .spec li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .spec li::before { left: auto; right: 0; }
[dir="rtl"] .hours th, [dir="rtl"] .hours td { text-align: right; overflow-wrap: anywhere; }
[dir="rtl"] .cont { border-left: 1px solid var(--border); border-right: 5px solid var(--accent); }
[dir="rtl"] { --hero-angle: 270deg; }
[dir="rtl"] h3.group::before { order: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  [dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(16, 36, 50, .12); }
  .site-nav.open { display: flex; animation: drop-in var(--motion-base) var(--ease-out); }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .g2, .g3, .split, .trust-grid, .orientation-grid { grid-template-columns: 1fr; }
  .orientation-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .orientation-item:last-child { border-bottom: 0; }
  .final-cta-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .hero { min-height: auto; padding: 56px 0; --hero-angle: 180deg; }
}
@media (max-width: 560px) {
  .brand img { width: clamp(105px, 38vw, 138px); }
  .site-header.is-scrolled .brand img { width: 105px; }
  .header-phone { display: none; }
  [dir="rtl"] .hours th, [dir="rtl"] .hours td { padding-inline: .3rem; font-size: .9rem; }
  .service-grid, .g4, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 .typewriter { white-space: normal; }
  .dl { grid-template-columns: 1fr; gap: 0; }
  .dl dd { margin-bottom: .6rem; }
}

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

@keyframes caret-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes detail-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes hero-focus { from { background-position: center 46%; } to { background-position: center; } }

/* Localized navigation can need an extra line at desktop widths. */
@media (min-width: 1081px) {
  html:not([lang="de"]) .site-nav { min-inline-size: 0; flex-wrap: wrap; padding-block: .4rem; }
}
[dir="rtl"] .timeline { padding-inline-start: 1.25rem; }

/* Print identity: a pale green upper-right circle and blue satellite dot. */
.site-header { isolation: isolate; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 8px at calc(100% - 68px) calc(100% - 16px), #368dbc 95%, transparent),
    radial-gradient(circle 105px at calc(100% - 5px) -28px, #e5f2d9 99%, transparent);
}
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle clamp(110px, 19vw, 270px) at 97% 5%, #315c60 99%, transparent);
}
/* Mirror the print artwork in right-to-left layouts. */
[dir="rtl"] .site-header::before,
[dir="rtl"] .hero::before { transform: scaleX(-1); }
.brand img { background: transparent; }
.hours {
  border: 1px solid #bad4dd; border-radius: .9rem; overflow: auto; min-inline-size: 0;
}
.hours table { inline-size: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .65rem .8rem; text-align: start; }
.hours th { color: #153662; font-weight: 700; }
.hours td { text-align: end; }
.hours tr:nth-child(even) { background: #e7f2f8; }
.hours tr + tr { border-block-start: 1px solid #bad4dd; }
.hours tr:last-child :is(th, td) { border-block-end: 0; }

.page-hero::after { background: #e5f2d9; }
[dir="rtl"] .page-hero::after { right: auto; left: -80px; }
.footer-brand img { background: #fff; padding: .35rem; }
.clinic-domains { overflow-wrap: anywhere; }
.tile.kids, .spec.focus { background: #e5f2d9; }
