/* =====================================================================
   Stylesheet – Physiotherapie am Lindenplatz
   ---------------------------------------------------------------------
   Farben und Schriftgrößen stehen ganz oben (":root").
   Wer nur Farben oder Größen ändern möchte, muss nur dort etwas anpassen.
   Keine externen Dateien: Die Schrift liegt im Ordner /fonts.
   ===================================================================== */

/* ---------- Schrift (lokal eingebunden, kein Google Fonts) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;          /* variable Schrift: alle Stärken in einer Datei */
  font-style: normal;
  font-display: swap;            /* Text sofort zeigen, Schrift nachladen */
}

/* ---------- Farben und Größen: hier anpassen ---------- */
:root {
  --farbe-text: #1c2326;         /* Fließtext – fast Schwarz, Kontrast > 15:1 */
  --farbe-text-leise: #3f4a4f;   /* Nebentexte – Kontrast > 8:1 */
  --farbe-grund: #fbfaf7;        /* Seitenhintergrund – warmes Weiß */
  --farbe-flaeche: #f1eee7;      /* abgesetzte Bereiche */
  --farbe-akzent: #1e5160;       /* Petrol – Buttons, Links, Überschriften */
  --farbe-akzent-dunkel: #153b46;
  --farbe-linie: #d9d4c8;
  --farbe-fehler: #8f1d1d;

  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --groesse-basis: 1.1875rem;    /* 19 px Fließtext */
  --zeilenhoehe: 1.65;
  --textbreite: 68ch;            /* angenehme Zeilenlänge */
  --seitenbreite: 72rem;
  --rundung: 10px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: var(--groesse-basis);
  line-height: var(--zeilenhoehe);
  color: var(--farbe-text);
  background: var(--farbe-grund);
  font-feature-settings: "cv11", "ss01";   /* gut unterscheidbare Ziffern */
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.25; color: var(--farbe-akzent-dunkel); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); font-weight: 680; }
h3 { font-size: 1.3rem; font-weight: 650; }
p, ul, ol { margin: 0 0 1em; max-width: var(--textbreite); }

a { color: var(--farbe-akzent); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--farbe-akzent-dunkel); text-decoration-thickness: 2.5px; }

/* Gut sichtbarer Tastatur-Fokus */
:focus-visible { outline: 3px solid #c77d1a; outline-offset: 3px; border-radius: 4px; }

.huelle { width: 100%; max-width: var(--seitenbreite); margin: 0 auto; padding: 0 1.25rem; }

/* Link „Zum Inhalt springen“ für Tastatur und Screenreader */
.sprunglink { position: absolute; left: -9999px; }
.sprunglink:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; padding: 0.5rem 1rem; }

/* ---------- Kopfbereich mit Navigation ---------- */
.kopf { background: #fff; border-bottom: 1px solid var(--farbe-linie); }
.kopf .huelle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--farbe-akzent-dunkel); }
.logo:hover { color: var(--farbe-akzent-dunkel); }
.logo-zeichen { width: 2.6rem; height: 2.6rem; flex: none; }
.logo-name { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.logo-name small { display: block; font-weight: 450; font-size: 0.9rem; color: var(--farbe-text-leise); }

.navi ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; }
.navi a { display: inline-block; padding: 0.4rem 0; text-decoration: none; font-weight: 550; color: var(--farbe-text); }
.navi a:hover, .navi a[aria-current="page"] { color: var(--farbe-akzent); text-decoration: underline; }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-block; padding: 0.85rem 1.5rem; min-height: 3rem;
  border-radius: var(--rundung); border: 2px solid var(--farbe-akzent);
  background: var(--farbe-akzent); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; line-height: 1.3;
}
.knopf:hover { background: var(--farbe-akzent-dunkel); border-color: var(--farbe-akzent-dunkel); color: #fff; }
.knopf-hell { background: transparent; color: var(--farbe-akzent); }
.knopf-hell:hover { background: var(--farbe-flaeche); color: var(--farbe-akzent-dunkel); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.abschnitt-flaeche { background: var(--farbe-flaeche); }
.einleitung { font-size: 1.25rem; color: var(--farbe-text-leise); }

/* Startbereich */
.start { padding: clamp(3rem, 2rem + 5vw, 6rem) 0; background: linear-gradient(180deg, #fff 0%, var(--farbe-grund) 100%); }
.start-raster { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .start-raster { grid-template-columns: 1.4fr 1fr; } }
.start .knoepfe { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.hinweiskarte { background: #fff; border: 1px solid var(--farbe-linie); border-radius: var(--rundung); padding: 1.5rem 1.75rem; }
.hinweiskarte h2 { font-size: 1.25rem; }
.hinweiskarte ul { padding-left: 1.2rem; margin-bottom: 0; }
.hinweiskarte li { margin-bottom: 0.35rem; }

/* Karten-Raster für Leistungen */
.karten { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 2rem; }
.karte { background: #fff; border: 1px solid var(--farbe-linie); border-radius: var(--rundung); padding: 1.5rem; }
.karte p { margin: 0; color: var(--farbe-text-leise); }

/* Zwei Spalten (Text + Fakten) */
.zweispaltig { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .zweispaltig { grid-template-columns: 1.3fr 1fr; } }
.fakten { list-style: none; padding: 0; margin: 0; }
.fakten li { padding: 0.9rem 0; border-bottom: 1px solid var(--farbe-linie); }
.fakten strong { display: block; color: var(--farbe-akzent-dunkel); }

/* Ablauf in Schritten */
.schritte { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); max-width: none; counter-reset: schritt; }
.schritte li { counter-increment: schritt; background: #fff; border-radius: var(--rundung); padding: 1.5rem; border: 1px solid var(--farbe-linie); }
.schritte li::before { content: counter(schritt); display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--farbe-akzent); color: #fff; font-weight: 700; margin-bottom: 0.75rem; }

/* Öffnungszeiten-Tabelle */
.zeiten { border-collapse: collapse; width: 100%; max-width: 30rem; }
.zeiten th, .zeiten td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--farbe-linie); }
.zeiten th { font-weight: 600; padding-right: 1.5rem; }

/* ---------- Kontaktformular ---------- */
.formular { display: grid; gap: 1.35rem; max-width: 40rem; }
.feld label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.feld .pflicht { color: var(--farbe-fehler); }
.feld input, .feld textarea {
  width: 100%; font: inherit; color: var(--farbe-text); background: #fff;
  border: 2px solid #8a9599; border-radius: 8px; padding: 0.75rem 0.9rem; min-height: 3.2rem;
}
.feld textarea { min-height: 11rem; resize: vertical; }
.feld input:focus, .feld textarea:focus { border-color: var(--farbe-akzent); outline: 3px solid rgba(30, 81, 96, 0.25); outline-offset: 0; }
.feld .hilfe { font-size: 1rem; color: var(--farbe-text-leise); margin: 0.35rem 0 0; }

.einwilligung { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; background: var(--farbe-flaeche); padding: 1rem 1.15rem; border-radius: 8px; }
.einwilligung input { width: 1.6rem; height: 1.6rem; margin: 0.15rem 0 0; accent-color: var(--farbe-akzent); }
.einwilligung label { font-size: 1.05rem; }

/* Honeypot-Feld: für Menschen unsichtbar, Spam-Bots füllen es aus */
.hp-feld { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.meldung { border-radius: var(--rundung); padding: 1.25rem 1.5rem; border: 2px solid var(--farbe-akzent); background: #fff; }
.meldung-fehler { border-color: var(--farbe-fehler); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.rechtstext h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.rechtstext address { font-style: normal; margin-bottom: 1em; }

/* ---------- Fußbereich ---------- */
.fuss { background: var(--farbe-akzent-dunkel); color: #eef3f4; padding: 3rem 0 2rem; margin-top: 0; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.fuss h2 { color: #fff; font-size: 1.1rem; margin-bottom: 0.6rem; }
.fuss p, .fuss ul { font-size: 1.05rem; }
.fuss ul { list-style: none; padding: 0; }
.fuss li { margin-bottom: 0.35rem; }
.fuss-unten { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 2rem; padding-top: 1.25rem; font-size: 1rem; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 600px) {
  :root { --groesse-basis: 1.125rem; }   /* 18 px auf dem Handy */
  .knopf { width: 100%; text-align: center; }
}

/* ---------- Druckansicht ---------- */
@media print {
  .navi, .knoepfe, .sandbox-leiste, .fuss { display: none; }
  body { background: #fff; }
}
