/* =========================================================
   Physiotherapie Alissa – Stylesheet
   ---------------------------------------------------------
   Farben & Schriften zentral hier oben (":root").
   Änderungen an diesen Variablen wirken auf die ganze Seite.
   ========================================================= */

/* ---------- Schriften (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Variable.ttf") format("truetype");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- Design-Variablen ---------- */
:root {
  /* CI-Farben */
  --ci-1: #B3C7C1;
  --ci-2: #B6CAC1;

  /* Hellere Abstufungen der CI-Farbe (für Flächen) */
  --sage-50:  #F4F8F6;
  --sage-100: #E8F0EC;
  --sage-200: #D5E2DC;

  /* Dunklere Abstufungen (für Text, Links, Buttons – gut lesbar) */
  --sage-700: #4A6660;
  --sage-800: #3F5952;

  /* Text */
  --ink:   #2B3532;
  --muted: #5B6B66;
  --white: #FFFFFF;

  /* Grau aus dem Logo */
  --logo-grey: #C0C0C0;

  /* Schriften */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  /* Maße */
  --maxw: 1120px;
  --radius: 14px;
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: .18em; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
h3 { font-size: 1.05rem; font-weight: 400; letter-spacing: .12em; }

p { margin: 0 0 1.1rem; }
ul { padding-left: 1.2rem; }

a { color: var(--sage-700); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--sage-800); }

:focus-visible {
  outline: 3px solid var(--sage-700);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow    { width: min(100% - 2.5rem, 760px);      margin-inline: auto; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--sage-700);
  margin-bottom: .75rem;
  display: block;
}

.lead { font-size: 1.2rem; color: var(--muted); }

/* Kleine Trennlinie unter Überschriften */
.rule::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--ci-1);
  margin-top: 1rem;
}
.center { text-align: center; }
.center.rule::after, .center .rule::after { margin-inline: auto; }

/* Sprunglink für Tastatur-/Screenreader-Nutzer */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--sage-800); color: var(--white);
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  background: var(--sage-700);
  color: var(--white);
  border: 1px solid var(--sage-700);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--sage-800); color: var(--white); }
.btn--ghost { background: transparent; color: var(--sage-800); border-color: var(--sage-700); }
.btn--ghost:hover { background: var(--sage-700); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--sage-100);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .9rem;
}
.brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-head); font-weight: 400;
  text-transform: uppercase; letter-spacing: .22em; font-size: 1rem;
}
.brand-sub {
  font-family: var(--font-head); font-weight: 300;
  text-transform: uppercase; letter-spacing: .3em; font-size: .68rem;
  color: var(--muted);
}

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.6rem;
}
.main-nav a {
  font-family: var(--font-head); font-size: .78rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .16em;
  text-decoration: none; color: var(--ink);
  padding-block: .4rem; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--sage-700); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--ci-1); color: var(--sage-800); }

/* Mobile Navigation: funktioniert ohne JavaScript (details/summary) */
.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-head); font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .55rem 1rem; border: 1px solid var(--sage-200); border-radius: 999px;
  color: var(--sage-800);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--sage-50); }
.mobile-nav ul {
  list-style: none; margin: 0; padding: .75rem 1.25rem 1.25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--sage-100);
  box-shadow: 0 12px 24px rgba(43,53,50,.06);
}
.mobile-nav li a {
  display: block; padding: .8rem 0;
  border-bottom: 1px solid var(--sage-100);
  font-family: var(--font-head); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .16em;
  text-decoration: none; color: var(--ink);
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: var(--sage-700); }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
}

/* ---------- Abschnitte ---------- */
.section       { padding-block: var(--space); }
.section--tint { background: var(--sage-50); }
.section--soft { background: var(--sage-100); }
.section--ci   { background: var(--ci-2); }

.page-hero {
  background: linear-gradient(180deg, var(--sage-100) 0%, var(--sage-50) 100%);
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.page-hero p { max-width: 640px; margin-inline: auto; }

/* Startseite – großer Einstieg */
.hero {
  background: linear-gradient(135deg, var(--sage-50) 0%, var(--sage-100) 60%, var(--sage-200) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { margin-bottom: .5rem; }
.hero .subtitle {
  font-family: var(--font-head); font-weight: 300;
  text-transform: uppercase; letter-spacing: .3em;
  color: var(--muted); font-size: clamp(.85rem, 1.6vw, 1rem);
  margin-bottom: 1.6rem;
}
.hero-logo-bg {
  position: absolute; right: -6%; bottom: -12%; width: 46%;
  opacity: .14; pointer-events: none;
}

/* Zweispaltiges Raster */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--reverse > :first-child { order: 2; }

@media (max-width: 820px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* Karten */
.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(43,53,50,.03);
}
.section--tint .card, .section--soft .card { border-color: transparent; }
.card h3 { margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon-dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sage-100); margin-bottom: 1.2rem;
  display: grid; place-items: center;
}
.card .icon-dot::after {
  content: ""; width: 14px; height: 9px; border-radius: 50%;
  background: var(--ci-1); transform: rotate(-20deg);
}

/* Schritte (Kosten & Ablauf) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--white); border-radius: var(--radius);
  padding: 1.6rem 1.75rem 1.6rem 5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1.5rem; top: 1.5rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ci-1); color: var(--ink);
  font-family: var(--font-head); font-weight: 500;
}
.steps h3 { margin-bottom: .4rem; }
.steps p:last-child { margin-bottom: 0; }

/* Hinweis-Box */
.note {
  border-left: 3px solid var(--ci-1);
  background: var(--sage-50);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .98rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* Fakten-Liste (Kontakt etc.) */
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: .85rem 0; border-bottom: 1px solid var(--sage-200); }
.facts li:last-child { border-bottom: 0; }
.facts .label {
  display: block;
  font-family: var(--font-head); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
}

.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags li {
  font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--white); border: 1px solid var(--sage-200);
  padding: .4rem .9rem; border-radius: 999px;
}

/* ---------- Bild-Platzhalter ----------
   Ersetzen: <div class="placeholder ...">…</div>
   durch:    <img class="photo" src="img/dateiname.jpg" alt="Beschreibung" width="800" height="1000">
*/
.placeholder {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(160deg, var(--ci-2), var(--sage-200));
  display: grid; place-items: center; text-align: center;
  padding: 1.5rem;
  color: var(--sage-800);
  font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  aspect-ratio: 4 / 5;
}
.placeholder span { max-width: 26ch; line-height: 1.6; }
.placeholder--wide   { aspect-ratio: 16 / 10; }
.placeholder--square { aspect-ratio: 1 / 1; }
.placeholder--round  { aspect-ratio: 1 / 1; border-radius: 50%; max-width: 320px; margin-inline: auto; }

.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }

.gallery {
  display: grid; gap: 1.25rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- Aufruf-Bereich ---------- */
.cta { text-align: center; }
.cta p { max-width: 560px; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.15rem; margin-top: 2.5rem; }
.legal h3 { font-size: .95rem; margin-top: 1.6rem; }
.legal address { font-style: normal; }
.todo {
  background: #FFF4D6; padding: 0 .3em; border-radius: 3px;
  font-family: var(--font-head); font-size: .9em;
}

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--sage-800);
  color: #E8F0EC;
  padding-block: 3.5rem 2rem;
  font-size: .95rem;
}
.site-footer a { color: var(--white); }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}
.site-footer h2 {
  font-size: .8rem; font-weight: 500; letter-spacing: .22em;
  color: var(--white); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 40px; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom ul { display: flex; gap: 1.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .btn, .placeholder { display: none !important; }
  body { font-size: 11pt; }
}

/* ---------- Hilfsklassen ---------- */
.hero { position: relative; }
.split--top { align-items: start; }
.mt-0  { margin-top: 0 !important; }
.mt-15 { margin-top: 1.5rem; }
.mt-2  { margin-top: 2rem; }
.mt-25 { margin-top: 2.5rem; }
.small-lead { font-size: 1rem; margin-top: 1.5rem; }
.meta { font-size: .9rem; color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hero-inner { position: relative; z-index: 1; }
