/* ==========================================================================
   YOGAWERKSTATT Reisbach – Sibylle Palka
   Redesign "Natürlich & warm" (Entwurf). Keine externen Ressourcen.
   ========================================================================== */

:root {
    /* Farben */
    --cream: #F8F4EC;
    --sand: #EFE7D8;
    --paper: #FFFDF8;
    --line: #E4DAC7;
    --green: #93BC14;          /* Logo-Grün – für Akzente */
    --green-soft: #E6EECF;
    --olive: #55741A;          /* Buttons, Links (gut lesbar auf Weiß) */
    --olive-dark: #3E5513;
    --ink: #2D2A25;
    --muted: #6E665B;
    --footer: #2B3220;

    /* Schriften (Systemschriften – nichts wird nachgeladen) */
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Formen */
    --r-sm: .75rem;
    --r: 1.25rem;
    --r-lg: 1.75rem;
    --shadow: 0 1px 2px rgba(45, 42, 37, .04), 0 8px 24px -8px rgba(45, 42, 37, .12);
    --shadow-lg: 0 2px 4px rgba(45, 42, 37, .04), 0 20px 40px -12px rgba(45, 42, 37, .2);

    --header-h: 4.75rem;
}
@media (min-width: 900px) { :root { --header-h: 5.5rem; } }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

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

::selection { background: var(--green-soft); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -.01em;
}

.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.skip-link {
    position: absolute;
    left: -999px;
    top: .5rem;
    z-index: 100;
    padding: .5rem 1rem;
    background: var(--paper);
    border-radius: .5rem;
    box-shadow: var(--shadow);
}
.skip-link:focus { left: .5rem; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--olive); color: #fff; box-shadow: 0 8px 20px -8px rgba(62, 85, 19, .6); }
.btn-primary:hover { background: var(--olive-dark); }
.btn-ghost { background: rgba(255, 253, 248, .7); color: var(--ink); border-color: rgba(45, 42, 37, .2); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn-small { padding: .6rem 1.2rem; font-size: .9rem; box-shadow: none; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--olive); }
.text-link .icon { transition: transform .25s; }
.text-link:hover { color: var(--olive-dark); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    background: rgba(248, 244, 236, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled {
    background: rgba(248, 244, 236, .95);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 20px -12px rgba(45, 42, 37, .25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Original-Logo (freigestellt, unverändert) */
.logo { display: block; }
.logo img { width: auto; height: 3.5rem; }
@media (min-width: 900px) { .logo img { height: 4.25rem; } }

.main-nav { display: none; align-items: center; gap: 2rem; }
.nav-link {
    position: relative;
    padding: .4rem 0;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform .25s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--olive-dark); }

.menu-toggle {
    display: inline-flex;
    padding: .5rem;
    border: 0;
    border-radius: .5rem;
    background: none;
    color: var(--ink);
    font-size: 1.6rem;
    cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { padding: .5rem 1.25rem 1.5rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
    display: block;
    padding: .8rem .25rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.2rem;
}
.mobile-nav a.mobile-cta {
    margin-top: 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--olive);
    color: #fff;
    text-align: center;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 900px) {
    .main-nav { display: flex; }
    .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(100svh, 56rem);
    padding: calc(var(--header-h) + 2rem) 0 6rem;
    overflow: hidden;
    background: var(--sand);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 40%; }
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 244, 236, 0) 25%, rgba(248, 244, 236, .82) 62%, rgba(248, 244, 236, .95) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 34rem; }
.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--olive);
}
.hero h1 { margin-bottom: 1.25rem; font-size: clamp(2.6rem, 6vw + .5rem, 4.75rem); line-height: 1.04; }
.hero h1 em { font-style: italic; color: var(--olive); }
.hero-lead { margin-bottom: 2rem; font-size: clamp(1.05rem, .6vw + .95rem, 1.2rem); color: #4A443B; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Handy/Tablet: Foto oben, Text darunter – nichts liegt über dem Gesicht */
@media (max-width: 899px) {
    .hero { display: block; min-height: 0; padding: var(--header-h) 0 3.5rem; background: var(--cream); }
    .hero-bg { position: relative; height: min(58svh, 30rem); }
    .hero-bg img { object-position: 6% 30%; }
    .hero-bg::after { background: linear-gradient(180deg, rgba(248, 244, 236, 0) 55%, var(--cream) 100%); }
    .hero-content { margin-top: -2.5rem; }
    .wave { display: none; }
}

@media (min-width: 900px) {
    .hero { align-items: center; padding-bottom: 7rem; }
    .hero-bg::after {
        background: linear-gradient(90deg, rgba(248, 244, 236, 0) 30%, rgba(248, 244, 236, .78) 55%, rgba(248, 244, 236, .94) 100%);
    }
    .hero .container { display: flex; justify-content: flex-end; }
}

/* sanfte Welle am unteren Rand */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%; height: clamp(2.5rem, 6vw, 5rem); color: var(--cream); }

/* ---------- Sektionen ---------- */
.section { padding: 4.5rem 0; }
@media (min-width: 768px) { .section { padding: 6.5rem 0; } }
.section-sand { background: var(--sand); }
.section-paper { background: var(--paper); }

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 1rem; font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.leaf-divider { display: block; width: 4.5rem; height: 1rem; margin: 0 0 1.25rem; color: var(--green); }
.center .leaf-divider { margin-left: auto; margin-right: auto; }

/* ---------- Angebote ---------- */
.offers { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .offers { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.offer {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .3s, box-shadow .3s;
}
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offer-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--olive);
    font-size: 1.6rem;
}
.offer h3 { margin-bottom: .6rem; font-size: 1.5rem; }
.offer p { margin-bottom: 1.25rem; color: var(--muted); font-size: 1rem; }

.tag {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--olive-dark);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------- Über mich ---------- */
.about { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; gap: 5rem; } }

.portrait { position: relative; max-width: 24rem; width: 100%; margin: 0 auto; }
.portrait::before {
    content: "";
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    right: -12%;
    bottom: -8%;
    border-radius: 50%;
    background: var(--green-soft);
}
.portrait img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 25%;
    border-radius: 999px 999px var(--r-lg) var(--r-lg);
    box-shadow: var(--shadow-lg);
}
.portrait-note {
    position: absolute;
    left: -1rem;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: var(--paper);
    box-shadow: var(--shadow);
    font-size: .85rem;
    font-weight: 600;
    color: var(--olive-dark);
}
.portrait-note .icon { color: var(--green); font-size: 1.1rem; }

.about-text h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.about-text p { margin-bottom: 1.1rem; color: #4A443B; }
.quote {
    margin: 0 0 1.75rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--green);
    font-family: var(--serif);
    font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--olive-dark);
}
.checklist { display: grid; gap: .8rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; font-weight: 500; }
.checklist .icon { margin-top: .3rem; color: var(--olive); }

/* ---------- Panorama-Band ---------- */
.panorama { position: relative; display: grid; place-items: center; min-height: clamp(20rem, 45vw, 32rem); overflow: hidden; text-align: center; }
.panorama img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.panorama::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 50, 32, .25), rgba(43, 50, 32, .55)); }
.panorama-text { position: relative; z-index: 1; padding: 3rem 1.25rem; color: #fff; }
.panorama-text p {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw + .75rem, 3.25rem);
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}
.panorama-text span { display: block; margin-top: 1rem; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
@media (min-width: 900px) {
    .panorama { justify-items: end; }
    .panorama img { object-position: 20% 50%; }
    .panorama::after { background: linear-gradient(90deg, rgba(43, 50, 32, .05) 30%, rgba(43, 50, 32, .55) 100%); }
    .panorama-text { margin-right: max(2rem, calc((100vw - 72rem) / 2 + 2rem)); max-width: 30rem; text-align: right; }
}

/* ---------- Kursplan ---------- */
.schedule { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.schedule li {
    display: grid;
    gap: .35rem 1.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: var(--r);
    background: var(--paper);
    border: 1px solid var(--line);
}
.schedule .day { font-family: var(--serif); font-size: 1.4rem; }
.schedule .time { display: flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--olive-dark); font-variant-numeric: tabular-nums; }
.schedule .course { font-weight: 600; }
.schedule .place { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .95rem; }
@media (min-width: 768px) {
    .schedule li { grid-template-columns: 9rem 9rem 1fr auto 13rem; }
}
.note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }

/* ---------- Workshops ---------- */
.workshops { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .workshops { grid-template-columns: 1fr 1fr; } }
.workshop {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .3s, box-shadow .3s;
}
.workshop:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.workshop-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem .5rem;
    background: var(--green-soft);
    color: var(--olive-dark);
    text-align: center;
}
.workshop-date .weekday { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.workshop-date .day { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: .25rem 0; color: var(--ink); }
.workshop-date .month { font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.workshop-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem 1.75rem; }
.workshop-body h3 { font-size: 1.45rem; }
.workshop-body p { color: var(--muted); font-size: .98rem; }
.workshop-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--line); font-size: .92rem; }
.workshop-meta .time { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.workshop-meta .price { font-weight: 700; color: var(--olive-dark); }

/* ---------- Partner ---------- */
.partners { display: grid; gap: 1rem; }
@media (min-width: 600px) { .partners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .partners { grid-template-columns: repeat(4, 1fr); } }
.partner {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r);
    background: var(--paper);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.35;
    transition: border-color .25s, transform .25s;
}
.partner:hover { border-color: var(--green); transform: translateY(-2px); }
.partner .icon-wrap { display: grid; place-items: center; flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green-soft); color: var(--olive); font-size: 1.2rem; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.card {
    padding: 2rem;
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line);
}
@media (min-width: 768px) { .card { padding: 2.5rem; } }
.contact-info h3 { margin-bottom: 1.5rem; font-size: 1.6rem; }
.contact-list { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--green-soft); color: var(--olive); font-size: 1.15rem; }
.contact-list .label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list address { font-style: normal; }
.contact-list a:hover { color: var(--olive); text-decoration: underline; }
.contact-foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.form input, .form textarea {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(147, 188, 20, .3); }
.form textarea { resize: vertical; min-height: 8rem; }
.form button[disabled] { opacity: .7; cursor: wait; transform: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: .82rem; color: var(--muted); }
.form-hint a { color: var(--olive); text-decoration: underline; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--r-sm); font-weight: 500; }
.form-status.is-ok { background: var(--green-soft); color: var(--olive-dark); }
.form-status.is-error { background: #FBEDEA; color: #9B2C1F; }

/* ---------- Footer ---------- */
.site-footer { padding: 4rem 0 2rem; background: var(--footer); color: #D9D3C5; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1.5fr 1fr; } }
/* Logo im dunklen Footer auf hellem Grund, damit die schwarze Schrift lesbar bleibt */
.footer-logo { display: inline-block; padding: .75rem 1.1rem; border-radius: var(--r); background: var(--cream); }
.footer-logo img { width: auto; height: 3.2rem; }
.footer-text { margin-top: 1rem; max-width: 22rem; color: #B5AE9F; }
.site-footer h4 { margin-bottom: .9rem; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.footer-list a:hover, .footer-list a[aria-current="page"] { color: var(--green); }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: #98917F; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal-page { padding: calc(var(--header-h) + 3rem) 0 5rem; }
.legal { max-width: 46rem; margin: 0 auto; }
.legal h1 { margin-bottom: 1.5rem; font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem); }
.legal h2 { margin: 2.25rem 0 .5rem; font-size: 1.4rem; }
.legal p, .legal ul { margin: 0 0 1rem; color: #4A443B; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .25rem; }
.legal a:not(.text-link) { color: var(--olive); text-decoration: underline; }
.legal-lead { font-size: 1.15rem; }
.legal-date { margin-top: 2rem !important; font-size: .9rem; color: var(--muted) !important; }
.legal-back { margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
/* nur wenn JavaScript läuft – sonst bleibt alles sichtbar */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Lenis (weiches Scrollen) – Regeln aus lenis.css 1.3.27 ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }  /* Lenis übernimmt das weiche Scrollen */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
