/* ---------------------------------------------------------------
   Eliane Ledergerber — Craniosacral Therapie und Physiotherapie
   Winterthur. Ein einzelnes Stylesheet, kein Build-Schritt.
   --------------------------------------------------------------- */

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

:root {
    /* Farben — Salbei und Olive auf Creme */
    --bg: #F7F5EA;
    --band: #EDF0DF;
    --band-deep: #E4EAD1;
    --ink: #253216;
    --body: #4B5637;
    --body-strong: #464F33;
    --accent: #4C6329;
    --accent-light: #6C8531;
    /* Fuer 12px-Labels braucht es mehr Tiefe als das Salbei aus dem
       Entwurf: #8A9B62 kam nur auf 2.6:1 und faellt damit unter die
       Lesbarkeitsnorm von 4.5:1. */
    --muted: #5F6D45;
    --line: #DFE3CB;
    --dark: #2B3A1A;
    --pale: #B6C193;
    --pale-light: #C6D2A2;
    --leaf: #C3CFA0;
    --caption: #5C6844;

    /* Schriften */
    --display: "Cormorant Garamond", Georgia, serif;
    --sans: Jost, "Helvetica Neue", Arial, sans-serif;

    /* Fliessende Masse — skalieren zwischen Mobil und Desktop */
    --gutter: clamp(20px, 5vw, 80px);
    --space-section: clamp(56px, 7vw, 100px);
    --space-section-sm: clamp(48px, 5vw, 60px);
    --space-band: clamp(56px, 7vw, 90px);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

p { margin: 0 0 18px; text-wrap: pretty; }
img { max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 400;
    margin: 0;
    text-wrap: balance;
}

section[id] { scroll-margin-top: 24px; }

/* ---------- Bausteine ---------- */

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.caps {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 20px;
}

/* Zwischentitel wie "Angebot" oder "Ausbildung": stehen zwischen einem
   grossen Titel und Fliesstext und duerfen deshalb groesser sein als
   die kleinen Vorzeilen-Captions, die dieselbe .caps-Basis nutzen. */
.caps-title { font-size: clamp(16px, 1.6vw, 19px); letter-spacing: 0.14em; }

.h1 {
    font-size: clamp(38px, 8.2vw, 116px);
    line-height: 0.98;
    letter-spacing: -0.015em;
    margin: 0 0 34px;
    max-width: 940px;
}
.h1 em { font-style: italic; color: var(--accent-light); }

.h2 { font-size: clamp(31px, 4.3vw, 58px); line-height: 1.06; letter-spacing: -0.005em; }
.h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; }
.h4 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.25; }

.lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.6; color: var(--body); }
.prose { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.62; }
.small { font-size: 16px; color: var(--body); }
.note { color: var(--caption); font-size: 15px; margin: 14px 0 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 34px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-fill { background: var(--accent); color: var(--bg); }
.btn-fill:hover { background: var(--dark); color: var(--bg); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--pale); }
.btn-line:hover { background: var(--band); color: var(--ink); }
.btn-pale { background: var(--pale); color: var(--ink); }
.btn-pale:hover { background: var(--pale-light); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--bg); border-color: rgba(247, 245, 234, 0.4); }
.btn-ghost:hover { background: rgba(247, 245, 234, 0.12); color: var(--bg); }

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

.arch { border-radius: 14px / 3%; }
.media { width: 100%; object-fit: cover; display: block; }

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--caption);
}

/* ---------- Kopfzeile ---------- */

.site-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px var(--gutter);
}

.brand {
    font-family: var(--display);
    font-size: clamp(26px, 2.6vw, 32px);
    letter-spacing: 0.02em;
    color: var(--ink);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.site-nav a { color: var(--body); }
.site-nav a:hover { color: var(--accent); }

/* Hamburger — nur auf schmalen Bildschirmen und nur mit JavaScript
   sichtbar; ohne JavaScript bleibt die Navigation ausgeklappt. */
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover { background: var(--band); }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }

/* Offener Zustand: die drei Striche werden zum Kreuz. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

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

.hero {
    position: relative;
    /* Kein overflow:hidden mehr: der Glow darf nach oben in die
       Kopfzeile hineinreichen. Horizontal halten bereits html und body
       (overflow-x: hidden) die dekorativen Formen im Rahmen. */
    padding: clamp(30px, 5vw, 76px) 0 clamp(56px, 7vw, 104px);
}

.hero-glow {
    position: absolute;
    top: -60px;
    right: -120px;
    width: min(620px, 90vw);
    height: min(620px, 90vw);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--band) 0%, rgba(230, 235, 213, 0) 70%);
    pointer-events: none;
}

.hero-leaf {
    position: absolute;
    left: -30px;
    top: 120px;
    color: var(--leaf);
    opacity: 0.9;
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.hero .lead { max-width: 620px; margin: 0 0 44px; }
.hero .btn-row { margin-bottom: 52px; }
.hero .meta-row { padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Abschnitte ---------- */

.section { padding: var(--space-section) 0 clamp(48px, 6vw, 80px); }
.section-tight { padding: var(--space-section-sm) 0 var(--space-band); }
.section-band { background: var(--band); padding: var(--space-band) 0; }
.section-plain { padding: var(--space-band) 0; }

.band {
    background: linear-gradient(180deg, var(--band) 0%, var(--band-deep) 100%);
    padding: var(--space-band) 0;
}

.band-head { max-width: 720px; margin: 0 auto clamp(36px, 4vw, 54px); text-align: center; }

/* Raster */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px); }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--body); margin: 0; }
.pillar svg { margin-bottom: 14px; color: var(--accent); }

.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(32px, 5vw, 64px); }
.logo-row img { height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: opacity 0.2s ease, filter 0.2s ease; }
.logo-row a:hover img,
.logo-row a:focus-visible img { filter: grayscale(0); opacity: 1; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.two-col-wide { gap: clamp(32px, 5vw, 64px); }

/* Preistabellen: Zeilen (Titel, Text, Label, Tabelle, Hinweis) sollen
   spaltenuebergreifend auf gleicher Hoehe liegen, auch wenn die
   Beschreibungstexte unterschiedlich lang sind. */
#preise .two-col-wide { grid-template-rows: repeat(5, auto); row-gap: 0; }
#preise .two-col-wide > div { display: grid; grid-template-rows: subgrid; grid-row: span 5; }

.split-media { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.split-text { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.split-portrait { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 4.5vw, 64px); align-items: start; }

.indications { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px); }
.indications h4 { font-size: clamp(22px, 1.9vw, 24px); margin-bottom: 8px; color: var(--accent); }
.indications p { margin: 0; color: var(--body); font-size: 16px; }

/* Listen */
ul.leaf-list { margin: 0; padding: 0; list-style: none; }
ul.leaf-list li {
    position: relative;
    padding: 13px 0 13px 30px;
    border-bottom: 1px solid var(--line);
}
ul.leaf-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 12px;
    height: 12px;
    border-radius: 0 100% 0 100%;
    background: var(--pale);
}

/* Tabellen */
table.kosten { border-collapse: collapse; width: 100%; }
table.kosten td { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
table.kosten td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: var(--display);
    font-size: 24px;
}

table.weiterbildung { border-collapse: collapse; width: 100%; max-width: 760px; }
table.weiterbildung td {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 16px;
    line-height: 1.55;
    color: var(--body-strong);
}
table.weiterbildung td:first-child {
    width: 124px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}

/* ---------- Kontakt und Fuss ---------- */

.contact {
    background: var(--dark);
    color: var(--bg);
    padding: var(--space-band) 0 68px;
    position: relative;
    overflow: hidden;
}

.contact-rings { position: absolute; right: -60px; top: -60px; color: rgba(247, 245, 234, 0.13); pointer-events: none; }

.contact-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 4.5vw, 64px);
    align-items: start;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(247, 245, 234, 0.18);
}

.contact h2 { color: var(--bg); margin-bottom: 16px; }
.contact .lead { color: rgba(247, 245, 234, 0.74); max-width: 420px; margin-bottom: 34px; }
.contact h3 { font-size: clamp(22px, 2vw, 26px); color: var(--bg); margin-bottom: 10px; }
.contact address { font-style: normal; color: rgba(247, 245, 234, 0.74); }
.contact address a { color: var(--pale-light); }
.contact address a:hover { color: var(--bg); }

.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 40px; }

/* Auf grossen Bildschirmen teilen sich die drei Kontaktwege eine Reihe,
   damit kein Button in eine zweite Zeile umbricht. */
@media (min-width: 1001px) {
    .contact .btn-row { flex-wrap: nowrap; gap: 10px; }
    .contact .btn { flex: 1 1 0; padding: 0 16px; letter-spacing: 0.1em; }
}

.site-foot { padding-top: 36px; }
.site-foot .caps { color: rgba(247, 245, 234, 0.4); margin-bottom: 16px; }

.netz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; font-size: 15px; }
.netz div { display: flex; flex-direction: column; gap: 8px; }
.netz a { color: rgba(247, 245, 234, 0.8); }
.netz a:hover { color: var(--bg); }

.colophon {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(247, 245, 234, 0.18);
    font-size: 14px;
    color: rgba(247, 245, 234, 0.5);
}
.colophon a { color: rgba(247, 245, 234, 0.6); }
.colophon a:hover { color: var(--bg); }

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
    .split-media,
    .split-text,
    .split-portrait { grid-template-columns: 1fr; }

    .split-media .media,
    .split-text .media,
    .split-portrait .media { height: clamp(280px, 46vw, 420px); }

    .hero-leaf { display: none; }
    #domizil .media { display: none; }
    .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .indications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .netz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobil ---------- */

@media (max-width: 700px) {
    .site-head { justify-content: space-between; gap: 0 20px; padding: 18px var(--gutter) 14px; }

    .js-nav .nav-toggle { display: inline-flex; position: relative; }

    /* Die Navigation legt sich als eigene Zeile unter Name und Schaltflaeche. */
    .site-nav {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 8px;
        border-top: 1px solid var(--line);
    }

    .site-nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .js-nav .site-nav { display: none; }

    .js-nav .site-nav[data-open] {
        display: flex;
        animation: nav-aufklappen 0.2s ease;
    }

    @keyframes nav-aufklappen {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: none; }
    }

    .pillars,
    .indications,
    .two-col,
    .contact-top,
    .netz { grid-template-columns: 1fr; }

    .pillars { gap: 32px; }
    .indications { gap: 30px; }
    .contact-cards { grid-template-columns: 1fr; gap: 30px; padding-top: 8px; }

    /* Wenn die Preisspalten untereinander stehen, braucht der zweite
       Block mehr Abstand nach oben, sonst ruecken Hinweistext und
       naechster Titel zu eng zusammen. */
    #preise .two-col-wide > div + div { margin-top: 48px; }

    .meta-row { flex-direction: column; gap: 8px 0; }

    /* Auf dem Telefon stehen die drei Textbloecke sehr eng beieinander
       und wirken schnell unruhig. Deshalb faellt hier weg, was der
       naechste Block ohnehin sagt: der Ort in der Vorzeile und die
       Strassenangabe im Lauftext (beides steht unter Kontakt). */
    .ab-tablet { display: none; }

    /* Engere Laufweite, damit die Vorzeile auf eine Zeile passt und
       das "&" nicht am Zeilenende haengen bleibt. */
    .hero .caps { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 14px; }

    /* Der Hero darf auf dem Telefon den ganzen ersten Bildschirm
       einnehmen und wirkt mit mehr Luft zwischen den Elementen
       ruhiger statt gedraengt. */
    .hero {
        display: flex;
        align-items: center;
        min-height: 100vh;
        min-height: 100svh;
        padding-top: clamp(64px, 14vw, 96px);
        padding-bottom: clamp(64px, 14vw, 96px);
    }
    .hero .caps { margin-bottom: 20px; }
    .hero .h1 { margin-bottom: 30px; }
    .hero .lead { margin-bottom: 40px; }
    .hero .btn-row { gap: 12px; margin-bottom: 48px; }
    .hero .meta-row { padding-top: 32px; }
}

/* ---------- Touch-Bedienung ----------
   Greift bei Touch-Geraeten und zusaetzlich unterhalb von 900px: ein
   Tablet wird mit dem Finger bedient und braucht 44px hohe Ziele, meldet
   aber nicht immer zuverlaessig einen groben Zeiger. */

@media (pointer: coarse), (max-width: 900px) {
    .brand { padding: 4px 0; }
    .site-nav a { padding: 12px 0; }
    .netz div { gap: 0; }
    .netz a { padding: 10px 0; }
    .colophon a { padding: 11px 0; }
    .contact address a { display: inline-block; padding: 8px 0; }
    .site-nav { row-gap: 0; }
}

@media (max-width: 480px) {
    .btn-row { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; padding: 0 22px; }

    table.weiterbildung td { display: block; width: auto; }
    table.weiterbildung td:first-child { width: auto; padding: 14px 0 0; border-bottom: 0; }
    table.weiterbildung td:last-child { padding-top: 2px; }
    table.kosten td:last-child { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
