/* ============================================================
   Physiotherapie Sandra Heller – Stettfurt
   Version 1 – Statische Website
   ------------------------------------------------------------
   Aufbau:
   1. Grundlagen (Variablen, Reset, Typografie)
   2. Layout-Helfer (Container, Abstände)
   3. Header & Navigation
   4. Hero
   5. Sektionen & Komponenten (Karten, Timeline, Boxen)
   6. Praxis-Galerie
   7. Kontakt & Karte
   8. Footer
   9. Animationen
   10. Responsive Anpassungen
   ============================================================ */

/* Webfont für Überschriften (nicht auf allen Systemen vorinstalliert) */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700&display=swap");

/* ---------- 1. Grundlagen ---------- */
:root {
    /* Farbkonzept v2: dunkles Blaugrau (passend zur bestehenden Live-Seite) */
    --farbe-creme:   #2B2F36;   /* Haupt-Hintergrundfarbe der Seite */
    --farbe-weiss:   #343B45;   /* Karten und Boxen (helleres Blaugrau als Fläche auf dunklem Grund) */
    --farbe-salbei:  #67836F;   /* Primärfarbe (Salbeigrün) - unverändert */
    --farbe-salbei-dunkel: #7DA087; /* Hover-Zustand, aufgehellt für Lesbarkeit auf dunklem Grund */
    --farbe-salbei-hell: rgba(103, 131, 111, 0.18);   /* Zarte Flächen auf dunklem Grund */
    --farbe-sand:    #EDE4D6;   /* Sandfarbene Akzente - unverändert */
    --farbe-dunkel:  #2B342E;   /* nicht mehr verwendet – Footer/CTA nutzen jetzt --farbe-weiss */
    --farbe-text:    #FFFFFF;   /* Haupttext-/Überschriftenfarbe auf dunklem Grund */
    --farbe-grau:    #A9AFB6;   /* Sekundärtext, aufgehellt für Lesbarkeit auf dunklem Grund */
    --farbe-linie:   rgba(255, 255, 255, 0.12);   /* Trennlinien auf dunklem Grund */

    /* Typografie v2: Open Sans Condensed für Überschriften, serifenlos für Fließtext */
    --schrift-titel: "Open Sans Condensed", "Arial Narrow", sans-serif;
    --schrift-text:  "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Wiederkehrende Werte */
    --radius: 16px;
    --schatten: 0 10px 30px rgba(0, 0, 0, 0.28);
    --uebergang: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--schrift-text);
    color: var(--farbe-text);
    background: var(--farbe-creme);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--schrift-titel);
    font-weight: 300;
    line-height: 1.25;
    color: var(--farbe-text);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p { color: var(--farbe-grau); }

/* height:auto ist wichtig: Die width/height-Attribute im HTML dienen nur
   der Platzreservierung - beim Skalieren muss die Hoehe mitwachsen,
   sonst wird das Bild verzerrt. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--farbe-salbei-dunkel); }

/* ---------- 2. Layout-Helfer ---------- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.sektion { padding: 88px 0; }
.sektion--weiss { background: var(--farbe-weiss); }
.sektion--hell  { background: var(--farbe-salbei-hell); }

/* Kleine Überzeile über Abschnittstiteln */
.ueberzeile {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--farbe-salbei);
    margin-bottom: 10px;
}

/* Zentrierter Einleitungstext einer Sektion */
.sektion-intro { max-width: 700px; }
.sektion-intro--mittig { margin: 0 auto 48px; text-align: center; }

/* ---------- 3. Header & Navigation ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(43, 47, 54, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--farbe-linie);
}

.header__inhalt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}

/* Wort-Logo */
.logo {
    font-family: var(--schrift-titel);
    font-size: 1.25rem;
    color: var(--farbe-text);
    text-decoration: none;
    line-height: 1.2;
}
.logo span {
    display: block;
    font-family: var(--schrift-text);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--farbe-salbei);
}

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

.nav a {
    text-decoration: none;
    color: var(--farbe-grau);
    font-size: 0.95rem;
    transition: var(--uebergang);
}
.nav a:hover { color: var(--farbe-text); }
.nav a.aktiv { color: var(--farbe-text); font-weight: 600; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--uebergang);
    border: 1.5px solid transparent;
}
.btn--voll {
    background: var(--farbe-salbei);
    color: #fff !important;
}
.btn--voll:hover {
    background: var(--farbe-salbei-dunkel);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 103, 86, 0.25);
}
.btn--rahmen {
    border-color: var(--farbe-salbei);
    color: var(--farbe-salbei-dunkel);
}
.btn--rahmen:hover {
    background: var(--farbe-salbei-hell);
    transform: translateY(-2px);
}

/* Mobile Navigation (Burger) */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--farbe-text);
    margin: 5px 0;
    transition: var(--uebergang);
}

/* ---------- 4. Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }

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

.hero h1 { margin: 14px 0 20px; }
.hero h1 em {
    font-style: italic;
    color: var(--farbe-salbei-dunkel);
}

.hero__text { font-size: 1.12rem; max-width: 500px; }

.hero__aktionen { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* Häkchen-Punkte unter dem Hero-Text */
.hero__punkte {
    display: flex;
    gap: 26px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero__punkte li {
    list-style: none;
    font-size: 0.92rem;
    color: var(--farbe-grau);
}
.hero__punkte li::before {
    content: "✓";
    color: var(--farbe-salbei);
    font-weight: 700;
    margin-right: 8px;
}

/* Bildbereich mit dekorativem Rahmen */
.hero__bild { position: relative; }
.hero__bild img {
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.hero__bild::before {
    /* Dunkle Fläche versetzt hinter dem Bild, passend zum restlichen Dark-Theme */
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    background: var(--farbe-weiss);
    border-radius: var(--radius);
    z-index: -1;
}

/* ---------- 5. Sektionen & Komponenten ---------- */

/* Karten-Raster (Angebot) */
.karten {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.karte {
    background: var(--farbe-weiss);
    border: 1px solid var(--farbe-linie);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: var(--uebergang);
}
.karte:hover {
    transform: translateY(-6px);
    box-shadow: var(--schatten);
    border-color: transparent;
}
.karte__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--farbe-salbei-hell);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.karte p { font-size: 0.95rem; }

/* Ablauf-Timeline */
.ablauf {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    padding-left: 8px;
}
.ablauf__schritt {
    display: flex;
    gap: 22px;
    position: relative;
    padding-bottom: 36px;
}
/* Vertikale Linie zwischen den Schritten */
.ablauf__schritt:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 46px;
    bottom: 2px;
    width: 2px;
    background: var(--farbe-linie);
}
.ablauf__nummer {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--farbe-salbei);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--schrift-titel);
    font-size: 1.05rem;
}
.ablauf__schritt p { font-size: 0.95rem; }

/* Zweispaltiges Layout (Text + Bild) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split__bild img {
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    width: 100%;
    max-width: 420px;
}

/* Infoboxen (Kosten, Terminabsage) */
.boxen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 880px;
    margin: 0 auto;
}
.box {
    background: var(--farbe-weiss);
    border: 1px solid var(--farbe-linie);
    border-radius: var(--radius);
    padding: 32px;
}
.box--akzent { background: var(--farbe-salbei-hell); border-color: transparent; }
.box ul { list-style: none; margin-top: 12px; }
.box li {
    padding: 6px 0;
    color: var(--farbe-grau);
    font-size: 0.97rem;
}
.box li::before {
    content: "✓";
    color: var(--farbe-salbei);
    font-weight: 700;
    margin-right: 10px;
}
.box p { font-size: 0.97rem; margin-top: 10px; }

/* Auflistung mit Häkchen (Angebotsseite) */
.merkliste { list-style: none; margin: 18px 0; }
.merkliste li {
    padding: 8px 0 8px 34px;
    position: relative;
    color: var(--farbe-grau);
}
.merkliste li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--farbe-salbei-hell);
    color: var(--farbe-salbei-dunkel);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zeitleiste Lebenslauf (Über mich) */
.vita { margin-top: 20px; }
.vita__eintrag {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--farbe-linie);
}
.vita__eintrag:last-child { border-bottom: none; }
.vita__zeit {
    font-weight: 600;
    color: var(--farbe-salbei-dunkel);
    font-size: 0.95rem;
    white-space: nowrap;
}
.vita__eintrag p { font-size: 0.98rem; }

/* Schlagworte (Fortbildungen) */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tags span {
    background: var(--farbe-weiss);
    border: 1px solid var(--farbe-linie);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.9rem;
    color: var(--farbe-grau);
}

/* Zitat-Hervorhebung */
.zitat {
    font-family: var(--schrift-titel);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--farbe-salbei-dunkel);
    border-left: 3px solid var(--farbe-salbei);
    padding-left: 22px;
    margin: 28px 0;
}

/* Abschluss-Banner mit Termin-Aufruf */
.cta {
    background: var(--farbe-weiss);
    border-radius: calc(var(--radius) + 8px);
    padding: 64px 40px;
    text-align: center;
    color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 0 auto 28px; }
.cta .btn--voll {
    background: #fff;
    color: var(--farbe-salbei-dunkel) !important;
}
.cta .btn--voll:hover { background: var(--farbe-creme); }

/* ---------- 6. Praxis-Galerie ---------- */
.galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.galerie figure {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten);
}
.galerie img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.galerie figure:hover img { transform: scale(1.04); }
.galerie figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 22px 16px;
    background: linear-gradient(transparent, rgba(43, 52, 46, 0.65));
    color: #fff;
    font-size: 0.95rem;
}

/* ---------- 7. Kontakt & Karte ---------- */
.kontakt__raster {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: stretch;
}
.kontakt__liste { list-style: none; margin-top: 22px; }
.kontakt__liste li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
}
.kontakt__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--farbe-salbei-hell);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.kontakt__liste strong { display: block; font-size: 0.95rem; }
.kontakt__liste a, .kontakt__liste span.wert {
    color: var(--farbe-grau);
    font-size: 0.97rem;
    text-decoration: none;
}
.kontakt__liste a:hover { color: var(--farbe-salbei-dunkel); }

/* Datenschutzfreundliche Karte: wird erst nach Klick geladen */
.karte-lader {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--farbe-sand);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.karte-lader iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.karte-lader__hinweis { max-width: 360px; }
.karte-lader__hinweis p { font-size: 0.9rem; margin: 12px 0 18px; }

/* ---------- 8. Footer ---------- */
.footer {
    background: var(--farbe-weiss);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 28px;
    font-size: 0.93rem;
}
.footer__raster {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--uebergang);
}
.footer a:hover { color: #fff; }
.footer ul { list-style: none; }
.footer li { padding: 4px 0; }
.footer__unten {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- 9. Animationen ---------- */
/* Elemente mit .anim werden per JavaScript sanft eingeblendet.
   Wichtig: Nur wenn JavaScript aktiv ist (html.js), werden sie
   zunächst versteckt – ohne JavaScript bleibt alles sichtbar. */
html.js .anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .anim.sichtbar {
    opacity: 1;
    transform: translateY(0);
}
/* Gestaffelte Verzögerung für Kartenraster */
.anim:nth-child(2) { transition-delay: 0.1s; }
.anim:nth-child(3) { transition-delay: 0.2s; }
.anim:nth-child(4) { transition-delay: 0.3s; }

/* Nutzer mit reduzierter Bewegung: Animationen abschalten */
@media (prefers-reduced-motion: reduce) {
    html.js .anim { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 10. Responsive Anpassungen ---------- */
@media (max-width: 900px) {
    .karten { grid-template-columns: repeat(2, 1fr); }
    .hero__raster, .split, .kontakt__raster { grid-template-columns: 1fr; gap: 44px; }
    .hero__bild { order: -1; }
    .hero__bild::before { display: none; }
    .split__bild { order: -1; }
    .footer__raster { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
    .sektion { padding: 64px 0; }

    /* Navigation wird zum ausklappbaren Menü */
    .burger { display: block; }
    .nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--farbe-creme);
        border-bottom: 1px solid var(--farbe-linie);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px 28px;
        gap: 18px;
        display: none;
    }
    .nav.offen { display: flex; }

    .karten, .boxen, .galerie { grid-template-columns: 1fr; }
    .vita__eintrag { grid-template-columns: 1fr; gap: 2px; }
    .cta { padding: 48px 24px; }
}
