/* ============================================================
   Pflegehafen – pflegehafen.at
   Design-System: übernommen aus der iOS-App (maritime Blau-Palette)
   ============================================================ */

:root {
  --primary: #2F6690;        /* Maritimes Blau (App: pcPrimary) */
  --primary-dark: #1F4A66;   /* App: pcPrimaryDark */
  --secondary: #4E8C7A;      /* Seegrün/Petrol (App: pcSecondary) */
  --background: #F2F5F8;     /* App: pcBackground */
  --surface: #FFFFFF;        /* App: pcSurface */
  --surface-alt: #DCE8F0;    /* App: pcSurfaceAlt */
  --text: #22323C;           /* App: pcTextPrimary */
  --text-secondary: #6B7F88; /* App: pcTextSecondary */
  --border: #C7D9E3;         /* App: pcBorder */
  --warning: #D96C6C;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(31, 74, 102, 0.10);
  --shadow-soft: 0 4px 14px rgba(31, 74, 102, 0.07);
  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 245, 248, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}

.site-nav a:hover { color: var(--primary); }

.site-nav a.btn { color: #fff; }

/* Mobile nav */
.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle-label span::before { position: absolute; top: -6px; }
.nav-toggle-label span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }

  .site-nav a {
    padding: 14px 24px;
  }

  .site-nav a.btn {
    margin: 8px 24px 12px;
    text-align: center;
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 102, 144, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-light:hover { transform: translateY(-1px); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn-lg { padding: 16px 34px; font-size: 1.08rem; }

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

.hero {
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, #3C7A99 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero::after {
  /* sanfte Wellen unten – Hafen-Motiv */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 70px;
  background: var(--background);
  clip-path: ellipse(75% 100% at 50% 100%);
}

.hero .inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 88px 24px 130px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Grid-Spalten dürfen schmaler als ihr Inhalt werden – sonst schiebt ein
   breites Kind (z. B. die Badge-Zeile) die ganze Spalte über den Rand. */
.hero .inner > * { min-width: 0; }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
  max-width: 34em;
}

.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-art { display: flex; justify-content: center; }

.hero-art img {
  width: min(300px, 70vw);
  border-radius: 56px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; padding: 56px 24px 110px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(200px, 55vw); border-radius: 44px; }
}

/* Kompakter Hero für Unterseiten */
.hero.hero-sub .inner {
  grid-template-columns: 1fr;
  padding: 64px 24px 100px;
  text-align: left;
}

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

section { padding: 64px 0; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 44em;
  margin-bottom: 40px;
}

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p { color: var(--text-secondary); font-size: 0.98rem; }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card .icon svg { width: 26px; height: 26px; }

/* Zwei-Zielgruppen-Split */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) { .split-grid { grid-template-columns: 1fr; } }

.split-card {
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.split-card.patients {
  background: var(--surface);
  border: 1px solid var(--border);
}

.split-card.caregivers {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.split-card h3 { font-size: 1.45rem; letter-spacing: -0.01em; }

.split-card p { font-size: 1rem; }

.split-card.patients p { color: var(--text-secondary); }
.split-card.caregivers p { color: rgba(255, 255, 255, 0.85); }

.split-card .tag {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
}

.split-card.patients .tag { background: var(--surface-alt); color: var(--primary-dark); }
.split-card.caregivers .tag { background: rgba(255, 255, 255, 0.16); color: #fff; }

.split-card .btn { align-self: flex-start; margin-top: auto; }

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Checkliste ---------- */

.check-list { list-style: none; display: grid; gap: 12px; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.02rem;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--secondary);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" fill="white" stroke="none"/><path d="M8 12.5l2.5 2.5L16 9.5" stroke="black"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" fill="white" stroke="none"/><path d="M8 12.5l2.5 2.5L16 9.5" stroke="black"/></svg>') center / contain no-repeat;
}

/* ---------- Formular ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #EAF1F6; /* sichtbares Eingabefeld wie in der App (pcSurfaceAlt-Logik) */
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

textarea { resize: vertical; min-height: 120px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.consent input { margin-top: 4px; }

.form-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* Honeypot – für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Kontakt-Zeile ---------- */

/* Telefon und E-Mail exakt gleich breit, nebeneinander zentriert. */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 14px;
  margin: 28px auto 0;
  max-width: 560px;
}

.contact-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.contact-strip a:hover { border-color: var(--primary); }

/* ---------- Preis / CTA-Banner ---------- */

.price-card {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 48px 40px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-card h3 { font-size: 1.6rem; margin-bottom: 8px; }
.price-card .price-sub { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

.price-card .check-list { text-align: left; margin: 0 auto 28px; max-width: 380px; }
.price-card .check-list li::before { background: #9FD4C5; }

.cta-banner {
  background: linear-gradient(150deg, var(--primary-dark), var(--primary));
  border-radius: calc(var(--radius) + 6px);
  color: #fff;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; letter-spacing: -0.01em; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; max-width: 38em; margin-left: auto; margin-right: auto; }

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

details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
}

details.faq[open] summary::after { content: "–"; }

details.faq .faq-body {
  padding: 0 22px 18px;
  color: var(--text-secondary);
}

/* ---------- Rechtstexte ---------- */

.legal main.container {
  max-width: 780px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal h1 { font-size: 2rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.legal .updated { color: var(--text-secondary); margin-bottom: 32px; font-size: 0.95rem; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.legal p, .legal ul { margin-bottom: 12px; color: var(--text); }
.legal ul { padding-left: 22px; }

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

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }

.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer ul { list-style: none; display: grid; gap: 8px; }

.site-footer .brand { color: #fff; margin-bottom: 12px; }

.site-footer .fine {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ---------- Utility ---------- */

/* Alle Badges gleich breit – wirkt ruhiger als unterschiedlich lange Pillen. */
.badge-row {
  display: grid;
  /* min(210px, 100%): unter 210px Containerbreite darf die Spalte schrumpfen –
     ohne das erzwingt das Grid eine Mindestbreite und sprengt das Handy-Layout. */
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 10px;
  margin-top: 22px;
  max-width: 700px;
}

.badge {
  background: var(--surface-alt);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .badge { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.22); }

/* ---------- Fotos & Platzhalter ---------- */

.photo-frame {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(31, 74, 102, 0.35);
  background: linear-gradient(160deg, #3C7A99, var(--primary-dark));
  aspect-ratio: 4 / 3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-pos, center);
  display: block;
}

/* Sehr helle Fotos: dezenter Markenverlauf an den Rändern, damit die weißen
   Trust-Kärtchen darauf lesbar bleiben und das Foto ins Design eingebunden ist. */
.photo-frame.tinted::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(200deg, rgba(31, 74, 102, 0.28) 0%, rgba(31, 74, 102, 0) 42%),
    linear-gradient(20deg, rgba(31, 74, 102, 0.22) 0%, rgba(31, 74, 102, 0) 45%);
}

.photo-frame.portrait { aspect-ratio: 1 / 1; }

/* Solange das echte Foto fehlt: dezenter Platzhalter mit Beschreibung */
.photo-frame.missing img { display: none; }

.photo-frame.missing::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.16), transparent 60%),
    linear-gradient(160deg, #4E8CB0, var(--primary-dark));
}

/* Schwebende Trust-Kärtchen über dem Hero-Foto */
.hero-photo { position: relative; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 40, 60, 0.25);
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.float-card small {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8rem;
}

.float-card .fc-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.float-card.tl { top: 18px; left: -22px; }
.float-card.br { bottom: 22px; right: -18px; }

@media (max-width: 860px) {
  .float-card.tl { left: 8px; }
  .float-card.br { right: 8px; }
}

/* ---------- Trust-Leiste unter dem Hero ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 30px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-item .ti-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.trust-item strong { display: block; font-size: 0.98rem; line-height: 1.3; }
.trust-item span { color: var(--text-secondary); font-size: 0.86rem; }

/* ---------- Ansprechpartnerin ---------- */

.person-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) { .person-grid { grid-template-columns: 1fr; } }

.person-quote {
  border-left: 4px solid var(--primary);
  padding: 4px 0 4px 20px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin: 22px 0;
}

.person-name { font-weight: 700; }
.person-role { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Vergleichstabelle ---------- */

.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.97rem;
}

table.compare th,
table.compare td {
  padding: 15px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

table.compare th:first-child,
table.compare td:first-child {
  text-align: left;
  font-weight: 600;
}

table.compare thead th {
  background: var(--surface-alt);
  font-size: 1rem;
}

table.compare thead th.ph-col {
  background: var(--primary);
  color: #fff;
}

table.compare td.ph-col {
  background: rgba(47, 102, 144, 0.07);
  font-weight: 700;
}

table.compare tr:last-child td { border-bottom: none; }

.yes { color: var(--secondary); font-weight: 700; }
.no { color: var(--warning); font-weight: 700; }
.meh { color: var(--text-secondary); }

/* ---------- App-Screenshots (Phone-Mockups) ---------- */

.phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  justify-items: center;
}

.phone {
  width: min(248px, 74vw);
  text-align: center;
}

/* Seitenverhältnis exakt wie die zugeschnittenen Screenshots (660×1378),
   damit nichts beschnitten wird und der Rahmen wie ein iPhone wirkt. */
.phone .screen {
  /* content-box: das Seitenverhältnis gilt für die Bildfläche, nicht inkl.
     Rahmen – sonst würde der Screenshot links/rechts beschnitten. */
  box-sizing: content-box;
  width: 100%;
  aspect-ratio: 680 / 1420;
  border-radius: 42px;
  border: 5px solid var(--primary-dark);
  overflow: hidden;
  background: linear-gradient(170deg, #EAF1F6, var(--surface-alt));
  box-shadow: var(--shadow);
  position: relative;
}

.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone .screen.missing img { display: none; }

.phone .screen.missing::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.phone figcaption {
  margin-top: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Abwechselnde Sektionen ---------- */

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

/* ---------- Ratgeber ---------- */

.article-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card h3 { font-size: 1.15rem; }
.article-card p { color: var(--text-secondary); font-size: 0.96rem; }
.article-card a.more { font-weight: 600; text-decoration: none; margin-top: auto; }

article.ratgeber { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
article.ratgeber h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
article.ratgeber .meta { color: var(--text-secondary); margin-bottom: 28px; font-size: 0.95rem; }
article.ratgeber h2 { font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
article.ratgeber h3 { font-size: 1.1rem; margin: 22px 0 8px; }
article.ratgeber p, article.ratgeber ul, article.ratgeber ol { margin-bottom: 14px; }
article.ratgeber ul, article.ratgeber ol { padding-left: 24px; }
article.ratgeber .hinweis {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  margin: 20px 0;
}

/* ---------- Leistungsliste (Patient:innen) ---------- */

.leistung-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px 28px;
  list-style: none;
}

.leistung-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.97rem;
}

.leistung-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 800;
  flex: 0 0 auto;
}

/* Hinweis „wischen“ für Tabellen am Handy */
.swipe-hint {
  display: none;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ---------- Mobile-First-Feinschliff ---------- */

@media (max-width: 860px) {
  /* Mobile First: das Foto zuerst zeigen – ein menschliches Bild wirkt
     stärker als jede Überschrift, sobald die Seite aufgeht. */
  .hero-photo { order: -1; }
  .photo-frame { aspect-ratio: 16 / 10; }
  .photo-frame.portrait { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  section { padding: 44px 0; }

  .container { padding: 0 18px; }

  .hero .inner { padding: 26px 18px 92px; gap: 26px; }

  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.3rem); }

  .hero p.lead { font-size: 1.02rem; }

  .hero .eyebrow { font-size: 0.8rem; padding: 5px 13px; margin-bottom: 14px; }

  /* CTAs am Handy: volle Breite, gut tippbar */
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { text-align: center; width: 100%; }

  .badge { font-size: 0.8rem; padding: 5px 12px; }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px 16px;
    margin-top: -26px;
  }

  .trust-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust-item .ti-icon { width: 38px; height: 38px; font-size: 1.05rem; }
  .trust-item strong { font-size: 0.9rem; }
  .trust-item span { font-size: 0.8rem; }

  .split-card { padding: 28px 22px; }

  .card { padding: 22px; }

  /* Am Handy nur ein Kärtchen – sonst verdecken sie das ganze Foto. */
  .float-card.tl { display: none; }

  .float-card {
    font-size: 0.82rem;
    padding: 9px 13px;
    border-radius: 12px;
    bottom: -14px;
  }
  .float-card .fc-icon { width: 30px; height: 30px; font-size: 0.95rem; }
  .float-card small { font-size: 0.72rem; }

  .price-card { padding: 34px 22px; }
  .cta-banner { padding: 40px 22px; }

  .person-quote { font-size: 1.05rem; }

  .swipe-hint { display: block; }

  .phones { gap: 24px; }

  .form-card { padding: 24px 18px; }

  .site-footer .cols { gap: 24px; }
}
