/* Hausarzt Praxis Hilden Nord
   Schriften: Source Sans 3 (Latein, Kyrillisch) und Noto Sans Arabic, lokal eingebunden –
   keine Verbindung zu Google-Servern (DSGVO). */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/source-sans-3-latin-400-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: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/source-sans-3-latin-ext-400-normal.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/source-sans-3-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/source-sans-3-cyrillic-ext-400-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/source-sans-3-latin-600-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: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/source-sans-3-latin-ext-600-normal.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/source-sans-3-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/source-sans-3-cyrillic-ext-600-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/source-sans-3-latin-700-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: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/source-sans-3-latin-ext-700-normal.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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/source-sans-3-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/source-sans-3-cyrillic-ext-700-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/noto-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }

/* Ersatzschrift mit angeglichenen Maßen: Text springt nicht, wenn Source Sans 3 nachlädt (CLS) */
@font-face { font-family: "Source Sans 3 Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 93%; ascent-override: 110%; descent-override: 43%; line-gap-override: 0%; }

:root {
  --ink: #1F2A37;
  --ink-soft: #5B6573;
  --primary: #2563A8;
  --primary-dark: #1B4C82;
  --primary-soft: #E8EFF7;
  --primary-softer: #D3E1F0;
  --on-dark: #A9C8EA;
  --footer: #18212C;
  --accent: #C8A97E;
  --accent-hover: #D4B993;
  --sand: #F7F4EE;
  --line: #E6E1D8;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(31, 42, 55, 0.08);
  --font: "Source Sans 3", "Source Sans 3 Fallback", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1160px;
}

/* Alternative Farbpaletten (Vorschau: ?palette=1 … ?palette=4). Gewählt ist Palette 5 („Ozeanblau & Sand“) = :root oben. */
:root[data-palette="1"] { --ink: #0F2236; --ink-soft: #4A5D70; --primary: #1A6FB5; --primary-dark: #11528A; --primary-soft: #E6F0FA; --primary-softer: #D4E5F6; --on-dark: #9CC8F0; --footer: #0B1A2A; --accent: #e98a4f; --accent-hover: #f29d67; --sand: #F3F6FA; --line: #DFE6EE; }
:root[data-palette="2"] { --ink: #0A1F33; --ink-soft: #4B5B6B; --primary: #0B4F8A; --primary-dark: #083B68; --primary-soft: #E3EEF8; --primary-softer: #CCE0F2; --on-dark: #7CC4EE; --footer: #071726; --accent: #3BA7E0; --accent-hover: #5DB8E8; --sand: #F4F7FA; --line: #DCE4EC; }
:root[data-palette="3"] { --ink: #0B2530; --ink-soft: #4A6069; --primary: #0E7490; --primary-dark: #0A5669; --primary-soft: #E0F2F7; --primary-softer: #C8E7EF; --on-dark: #86D3E6; --footer: #081B23; --accent: #F2B544; --accent-hover: #F5C366; --sand: #F2F8FA; --line: #DAE7EB; }
:root[data-palette="4"] { --ink: #1B1F3B; --ink-soft: #555A77; --primary: #4F5BD5; --primary-dark: #3A44A8; --primary-soft: #ECEEFC; --primary-softer: #DCE0FA; --on-dark: #AEB5F5; --footer: #13162B; --accent: #F28C8C; --accent-hover: #F5A3A3; --sand: #F6F6FB; --line: #E2E3F0; }

:root[lang="ar"] { --font: "Noto Sans Arabic", "Source Sans 3", Tahoma, Arial, sans-serif; }

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

.i18n-pending body { visibility: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

[dir="rtl"] body { line-height: 1.75; }

img { max-width: 100%; display: block; }
a { color: var(--primary); }
a, button { touch-action: manipulation; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }

/* ---- Buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); transition-duration: .1s; }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: var(--primary-soft); color: var(--primary-dark); }
.btn-light:hover { background: var(--primary-softer); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: var(--white); }

/* ---- Header ---- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.005em; }
.brand-text span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 600; }

.main-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-extra { display: none; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
  padding: 8px 11px; border-radius: 999px;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
/* Ukrainisch hat die längsten Menüwörter: etwas enger, damit alles in eine Zeile passt */
:root[lang="uk"] .main-nav a { padding-inline: 7px; font-size: .95rem; }
.main-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-dark); }

.header-tools { display: flex; align-items: center; gap: 10px; }

.status-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.status-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.status-chip.is-open { color: var(--primary-dark); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.status-dot.is-open { background: #22A06B; box-shadow: 0 0 0 3px rgba(34, 160, 107, .18); }

.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 .9rem var(--font); cursor: pointer;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary-dark); }
.lang-btn svg:last-of-type { opacity: .6; transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg:last-of-type { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 190px;
  margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.lang-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font: 500 1rem var(--font); text-align: start; cursor: pointer;
}
.lang-list button:hover, .lang-list button:focus-visible { background: var(--primary-soft); }
.lang-list button[aria-checked="true"] { color: var(--primary-dark); font-weight: 700; }
.lang-list .lang-code {
  display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px;
  background: var(--sand); color: var(--primary-dark); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.lang-list button[aria-checked="true"] .lang-code { background: var(--primary); color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle .bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle .bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero ---- */

.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, var(--primary-soft), transparent 70%),
    linear-gradient(180deg, var(--white), var(--sand));
  padding-block: clamp(48px, 8vw, 96px);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(900px 400px at 15% -10%, var(--primary-soft), transparent 70%),
    linear-gradient(180deg, var(--white), var(--sand));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 620px); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: .875rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges { gap: 10px 26px; }
.badges li { display: inline-flex; align-items: center; gap: 9px; font-size: .97rem; font-weight: 600; color: var(--ink); }
.badges .dot { position: relative; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); }
.badges .dot::after {
  content: ""; position: absolute; inset: 3px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.status {
  align-self: flex-start; font-size: .875rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: #fbe9df; color: #9a4a1b; white-space: nowrap;
}
.status.is-open { background: var(--primary-soft); color: var(--primary-dark); }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-inline-end: 7px; vertical-align: middle; }
.status-detail { margin: 0; color: var(--primary-dark); font-weight: 600; }
.status-detail:empty { display: none; }

/* 3D-Emblem (Blender-Rendering, dreht sich) */
.hero-visual { display: grid; place-items: center; }

/* Startbereich: Arztfoto als weichgezeichneter Hintergrund, darüber ein heller Schleier für gut lesbaren Text.
   Fehlt das Foto, bleibt der helle Verlauf von .hero sichtbar. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -40px; z-index: -2;
  background: url("../assets/photos/hero-arzt.jpg") 50% 25% / cover no-repeat;
  animation: hero-drift 24s ease-in-out infinite alternate;
}
/* Im Foto steht der Arzt links. Bei Text links (LTR) gespiegelt, damit er auf der freien rechten Seite erscheint. */
[dir="ltr"] .hero-bg { transform: scaleX(-1); }
/* Unschärfe als Verlauf: kräftig hinter dem Text, zum Arzt hin ausgeblendet. Die Ebene liegt im (ggf. gespiegelten)
   .hero-bg, darum zeigt der Verlauf in Element-Richtung „to left“ – auf dem Bildschirm immer zur Textseite. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0; background: inherit; filter: blur(16px);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 42%, transparent 68%); mask-image: linear-gradient(to left, #000 0%, #000 42%, transparent 68%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .82) 45%, rgba(255, 255, 255, .25) 66%, rgba(255, 255, 255, 0) 85%);
}
[dir="rtl"] .hero::before { background: linear-gradient(260deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .82) 45%, rgba(255, 255, 255, .25) 66%, rgba(255, 255, 255, 0) 85%); }

/* Lichtstreifen über dem Logo im Kopf */
.logo-shine {
  position: relative; display: block; flex-shrink: 0;
  -webkit-mask: url("../assets/logo-praxis.svg") center / contain no-repeat; mask: url("../assets/logo-praxis.svg") center / contain no-repeat;
}
.logo-shine img { display: block; animation: logo-glow 6s ease-in-out 1s infinite; }
.logo-shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .95) 50%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 150% 0; mix-blend-mode: screen;
  animation: logo-shine 6s ease-in-out 1s infinite;
}
@keyframes hero-drift { from { scale: 1; } to { scale: 1.08; translate: -1.5% 0; } }
@keyframes logo-shine { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }
@keyframes logo-glow { 0%, 100% { filter: none; } 25% { filter: brightness(1.12) saturate(1.2); } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .logo-shine img, .logo-shine::after, .hero-ecg path { animation: none; }
  .hero-ecg path { stroke-dashoffset: 0; }
}

/* Heute-Leiste unter dem Hero */
.today-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: clamp(28px, 4vw, 44px);
  padding: 16px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.today-strip p { margin: 0; }
.today-main { font-variant-numeric: tabular-nums; }
.today-main strong { font-weight: 700; margin-inline-end: 6px; }
.today-main span { font-weight: 600; }
.today-acute { color: var(--ink-soft); }
.today-acute b { color: var(--ink); font-variant-numeric: tabular-nums; }
.today-strip .link-arrow { margin-inline-start: auto; font-weight: 700; color: var(--primary); text-decoration: none; }
.today-strip .link-arrow:hover { text-decoration: underline; }

/* ---- Sections ---- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tint { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: var(--on-dark); }
.section-dark .lead { color: rgba(255, 255, 255, .78); }
.section-head { max-width: 720px; margin-bottom: 44px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
a.card { display: block; color: inherit; text-decoration: none; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--primary); font-size: .95rem; }
.card .more::after, .link-arrow::after { content: " →"; }
[dir="rtl"] .card .more::after, [dir="rtl"] .link-arrow::after { content: " ←"; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.card-highlight { background: var(--primary-soft); border-color: transparent; }
.icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 18px;
}
.card-highlight .icon { background: var(--white); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }

.panel { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 18px; }

.checklist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-inline-start: 34px; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft);
}
.checklist li::after {
  content: ""; position: absolute; inset-inline-start: 3px; top: calc(.2em + 3px); width: 16px; height: 16px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.note { font-size: .93rem; color: var(--ink-soft); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---- Doctor ---- */

.doctor { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.doctor-photo {
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--primary-soft), var(--primary-softer));
  display: grid; place-items: center;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo span { font-size: 5rem; font-weight: 700; color: var(--primary); opacity: .55; letter-spacing: .04em; }
.role { color: var(--primary); font-weight: 600; margin-top: -6px; }
.langs-title { margin-top: 28px; }
.langs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.langs li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--sand); font-weight: 600;
}
[dir="rtl"] .langs li { padding: 6px 6px 6px 14px; }
.langs .code {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); color: var(--primary); font-size: .75rem; font-weight: 700;
}

/* ---- Hours ---- */

.hours { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: start; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; width: 42%; }
.hours td span { display: inline-block; margin-inline-end: 18px; }
.hours td.closed { color: var(--ink-soft); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--primary-dark); font-weight: 700; }
.hours tr.is-today th::after {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-inline-start: 8px; vertical-align: middle;
}

/* ---- FAQ ---- */

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ---- Contact ---- */

.contact-list { margin: 0; display: grid; gap: 4px; background: rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 10px 28px; }
.contact-list > div { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark); font-weight: 600; }
[dir="rtl"] .contact-list dt { letter-spacing: 0; font-size: .9rem; }
.contact-list dd { margin: 4px 0 0; font-size: 1.1rem; font-weight: 600; }
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list [hidden] { display: none; }

/* ---- Notices ---- */

.notices { background: var(--primary-soft); border-bottom: 1px solid var(--line); }
.notice { display: flex; align-items: center; gap: 12px; margin-block: 0; padding-block: 10px; font-size: .95rem; font-weight: 600; color: var(--primary-dark); }
.notice-label {
  flex-shrink: 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--accent); color: var(--ink); padding: 3px 10px; border-radius: 999px;
}
[dir="rtl"] .notice-label { letter-spacing: 0; }

/* ---- Sub page hero ---- */

.page-hero {
  background:
    radial-gradient(700px 300px at 90% -20%, var(--primary-soft), transparent 70%),
    linear-gradient(180deg, var(--white), var(--sand));
  padding-block: clamp(36px, 6vw, 72px) clamp(36px, 5vw, 60px);
}
[dir="rtl"] .page-hero {
  background:
    radial-gradient(700px 300px at 10% -20%, var(--primary-soft), transparent 70%),
    linear-gradient(180deg, var(--white), var(--sand));
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero .lead { margin-bottom: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.breadcrumb { display: flex; gap: 8px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); display: inline-block; padding-block: 2px; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---- Patient guide ("Ihr Anliegen") ---- */

.routes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.route {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.route:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.route .icon { margin-bottom: 8px; }
.route h3 { margin: 0; font-size: 1.08rem; }
.route p { margin: 0; color: var(--ink-soft); font-size: .93rem; flex: 1; }
.route .link-arrow { margin-top: 10px; font-weight: 600; font-size: .93rem; color: var(--primary); }
.route-emergency { background: #FDF0EF; border-color: #F6D5D2; }
.route-emergency .icon { background: #FBE0DD; color: #B42318; }
.route-emergency .link-arrow { color: #B42318; }
.route-emergency .link-arrow::after { content: ""; }

/* ---- Greetings ---- */

.greetings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
.greeting { background: var(--white); border-radius: var(--radius); padding: 22px 18px; text-align: center; border: 1px solid var(--line); }
.greeting b { display: block; font-size: 1.35rem; color: var(--primary-dark); line-height: 1.3; }
.greeting span { display: block; margin-top: 6px; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

/* ---- Photo slots ---- */

.photo {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(160deg, var(--primary-soft), var(--primary-softer));
  display: grid; place-items: center; margin: 0;
}
.photo:not(.has-img)::before {
  content: ""; width: min(36%, 150px); aspect-ratio: 1; background: var(--primary-dark); opacity: .13;
  -webkit-mask: url("../assets/logo-mono.png") center / contain no-repeat;
          mask: url("../assets/logo-mono.png") center / contain no-repeat;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-portrait { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 10; }
.photo-initials { position: absolute; bottom: 14px; inset-inline-start: 16px; font-size: 1.1rem; font-weight: 700; color: var(--primary); opacity: .6; }
.photo.has-img .photo-initials { display: none; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-weight: 600; font-size: .95rem; }

/* ---- Steps ---- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 22px 22px; border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: var(--white); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---- Services detail ---- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a {
  padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600;
}
.chips a:hover { border-color: var(--primary); color: var(--primary); }
.service-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); padding-block: 40px; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.service-block .icon { margin-bottom: 14px; }
.service-block p { color: var(--ink-soft); }
.service-block .checklist { align-content: start; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); margin-bottom: 12px; }

/* ---- Emergency ---- */

.emergency { background: #FDF0EF; border: 1px solid #F6D5D2; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.emergency h3 { color: #B42318; display: flex; align-items: center; gap: 10px; }
.emergency-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.emergency-numbers a { display: block; background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.emergency-numbers b { display: block; font-size: 1.6rem; color: #B42318; direction: ltr; unicode-bidi: isolate; }
.emergency-numbers span { font-size: .9rem; color: var(--ink-soft); }

/* ---- Team ---- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card h3 { margin: 14px 0 2px; font-size: 1.08rem; }
.team-role { margin: 0; color: var(--primary); font-weight: 600; font-size: .93rem; }
.team-langs { margin: 4px 0 0; font-size: .82rem; color: var(--ink-soft); letter-spacing: .06em; }
.doctor-feature { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---- Jobs ---- */

.jobs { display: grid; gap: 16px; }
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.job-meta { margin: 0 0 6px; color: var(--primary); font-weight: 600; font-size: .9rem; }
.job p { color: var(--ink-soft); }

/* ---- Contact cards ---- */

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 8px; }
[dir="rtl"] .contact-card h3 { letter-spacing: 0; font-size: .95rem; }
.contact-card p { margin: 0; font-size: 1.12rem; font-weight: 600; }
.contact-card a { color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--primary); }
.contact-card .contact-sub { margin-top: 8px; font-size: .98rem; font-weight: 500; color: var(--ink-soft); }
.contact-card .contact-sub a { color: var(--ink-soft); }
.info-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.info-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.info-list b { color: var(--ink-soft); font-weight: 600; font-size: .93rem; }
.info-list [hidden] { display: none; }

/* ---- Footer ---- */

.site-footer { background: var(--footer); color: rgba(255, 255, 255, .72); padding-block: 56px 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font-size: .875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark); margin-bottom: 14px; }
[dir="rtl"] .site-footer h2 { letter-spacing: 0; font-size: .95rem; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand-text span { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-langs { letter-spacing: .1em; color: var(--on-dark); font-weight: 600; font-size: .875rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hours-compact { margin: 0; display: grid; gap: 6px; }
.hours-compact div { display: flex; gap: 10px; }
.hours-compact dt { min-width: 64px; color: rgba(255, 255, 255, .55); }
.hours-compact dd { margin: 0; color: var(--white); font-variant-numeric: tabular-nums; }
.hours-compact dd span { display: block; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { display: inline-block; padding-block: 3px; }
.footer-emergency { color: var(--white); }
.footer-emergency b { color: var(--on-dark); }

/* ---- Logo (3D-Rendering aus Blender, je Palette eine Datei) ---- */

.logo-mark { flex-shrink: 0; display: block; }

/* ---- Palette preview switcher (nur mit ?palette=…) ---- */

.palette-switch {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 70;
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px;
  background: var(--white); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); font-size: .8rem; font-weight: 600;
}
.palette-switch button {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--white); cursor: pointer;
  color: var(--white); font: 700 .78rem/1 var(--font); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.palette-switch button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 760px) { .palette-switch { bottom: 84px; } }

/* ---- Mobile action bar ---- */

.action-bar { display: none; }

/* Phone numbers and times stay left-to-right inside Arabic text */
.js-phone, .js-fax, .js-whatsapp, .js-email, .flag-row { unicode-bidi: isolate; direction: ltr; }
[hidden] { display: none !important; }

/* ---- Legal pages ---- */

.legal { padding-block: 56px 96px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .todo { background: #fff4d6; padding: 0 .3em; border-radius: 4px; }

/* ---- Print ---- */

@media print {
  .site-header, .notices, .action-bar, .site-footer, .btn, .chips { display: none !important; }
  .section, .page-hero { padding-block: 16px; background: none; }
}

/* ---- Responsive ---- */

@media (max-width: 1279px) {
  .status-chip { display: none; }
}

@media (max-width: 1180px) {
  .routes { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { padding: 8px 8px; font-size: .97rem; }
}

@media (max-width: 1080px) {
  .cards, .team-grid, .gallery, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .status-chip { display: inline-flex; }
  .nav-extra { display: block; padding-top: 14px; font-size: .95rem; color: var(--ink-soft); }
  .main-nav .nav-extra a { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 6px 0; color: var(--ink); font-weight: 700; }
  .nav-extra p { margin: 4px 0 0; }
  .nav-extra b { color: #B42318; }
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 20px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: none; }
  .main-nav a[aria-current="page"] { color: var(--primary); }
  .header-tools { margin-inline-start: auto; }

  .hero-grid, .split, .doctor, .doctor-feature, .page-hero-grid, .service-block { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-bg::after { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%); mask-image: linear-gradient(to bottom, transparent 0%, #000 38%); }
  .hero::before, [dir="rtl"] .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .88) 30%, rgba(255, 255, 255, .92) 100%); }
  .doctor-photo, .doctor-feature .photo { max-width: 340px; }
  .cards-3, .contact-cards, .greetings { grid-template-columns: repeat(2, 1fr); }
  .routes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  /* Fokus nicht unter der festen Aktionsleiste verstecken (WCAG 2.4.11) */
  html { scroll-padding-bottom: 84px; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px;
    border-radius: 999px; font-weight: 600; text-decoration: none;
    border: 1.5px solid var(--line); color: var(--ink); background: var(--white);
  }
  .action-bar a.is-primary { background: var(--primary); border-color: var(--primary); color: var(--white); }
  body { padding-bottom: 70px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }
  .header-inner { gap: 10px; min-height: 64px; }
  .header-tools { gap: 8px; }
  .header-tools .btn-sm, .status-chip { display: none; }
  .lang-btn svg:first-child { display: none; }
  .lang-btn { padding: 0 8px 0 11px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img, .brand .logo-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: .92rem; }
  .brand-text span { font-size: .75rem; }
  .cards, .cards-3, .team-grid, .gallery, .steps, .contact-cards, .routes, .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .greetings { grid-template-columns: 1fr 1fr; }
  .emergency-numbers { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .lead { font-size: 1.08rem; }
  .info-list li { grid-template-columns: 1fr; gap: 0; }
  .today-strip { padding: 14px 16px; gap: 8px 18px; }
  .today-strip .link-arrow { margin-inline-start: 0; }
}

/* ---- Feinschliff: Zustände, Bewegung, kompakte Karten auf dem Handy ---- */

.card .icon, .route .icon { transition: background-color .2s, color .2s; }
.card:hover .icon, .route:hover .icon { background: var(--primary); color: var(--white); }
.route-emergency:hover .icon { background: #B42318; color: var(--white); }
.card:active, .route:active { transform: scale(.985); transition-duration: .1s; }

.site-header { transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 34, 54, .08); }

.js-email, .contact-card a, .site-footer a { overflow-wrap: anywhere; }
.info-list, .contact-cards, .footer-emergency, .hours-compact { font-variant-numeric: tabular-nums; }

/* Sanftes Einblenden beim Scrollen – nur mit JavaScript und ohne „Bewegung reduzieren“ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

@media (max-width: 1080px) {
  .greetings .greeting:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  /* Anliegen- und Leistungskarten: Symbol links, Text rechts – halb so lang */
  .route, .cards > .card, .cards-3 > .card {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; padding: 16px 18px;
  }
  .route > .icon, .cards > .card > .icon, .cards-3 > .card > .icon { grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
  .route > :not(.icon), .cards > .card > :not(.icon), .cards-3 > .card > :not(.icon) { grid-column: 2; }
  .route h3, .cards .card h3, .cards-3 .card h3 { margin: 2px 0 2px; font-size: 1.05rem; }
  .route p, .cards .card p, .cards-3 .card p { font-size: .95rem; }
  .route .link-arrow, .card .more { margin-top: 6px; }
  .routes, .cards, .cards-3 { gap: 10px; }

  .badges { flex-direction: column; gap: 10px; }
  .greeting { padding: 16px 12px; }
  .greeting b { font-size: 1.15rem; }

  .footer-links { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .footer-links a { display: inline-block; padding-block: 4px; }
  .footer-bottom { flex-direction: column; }
}

/* ---- Karte mit Thermometer-Pin ---- */

.map-wrap { margin-top: clamp(32px, 5vw, 48px); }
.map {
  --cold: var(--primary); --hot: #D92D20;
  position: relative; aspect-ratio: 16 / 7; min-height: 320px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); box-shadow: var(--shadow);
}
.map-canvas, .map-canvas > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Nicht verschiebbar: der Pin bleibt sonst nicht auf der Adresse */
.map-canvas iframe { pointer-events: none; }
.mb-ground { fill: var(--sand); }
.mb-block { fill: #EDE7DC; }
.mb-park { fill: #E1ECDD; }
.mb-road-edge { fill: none; stroke: var(--line); stroke-width: 30; stroke-linecap: round; }
.mb-road { fill: none; stroke: var(--white); stroke-width: 24; stroke-linecap: round; }
.mb-lane { fill: none; stroke: var(--primary-softer); stroke-width: 2; stroke-dasharray: 10 12; }

/* Der Pin: Unterkante der Kugel liegt genau in der Kartenmitte */
.map-pin {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: block; width: 48px; height: 106px;
  margin: -101px 0 0 -24px; border-radius: 24px; color: inherit;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.map-pin svg { display: block; overflow: visible; filter: drop-shadow(0 6px 10px rgba(31, 42, 55, .22)); }
.t-shadow { fill: rgba(31, 42, 55, .18); transition: transform .35s cubic-bezier(.2, .7, .2, 1); transform-box: fill-box; transform-origin: center; }
.t-body { fill: var(--white); stroke: var(--primary-dark); stroke-width: 2.5; }
.t-glass { fill: var(--primary-soft); }
.t-ticks { stroke: var(--primary-dark); stroke-width: 1.6; stroke-linecap: round; opacity: .45; }
.t-shine { fill: rgba(255, 255, 255, .7); }
.t-column, .t-bulb { fill: var(--cold); transition: fill .5s ease, transform .7s cubic-bezier(.3, .8, .3, 1); }
/* Quecksilber: kalt = kurz und blau, warm = steigt bis oben und wird rot */
.t-column { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.38); }
.map-pin:hover, .map-pin:focus-visible { transform: translateY(-6px); }
.map-pin:hover .t-shadow, .map-pin:focus-visible .t-shadow { transform: translateY(6px) scale(.8); }
.map-pin:hover .t-column, .map-pin:focus-visible .t-column, .map-pin:active .t-column { transform: scaleY(1); fill: var(--hot); }
.map-pin:hover .t-bulb, .map-pin:focus-visible .t-bulb, .map-pin:active .t-bulb { fill: var(--hot); }
.map-pin:hover .t-body, .map-pin:focus-visible .t-body { stroke: #A3241A; transition: stroke .5s ease; }
.map-pin:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }

.map-card {
  position: absolute; top: 16px; inset-inline-start: 16px; z-index: 1; display: flex; flex-direction: column; gap: 2px;
  max-width: calc(100% - 32px); padding: 12px 16px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.map-card strong { font-size: 1rem; }
.map-card > span { color: var(--ink-soft); }
.map-consent {
  position: absolute; bottom: 16px; inset-inline: 16px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 12px 16px; background: rgba(255, 255, 255, .94); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.map-consent p { margin: 0; font-size: .95rem; color: var(--ink-soft); max-width: 60ch; }
.map-consent .btn { flex-shrink: 0; }
.map.is-loaded .map-card, .map.is-loaded .map-consent { display: none; }

@media (max-width: 600px) {
  .map { aspect-ratio: auto; height: 500px; }
  .map-card { padding: 10px 14px; }
  .map-consent { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin, .t-shadow, .t-column, .t-bulb { transition: none; }
}

/* ---- EKG-Linien: Fortschritt beim Scrollen und Herzschlag im Startbereich ---- */

.scroll-ecg {
  position: absolute; inset-inline: 0; bottom: -7px; width: 100%; height: 12px; pointer-events: none; overflow: visible;
}
.scroll-ecg path {
  fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: .8;
}
[dir="rtl"] .scroll-ecg { transform: scaleX(-1); }

.hero-ecg { display: block; width: 100%; height: 48px; margin-top: clamp(24px, 4vw, 40px); overflow: visible; }
.hero-ecg path {
  fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: .55;
  animation: ecg-draw 2.2s cubic-bezier(.4, 0, .2, 1) .4s forwards;
}
[dir="rtl"] .hero-ecg { transform: scaleX(-1); }
.hero-ecg + .today-strip { margin-top: 8px; }
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

/* ---- Kanten & Tiefe („Soft UI“): einheitliche Ränder, weiche Schatten in zwei Lagen ---- */

:root {
  --shadow-sm: 0 1px 2px rgba(31, 42, 55, .04), 0 4px 14px rgba(31, 42, 55, .05);
  --shadow-lg: 0 2px 4px rgba(31, 42, 55, .04), 0 18px 40px rgba(27, 76, 130, .12);
}
.card, .route, .greeting, .contact-card, .job {
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover, .route:hover, .contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary-softer); }
.card:active, .route:active { transform: translateY(-1px); transition-duration: .1s; }
.panel, .today-strip { box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.photo { border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) {
  .card:hover, .route:hover, .contact-card:hover { transform: none; }
}

/* ---- Sprechzeiten noch nicht bestätigt (config.js: hoursConfirmed) ---- */
.hours-ask { display: none; }
.hours-pending .hours-ask { display: block; margin: 0; font-weight: 600; }
.hours-pending .hours-ask a { white-space: nowrap; }
.hours-pending .today-strip, .hours-pending table.hours, .hours-pending .js-hours-compact,
.hours-pending .js-status-chip, .hours-pending .js-acute-section { display: none !important; }
.hours-pending .today-strip + .hours-ask {
  margin-top: 8px; padding: 16px 24px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
