/* ==========================================================================
   Hausarztpraxis Stefan Meier – Stylesheet
   Markenfarben: Navy #000A33 · Cyan #C7F4FF
   Keine externen Fonts. Für exakt die Markenschrift Poppins (SIL OFL) die
   Dateien unter /fonts ablegen und die @font-face-Regeln aktivieren.
   Bis dahin greift ein geometrischer Systemschrift-Stack (Avenir Next u. a.).
   ========================================================================== */

/*
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
*/

:root {
  --navy: #000a33;          /* 19.6:1 auf Weiß */
  --navy-2: #0b1a52;        /* Hover / Flächen-Variante */
  --navy-deep: #00051a;     /* Header – noch dunkler für maximalen Logo-Kontrast */
  --cyan: #c7f4ff;          /* 17.4:1 auf Navy – nur auf dunklem Grund als Schrift */
  --cyan-2: #a6ecff;        /* Hover auf Navy */
  --cyan-soft: #ecfbff;     /* helle Flächen */
  --bg: #ffffff;
  --text: #000a33;
  --text-muted: #3d4566;    /* 9.6:1 auf Weiß */
  --on-navy-muted: #c9d0e6; /* 12:1 auf Navy */
  --line: #e1e6f0;
  --danger: #b4231b;        /* 6.3:1 */

  --font: "Poppins", "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Avenir Next", Avenir, "Futura", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 10, 51, 0.28);
  --shadow-sm: 0 10px 28px -14px rgba(0, 10, 51, 0.2);
  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 104px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;     /* 19px – gut lesbar für ältere Patienten */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0 0 0.6em; color: var(--navy); }

/* Display-Headlines: fett, geometrisch, eng gesetzt */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h2.display { font-size: clamp(2.2rem, 5vw, 3.5rem); }
/* Hervorhebung auf hellem Grund: Navy auf Cyan-Marker */
.display .hl {
  background: linear-gradient(transparent 52%, var(--cyan) 52%, var(--cyan) 92%, transparent 92%);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

h3 { font-size: 1.35rem; line-height: 1.3; font-weight: 700; }
p  { margin: 0 0 1em; }

a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: #7fd9f0; }
a:hover { text-decoration-color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-navy :focus-visible,
.hero :focus-visible,
.cta-inner :focus-visible { outline-color: var(--cyan); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  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;
  left: 1rem; top: -100px;
  background: var(--navy);
  color: var(--cyan);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-primary { background: var(--navy); color: var(--cyan); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: var(--cyan-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--cyan); border-color: rgba(199, 244, 255, 0.6); }
.btn-ghost:hover { background: rgba(199, 244, 255, 0.1); border-color: var(--cyan); color: var(--cyan); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cyan); }


/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(199, 244, 255, 0.1);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  color: var(--cyan);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Startseite: Header liegt über dem Hero */
.site-header--overlay {
  position: fixed;
  left: 0; right: 0;
}
/* Ganz oben: transparent, beim Scrollen dunkelblau (Klasse per JS) */
.site-header.is-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header :focus-visible { outline-color: var(--cyan); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  display: block;
  height: 76px;
  width: auto;
  flex-shrink: 0;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { background: var(--cyan-2); color: var(--navy); }
.header-phone svg { width: 20px; height: 20px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border: 1px solid rgba(199, 244, 255, 0.35);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative;
  display: block;
  padding: 0.85rem 0;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--cyan); }

@media (max-width: 959px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    border-top: 1px solid rgba(199, 244, 255, 0.15);
    padding-bottom: 0.75rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav li + li { border-top: 1px solid rgba(199, 244, 255, 0.15); }
  .site-nav a { font-size: 1.15rem; }
  .header-phone .phone-number { display: none; }
}
@media (max-width: 959px) and (min-width: 520px) {
  .header-phone .phone-number { display: inline; }
  .header-phone .phone-label { display: none; }
}
@media (max-width: 959px) {
  :root { --header-h: 88px; }
  .logo-img { height: 64px; }
}
@media (max-width: 479px) {
  .logo-img { height: 58px; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .brand { flex: 0 1 auto; }
  .site-nav { margin-inline: auto; }
  .site-nav ul { display: flex; gap: 2.25rem; }
  .site-nav a { padding: 0.5rem 0; font-size: 1.0625rem; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 6px;
    border-radius: 3px;
    background: var(--cyan);
    height: 3px;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
  }
  .site-nav a:hover::after { transform: scaleX(1); }
  .header-phone .phone-label { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); position: relative; }
.section-alt { background: var(--cyan-soft); }
.section-head { max-width: 740px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.eyebrow svg { width: 24px; height: 24px; }
.lead { font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { padding: 0; }
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: clamp(620px, 90vh, 840px);
  display: flex;
  align-items: center;
  color: var(--cyan);
  /* Foto vom Empfang mit Verlauf; WebP mit JPG-Fallback */
  background:
    linear-gradient(90deg, rgba(0, 5, 26, 0.97) 0%, rgba(0, 5, 26, 0.9) 34%, rgba(0, 5, 26, 0.45) 64%, rgba(0, 5, 26, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 5, 26, 0.75) 0%, rgba(0, 5, 26, 0) 22%),
    url("../img/praxis-empfang-1536.jpg") 70% center / cover no-repeat,
    var(--navy);
  background:
    linear-gradient(90deg, rgba(0, 5, 26, 0.97) 0%, rgba(0, 5, 26, 0.9) 34%, rgba(0, 5, 26, 0.45) 64%, rgba(0, 5, 26, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 5, 26, 0.75) 0%, rgba(0, 5, 26, 0) 22%),
    image-set(url("../img/praxis-empfang-1536.webp") type("image/webp"), url("../img/praxis-empfang-1536.jpg") type("image/jpeg")) 70% center / cover no-repeat,
    var(--navy);
}
@media (max-width: 959px) {
  .hero-media {
    background:
      linear-gradient(180deg, rgba(0, 5, 26, 0.8) 0%, rgba(0, 5, 26, 0.86) 45%, rgba(0, 5, 26, 0.96) 100%),
      url("../img/praxis-empfang-1280.jpg") 75% center / cover no-repeat,
      var(--navy);
    background:
      linear-gradient(180deg, rgba(0, 5, 26, 0.8) 0%, rgba(0, 5, 26, 0.86) 45%, rgba(0, 5, 26, 0.96) 100%),
      image-set(url("../img/praxis-empfang-1280.webp") type("image/webp"), url("../img/praxis-empfang-1280.jpg") type("image/jpeg")) 75% center / cover no-repeat,
      var(--navy);
  }
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) clamp(7rem, 12vw, 9rem);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 640px); }
}
.hero-logo {
  width: clamp(200px, 22vw, 300px);
  height: auto;
  margin: 0 0 1.75rem -0.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan);
  font-size: clamp(2.6rem, 6.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12ch;
  margin-bottom: 1.5rem;
  hyphens: manual;
}
.hero .lead { color: var(--cyan); max-width: 34rem; margin-bottom: 2.25rem; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-actions .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; min-width: 220px; } }

/* Foto im Hero (Platzhalter) */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border-radius: var(--radius);
  border: 2px dashed rgba(199, 244, 255, 0.4);
  background:
    radial-gradient(circle at 30% 20%, rgba(199, 244, 255, 0.14), transparent 60%),
    rgba(199, 244, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--cyan);
  padding: 1.5rem;
}
.hero-photo svg { width: 44px; height: 44px; opacity: 0.8; }
@media (max-width: 959px) { .hero-photo { display: none; } }

/* Dekorativer großer Stern im Hintergrund */
.hero-deco {
  position: absolute;
  left: -2%; bottom: 7rem;
  width: 104%; height: auto;
  color: rgba(199, 244, 255, 0.07);
  pointer-events: none;
}

/* Überlappende Infokarten */
.quick-info {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(4rem, 8vw, 5.5rem));
}
.quick-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.quick-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
a.quick-card:hover { transform: translateY(-3px); box-shadow: 0 28px 70px -24px rgba(0, 10, 51, 0.38); }
.quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--cyan);
}
.quick-card:nth-child(2) .quick-icon { background: var(--cyan); color: var(--navy); }
.quick-icon svg { width: 26px; height: 26px; }
.quick-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}
.quick-text { display: block; margin: 0; font-size: 1.02rem; color: var(--text-muted); line-height: 1.5; }

/* Großer Hintergrund-Schriftzug */
.watermark {
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  font-size: clamp(3.5rem, 15vw, 12rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px #dceff5;
  margin: clamp(2rem, 5vw, 3.5rem) 0 calc(-1 * clamp(2.5rem, 7vw, 6rem));
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- Bildplatzhalter ---------- */
.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 10, 51, 0.04) 14px 15px),
    var(--cyan-soft);
  border: 1px solid #d3f1f9;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  padding: 1.5rem;
}
.img-placeholder svg { width: 44px; height: 44px; opacity: 0.7; }
.img-placeholder.landscape { aspect-ratio: 16 / 10; }

/* ---------- Über die Praxis ---------- */
.about-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-visual { position: relative; padding: 0 0 2rem 2rem; max-width: 520px; }
.about-visual::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 75%; height: 75%;
  border-radius: var(--radius);
  background: var(--cyan);
}
.about-visual .img-placeholder { position: relative; background-color: #f7fdff; }
.about-visual .portrait {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.about-visual .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  right: -0.5rem;
  bottom: 0;
  background: var(--navy);
  color: var(--cyan);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  max-width: 240px;
}
.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.about-badge span { font-size: 0.95rem; color: var(--on-navy-muted); }
@media (min-width: 960px) { .about-badge { right: -1.5rem; } }

.about-role { color: var(--text-muted); font-size: 1.1rem; margin-top: -0.3rem; margin-bottom: 1.5rem; }
.signature-facts {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}
.signature-facts li { display: flex; gap: 0.9rem; align-items: center; font-weight: 500; }
.signature-facts .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  flex-shrink: 0;
}
.signature-facts .tick svg { width: 18px; height: 18px; }

.gallery-head { margin-top: clamp(4rem, 8vw, 6rem); margin-bottom: 1.75rem; }
.gallery-head h3 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); margin: 0; }
.team-strip {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gallery-item { margin: 0; }
.gallery-item picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 2;
  background: var(--cyan-soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.gallery-item figcaption::before {
  content: "";
  width: 18px; height: 3px;
  border-radius: 3px;
  background: var(--navy);
}

/* ---------- Leistungen ---------- */
.services-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  border-radius: 18px;
  background: var(--cyan);
  color: var(--navy);
}
.service-icon svg { width: 36px; height: 36px; }
.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.25rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px #cfd6e6;
  user-select: none;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.service-card .service-intro { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000a33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.service-card details summary { list-style: none; cursor: pointer; }
.service-card details summary::-webkit-details-marker { display: none; }
.service-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  font-weight: 600;
  color: var(--navy);
}
.service-toggle .round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
}
.service-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.service-card details[open] .service-toggle svg { transform: rotate(180deg); }
.service-card details[open] .label-more,
.service-card details:not([open]) .label-less { display: none; }
.service-card .service-list { overflow: hidden; }
/* Aufklapp-Button immer am unteren Kartenrand – auf einer Linie über alle Karten */
.service-card details { margin-top: auto; }
.service-card .service-intro { margin-bottom: 1.25rem; }
.service-card details summary:hover .round { background: var(--navy-2); }
.service-card details summary:hover .service-toggle { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: #7fd9f0; }

/* ---------- CTA-Band ---------- */
.cta-band { padding-block: clamp(3rem, 7vw, 5rem); }
.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: clamp(28px, 10vw, 140px);
  background: var(--navy);
  color: var(--cyan);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.75rem) clamp(1.5rem, 6vw, 4rem);
}
.cta-inner .wave { position: absolute; pointer-events: none; color: rgba(199, 244, 255, 0.3); }
.cta-inner .wave-1 { left: -4%; bottom: 8%; width: 108%; color: rgba(199, 244, 255, 0.12); }
.cta-inner h2 {
  position: relative;
  color: var(--cyan);
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 20ch;
  margin-inline: auto;
}
.cta-inner p { position: relative; color: var(--on-navy-muted); max-width: 38rem; margin: 0 auto 2rem; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* ---------- Sprechzeiten ---------- */
.hours-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) {
  .hours-grid { grid-template-columns: 1.25fr 0.75fr; align-items: stretch; }
  /* Linke Karte und rechter Stapel gleich hoch; Tabellenzeilen verteilen sich gleichmäßig */
  .hours-card { display: flex; }
  .hours-table { height: 100%; }
  .info-stack { display: flex; flex-direction: column; }
  .info-stack .info-box { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}
.hours-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1.25rem, 3vw, 2.25rem);
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th,
.hours-table td {
  text-align: left;
  vertical-align: top;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 600; width: 42%; padding-right: 1rem; }
.hours-table td { font-variant-numeric: tabular-nums; }
.hours-table td span { display: block; }
.hours-table .closed { color: var(--text-muted); }
.hours-table tr.is-today { background: var(--cyan-soft); }
.hours-table tr.is-today th { padding-left: 0.75rem; border-radius: 10px 0 0 10px; }
.hours-table tr.is-today td { border-radius: 0 10px 10px 0; }
.today-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: 0.15em;
}
@media (min-width: 560px) {
  .hours-table td span { display: inline; }
  .hours-table td span + span::before { content: " · "; color: var(--text-muted); }
}

.info-stack { display: grid; gap: 1.25rem; }
.info-box {
  border-radius: var(--radius);
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.info-box.navy { background: var(--navy); color: var(--on-navy-muted); border-color: var(--navy); }
.info-box.navy h3,
.info-box.navy a { color: var(--cyan); }
.info-box h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.info-box p:last-child { margin-bottom: 0; }
.info-box.emergency { border-left: 6px solid var(--danger); }
.big-number {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.2;
}
.big-number.danger { color: var(--danger); }
.emergency-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem; margin-top: 0.75rem; }
.emergency-row small { display: block; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Anfahrt & Kontakt ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
}
.contact-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  flex-shrink: 0;
}
.contact-list .ci svg { width: 22px; height: 22px; }
/* Kontakt ohne Karte: Angaben als Kacheln nebeneinander */
.contact-grid--single .contact-list { margin: 0; gap: 1rem; }
.contact-grid--single .contact-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
@media (min-width: 900px) {
  .contact-grid--single { grid-template-columns: 1fr; }
  .contact-grid--single .contact-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.contact-list strong { display: block; font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.contact-list a { font-weight: 600; font-size: 1.1rem; }
.contact-list address { font-style: normal; font-weight: 600; }

.travel { display: grid; gap: 1rem; }
.travel > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}
.travel h3 { font-size: 1.1rem; margin-bottom: 0.3em; display: flex; gap: 0.6rem; align-items: center; }
.travel h3 svg { width: 22px; height: 22px; }
.travel p { color: var(--text-muted); font-size: 1.02rem; margin: 0; }

.map-consent {
  position: relative;
  min-height: 420px;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(236, 251, 255, 0.9), rgba(236, 251, 255, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(0, 10, 51, 0.12) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(0, 10, 51, 0.12) 39px 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-consent-inner { max-width: 440px; text-align: center; padding: 2rem 1.5rem; }
.map-consent-inner .pin-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  margin-bottom: 1rem;
  box-shadow: 0 0 0 10px rgba(0, 10, 51, 0.08);
}
.map-consent-inner .pin-wrap svg { width: 32px; height: 32px; }
.map-consent-inner h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.map-consent-inner p { font-size: 1rem; color: var(--text-muted); }
.map-consent-inner .btn { margin-top: 0.5rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-external { display: inline-block; margin-top: 1rem; font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  padding-block: clamp(3.5rem, 7vw, 5rem) 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.site-footer a { color: var(--cyan); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--cyan); }
.site-footer :focus-visible { outline-color: var(--cyan); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; color: var(--cyan); }
.footer-logo { width: 240px; height: auto; margin-left: -0.25rem; }
.site-footer h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  position: relative;
}
.site-footer h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  border-radius: 3px;
  background: var(--cyan);
}
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.footer-contact li { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer-contact .ci {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(199, 244, 255, 0.12); color: var(--cyan); flex-shrink: 0;
}
.footer-contact .ci svg { width: 16px; height: 16px; }
.footer-hours { list-style: none; margin: 0; padding: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; }
.footer-hours li span:first-child { color: #fff; font-weight: 500; }
.footer-hours li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(199, 244, 255, 0.18);
  font-size: 0.95rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 0.5rem 0; }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 40;
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.1; }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal h3 { margin-top: 1.75rem; }
.placeholder-note {
  background: #fff7e0;
  border: 1px solid #e8d48a;
  color: #4a3b00;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 48px; font-weight: 600; }

mark.ph {
  background: #fff1b8;
  color: #3d3200;
  padding: 0 0.25em;
  border-radius: 4px;
}



.nowrap { white-space: nowrap; }

/* ---------- Zitat ---------- */
.quote {
  position: relative;
  margin: 2rem 0 0;
  padding: 1.75rem 1.75rem 1.5rem 1.75rem;
  background: var(--cyan-soft);
  border-left: 5px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote::before {
  content: "\201C";
  position: absolute;
  right: 1.1rem;
  top: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--cyan);
  pointer-events: none;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--navy);
  padding-right: 2.75rem;
}
.quote figcaption { font-size: 0.98rem; color: var(--text-muted); }
.quote figcaption strong { color: var(--navy); }
