/* =========================================================================
   Gruppenpraxis Mistelbach – Allgemeinmedizin
   Design System  ·  Teal-frisch auf klinischem Weiß
   DSGVO-freundlich: keine externen Fonts/CDNs, alles lokal.
   ========================================================================= */

:root {
  /* Leitfarben */
  --teal-50:  #ecfdfb;
  --teal-100: #cffafe;
  --teal-200: #a7f3ee;
  --teal-300: #6ee7e0;
  --teal-400: #2dd4cf;
  --teal-500: #14b8a6;
  --teal-600: #0ea5a4;
  --teal-700: #0d8d8c;
  --teal-800: #115e59;

  --blue-300: #7dd3fc;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;

  /* Neutral / klinisch */
  --bg:        #ffffff;
  --surface:   #f3f9fa;   /* sehr helles Teal-Grau */
  --surface-2: #e8f3f4;
  --line:      #dceaec;
  --ink:       #0e2a32;   /* dunkles Teal-Navy für Text */
  --ink-soft:  #2c4a52;
  --muted:     #5d7780;
  --white:     #ffffff;

  --danger:    #e11d48;

  /* Effekte */
  --shadow-sm: 0 1px 2px rgba(14,42,50,.06), 0 1px 3px rgba(14,42,50,.05);
  --shadow:    0 6px 18px -6px rgba(14,42,50,.16), 0 2px 6px rgba(14,42,50,.06);
  --shadow-lg: 0 24px 50px -18px rgba(13,141,140,.30), 0 8px 24px -12px rgba(14,42,50,.18);
  --ring:      0 0 0 4px rgba(20,184,166,.18);

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --grad-teal: linear-gradient(135deg, var(--teal-500) 0%, var(--blue-500) 100%);
  --grad-soft: linear-gradient(160deg, #f6fdfd 0%, #eef9fa 55%, #e6f5f6 100%);

  --container: 1180px;
  --header-h: 76px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* --------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--surface { background: var(--surface); }
.section--tint {
  background: var(--grad-soft);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  padding: 6px 14px; border-radius: 999px;
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 800;
  margin-top: 16px;
}
.section-sub { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

/* Eyecatcher: pulsierender "Neu"-Punkt neben einer Überschrift */
.news-dot {
  display: inline-block; vertical-align: middle;
  width: 12px; height: 12px; margin-left: 12px; border-radius: 50%;
  background: var(--teal-500, #14b8a6);
  box-shadow: 0 0 0 0 rgba(20,184,166,.55);
  animation: newsPulse 1.8s ease-out infinite;
}
@keyframes newsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,166,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}
@media (prefers-reduced-motion: reduce) {
  .news-dot { animation: none; }
}

.text-grad {
  background: var(--grad-teal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* -------------------------------------------------------------- Buttons */
.btn {
  --b: var(--teal-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-teal); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--teal-300); color: var(--teal-700); transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- Header */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header .container { height: 100%; display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-teal); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); flex: none;
}
.brand .logo svg { width: 24px; height: 24px; }
.brand-text { line-height: 1.05; }
.brand-text strong { display: block; font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-text span { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; white-space: nowrap; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .94rem;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.nav a:hover { background: var(--teal-50); color: var(--teal-700); }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-teal); color: #fff; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.icon-btn svg { width: 21px; height: 21px; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* --------------------------------------------------------- Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
  padding: 24px clamp(18px,5vw,40px); display: none; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; transition: opacity .2s, transform .2s;
}
.mobile-menu.open { display: flex; opacity: 1; transform: none; }
.mobile-menu a {
  padding: 16px 14px; border-radius: 14px; font-size: 1.12rem; font-weight: 600;
  border: 1px solid var(--line);
}
.mobile-menu a:active { background: var(--teal-50); }
.mobile-menu .btn { margin-top: 8px; }

/* ----------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; background: var(--grad-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(56,189,248,.16), transparent 70%),
    radial-gradient(55% 60% at 8% 100%, rgba(20,184,166,.14), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 56px);
  align-items: center; padding-block: clamp(44px, 6vw, 84px);
}
.hero-copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.07;
  letter-spacing: -.025em; font-weight: 850;
  margin-top: 16px;   /* Abstand zwischen Badge-Pille und Überschrift */
}
.hero p.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); margin-top: 16px; max-width: 44ch; }

/* gegliederte Punkte – klar getrennt, untereinander */
.hero-points { margin-top: 26px; border-top: 1px solid var(--line); }
.hero-points li {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
}
.hero-points .hp-ic {
  flex: none; width: 28px; height: 28px; border-radius: 9px;
  background: var(--teal-50); border: 1px solid var(--teal-200); color: var(--teal-700);
  display: grid; place-items: center;
}
.hero-points .hp-ic svg { width: 16px; height: 16px; }
.hero-points b { display: block; font-size: 1rem; letter-spacing: -.01em; }
.hero-points li > div > span { color: var(--muted); font-size: .9rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  font-weight: 600; font-size: .88rem; padding: 9px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 16px; height: 16px; color: var(--teal-600); }

/* EKG / Puls Visual – dezenter, kompakter */
.hero-visual {
  position: relative; aspect-ratio: 1/1; width: 100%; max-width: 330px; justify-self: end;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #0e2a32 0%, #0d5a59 60%, #0ea5a4 100%);
  box-shadow: var(--shadow-lg); overflow: hidden; display: grid; place-items: center;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(125,211,252,.30), transparent 55%);
}
.ekg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ekg-line { fill: none; stroke: #5eead4; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(94,234,212,.85)); }
.ekg-sweep { animation: ekgDraw 3.6s linear infinite; }
@keyframes ekgDraw {
  from { stroke-dashoffset: var(--dash, 1200); }
  to   { stroke-dashoffset: 0; }
}
.heart {
  position: relative; z-index: 2; width: 30%; color: #eafffb;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.3));
  animation: heartBeat 1.35s ease-in-out infinite;
}
.heart svg { width: 100%; height: auto; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.13); }
  28% { transform: scale(1); }
  42% { transform: scale(1.09); }
  56% { transform: scale(1); }
}
.pulse-ring {
  position: absolute; z-index: 1; width: 30%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(167,243,238,.5); animation: pulseRing 1.35s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(.9); opacity: .7; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}
.vital-tag {
  position: absolute; z-index: 3; bottom: 18px; left: 18px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: .9rem;
}
.vital-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 0 rgba(94,234,212,.7); animation: blip 1.25s infinite; }
@keyframes blip { 0%{box-shadow:0 0 0 0 rgba(94,234,212,.6);} 70%{box-shadow:0 0 0 9px rgba(94,234,212,0);} 100%{box-shadow:0 0 0 0 rgba(94,234,212,0);} }

/* ----------------------------------------------- "Heute" Status-Banner */
.today-bar {
  position: relative; z-index: 3; margin-top: -28px;
}
.today-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 18px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.today-card .status {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800;
  padding-right: 22px; border-right: 1px solid var(--line);
}
.today-card .status .led { width: 11px; height: 11px; border-radius: 50%; }
.led.open { background: #16c79a; box-shadow: 0 0 0 4px rgba(22,199,154,.18); }
.led.closed { background: #f43f5e; box-shadow: 0 0 0 4px rgba(244,63,94,.16); }
.today-card .today-docs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-soft); font-weight: 600; }
.today-card .today-docs b { color: var(--ink); }
.today-card .today-docs svg { width: 17px; height: 17px; color: var(--teal-600); flex: none; }
.today-card .today-docs .td-stack { display: flex; flex-direction: column; line-height: 1.32; }
.today-card .today-docs .td-when { white-space: nowrap; }

/* -------------------------------------------------------- Aktuelles/News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.news-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden;
}
.news-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-teal);
  opacity: .9;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-200); }
.news-card.pinned { background: linear-gradient(180deg, #fff, #f6fdfd); border-color: var(--teal-200); }
.news-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 800;
  letter-spacing: .03em; padding: 6px 12px; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-200);
}
.badge.impfung { background: #eef7ff; color: var(--blue-600); border-color: #cfe8fc; }
.badge.zeiten  { background: #fff4ec; color: #c2570a; border-color: #fcdcc4; }
.badge.info    { background: var(--teal-50); color: var(--teal-700); }
.badge svg { width: 14px; height: 14px; flex: none; }
.news-date { font-size: .82rem; color: var(--muted); font-weight: 600; }
.news-card h3 { font-size: 1.18rem; line-height: 1.25; letter-spacing: -.01em; }
.news-card p { color: var(--ink-soft); margin-top: 10px; font-size: .98rem; }
.pin-flag { position: absolute; top: 16px; right: 16px; color: var(--teal-500); }
.pin-flag svg { width: 18px; height: 18px; }

/* --------------------------------------------------- Anwesenheit (Grid) */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.legend i.single { background: var(--teal-200); }
.legend i.multi  { background: var(--grad-teal); }

.week-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.week-nav-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--teal-700); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background .18s, border-color .18s, opacity .18s, transform .18s; }
.week-nav-btn svg { width: 20px; height: 20px; }
.week-nav-btn:hover:not(:disabled) { background: var(--teal-50); border-color: var(--teal-200); transform: translateY(-1px); }
.week-nav-btn:disabled { opacity: .3; cursor: not-allowed; }
.week-nav-label { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 230px; text-align: center; }
.week-nav-label b { font-size: 1rem; color: var(--ink); }
.week-today { border: none; background: none; padding: 0; color: var(--teal-700); font-weight: 700;
  font-size: .8rem; cursor: pointer; text-decoration: underline; }
.week-today[hidden] { display: none; }

.week {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.slot.vertretung { border-style: dashed; border-color: var(--teal-200); }
.slot .slot-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: .72rem; font-weight: 800; color: var(--teal-700); background: var(--teal-100);
  padding: 3px 8px; border-radius: 999px; }
.slot .slot-tag svg { width: 13px; height: 13px; flex: none; }
.day {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.day:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.day.today { border-color: var(--teal-400); box-shadow: 0 0 0 2px rgba(20,184,166,.18), var(--shadow); }
.day h4 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.day .day-date { color: var(--muted); font-weight: 600; font-size: .8rem; }
.day h4 .today-pill { margin-left: auto; }
.day .opentime { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.day .opentime svg { width: 12px; height: 12px; opacity: .6; flex: none; }
.day .today-pill { font-size: .66rem; font-weight: 800; color: #fff; background: var(--teal-500); padding: 3px 8px; border-radius: 999px; letter-spacing: .05em; }
.slot {
  border-radius: 12px; padding: 10px 12px; font-size: .86rem; line-height: 1.3;
  background: var(--teal-50); border: 1px solid var(--teal-100);
}
.slot b { display: block; font-weight: 700; }
.slot small { color: var(--muted); font-weight: 600; }
.slot.multi {
  background: var(--grad-teal); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.slot.multi small { color: rgba(255,255,255,.85); }
.slot.multi .multi-tag {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: .72rem; font-weight: 800; background: rgba(255,255,255,.22);
  padding: 3px 8px; border-radius: 999px;
}
.slot.multi .multi-tag svg { width: 13px; height: 13px; flex: none; }
.day .closed-note { color: var(--muted); font-size: .86rem; font-style: italic; }
.day.is-closed { background: var(--surface); }
.day.is-closed .closed-note { font-style: normal; font-weight: 700; color: var(--ink-soft); }

/* --------------------------------------------------------- Leistungen */
.leist-tabs { display: inline-flex; gap: 6px; background: #fff; border: 1px solid var(--line);
  padding: 6px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 30px; }
.leist-tabs button { border: none; background: transparent; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; color: var(--ink-soft); transition: .18s; }
.leist-tabs button.active { background: var(--grad-teal); color: #fff; box-shadow: var(--shadow-sm); }

.leist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.leist {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.leist:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-200); }
.leist:hover .leist-more { background: var(--grad-teal); color: #fff; border-color: transparent; }
.leist:focus-visible { outline: 2px solid var(--teal-500, #14b8a6); outline-offset: 2px; }
.leist .ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); }
.leist .ic svg { width: 22px; height: 22px; }
.leist-more {
  flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--teal-600);
  background: var(--teal-50); border: 1px solid var(--teal-100);
  transition: background .18s, color .18s, border-color .18s;
}
.leist-more svg { width: 15px; height: 15px; }
.leist-txt { min-width: 0; flex: 1; }
.leist-txt b { display: block; font-weight: 650; font-size: .98rem; line-height: 1.25; overflow-wrap: normal; hyphens: manual; }
.leist-txt small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.leist-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* ---------------------------------------------- Leistungs-Popup (Modal) */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute; inset: 0; background: rgba(8,40,42,.45);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease;
}
.modal.open .modal-overlay { opacity: 1; }
.modal-card {
  position: relative; width: min(520px, 100%);
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 30px clamp(22px, 4vw, 36px) 30px;
  transform: translateY(16px) scale(.98); opacity: 0;
  transition: transform .24s cubic-bezier(.2,.7,.3,1), opacity .24s ease;
}
.modal.open .modal-card { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink-soft); cursor: pointer;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--teal-50); color: var(--teal-700); }
.modal-close svg { width: 20px; height: 20px; }
.modal-ic {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-100); margin-bottom: 16px;
}
.modal-ic svg { width: 28px; height: 28px; }
.modal-body h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.modal-lead { margin-top: 10px; font-weight: 650; color: var(--ink); font-size: 1.04rem; }
.modal-text { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.modal-steps, .modal-points { margin-top: 14px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.modal-steps li, .modal-points li {
  position: relative; padding-left: 30px; color: var(--ink-soft); line-height: 1.45;
}
.modal-points li::before {
  content: ""; position: absolute; left: 8px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500, #14b8a6);
}
.modal-steps li::before {
  content: ""; position: absolute; left: 8px; top: .5em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--teal-500, #14b8a6);
}
.modal-cta {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.modal-cta-label {
  display: block; font-weight: 800; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px;
}
.modal-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-preis {
  display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
}
.rezept-go { padding: 16px 24px; font-size: 1.05rem; }
.rezept-go svg { width: 20px; height: 20px; }
.modal-cta-btns .btn { flex: 1; min-width: 140px; }
.modal-termin {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: .9rem;
  background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100);
}
.modal-termin.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.modal-termin svg { width: 16px; height: 16px; flex: none; }
/* EKG-Animation im Popup */
.modal-ekg {
  height: 60px; margin-bottom: 18px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #0f766e, #042f2e);
  display: flex; align-items: center;
}
.modal-ekg svg { width: 100%; height: 100%; }
.modal-ekg .ekg-line { stroke: #5eead4; stroke-width: 2; --dash: 900; filter: drop-shadow(0 0 5px rgba(94,234,212,.8)); }
/* Puls-Animation im Popup (z. B. 24h-Blutdruck) */
.modal-puls {
  height: 60px; margin-bottom: 18px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(120deg, #1e3a8a, #2563eb);
  display: flex; align-items: center;
}
.modal-puls svg { width: 100%; height: 100%; }
.puls-line { fill: none; stroke: #bfdbfe; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  --dash: 1000; filter: drop-shadow(0 0 5px rgba(147,197,253,.85)); }
.puls-sweep { animation: ekgDraw 3s linear infinite; }
/* Wichtiger Hinweis im Popup */
.modal-hint {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 14px;
  padding: 11px 14px; border-radius: 12px; line-height: 1.45; font-size: .92rem;
  background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa;
}
.modal-hint svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
@media (prefers-reduced-motion: reduce) {
  .modal-ekg .ekg-sweep, .puls-sweep { animation: none; stroke-dashoffset: 0; }
  .modal-card, .modal-overlay { transition: none; }
}

/* --------------------------------------------------------------- Team */
.team-group { margin-top: 44px; }
.team-group:first-of-type { margin-top: 0; }
.team-group h3 {
  display: flex; align-items: center; gap: 12px; font-size: 1.05rem; letter-spacing: .02em;
  text-transform: uppercase; color: var(--teal-700); font-weight: 800; margin-bottom: 22px;
}
.team-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 30px; }
.member { text-align: center; width: 210px; }
.member .avatar {
  position: relative; width: clamp(150px, 18vw, 200px); aspect-ratio: 1; margin: 0 auto 18px;
  border-radius: 50%; padding: 5px; background: var(--grad-teal); box-shadow: var(--shadow);
  transition: transform .25s;
}
.member:hover .avatar { transform: translateY(-5px) scale(1.02); }
.member .avatar .mask {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 4px solid #fff;
  /* Neutraler Teal-Ton als Hintergrund hinter freigestellten Fotos (PNG) */
  background: linear-gradient(160deg, var(--teal-200), var(--teal-100));
}
.member .avatar .mask img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.member .avatar.ph { display: grid; place-items: center; }
.member .avatar.ph span { color: #fff; font-size: 2.2rem; font-weight: 800; }
.member b { display: block; font-size: 1.02rem; letter-spacing: -.01em; }
.member small { color: var(--muted); font-size: .86rem; display: block; margin-top: 4px; line-height: 1.4; }
.member .role-line { display: block; }
.member .role-line + .role-line { margin-top: 1px; }

/* ----------------------------------------------------- Öffnungszeiten */
.hours-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.hours-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 10px 6px; overflow: hidden; }
.hours-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 22px; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: none; }
.hours-row.now { background: var(--teal-50); }
.hours-row .d { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.hours-row .d .now-pill { font-size: .64rem; font-weight: 800; color:#fff; background: var(--teal-500);
  padding: 3px 8px; border-radius: 999px; letter-spacing: .05em; }
.hours-row .t { color: var(--ink-soft); font-weight: 650; font-variant-numeric: tabular-nums; }
.hours-row .t.closed { color: var(--muted); font-style: italic; font-weight: 600; }
.hours-aside { display: flex; flex-direction: column; gap: 16px; }
.callout {
  background: var(--grad-teal); color: #fff; border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow); display:flex; gap:14px; align-items:flex-start;
}
.callout svg { width: 28px; height: 28px; flex: none; }
.callout b { font-size: 1.1rem; }
.callout p { color: rgba(255,255,255,.9); margin-top: 4px; font-size: .94rem; }

/* ----------------------------------------------------------- Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--teal-50);
  color: var(--teal-700); border: 1px solid var(--teal-100); display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 21px; height: 21px; }
.contact-item small { color: var(--muted); display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.contact-item > div { min-width: 0; }
.contact-item a, .contact-item span { font-weight: 650; font-size: 1.02rem; overflow-wrap: anywhere; }
.emergency { margin-top: 22px; background: #fff5f6; border: 1px solid #fbd5db; border-radius: var(--radius);
  padding: 20px 22px; }
.emergency h4 { color: var(--danger); display: flex; align-items: center; gap: 9px; font-size: 1rem; }
.emergency h4 svg { width: 17px; height: 17px; flex: none; }
.emergency .nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px,1fr)); gap: 10px; margin-top: 14px; }
.emergency .nums a { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background:#fff; border:1px solid #fbd5db;
  border-radius: 12px; padding: 10px 13px; font-weight: 700; }
.emergency .nums a b { color: var(--danger); font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.emergency .nums a small { color: var(--muted); font-size: .76rem; font-weight: 600; }

/* Standort-Karte: Zwei-Klick-Lösung (Google-Karte erst nach Einwilligung) */
.loc-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; min-height: 320px; }
.loc-map { position: relative; flex: 1; min-height: 240px; overflow: hidden; }
.loc-streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-pin { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%; background:#fff;
  color: var(--teal-600); display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--teal-100);
  animation: pinDrop 2.4s ease-in-out infinite; }
.loc-pin svg { width: 28px; height: 28px; }
@keyframes pinDrop { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%,calc(-50% - 6px)); } }
.loc-consent { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 22px;
  background: linear-gradient(180deg, rgba(241,248,247,.55), rgba(241,248,247,.88)); }
.loc-consent p { color: var(--ink-soft); font-size: .9rem; line-height: 1.45; max-width: 260px; }
.loc-consent .btn svg { width: 16px; height: 16px; }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.loc-info { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--line); background:#fff; }
.loc-info > div b { display: block; letter-spacing: -.01em; }
.loc-info > div span { color: var(--muted); font-size: .9rem; }
.loc-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
  color: var(--teal-700); white-space: nowrap; }
.loc-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.loc-btn:hover svg { transform: translateX(4px); }

/* Nach-oben-Pfeil (mitlaufend) */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 48px; height: 48px; border: none;
  border-radius: 50%; background: var(--grad-teal); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.show { opacity: .92; visibility: visible; transform: none; }
.to-top.show:hover { opacity: 1; transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ------------------------------------------------------ Rezept CTA band */
.cta-band { background: linear-gradient(135deg, #0e2a32, #0d5a59); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background:
  radial-gradient(50% 80% at 90% 10%, rgba(56,189,248,.25), transparent 60%); }
.cta-band .container { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between; padding-block: clamp(40px,6vw,64px); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 52ch; }

/* ----------------------------------------------------------- Footer */
.footer { background: #0b232a; color: #c9dde0; padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: #8fb0b6; }
.footer h5 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #b8d2d6; display: block; padding: 5px 0; font-size: .96rem; }
.footer a:hover { color: var(--teal-300); }
.footer p { color: #8fb0b6; font-size: .94rem; max-width: 36ch; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: #7fa3a9; }
.footer-bottom a { display: inline; }

/* ----------------------------------------------- Floating admin button */
.admin-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%; background: #0e2a32; color:#fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s; opacity: .55;
}
.admin-fab:hover { transform: scale(1.08); opacity: 1; }
.admin-fab svg { width: 22px; height: 22px; }

/* ------------------------------------------------- Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 280px; justify-self: center; margin: 4px auto 0; }
  .hours-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .leist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; margin-left: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .week { grid-template-columns: 1fr; }
  .leist-grid { grid-template-columns: 1fr; }
  .today-card { padding: 16px 18px; }
  .today-card .status { border-right: none; padding-right: 0; }
  .today-card .btn { margin-left: 0 !important; width: 100%; }
  .hero-visual { max-width: 230px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
