/* ==========================================================================
   ProPhysio Darmstadt – Stylesheet
   Gilt für index.html, impressum.html, datenschutz.html und 404.html.

   Inhalt:
    1. Schriften
    2. Farben & Grundwerte
    3. Basis
    4. Bausteine (Container, Überschriften, Buttons, Karten)
    5. Kopfbereich & Navigation
    6. Abschnitte der Startseite
    7. Kontaktformular
    8. FAQ
    9. Fußbereich
   10. Impressum/Datenschutz (Einzelseite und Popup)
   11. Responsive Anpassungen
   ========================================================================== */


/* 1. Schriften ---------------------------------------------------------------
   Lokal eingebunden statt über Google Fonts, damit beim Seitenaufruf keine
   Daten an Google gehen. Variable Schriften: eine Datei enthält alle Stärken. */

@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-sans-3-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-serif-4-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/source-serif-4-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 2. Farben & Grundwerte ---------------------------------------------------- */

:root {
  --blue: #2d4d9c;          /* Markenfarbe: Links, Buttons, Akzente */
  --blue-dark: #233d7d;     /* Hover */
  --blue-light: #eaeef8;    /* ausgewählte Optionen, Buttons hell */
  --navy: #14224a;          /* Fußbereich */
  --ink: #1a2340;           /* Überschriften, Haupttext */
  --text: #333d5c;          /* Fließtext */
  --muted: #4d5670;         /* Nebentext */
  --grey: #5c637c;          /* Rollen, Hinweise */
  --label: #5f6680;         /* kleine Überschriften in Großbuchstaben */
  --line: #e4e8f2;          /* Rahmen */
  --line-strong: #d5dcec;   /* Rahmen von Eingabefeldern */
  --bg: #f6f7fb;            /* Seitenhintergrund */
  --bg-alt: #eaeef7;        /* abgesetzte Abschnitte */
  --field: #fbfcfe;         /* Eingabefelder */
  --gold: #c99b3f;          /* Sterne */
  --error: #9b2c2c;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;

  --header-h: 120px;        /* wird per JavaScript auf die echte Höhe gesetzt */
}


/* 3. Basis ------------------------------------------------------------------ */

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

/* scroll-padding: Anker-Sprünge und per Tab angesprungene Elemente landen
   unterhalb des feststehenden Kopfbereichs statt dahinter */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

input, select, textarea, button { font: inherit; color: inherit; }
::placeholder { color: #6b7289; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.site-footer :focus-visible { outline-color: #fff; }

/* Nur für Screenreader sichtbar */
.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;
}

/* Zum Inhalt springen (Tastatur-Navigation) */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }


/* 4. Bausteine -------------------------------------------------------------- */

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--white { background: #fff; border-top: 1px solid var(--line); }

.two-col { display: grid; gap: 64px; align-items: start; }

/* Kleine Überschrift in Großbuchstaben über einer Abschnittsüberschrift */
.eyebrow {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--label);
}

.section-title {
  margin: 0 0 26px;
  font-family: var(--serif); font-weight: 600; font-size: 42px; line-height: 1.1; letter-spacing: -0.02em;
}

.lead { margin: 0 0 18px; font-size: 18px; line-height: 1.7; color: var(--text); }

.btn {
  display: inline-block; border: none; border-radius: 999px; cursor: pointer;
  background: var(--blue); color: #fff; font-weight: 600; white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); color: #fff; }

/* Telefon-/E-Mail-Kacheln */
.contact-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #d9e0ee; border-radius: 14px; padding: 16px 22px;
}
.contact-card:hover { border-color: var(--blue); }
.contact-card__label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label);
}
.contact-card__value { font-size: 19px; font-weight: 700; color: var(--blue); }

/* Bilder mit gestreiftem Platzhalter, bis sie geladen sind */
.photo {
  width: 100%; object-fit: cover;
  background-color: #e7ebf5;
  background-image: repeating-linear-gradient(135deg, rgba(45,77,156,0.07) 0 10px, rgba(45,77,156,0) 10px 20px);
}


/* 5. Kopfbereich & Navigation ----------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 251, 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid #dfe4f0;
}

.topbar { border-bottom: 1px solid var(--line); }
.topbar .container {
  display: flex; align-items: center; justify-content: flex-end; gap: 26px; flex-wrap: wrap;
  padding-top: 7px; padding-bottom: 7px; font-size: 14px;
}
.topbar__phone { font-weight: 700; }
.topbar__mail { font-weight: 600; color: #5b6478; }

.mainbar { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }

.logo { display: flex; align-items: baseline; flex-shrink: 0; font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.logo__pro { color: var(--blue); margin-right: 2px; }
.logo__physio { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 22px; margin: 0 auto; font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.nav a { color: var(--ink); padding-bottom: 2px; }
.nav a:hover, .nav a.is-active { color: var(--blue); }
.nav a.is-active { box-shadow: inset 0 -2px 0 0 var(--blue); }

.header-cta { flex-shrink: 0; padding: 12px 20px; font-size: 15px; }

/* Auf dem Desktop sind Navigation und Button direkt Teil der Kopfzeile */
.menu { display: contents; }
.menu__contact { display: none; }

/* Nur auf dem Handy: Anruf-Symbol und Hamburger-Button */
.header-call, .menu-toggle {
  display: none; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center;
}
.header-call { margin-left: auto; background: var(--blue-light); color: var(--blue); }
.menu-toggle { position: relative; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
/* ☰ wird zu ✕ */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* 6. Abschnitte der Startseite ---------------------------------------------- */

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 84px; }
.hero__eyebrow { margin: 0 0 18px; font-size: 15px; letter-spacing: 0.08em; }
.hero__title {
  margin: 0 0 34px; text-wrap: balance;
  font-family: var(--serif); font-weight: 600; font-size: 43px; line-height: 1.12; letter-spacing: -0.02em;
}
.hero__subtitle { margin: 0 0 20px; font-size: 26px; font-weight: 700; }
.hero__list { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__list li { display: flex; align-items: center; gap: 14px; font-size: 19px; line-height: 1.35; }
.hero__list li::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.hero__image { border-radius: 20px; aspect-ratio: 7 / 5; height: auto; }

/* Laufbänder (Rezensionen, Räume) */
.carousel { position: relative; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-behavior: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.94); color: var(--blue);
  font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(26, 35, 64, 0.1);
}
.carousel__btn:hover { border-color: var(--blue); background: var(--blue-light); }
.carousel__btn--prev { left: 6px; }
.carousel__btn--next { right: 6px; }
/* Anhalten/Weiterlaufen – bleibt auch auf dem Handy sichtbar */
.carousel__toggle {
  display: flex; align-items: center; justify-content: center; margin: 14px auto 0;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--blue);
  cursor: pointer; box-shadow: 0 2px 10px rgba(26, 35, 64, 0.1);
}
.carousel__toggle:hover { border-color: var(--blue); background: var(--blue-light); }
.carousel__toggle[hidden] { display: none; }

/* Rezensionen */
.reviews { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.reviews .carousel__track { gap: 14px; padding-bottom: 4px; }
.review { flex: 0 0 auto; width: 290px; margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.review__stars { margin-bottom: 8px; color: var(--gold); font-size: 12px; letter-spacing: 0.25em; }
.review__stars-off { color: #d5dcec; }
.review blockquote { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.review figcaption { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.review__initial {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #dde3f0; color: var(--blue); font-size: 12px; font-weight: 700;
}
.reviews__summary { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--grey); }
.reviews__summary a { font-weight: 600; }

/* Blaues Info-Band */
.info-band { background: var(--blue); color: #fff; padding: 26px 0; }
.info-band .container { display: flex; flex-wrap: wrap; gap: 14px 48px; align-items: center; justify-content: space-between; font-size: 17px; }
.info-band strong { font-weight: 600; }
.info-band span { opacity: 0.85; }

/* Leistungen */
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; flex-wrap: wrap; }
.services__head .section-title { margin: 0; max-width: 16em; }
.services__intro { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--muted); }
.services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.service:hover { border-color: #b9c5e4; }
.service h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.service abbr { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; text-decoration: none; }
.service p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* Trainingstherapie */
.training { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.training .lead { margin-bottom: 20px; line-height: 1.65; }
.training .contact-card__value { font-size: 18px; }
.training__media { display: flex; flex-direction: column; gap: 22px; }
.training__image { border-radius: 18px; aspect-ratio: 16 / 10; height: auto; }
.training__card { background: #fff; border: 1px solid #dfe4f0; border-radius: 18px; padding: 30px 28px; }
.training__card h3 { margin: 0 0 14px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.training__card p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.training__card p:last-child { margin: 0; font-weight: 600; color: var(--ink); }

/* Über uns */
.about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 60px; }
.about__portrait { margin: 0; }
.about__portrait img { border-radius: 18px; aspect-ratio: 3 / 4; height: auto; margin-bottom: 18px; }
.about__name { margin: 0; font-size: 19px; font-weight: 700; }
.about__role { margin: 2px 0 0; font-size: 16px; color: var(--grey); }
.about .lead:last-child { margin-bottom: 0; }

.rooms { margin-top: 72px; }
.rooms__title { margin: 0 0 12px; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.rooms .lead { max-width: 60ch; margin-bottom: 24px; }
.rooms .carousel { max-width: 1240px; margin: 0 auto; }
.rooms .carousel__track { gap: 16px; padding: 0 32px 6px; }
.room { position: relative; flex: 0 0 auto; width: 340px; margin: 0; }
.room img { border-radius: 16px; aspect-ratio: 4 / 3; height: auto; }
.room figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255, 255, 255, 0.92); color: var(--text);
  padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 600;
}

/* Standort */
.location { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.location .section-title { margin-bottom: 22px; }
.location .lead { margin-bottom: 28px; }
.facts { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.fact dt { margin: 0 0 3px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); }
.fact dd { margin: 0; font-size: 18px; font-weight: 600; }
.fact address { font-style: normal; }
.hours { border-collapse: collapse; width: 100%; max-width: 320px; margin-top: 4px; font-size: 16px; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 600; padding: 3px 16px 3px 0; }
.hours td { font-weight: 400; color: var(--text); padding: 3px 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blue); font-weight: 700; }

.map { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 11; border: 1px solid #dfe4f0; background: #e7ebf5; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 28px; text-align: center; background: linear-gradient(135deg, #eef1f8, #e2e7f3);
}
.legal__loading { color: var(--label); }
.map__consent svg { flex-shrink: 0; } /* sonst schrumpft das Symbol auf schmalen Bildschirmen */
.map__consent p { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.map__consent a { font-weight: 600; font-size: 14.5px; }
.map__consent .btn { padding: 12px 22px; font-size: 15px; }

/* Team */
.team__intro { max-width: 46em; margin-bottom: 44px; }
/* Feste Spaltenzahl je Bildschirmbreite; eine unvollständige letzte Reihe wird mittig
   ausgerichtet (flex + justify-content), statt dass einzelne Karten links allein stehen. */
.team__grid { --cols: 5; --gap: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.member { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.member img { border-radius: 16px; aspect-ratio: 4 / 5; height: auto; object-position: center top; margin-bottom: 14px; }
.member__name { margin: 0; font-size: 18px; font-weight: 700; }
.member__role { margin: 3px 0 0; font-size: 15px; color: var(--grey); }


/* 7. Kontaktformular -------------------------------------------------------- */

.contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.contact .section-title { margin-bottom: 22px; }
.contact .lead { margin-bottom: 30px; }
.contact__direct { display: flex; flex-direction: column; gap: 10px; font-size: 18px; font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
.field--spaced { margin-bottom: 24px; }
.field input, .field textarea {
  border: 1px solid var(--line-strong); border-radius: 11px; padding: 13px 14px;
  font-size: 16px; font-weight: 400; background: var(--field);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

/* Pflichtfelder (*) und optionale Felder */
.req { color: #c81e1e; font-weight: 700; }
.opt { font-weight: 400; color: var(--grey); }
.form__note { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Spam-Schutz: für Besucher unsichtbar, Bots füllen es aus */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choices { margin: 22px 0 24px; padding: 0; border: 0; }
.choices legend { margin: 0 0 12px; padding: 0; font-size: 14px; font-weight: 600; }
.choices__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--field); border-radius: 13px; padding: 15px 16px;
  font-size: 15.5px; font-weight: 600; line-height: 1.3;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__dot { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c2cbe0; background: #fff; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.choice input:checked + .choice__dot { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 5px, #fff 6px 100%); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.upload { margin-bottom: 24px; }
.upload__label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.upload__box {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed #c2cbe0; border-radius: 13px; padding: 14px 16px; background: var(--field);
}
.upload.has-file .upload__box { border-color: var(--blue); }
.upload__pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.upload__pick input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload__pick:has(input:focus-visible) .upload__button { outline: 3px solid var(--blue); outline-offset: 2px; }
.upload__button { flex-shrink: 0; background: var(--blue-light); color: var(--blue); border-radius: 999px; padding: 8px 14px; font-size: 14.5px; font-weight: 600; }
.upload__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; color: var(--muted); }
.upload__remove { flex-shrink: 0; background: none; border: none; padding: 4px 6px; font-size: 14.5px; font-weight: 600; color: var(--error); cursor: pointer; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: 14.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.consent a { font-weight: 600; }

.form__success:empty { display: none; }
.form__success {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 11px;
  background: #eef7f1; border: 1px solid #bfdfca; color: #1d6b3c; font-size: 15px; line-height: 1.5; font-weight: 600;
}
.form__error {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 11px;
  background: #fdf0f0; border: 1px solid #f0c9c9; color: var(--error); font-size: 15px; line-height: 1.5;
}
.form__submit { width: 100%; padding: 17px; font-size: 17px; }
.form__submit:disabled { opacity: 0.7; cursor: wait; }


/* 8. FAQ -------------------------------------------------------------------- */

.faq { max-width: 964px; } /* 900px Inhalt + Innenabstand */
.faq .section-title { margin-bottom: 40px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; font-size: 24px; font-weight: 400; color: var(--blue);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 24px; max-width: 60ch; font-size: 17px; line-height: 1.7; color: var(--muted); }


/* 9. Fußbereich ------------------------------------------------------------- */

.site-footer { background: var(--navy); color: #e7eaf6; padding: 66px 0 34px; }
.site-footer a { color: #e7eaf6; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.site-footer .logo { margin-bottom: 16px; }
.site-footer .logo__pro { color: #8fa5e0; }
.site-footer .logo__physio { color: #fff; }
.footer__address { margin: 0; font-size: 16px; line-height: 1.7; opacity: 0.8; font-style: normal; }
.footer__heading { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.footer__links { display: flex; flex-direction: column; gap: 9px; font-size: 16px; }
.footer__heading--spaced { margin-top: 28px; }
.footer__hours table { border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.footer__hours th { text-align: left; font-weight: 600; padding: 2px 18px 2px 0; }
.footer__hours td { padding: 2px 0; opacity: 0.85; }
.footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; opacity: 0.6; }


/* 10. Impressum/Datenschutz ------------------------------------------------- */

/* Einzelseiten (impressum.html, datenschutz.html, 404.html) */
.page-header { background: #fff; border-bottom: 1px solid var(--line); }
.page-header .container { max-width: 860px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.page-header .logo { font-size: 26px; }
.page-header__back { font-weight: 600; }
.page-main { max-width: 860px; margin: 0 auto; padding: 64px 32px 96px; }
.page-footer { background: var(--navy); color: #e7eaf6; padding: 28px 0; font-size: 15px; }
.page-footer .container { max-width: 860px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.page-footer a { color: #e7eaf6; }

/* Textinhalt – gilt auf den Einzelseiten und im Popup */
.legal { font-size: 17px; line-height: 1.7; }
.legal h1 { margin: 0 0 36px; font-family: var(--serif); font-weight: 600; font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; }
.legal h2 { margin: 44px 0 12px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.25; }
.legal h3 { margin: 28px 0 8px; font-size: 18px; }
.legal p, .legal ul { margin: 0 0 14px; color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { font-weight: 600; }
.legal .todo { background: #fff3bf; color: #6b4e00; padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.legal .note { background: #fff8db; border: 1px solid #f1dc8b; border-radius: 12px; padding: 14px 18px; color: #6b4e00; }

/* Popup auf der Startseite (natives <dialog>-Element) */
.legal-dialog {
  width: min(820px, calc(100% - 48px)); max-height: calc(100% - 48px);
  padding: 0; border: none; border-radius: 20px; background: var(--bg); color: var(--ink);
  box-shadow: 0 24px 64px rgba(20, 34, 74, 0.35); overflow: hidden;
}
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog::backdrop { background: rgba(20, 34, 74, 0.55); }
.legal-dialog__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px 14px 28px; background: #fff; border-bottom: 1px solid var(--line);
}
.legal-dialog__bar a { font-size: 14.5px; font-weight: 600; }
.legal-dialog__close {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.legal-dialog__close:hover { border-color: var(--blue); color: var(--blue); }
.legal-dialog .legal { overflow-y: auto; overscroll-behavior: contain; padding: 36px 40px 44px; }
.legal-dialog .legal h1 { font-size: 38px; margin-bottom: 30px; }
html.dialog-open { overflow: hidden; }


/* 11. Responsive Anpassungen ------------------------------------------------ */

@media (max-width: 1100px) {
  .team__grid { --cols: 3; }
  .two-col, .hero { grid-template-columns: minmax(0, 1fr) !important; gap: 44px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Ab hier Hamburger-Menü statt ausgeschriebener Navigation */
@media (max-width: 1000px) {
  .topbar { display: none; }
  .mainbar { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .header-call, .menu-toggle { display: flex; }

  /* Aufklappendes Menü unterhalb der Kopfzeile, über dem Seiteninhalt */
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 34, 74, 0.14);
    padding: 6px 24px 22px;
  }
  .site-header.menu-open .menu { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; white-space: normal; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a.is-active { box-shadow: none; }
  .header-cta { display: block; margin: 18px 0 0; padding: 14px 20px; text-align: center; font-size: 16px; }
  .menu__contact { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 600; }
}

@media (max-width: 760px) {
  .team__grid { --cols: 2; }
}

@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 34px; }
  .hero { padding-top: 28px; padding-bottom: 56px; }
  .hero__title { font-size: 38px; }
  .hero__subtitle { font-size: 22px; }
  .hero__list li { font-size: 17px; }
  /* Handy: Teamfoto zuerst (etwas flacher), damit der erste Bildschirm nicht nur Text ist */
  .hero { gap: 28px; }
  .hero__image { order: -1; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; border-radius: 16px; }
  .logo { font-size: 28px; }
  .menu { padding: 6px 16px 22px; }
  .contact-card { padding: 14px 18px; }
  .contact-card__value { font-size: 17px; }
  .carousel__track { -webkit-mask-image: none; mask-image: none; }
  .carousel__btn { display: none; }
  .rooms .carousel__track { padding: 0 16px 6px; }
  .room { width: 280px; }
  .form { padding: 24px 18px; }
  .form__grid, .choices__grid { grid-template-columns: minmax(0, 1fr); }
  .upload__name { white-space: normal; overflow-wrap: anywhere; }
  .team__grid { --cols: 2; --gap: 16px; }
  .member__name { font-size: 16px; }
  .member__role { font-size: 14px; }
  .faq summary { font-size: 17px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-main { padding: 44px 16px 72px; }
  .legal h1 { font-size: 34px; }
  .legal-dialog { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .legal-dialog .legal { padding: 26px 18px 40px; }
  .legal-dialog .legal h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}
