/* ============================================================
   BASE — Mobile-first reset + typography
   ============================================================ */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-primary);
  text-decoration: underline;
  transition: opacity var(--t);
}

a:hover,
a:focus-visible {
  opacity: 0.75;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-secondary);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY — fluid via clamp()
   ============================================================ */

h1 {
  font-size: clamp(2.5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
}

h3 {
  /* Pflicht-Fix #5: tolerates 1–3 lines, 24–32px mobile, 32–36px desktop */
  font-size: clamp(1.5rem, 2.2vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
}

h4 {
  font-size: clamp(1rem, 1.4vw, 1.375rem);
  font-weight: 400;
  line-height: 1.5;
}

h5 {
  font-size: clamp(0.9375rem, 1.1vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
}

h6 {
  font-size: clamp(0.875rem, 1vw, 1rem);
  font-weight: 400;
}

p {
  max-width: 72ch;
}

p + p {
  margin-top: 1rem;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--green-secondary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.875rem, 1vw, 1rem);
  overflow-x: auto;
  display: block;
}

th {
  background: var(--blue-primary);
  color: var(--white);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

tr:nth-child(even) td {
  background: rgba(0, 64, 119, 0.04);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 48rem) {   /* 768px */
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 80rem) {   /* 1280px */
  .container {
    padding-inline: 3rem;
  }
}

/* ============================================================
   BUTTONS — Pflicht-Fix #6
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;        /* 48px — Touch-Target ≥ 44px */
  min-width: 2.75rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  font-family: var(--font);
  font-size: clamp(0.9375rem, 1vw, 1rem);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--t), box-shadow var(--t), opacity var(--t);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--green-secondary);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--green-secondary-accent-middle);
  color: var(--white);
  opacity: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn--large {
  min-height: 3.5rem;
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 9999;
  background: var(--blue-primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.375rem 0.375rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}


/* ============================================================
   PROSE (body content on detail pages)
   ============================================================ */

.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.625rem; }
.prose h4 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35rem; }
.prose a  { color: var(--blue-primary); }
.prose table { margin-block: 1.5rem; }
.prose blockquote { margin-block: 1.5rem; }

/* ============================================================
   COMPONENTS — Nav, Hero, Cards, FAQ, CTA, Footer
   All rules mobile-first; expanded with min-width media queries
   ============================================================ */

/* ============================================================
   SITE HEADER + NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* When mobile menu is open: lift the header above the slide-in panel
   so the burger (X) stays tappable to close the menu. */
body.nav-open .site-header {
  z-index: 250;
}

body.nav-open {
  overflow: hidden;
}

.site-nav__container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* Logo */
.site-nav__logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-nav__logo img {
  width: clamp(9rem, 14vw, 14rem); /* ~224px — noticeably larger */
  height: auto;
}

.site-nav__logo-accent {
  display: none;
}

/* Burger button */
.site-nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  margin-left: auto;
  min-width: 2.75rem;   /* 44px touch target */
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: background var(--t);
  /* Burger and menu (.site-nav__links z-index:200) are siblings in the
     header stacking context. Lift burger above the open menu so the X
     stays tappable to close it. */
  position: relative;
  z-index: 250;
}

.site-nav__burger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-nav__burger span {
  display: block;
  width: 1.375rem;
  height: 0.125rem;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* Burger → X animation when open */
.site-nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links list — mobile: slide-in panel */
.site-nav__links {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(20rem, 100%);   /* max 320px */
  background: var(--blue-primary);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  gap: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.3);
}

.site-nav__links--open {
  transform: translateX(0);
}

.site-nav__links li a {
  display: flex;
  align-items: center;
  min-height: 2.75rem; /* 44px touch target */
  padding: 0.625rem 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity var(--t);
}

.site-nav__links li a:hover,
.site-nav__links li a[aria-current="page"] {
  opacity: 0.75;
  color: var(--white);
}

.site-nav__links li a[aria-current="page"] {
  opacity: 1;
  color: var(--green-secondary);
  text-decoration-line: underline;
  text-decoration-color: var(--green-secondary);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

/* Mobile CTA inside nav panel — real button, not a list link */
.site-nav__links .site-nav__cta-mobile {
  margin-top: 1.75rem;
  list-style: none;
}

.site-nav__links .site-nav__cta-mobile a {
  /* reset list-link styles inherited from .site-nav__links li a */
  display: flex;
  width: 100%;
  justify-content: center;
  border-bottom: none;
  opacity: 1;
  font-size: 1rem;
  /* keep .btn padding/min-height; just ensure full-width pill */
}

.site-nav__links .site-nav__cta-mobile a:hover {
  opacity: 1;
}

/* CTA button in header — hidden on mobile (shown inside panel) */
.site-nav__cta {
  display: none;
  flex-shrink: 0;
}

/* Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Item-row (link + chevron side by side) ---- */
.site-nav__item-row {
  display: flex;
  align-items: center;
}

/* Chevron button — mobile: visible, desktop: hidden (hover handles it) */
.site-nav__chevron {
  background: none;
  border: none;
  color: var(--white);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity var(--t), transform 0.2s;
}

.site-nav__chevron[aria-expanded="true"] {
  transform: rotate(180deg);
  opacity: 1;
}

/* ---- Mobile mega-panel (shown as indented list) ---- */
.nav-mega {
  padding: 0.5rem 0 0.5rem 1rem;
}

.nav-mega[hidden] {
  display: none !important;
}

.nav-mega__intro {
  display: none; /* hidden on mobile */
}

.nav-mega__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.nav-mega__list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--t);
}

.nav-mega__list a:hover,
.nav-mega__list a:focus-visible {
  color: var(--white);
}

/* ---- Desktop nav (≥ 1024px) ---- */
@media (min-width: 64rem) {
  .site-nav__burger {
    display: none;
  }

  .site-nav__links {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    padding-left: 3rem;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
    flex: 1;
  }

  .site-nav__links--open {
    transform: none;
  }

  /* Chevron on desktop: visible click affordance (hover also opens dropdown) */
  .site-nav__chevron {
    display: flex;
    padding: 0.25rem;
    margin-left: 0;
    opacity: 0.6;
  }

  .site-nav__chevron:hover,
  .site-nav__chevron:focus-visible {
    opacity: 1;
  }

  /* Item-row aligns link + chevron side-by-side */
  .site-nav__item-row {
    display: flex;
    align-items: center;
    gap: 0.125rem;
  }

  .site-nav__links li a {
    border-bottom: none;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
    min-height: 2.75rem;
    border-radius: 0.25rem;
  }

  .site-nav__links li a[aria-current="page"] {
    opacity: 1;
    color: var(--green-secondary);
    text-decoration-line: underline;
    text-decoration-color: var(--green-secondary);
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
  }

  /* ---- Desktop Mega-Menu ---- */

  /* Nav is the positioning parent */
  .site-nav {
    position: relative;
  }

  /* Li stretches to full navbar height → kein Gap zum Mega-Panel */
  .has-dropdown {
    position: static;
    align-self: stretch;
    display: flex;
    align-items: center;
  }

  /* Mega panel: Positionierung immer aktiv, sichtbarkeit via JS */
  .has-dropdown .nav-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--blue-primary);
    border-top: 3px solid var(--green-secondary);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    z-index: 300;
    padding: 0;
    display: none; /* default: versteckt */
  }

  /* Zeigen wenn JS [hidden] entfernt hat. Kein Hover-Bridge —
   * der frühere ::before-Bridge fing Klicks auf Nachbarlinks
   * ab. Die 200 ms Close-Delay in nav.js übernimmt die Brücke. */
  .has-dropdown .nav-mega:not([hidden]) {
    display: block;
  }

  /* Inner layout: constrained, side-by-side */
  .nav-mega__inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 3rem;
    padding-block: 2rem 2.25rem;
  }

  /* Left intro column */
  .nav-mega__intro {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 16rem;
    max-width: 18rem;
    padding-right: 2.5rem;
    border-right: 1px solid rgba(255,255,255,0.12);
    margin-right: 2.5rem;
  }

  .nav-mega__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-secondary);
    margin: 0;
  }

  .nav-mega__desc {
    font-size: 0.9375rem;
    color: var(--white);
    line-height: 1.55;
    margin: 0;
  }

  .nav-mega__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green-secondary);
    text-decoration: none;
    margin-top: 0.25rem;
    transition: gap var(--t);
  }

  .nav-mega__cta::after {
    content: '→';
    transition: transform var(--t);
  }

  .nav-mega__cta:hover::after {
    transform: translateX(3px);
  }

  /* Right: links grid */
  .nav-mega__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.125rem 2rem;
    flex: 1;
    align-content: start;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-mega__list a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background var(--t), color var(--t), padding-left 0.15s;
    position: relative;
  }

  .nav-mega__list a:hover,
  .nav-mega__list a:focus-visible {
    background: rgba(255,255,255,0.06);
    color: var(--white);
    padding-left: 1.25rem;
  }

  /* Mint dot before each link on hover */
  .nav-mega__list a::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-secondary);
    transition: transform 0.15s ease;
  }

  .nav-mega__list a:hover::before,
  .nav-mega__list a:focus-visible::before {
    transform: translateY(-50%) scale(1);
  }

  /* Suppress text-underline on parent link when mega is open */
  .has-dropdown:hover > .site-nav__item-row a,
  .has-dropdown:focus-within > .site-nav__item-row a {
    text-decoration: none;
  }

  .site-nav__links .site-nav__cta-mobile {
    display: none;
  }

  .site-nav__cta {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav__container {
    padding: 1rem 1.25rem;
    gap: 1.5rem;
  }
}

@media (min-width: 80rem) {
  .site-nav__container {
    padding: 1rem 1.5rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero--dark {
  background-color: var(--blue-primary);
  padding-block: 3.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Figma "Header background line" Node 16:203 — mint accent bar */
.hero__accent-bar {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 3.125rem; /* 50px */
  background: var(--green-secondary);
  pointer-events: none;
}

/* Termin-Siegel — overlaps hero bottom edge */
.hero__siegel {
  position: absolute;
  bottom: -3.75rem; /* 60px overlap below hero */
  left: 1.25rem;
  width: 8rem;
  height: 8rem;
  display: block;
  text-decoration: none;
  z-index: 10;
  transition: transform var(--t);
}

.hero__siegel:hover {
  transform: scale(1.06);
}

.hero__siegel img {
  width: 100%;
  height: 100%;
}

.hero__container {
  /* Mobile: standard centered layout */
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1.25rem;
  /* Cap size so single long words fit within the 55%-wide content column */
  font-size: clamp(2.5rem, 6vw, 6rem);
  /* Sehr lange Wörter ("herausnehmbare") brechen sauber statt rechts überzulaufen */
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero__subline {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  max-width: 44rem;
  font-weight: 400;
  margin-bottom: 0;
}

.hero__highlights {
  margin-top: 1.75rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero__highlights li {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  padding-left: 1.4rem;
  position: relative;
}

.hero__highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-secondary);
  font-weight: 700;
}

.hero__subline--mt {
  margin-top: 1rem;
}

@media (min-width: 48rem) {
  .hero--dark {
    padding-block: 5rem 6rem;
  }

  .hero__container {
    padding-inline: 2rem;
  }
}

@media (min-width: 64rem) {
  /* Desktop: H1 left-edge = mint-bar left-edge (bar is right:0, width:55% → starts at 45%)
     Remove max-width centering; push content to start at 45% of hero width instead. */
  .hero__container {
    max-width: none;
    margin-inline: 0;
    padding-left: 45%;
    padding-right: 3rem;
  }
}

@media (min-width: 80rem) {
  .hero--dark {
    padding-block: 7rem 8rem;
  }
}

/* ============================================================
   INNER PAGE HERO MODIFIER
   Overrides desktop 45%-left push — centred layout for detail pages
   ============================================================ */

.hero--inner .hero__container {
  padding-left: 1.25rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* Inner pages: subline fills the same width as the highlights below */
.hero--inner .hero__subline {
  max-width: none;
}

@media (min-width: 48rem) {
  .hero--inner .hero__container {
    padding-left: 2rem;
  }
}

@media (min-width: 64rem) {
  .hero--inner .hero__container {
    padding-left: 3rem;
    padding-right: 3rem;
    max-width: var(--max-width);
    margin-inline: auto;
  }
}

/* Large picto in left hero area (detail pages) */
.hero__picto-wrap {
  display: none;
}

@media (min-width: 64rem) {
  .hero__picto-wrap {
    display: block;
    position: absolute;
    top: 50%;
    left: calc(45% / 2);
    transform: translate(-50%, -50%);
    width: clamp(12rem, 20vw, 18rem);
    height: clamp(12rem, 20vw, 18rem);
    pointer-events: none;
    /* Schatten hinter dem SVG-Kreis */
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.22));
  }

  .hero__picto {
    width: 100%;
    height: 100%;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  position: relative;
  z-index: 21;
  padding: 0.125rem 0;
  transition: color var(--t), text-decoration-color var(--t);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--white);
  text-decoration-color: var(--green-secondary);
  text-decoration-thickness: 2px;
}

.breadcrumb__sep {
  opacity: 0.5;
  font-size: 0.75rem;
}

.breadcrumb__current {
  color: var(--white);
  font-weight: 600;
}

/* ============================================================
   DETAIL PAGE INTRO (icon + lead text row)
   ============================================================ */

.detail-intro {
  background: var(--white);
  padding-block: 3rem 3.5rem;
}

.detail-intro__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-intro__icon {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
}

/* Text-only variant — full hero-aligned container; text width via child */
.detail-intro__container--text-only {
  flex-direction: column;
  gap: 1rem;
}

.detail-intro__lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.85;
  color: var(--text-primary);
  max-width: 52rem;
}

/* Text-only intro: lead fills container, right edge aligns with hero subline */
.detail-intro__container--text-only .detail-intro__lead {
  max-width: none;
}

/* Wide desktop: tighten right padding so text ends at the same x as hero subline
   (hero subline right edge = 45% of viewport + 44rem). */
@media (min-width: 85.25rem) {
  .detail-intro__container--text-only {
    padding-right: calc(5vw - 1.375rem);
  }
}

@media (min-width: 48rem) {
  .detail-intro__container {
    flex-direction: row;
    align-items: flex-start;
    padding-inline: 2rem;
    gap: 2.5rem;
  }

  .detail-intro__container--text-only {
    flex-direction: column;
    gap: 1rem;
  }

  .detail-intro__icon {
    width: 6rem;
    height: 6rem;
    margin-top: 0.25rem;
  }
}

@media (min-width: 64rem) {
  .detail-intro__container--text-only {
    padding-inline: 3rem;
  }
}

@media (min-width: 80rem) {
  .detail-intro__container {
    padding-inline: 3rem;
  }
}

/* ============================================================
   DETAIL BODY — prose content sections on spoke pages
   ============================================================ */

.detail-body {
  background: var(--white);
  padding-block: 3.5rem 4rem;
}

.detail-body--alt {
  background: var(--mint);
}

.detail-body__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.detail-body__section-title {
  color: var(--blue-primary);
  margin-bottom: 1.5rem;
  max-width: 52rem;
}

/* Lead text inside an Überblick .detail-body (briefing intro paragraphs that
   sit above the first section's title). */
.detail-body__lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.85;
  color: var(--text-primary);
  max-width: 52rem;
  margin-bottom: 2rem;
}
.detail-body__lead > p { margin: 0 0 1rem; }
.detail-body__lead > p:last-child { margin-bottom: 0; }

.detail-body__section-title--mt {
  margin-top: 3rem;
}

/* Small variant — matches accordion collapse title size (used on Überblick
   static block so first section title aligns visually with the accordion below). */
.detail-body__section-title--sm {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.3;
  font-weight: 600;
}

.detail-body .prose {
  max-width: 52rem;
}

/* ============================================================
   PAGE TOC — sticky in-page sub-navigation for long detail pages
   ============================================================ */
.page-toc {
  position: sticky;
  top: var(--header-h, 4.75rem);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 64, 119, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.page-toc__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-toc__container::-webkit-scrollbar {
  display: none;
}

.page-toc__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: max-content;
}

.page-toc__link {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  padding-inline: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t), border-color var(--t), background var(--t);
}

.page-toc__link:hover {
  color: var(--green-secondary);
}

.page-toc__link.is-active {
  color: var(--blue-primary);
  border-bottom-color: var(--green-secondary);
}

@media (min-width: 48rem) {
  .page-toc__container {
    padding-inline: 2rem;
  }
  .page-toc__link {
    height: 3.25rem;
    padding-inline: 1.25rem;
  }
}

@media (min-width: 64rem) {
  .page-toc__container {
    padding-inline: 3rem;
    overflow-x: visible;
  }
  .page-toc__list {
    gap: 0.25rem 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
  }
  .page-toc__link {
    height: auto;
    min-height: 3rem;
    padding-block: 0.5rem;
  }
}

/* Anchor offset so sticky bars don't cover the section title */
[id="ueberblick"],
[id="ablauf"],
[id="wie-oft"],
[id="kosten"],
[id="faq"] {
  scroll-margin-top: calc(var(--header-h, 4.75rem) + 4rem);
}

/* Sections that host a collapsible — tighter vertical rhythm */
.detail-body:has(.detail-collapse) {
  padding-block: 0;
}

.detail-body:has(.detail-collapse) + .detail-body:has(.detail-collapse) .detail-collapse {
  border-top: 1px solid rgba(0, 64, 119, 0.12);
}

/* Collapsible body sections (native <details>) */
.detail-collapse {
  max-width: 52rem;
}

.detail-collapse__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  user-select: none;
  transition: color var(--t);
}

.detail-collapse__summary::-webkit-details-marker {
  display: none;
}

.detail-collapse__title {
  margin: 0;
  flex: 1;
  max-width: none;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.3;
  font-weight: 600;
  transition: color var(--t);
}

.detail-collapse__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0, 64, 119, 0.2);
  display: grid;
  place-items: center;
  transition: background var(--t), border-color var(--t), transform 0.25s ease;
}

.detail-collapse__icon::before,
.detail-collapse__icon::after {
  content: '';
  grid-area: 1 / 1;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: background var(--t);
}

/* horizontal bar */
.detail-collapse__icon::before {
  width: 0.875rem;
  height: 2px;
}

/* vertical bar — collapses when open to form a minus */
.detail-collapse__icon::after {
  width: 2px;
  height: 0.875rem;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.detail-collapse[open] .detail-collapse__icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.detail-collapse[open] .detail-collapse__icon {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

.detail-collapse[open] .detail-collapse__icon::before {
  background: var(--white);
}

.detail-collapse[open] .detail-collapse__title {
  color: var(--blue-primary);
}

.detail-collapse > .prose {
  margin-top: 0.25rem;
  padding-bottom: 1.5rem;
}

/* Static variant: same card visual rhythm as collapsibles, but no toggle */
.detail-collapse--static {
  padding-block: 1.25rem 0;
}

.detail-collapse--static > .detail-collapse__title {
  margin: 0 0 0.75rem;
  cursor: default;
}

.detail-collapse--static > .prose {
  margin-top: 0;
}

.detail-collapse__summary:hover .detail-collapse__title {
  color: var(--blue-primary);
  opacity: 0.75;
}

.detail-collapse__summary:hover .detail-collapse__icon {
  border-color: var(--blue-primary);
}

.detail-collapse__summary:focus-visible {
  outline: 3px solid var(--green-secondary);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (min-width: 48rem) {
  .detail-body__container {
    padding-inline: 2rem;
  }
}

@media (min-width: 64rem) {
  .detail-body__container {
    padding-inline: 3rem;
  }
}

/* ============================================================
   DETAIL ANGEBOTE GRID — non-link info cards
   ============================================================ */

.card-detailangebot--info {
  cursor: default;
}

.card-detailangebot--info:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

/* ============================================================
   BEHANDLUNGEN GRID (box behandlungen — Figma 9:39)
   7 cards with accent colour per area. Entire card = link.
   ============================================================ */

.behandlungen-grid {
  padding-block: 5.5rem 4rem; /* extra top padding for Termin-Siegel overlap */
  background: var(--white);
  position: relative;
  z-index: 0;
}

.behandlungen-grid__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Mobile: 1-column → 600px+: 2-column
   Use 4-col base so the lonely 7th card can be centred */
.behandlungen-grid__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 37.5rem) {  /* 600px */
  .behandlungen-grid__inner {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;      /* cards fill full row height */
    gap: 1.5rem;
  }

  /* Every card spans 2 of the 4 columns → 2-column layout.
     Scoped to behandlungen-grid so card-behandlung re-used inside
     other grids (e.g. detailangebot-grid on Über uns / Patienten)
     doesn't force a full-row span. */
  .behandlungen-grid__inner .card-behandlung {
    grid-column: span 2;
    height: 100%;              /* stretch to grid cell height */
  }

  /* 7th card alone → centre it in the 4-column track */
  .behandlungen-grid__inner .card-behandlung:nth-child(7):last-child {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 48rem) {
  .behandlungen-grid {
    padding-block: 4rem 5rem;
  }

  .behandlungen-grid__container {
    padding-inline: 2rem;
  }
}

@media (min-width: 80rem) {
  .behandlungen-grid {
    padding-block: 5rem 6rem;
  }

  .behandlungen-grid__container {
    padding-inline: 3rem;
  }
}

/* ---- Card: box behandlungen ---- */

.card-behandlung {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t), transform var(--t);
}

.card-behandlung:hover,
.card-behandlung:focus-visible {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  opacity: 1;
}

/* Header band — min-height accommodates 98px icon + padding */
.card-behandlung__header {
  background: var(--blue-primary);
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 7.875rem;  /* 126px = 98px icon + 2×14px padding */
}

/* Icon wrapper — white bg creates contrast against navy header.
   NO CSS border here; the SVG's own mint ring is the visual border.
   This avoids the double-circle effect. */
.card-behandlung__icon-wrap {
  flex-shrink: 0;
  width: 6rem;   /* 96px — pixel-grid-friendly */
  height: 6rem;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);   /* GPU layer → crisp circle edge */
  isolation: isolate;
}

.card-behandlung__icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Title — WHITE (#ffffff) on dark header, WCAG AAA 11.5:1 */
.card-behandlung__title {
  color: #ffffff;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Accent stripe — 6px, same mint colour on every card */
.card-behandlung__accent {
  display: block;
  height: 6px;
  flex-shrink: 0;
  background: var(--green-secondary);
}

/* Body */
.card-behandlung__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
}

.card-behandlung__subline {
  color: var(--text-primary);
  font-size: clamp(0.9375rem, 1.1vw, 1.125rem);
  line-height: 1.55;
  flex: 1;
  /* No max-width restriction — card controls the width */
  max-width: none;
}

.card-behandlung__more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;   /* touch target */
  padding-block: 0.375rem;
  color: var(--blue-primary);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---- Larger screens: bigger icon ---- */
@media (min-width: 48rem) {
  .card-behandlung__header {
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
  }

  .card-behandlung__body {
    padding: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .card-behandlung__header {
    padding: 1.25rem 2rem;
  }

  .card-behandlung__body {
    padding: 1.75rem 2rem;
  }
}

/* No-icon variant — title-only header band for sub-hub cards
   (Über uns, Für Patienten) that share the box behandlungen style
   but have no picto. */
.card-behandlung--no-icon .card-behandlung__header {
  min-height: 0;
  padding-block: 1.5rem;
}

/* ============================================================
   DETAILANGEBOT GRID (box detailangebot — Figma 12:23)
   Sub-Hub cards — no header band, asymmetric radius
   ============================================================ */

.detailangebot-grid {
  padding-block: 3rem 4rem;
  background: var(--white);
}

.detailangebot-grid__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.detailangebot-grid__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Hub intro merged into the mint grid band */
.detailangebot-grid__intro {
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-primary);
}

.detailangebot-grid__intro > p + p {
  margin-top: 1rem;
}

@media (min-width: 48rem) {
  .detailangebot-grid__intro {
    margin-bottom: 3rem;
  }
}

/* 1 card alone → centred */
.detailangebot-grid__inner--single {
  display: flex;
  justify-content: center;
}

.detailangebot-grid__inner--single .card-detailangebot {
  max-width: 32rem;
  width: 100%;
}

@media (min-width: 37.5rem) {
  .detailangebot-grid__inner {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 80rem) {
  /* Hub-Übersicht: immer max. 2 Spalten – Masterseite (zaehne-pflegen) */
  .detailangebot-grid__inner--hub {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 48rem) {
  .detailangebot-grid {
    padding-block: 4rem 5rem;
  }

  .detailangebot-grid__container {
    padding-inline: 2rem;
  }
}

@media (min-width: 80rem) {
  .detailangebot-grid__container {
    padding-inline: 3rem;
  }
}

/* ---- Card: box detailangebot ---- */

.card-detailangebot {
  display: flex;
  flex-direction: column;
  /* Asymmetric radius: top-left only — Figma spec */
  border-radius: var(--border-radius-card) 0 0 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t), transform var(--t);
}

.card-detailangebot:hover,
.card-detailangebot:focus-visible {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  opacity: 1;
}

.card-detailangebot__body {
  padding: 1.5rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-detailangebot__title {
  color: var(--blue-primary);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-detailangebot__subline {
  color: var(--text-primary);
  font-size: clamp(0.9375rem, 1vw, 1.125rem);
  line-height: 1.55;
  flex: 1;
  max-width: none;
}

.card-detailangebot__more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: 0.375rem;
  color: var(--blue-primary);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (min-width: 48rem) {
  .card-detailangebot__body {
    padding: 1.75rem 1.5rem 1.5rem;
  }
}

/* ============================================================
   BOX WHITE (detail page body — Figma 17:1110)
   ============================================================ */

.box-white {
  background: var(--white);
  border-radius: 0.9375rem;
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  margin-block: 2rem;
}

@media (min-width: 48rem) {
  .box-white {
    padding: 3rem 2.5rem;
  }
}

/* ============================================================
   HOME TEASER CARDS (box header bereich — Figma 8:538)
   ============================================================ */

.home-teasers {
  padding-block: 3rem 4rem;
  background: var(--mint); /* #D2ECE6 */
}

.home-teasers__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.home-teasers__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 37.5rem) {
  .home-teasers__inner {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
  }
}

@media (min-width: 48rem) {
  .home-teasers__container {
    padding-inline: 2rem;
  }
}

@media (min-width: 80rem) {
  .home-teasers__container {
    padding-inline: 3rem;
  }
}

/* ---- Card: box header bereich ---- */

.card-bereich {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: box-shadow var(--t), transform var(--t);
}

.card-bereich:hover,
.card-bereich:focus-visible {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  opacity: 1;
}

.card-bereich__header {
  background: var(--blue-primary);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.card-bereich__icon-wrap {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-bereich__icon-wrap img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.card-bereich__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.card-bereich__title {
  color: var(--blue-primary);
  font-size: clamp(1.375rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.card-bereich__text {
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 1vw, 1.125rem);
  line-height: 1.55;
  max-width: none;
}

.card-bereich__more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--blue-primary);
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9375rem;
  padding-block: 0.375rem;
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */

/* Base CTA — centered, mint background, green button */
.cta-final {
  background: var(--mint);
  padding-block: 2.5rem;
}

.cta-final--white {
  background: var(--white);
}

.cta-final__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.cta-final__title {
  color: var(--blue-primary);
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 0.625rem;
  max-width: 36rem;
}

.cta-final__text {
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 48rem) {
  .cta-final {
    padding-block: 3rem;
  }

  .cta-final__container {
    padding-inline: 2rem;
  }
}

@media (min-width: 80rem) {
  .cta-final__container {
    padding-inline: 3rem;
  }
}

/* ── Portrait variant ── white bg, text left, portrait + circle right */
.cta-final--portrait {
  background: var(--white);
  overflow: hidden;
  padding-block: 0;
}

.cta-final--portrait .cta-final__container {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 2rem;
  padding-block: 3rem 0;
}

.cta-final--portrait .cta-final__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-final--portrait .cta-final__title {
  max-width: none;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.cta-final--portrait .cta-final__text {
  color: #000000;
  max-width: none;
  margin-bottom: 2rem;
}

/* Outline button — navy border, transparent fill */
.btn--outline-navy {
  display: inline-block;
  border: 1.5px solid var(--blue-primary);
  color: var(--blue-primary);
  background: transparent;
  padding: 0.5rem 1.5rem;
  font-size: clamp(0.875rem, 1vw, 1rem);
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn--outline-navy:hover {
  background: var(--blue-primary);
  color: var(--white);
}

/* Visual: circle + portrait */
.cta-final__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 32rem;
  flex-shrink: 0;
}

/* Circle: mobile — gleiche Proportionen wie Desktop (80% des Visuals, top 18%) */
.cta-final__circle {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  width: 80%;
  aspect-ratio: 1 / 1;
  height: auto;
  background: var(--green-secondary);
  border-radius: 50%;
}

/* Portrait: mobile — identisch zu Desktop, 110% Höhe, vor dem Kreis */
.cta-final__portrait {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 110%;
  object-fit: contain;
  object-position: top center;
  z-index: 1;
}

@media (min-width: 48rem) {
  .cta-final--portrait {
    padding-block: 0;
  }

  .cta-final--portrait .cta-final__container {
    flex-direction: row;
    align-items: stretch;
    padding-inline: 2rem;
    padding-block: 0;
    gap: 0;
    min-height: 28rem;
  }

  .cta-final--portrait .cta-final__content {
    flex: 0 0 50%;
    padding-right: 2rem;
    padding-block: 3.5rem;
    justify-content: center;
  }

  .cta-final__visual {
    flex: 0 0 50%;
    height: auto;
  }

  /*
   * Circle: centred in visual, ~80% of visual width, top at ~20%
   * → bottom 30% clips at section edge (matches Figma)
   */
  .cta-final__circle {
    left: 50%;
    top: 18%;
    transform: translateX(-50%);
    width: 80%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  /*
   * Portrait: full section height + 10% overflow at bottom,
   * centred over the circle, rendered in front (z-index 1)
   */
  .cta-final__portrait {
    top: 0;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translateX(-50%);
    height: 110%;
    width: auto;
    object-fit: contain;
    object-position: top center;
    z-index: 1;
  }
}

@media (min-width: 80rem) {
  .cta-final--portrait .cta-final__container {
    padding-inline: 3rem;
    min-height: 32rem;
  }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-section {
  padding-block: 3rem 4rem;
  background: var(--white);
}

.faq-section__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.faq-section__title {
  margin-bottom: 2rem;
  color: var(--blue-primary);
  max-width: 52rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  max-width: 52rem;
  padding: 0;
  margin: 0;
}

@media (min-width: 48rem) {
  .faq-section__container {
    padding-inline: 2rem;
  }
}

@media (min-width: 64rem) {
  .faq-section__container {
    padding-inline: 3rem;
  }
}

/* FAQ rows reuse the .detail-collapse visual language */
.faq-item {
  background: none;
}

.faq-item + .faq-item .detail-collapse {
  border-top: 1px solid rgba(0, 64, 119, 0.12);
}

.faq-item .detail-collapse {
  max-width: none;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--blue-primary);
  color: var(--white);
  padding-block: 3.5rem 0;
}

.site-footer__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Mobile only: stack so logo + pictos get breathing room. */
@media (max-width: 47.999rem) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo   logo"
      "pictos pictos"
      "nav    contact";
    gap: 1.75rem 1.5rem;
    text-align: left;
  }
  .site-footer__col--logo {
    grid-area: logo;
    justify-self: center;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .site-footer__grid .site-footer__col--pictos {
    grid-area: pictos;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding-bottom: 0.25rem;
  }
  .site-footer__grid .site-footer__col--pictos .site-footer__picto {
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
  }
  .site-footer__grid .site-footer__col--pictos .site-footer__picto img {
    width: 2.25rem;
    height: 2.25rem;
  }
  .site-footer__grid > .site-footer__col:nth-child(3) {
    grid-area: nav;
  }
  .site-footer__grid > .site-footer__col:nth-child(4) {
    grid-area: contact;
  }
}

@media (min-width: 64rem) {
  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3.75rem; /* ~60px */
  }
}

@media (min-width: 48rem) {
  .site-footer__container {
    padding-inline: 2rem;
  }
}

@media (min-width: 80rem) {
  .site-footer__container {
    padding-inline: 3rem;
  }
}

/* Col 1: Logo */
.site-footer__logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.site-footer__logo-link img {
  width: clamp(10rem, 15vw, 13rem);
  height: auto;
}

.site-footer__logo-accent {
  display: none;
}

/* Col 2: Picto icons — horizontal (icon left, label right) */
.site-footer__col--pictos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.site-footer__picto {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  transition: color var(--t);
}

.site-footer__picto img {
  width: 4.5rem;   /* 72px */
  height: 4.5rem;
  flex-shrink: 0;
}

.site-footer__picto:hover,
.site-footer__picto:focus-visible {
  color: var(--green-secondary);
}

/* Nav column */
.site-footer__nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-secondary);
  margin-bottom: 0.875rem;
}

.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  list-style: none;
}

.site-footer__nav-list a {
  display: inline-flex;
  align-items: center;
  padding-block: 0.2rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--t);
}

.site-footer__nav-list a:hover,
.site-footer__nav-list a:focus-visible {
  color: var(--white);
}

/* Kontakt column */
.site-footer__contact {
  font-style: normal;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 2;
}

.site-footer__contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--t);
}

.site-footer__contact a:hover {
  color: var(--white);
}

/* Bottom bar — grüner Balken */
.site-footer__bottom-bar {
  background: var(--green-secondary);
  padding-block: 0.875rem;
  margin-top: 2.5rem;
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-footer__legal a {
  color: var(--blue-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  transition: opacity var(--t);
}

.site-footer__legal a:hover {
  opacity: 0.75;
}

.site-footer__legal span {
  color: var(--blue-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================================
   SECTION INTRO (optional above grids)
   ============================================================ */

.section-intro {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 0;
}

.section-intro__title {
  color: var(--blue-primary);
  margin-bottom: 0.75rem;
}

.section-intro__text {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  max-width: 52rem;
}

@media (min-width: 48rem) {
  .section-intro {
    padding: 3rem 2rem 0;
  }
}

@media (min-width: 80rem) {
  .section-intro {
    padding: 4rem 3rem 0;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-block {
  background: var(--white);
  padding-block: 3rem 4rem;
}

.contact-block__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .contact-block__container {
    grid-template-columns: 1fr 1fr;
    padding-inline: 3rem;
    gap: 4rem;
  }
}

/* ============================================================
   NOTFALL PAGE
   ============================================================ */

.notfall-cta {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--mint);
}

.notfall-cta__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .notfall-cta__container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-inline: 2rem;
  }
}

@media (min-width: 75rem) {
  .notfall-cta__container { padding-inline: 3rem; }
}

.notfall-cta__card {
  background: var(--blue-primary);
  color: var(--white);
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notfall-cta__card--secondary {
  background: var(--white);
  color: var(--blue-primary);
  border: 1px solid rgba(0, 64, 119, 0.15);
}

.notfall-cta__label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  opacity: 0.85;
}

.notfall-cta__phone {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  margin: 0;
}

.notfall-cta__phone:hover,
.notfall-cta__phone:focus-visible {
  text-decoration: underline;
}

.notfall-cta__hours {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
  opacity: 0.9;
}

.notfall-cta__hint {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0.5rem 0 0;
  opacity: 0.85;
}

/* ============================================================
   KONTAKT PAGE
   ============================================================ */

/* ── Kontakt-Bar (icon-bar) ──────────────────────────────── */

.kontakt-bar {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--white);
}

.kontakt-bar__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .kontakt-bar__container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding-inline: 2rem;
  }
}

@media (min-width: 60rem) {
  .kontakt-bar__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-inline: 3rem;
  }
}

.kontakt-bar__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0;
}

/* Center hours grid (auto/1fr) horizontally on mobile too */
.kontakt-bar__col .kontakt-bar__hours {
  justify-content: center;
}

@media (min-width: 48rem) {
  .kontakt-bar__col {
    align-items: flex-start;
    text-align: left;
  }
  .kontakt-bar__col .kontakt-bar__hours {
    justify-content: start;
  }
}

@media (min-width: 60rem) {
  .kontakt-bar__col {
    padding: 0.25rem 2rem;
    border-left: 1px solid rgba(0, 64, 119, 0.12);
  }
  .kontakt-bar__col:first-child {
    border-left: none;
    padding-left: 0;
  }
  .kontakt-bar__col:last-child {
    padding-right: 0;
  }
}

.kontakt-bar__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.kontakt-bar__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.kontakt-bar__icon--accent {
  background: var(--green-secondary);
  color: var(--white);
}

.kontakt-bar__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin: 0 0 0.25rem;
  letter-spacing: 0.01em;
}

.kontakt-bar__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
  font-style: normal;
}

.kontakt-bar__text a {
  color: var(--blue-primary);
  text-decoration: none;
}

.kontakt-bar__text a:hover,
.kontakt-bar__text a:focus-visible {
  text-decoration: underline;
}

.kontakt-bar__link {
  align-self: center;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--green-secondary);
  padding-bottom: 2px;
}

.kontakt-bar__link:hover,
.kontakt-bar__link:focus-visible {
  color: var(--green-secondary);
}

.kontakt-bar__hours {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
}

.kontakt-bar__hours dt {
  color: #555;
}

.kontakt-bar__hours dd {
  margin: 0;
  font-weight: 600;
  color: var(--blue-primary);
}

.kontakt-bar__btn {
  margin-top: 0.75rem;
}

/* ── Karte ────────────────────────────────────────────────── */

.kontakt-map {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.kontakt-map__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 48rem) { .kontakt-map__container { padding-inline: 2rem; } }
@media (min-width: 75rem) { .kontakt-map__container { padding-inline: 3rem; } }

.kontakt-map__embed {
  display: block;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--mint);
  aspect-ratio: 3 / 1;
  text-decoration: none;
}

.kontakt-map__embed img,
.kontakt-map__embed iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.kontakt-map__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--blue-primary);
}

.kontakt-map__embed--fallback .kontakt-map__fallback {
  display: flex;
}

/* ── Kontaktformular ─────────────────────────────────────── */

.kontakt-form {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--mint);
}

.kontakt-form__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 48rem) { .kontakt-form__container { padding-inline: 2rem; } }
@media (min-width: 75rem) { .kontakt-form__container { padding-inline: 3rem; } }

.kontakt-form__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue-primary);
  margin: 0 0 0.75rem;
  max-width: 52rem;
}

.kontakt-form__intro {
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
  max-width: 52rem;
  margin: 0 0 2rem;
}

.kontakt-form__form {
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.kontakt-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 36rem) {
  .kontakt-form__row { grid-template-columns: 1fr 1fr; }
}

.kontakt-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.kontakt-form__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-primary);
}

.kontakt-form__field input,
.kontakt-form__field select,
.kontakt-form__field textarea {
  font: inherit;
  font-size: 1rem;
  color: #1a1a1a;
  background: var(--white);
  border: 1px solid rgba(0, 64, 119, 0.25);
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kontakt-form__field input:focus,
.kontakt-form__field select:focus,
.kontakt-form__field textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 64, 119, 0.15);
}

.kontakt-form__field textarea {
  resize: vertical;
  min-height: 7.5rem;
  line-height: 1.55;
  font-family: inherit;
}

.kontakt-form__checkbox {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #333;
}

.kontakt-form__checkbox input {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1875rem;
  accent-color: var(--blue-primary);
}

.kontakt-form__checkbox a {
  color: var(--blue-primary);
  text-decoration: underline;
}

.kontakt-form__form .btn {
  align-self: flex-start;
}

/* ============================================================
   FAQ-SECTION ALT-VARIANTE (für gruppierte FAQ-Seite)
   ============================================================ */

.faq-section--alt {
  background: var(--mint);
}

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz / AGB)
   ============================================================ */

.legal-body {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.legal-body__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 48rem) { .legal-body__container { padding-inline: 2rem; } }
@media (min-width: 75rem) { .legal-body__container { padding-inline: 3rem; } }

.legal-body__heading {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  color: var(--blue-primary);
  margin: 2.5rem 0 0.75rem;
  max-width: 52rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.legal-body__heading:first-of-type {
  margin-top: 0;
}

.legal-body .prose {
  max-width: 52rem;
}

.legal-body .prose p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 1rem;
}

.legal-body .prose a {
  color: var(--blue-primary);
  text-decoration: underline;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.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;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ============================================================
   HOME PAGE
   ============================================================ */

/* ── Hero Home ───────────────────────────────────────────────
   Layout:
   ┌──────────────────────────────────────────────┐
   │ [NAVY] [Siegel]      [persönlich           ] │  ← hero-home__navy
   │        [badge]       [emphatisch           ] │
   │                      [fortschrittlich      ] │
   ├──────────────────────────────────────────────┤
   │ [WHITE][Foto overlap][Subline text          ] │  ← hero-home__white
   │        [         ]  [                      ] │
   │        [         ]  [           mint block▐] │
   └──────────────────────────────────────────────┘
   Foto & Siegel are absolutely positioned on .hero-home
   ──────────────────────────────────────────────────────── */

/* Custom height variables — tweak here to adjust proportions */
.hero-home {
  --navy-h: 18rem;      /* height of the blue band  (~40% of total) */
  --white-h: 34rem;     /* height of the white band (~60% of total) */
  --photo-w: 45%;       /* width reserved for the photo column */

  position: relative;
  overflow: hidden;
  z-index: 0; /* eigener Stacking-Context → Kinder bleiben unter sticky Nav (z-index:100) */
}

/* ── Navy band ──────────────────────────────────────────── */
.hero-home__navy {
  background: var(--blue-primary);
  min-height: var(--navy-h);
  /* Keywords live in the RIGHT column (photo col is reserved left) */
  padding: 2rem 2rem 4rem var(--photo-w);
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  position: relative; /* Anker für deco-top */
}

/* Keywords: large mint text stacked */
.hero-home__keywords {
  margin: 0;
  line-height: 1.0;
  font-size: clamp(2.75rem, 5.5vw, 6rem);
  font-weight: 400;
  color: var(--green-secondary);
}

.hero-home__keywords span {
  display: block;
}

/* ── Unteres Band: weiss (Mint nur im deco-bottom Block) ─── */
.hero-home__white {
  background: var(--white);
  height: var(--white-h);
  /* Same column split as navy */
  padding-left: var(--photo-w);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;   /* for mint deco block */
}

.hero-home__text {
  padding: 2rem 2.5rem;
  /* margin-bottom gleicht die 26%-Deko-Band am unteren Rand aus,
     damit der Text im sichtbaren weissen Bereich zentriert erscheint */
  margin-bottom: calc(var(--white-h) * 0.26);
}

.hero-home__lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--blue-primary);
  margin: 0 0 0.875rem;
  line-height: 1.3;
}

.hero-home__subline {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: #333;
  line-height: 1.75;
  margin: 0;
  max-width: 28rem;
}

.hero-home__subline--accent {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--blue-primary);
}

/* Mint-Streifen am UNTEREN Rand des Navy-Bereichs (rechte 55%) */
.hero-home__deco-top {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 3.125rem;          /* 50px — identisch Behandlungen-Hero */
  background: var(--green-secondary);
  z-index: 0;
}

/* Unteres Deko-Block: volle Breite, läuft hinter dem Teamfoto durch */
.hero-home__deco-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 38%;
  background: #59B69C;
  z-index: 0;
}

/* ── Teamfoto: absolute, mit Abstand zum Navi-Bereich oben ── */
.hero-home__photo {
  position: absolute;
  top: 2.5rem;       /* Luft zur Navi, damit der Kopf nicht anstösst */
  bottom: 0;
  left: 0;
  width: var(--photo-w);
  margin: 0;
  padding: 0 0 0 4rem;  /* Abstand vom linken Rand, damit Foto nicht klebt */
  box-sizing: border-box;
  z-index: 2;        /* über deco-top (Mint-Balken) → Balken läuft hinter dem PNG durch */
  pointer-events: none;
}

.hero-home__photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* ── Termin-Siegel: unter Subtext, leicht schräg ─────────── */
.hero-home__siegel {
  position: absolute;
  /* Unter «Neupatienten willkommen!»: navy-h + ca. 2/3 des weissen Bands */
  top: calc(var(--navy-h) + 20rem);
  left: calc(var(--photo-w) + 2rem);
  transform: rotate(-10deg);
  z-index: 20;
  display: block;
  width: 8rem;
  height: 8rem;
  transition: transform 0.2s ease;
}

.hero-home__siegel:hover {
  transform: rotate(-10deg) scale(1.06);
}

.hero-home__siegel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Mobile: stack vertically ───────────────────────────── */
@media (max-width: 63.9375rem) {
  .hero-home {
    --navy-h: 12rem;
    --white-h: auto;
    --photo-w: 0%;
    overflow: visible;
  }

  .hero-home__navy {
    height: auto;
    min-height: var(--navy-h);
    padding: 2rem 1.25rem 1.5rem 1.25rem;
    align-items: flex-start;
  }

  .hero-home__keywords {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .hero-home__white {
    height: auto;
    padding-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-home__photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-home__photo-img {
    object-position: top center;
  }

  .hero-home__text {
    padding: 1.5rem 1.25rem;
  }



  .hero-home__siegel {
    top: auto;
    bottom: calc(var(--white-h, 0px) + 12rem - 4rem);
    /* Simplified: position at bottom of navy */
    top: calc(12rem - 4.5rem);
    left: 1rem;
    width: 6rem;
    height: 6rem;
  }
}

/* ── Large desktop tweaks ───────────────────────────────── */
@media (min-width: 90rem) {
  .hero-home {
    --navy-h: 18rem;
    --white-h: 30rem;
  }
}

/* ── Highlights Strip ────────────────────────────────────── */
.highlights {
  background: var(--white);
  border-top: 1px solid rgba(0,64,119,0.08);
  border-bottom: 1px solid rgba(0,64,119,0.08);
}

.highlights__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-block: 2rem;
}

.highlights__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.highlights__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--blue-primary);
  line-height: 1.5;
  font-weight: 500;
}

.highlights__icon {
  flex-shrink: 0;
  margin-top: 0.2em;
  width: 20px;
  height: 20px;
}

@media (min-width: 40rem) {
  .highlights__list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2.5rem;
  }
}

@media (min-width: 64rem) {
  .highlights__container {
    padding-inline: 3rem;
    padding-block: 2rem;
  }

  .highlights__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 2rem;
  }
}

/* ── Teaser Cards: navy Kopfband + weisser Body ──────────── */
.teasers {
  background: var(--mint); /* #D2ECE6 */
  padding-block: 3.5rem 4rem;
}

.teasers__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.teasers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  grid-auto-rows: 1fr;
}

.card-teaser {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,64,119,0.1);
  transition: transform var(--t), box-shadow var(--t);
}

.card-teaser:hover,
.card-teaser:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,64,119,0.18);
}

/* Navy-Kopfband mit Icon (kein Wrapper-Kreis) */
.card-teaser__head {
  background: var(--blue-primary);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-teaser__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.card-teaser__section {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* Weisser Body — Titel und Text in navy */
.card-teaser__body {
  background: var(--white);
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-teaser__text {
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.card-teaser__link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-primary);
  text-decoration: none;
  transition: color var(--t), letter-spacing var(--t);
}

.card-teaser:hover .card-teaser__link,
.card-teaser:focus-visible .card-teaser__link {
  color: var(--green-secondary);
}

/* Tablet: 2 Spalten als Basis */
@media (min-width: 40rem) {
  .teasers__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop: Spalten automatisch nach Anzahl Karten (via :has) */
@media (min-width: 64rem) {
  .teasers__container {
    padding-inline: 3rem;
  }

  .teasers__grid {
    gap: 1.5rem;
    /* Standard: 2 Spalten (passt für 2, 4, 6 Karten) */
    grid-template-columns: repeat(2, 1fr);
  }

  /* 3 Karten → 3 Spalten */
  .teasers__grid:has(.card-teaser:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 5 Karten → 3+2 (5 in 3 Spalten) */
  .teasers__grid:has(.card-teaser:nth-child(5):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 6 Karten → 3×2 */
  .teasers__grid:has(.card-teaser:nth-child(6):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 7+ Karten → 4 Spalten */
  .teasers__grid:has(.card-teaser:nth-child(7)) {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Speech Block ────────────────────────────────────────────
   Weisses Card mit navy Border. Portrait ragt oben über den
   Rahmen hinaus; Mint-Rechteck unten-rechts als Deko.
   ──────────────────────────────────────────────────────────── */
.speech-block {
  background: var(--white);
  padding-block: 3rem;
  padding-inline: 1.25rem;
}

/* Card: navy Rahmen 5px, position relative für absolut platzierte
   Mint-Deko und Portrait. Höhe nach Figma ~460px. */
.speech-block__card {
  position: relative;
  max-width: var(--max-width);
  margin-inline: auto;
  background: var(--white);
  border: 5px solid var(--blue-primary);
  overflow: visible;
  min-height: 16rem;
}

/* Text-Seite links — Headline + Body */
.speech-block__text {
  padding: 2.25rem 2.5rem;
  position: relative;
  z-index: 2;
}

.speech-block__headline {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-primary);
  margin: 0 0 1.25rem;
}

.speech-block__body {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
  margin: 0;
  max-width: 48rem;
}

.speech-block__cta {
  margin: 1.5rem 0 0;
}

/* TODO-Platzhalter: rot hervorheben, damit fehlender Kundeninput sichtbar bleibt */
.placeholder-todo {
  display: inline-block;
  padding: 0 0.35em;
  background: #ffe5e5;
  color: #c00;
  border: 1px dashed #c00;
  border-radius: 0.25rem;
  font-weight: 600;
  font-style: normal;
}

/* Foto-Spalte rechts: absolut positioniert, ragt oben leicht über Kartenrand */
.speech-block__photo-col {
  display: none; /* mobile: Foto + Mint-Deko ausblenden, Kompaktansicht */
}

/* ── Desktop ≥ 64rem: Figma-Layout ───────────────────────── */
@media (min-width: 64rem) {
  .speech-block {
    padding-block: 4rem;
  }

  .speech-block__card {
    max-width: calc(var(--max-width) - 2 * 1.25rem);
    min-height: 22rem;          /* kompakter als Figma (~360px) */
  }

  .speech-block__text {
    padding: 2rem 3rem 2rem 4.5rem;
    max-width: 62%;
    min-height: 22rem;            /* gleiche Höhe wie Card */
    display: flex;
    flex-direction: column;
    justify-content: center;       /* Titel + Body vertikal zentriert */
  }

  /* Foto-Spalte: absolut rechts, bündig mit Kartenrand unten */
  .speech-block__photo-col {
    display: block;
    position: absolute;
    top: 0;
    right: 2rem;
    bottom: 0;                  /* exakt am unteren Rand der Card */
    width: 17%;
    z-index: 1;
  }

  /* Heller Mint-Hintergrund */
  .speech-block__photo-col::before {
    content: '';
    position: absolute;
    right: -2rem;
    bottom: 1.5rem;             /* Platz für dunklen Balken */
    width: calc(100% + 4rem);
    height: 9rem;
    background: #D2ECE6;
    z-index: 0;
  }

  /* Dunkler Mint-Balken unten — bündig mit Kartenrand */
  .speech-block__photo-col::after {
    content: '';
    position: absolute;
    right: -2rem;
    bottom: 0;
    width: calc(100% + 4rem);
    height: 1.5rem;             /* ~24px */
    background: #59B69C;
    z-index: 0;
  }

  /* Portrait freigestellt — Unterkante exakt auf Card-Unterkante */
  .speech-block__photo-img {
    position: absolute;
    bottom: 0;                  /* sitzt direkt auf der Card-Border */
    left: 0;
    right: 0;
    margin-inline: auto;
    z-index: 1;
    width: auto;
    height: 100%;               /* füllt Foto-Spalte vertikal */
    max-height: 22rem;          /* matches card min-height */
    object-fit: contain;
    object-position: bottom center;
    display: block;
  }
}

@media (min-width: 80rem) {
  .speech-block__card {
    max-width: calc(var(--max-width) - 6rem);
  }
}
