/*
 * „Fell & Seife" — Design-Sprache des Demo-Salons Lockenpfote
 * (docs/M1-DEMO-KONZEPT.md, Abschn. 2). Eigenes schlankes CSS, Static SSR,
 * KEINE externen Requests: Fonts self-hosted (DSGVO), Bilder lokal.
 *
 * Personalisierung: --c-marke und --c-akzent werden zur Laufzeit aus dem
 * SalonProfile per Inline-<style> überschrieben (SalonLayout) — die übrigen
 * fünf Tokens bleiben Template-Default (Konzept 2.7/7).
 */

/* Typografie: Vollkorn (Display-Serif) + Figtree (Body-Grotesk), variable woff2,
   Subset latin, self-hosted — max. 4 Dateien, font-display: swap (Konzept 2.3). */
@font-face {
    font-family: "Vollkorn";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/vollkorn-latin-wght.woff2") format("woff2");
}

@font-face {
    font-family: "Vollkorn";
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url("fonts/vollkorn-italic-latin-wght.woff2") format("woff2");
}

@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("fonts/figtree-latin-wght.woff2") format("woff2");
}

/* Farbpalette „Fell & Seife" — die 7 Personalisierungs-Tokens (Konzept 2.2). */
:root {
    --c-grund: #FAF6EF;      /* Seitengrund „Seifenschaum" */
    --c-tinte: #2C2420;      /* Fließtext „Espresso" */
    --c-marke: #23554E;      /* Primärfarbe „Tannengrün" */
    --c-marke-tief: #17362F; /* Footer, Overlays, gedrückte Buttons */
    --c-akzent: #C88A3D;     /* „Honig": Locke, Fokus-Ring, große Ziffern */
    --c-flaeche: #EFE7D8;    /* Karten-/Sektionsgrund „Sand" */
    --c-linie: #E0D5C2;      /* Trennlinien, Rahmen */

    --font-display: "Vollkorn", Georgia, serif;
    --font-body: "Figtree", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--c-tinte);
    background: var(--c-grund);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--c-tinte);
    margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

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

/* Einheitlicher Warmton-Look über gemischte Foto-Quellen (Konzept 2.4). */
.ws-photo {
    filter: saturate(0.92) sepia(0.06);
    border-radius: 20px;
    display: block;
}

a {
    color: var(--c-marke);
}

/* Sichtbarer Fokus-Ring auf allen Interaktiv-Elementen (Konzept 2.6). */
:focus-visible {
    outline: 3px solid var(--c-akzent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Sanftes Fade-up beim Einscrollen — nur mit JS (html.js), einmalig, 300 ms. */
html.js .ws-reveal {
    opacity: 0;
    translate: 0 18px;
}

html.js .ws-reveal.is-in {
    opacity: 1;
    translate: 0 0;
    transition: opacity 300ms ease-out, translate 300ms ease-out;
}

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

    html.js .ws-reveal {
        opacity: 1;
        translate: 0 0;
        transition: none;
    }

    .ws-sticky-cta {
        transition: none !important;
    }
}

.ws-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ws-main {
    flex: 1;
}

.ws-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Kleines Uppercase-Label über den Sektions-Überschriften (Konzept 2.3). */
.ws-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-marke);
    margin-bottom: 0.5rem;
}

/* Signatur-Element „die Locke" (Konzept 2.5) — Farbe via currentColor. */
.ws-locke {
    color: var(--c-akzent);
    display: inline-block;
    vertical-align: middle;
    aspect-ratio: 2 / 1;
}

.ws-locke-sep {
    display: block;
    width: 72px;
    margin: 0 auto 1.5rem;
    color: var(--c-akzent);
    aspect-ratio: 2 / 1;
}

/* Header + Navigation */
.ws-header {
    background: var(--c-grund);
    border-bottom: 1px solid var(--c-linie);
}

.ws-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.ws-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--c-marke);
    text-decoration: none;
    white-space: nowrap;
}

.ws-brand img {
    max-height: 44px;
    width: auto;
    align-self: center;
}

.ws-brand .ws-locke {
    width: 1.5em;
    translate: -0.15em 0.1em;
}

/* Anker-Menü: mobil ausgeblendet (Konzept 3 — die Seite ist kurz genug). */
.ws-nav {
    display: none;
    gap: 1.5rem;
    align-items: center;
}

.ws-nav a {
    color: var(--c-tinte);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.ws-nav a:hover {
    border-bottom-color: var(--c-akzent);
}

/* Buttons */
.ws-btn {
    display: inline-block;
    background: var(--c-marke);
    color: var(--c-grund);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: background 150ms ease;
}

.ws-btn:hover {
    background: var(--c-marke-tief);
}

.ws-btn:active {
    background: var(--c-marke-tief);
}

.ws-btn-klein {
    padding: 0.55rem 1.2rem;
    font-size: 0.9375rem;
}

.ws-link {
    color: var(--c-marke);
    font-weight: 600;
}

/* Hero (Konzept 3.1) */
.ws-hero {
    padding: 2rem 0 2.5rem;
}

.ws-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
}

.ws-hero h1 {
    margin: 0 0 0.75rem;
}

.ws-hero-sub {
    font-size: 1.125rem;
    margin: 0 0 1.5rem;
    max-width: 34rem;
}

.ws-hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-bottom: 0.9rem;
}

.ws-hero-vertrauen {
    font-size: 0.875rem;
    color: var(--c-marke);
    margin: 0;
}

/* Hero-Bild: asymmetrisch gerundete Ecke nimmt das Locken-Motiv auf (2.4). */
.ws-hero-bild {
    border-radius: 24px 96px 24px 24px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    max-height: 560px;
}

/* Sektionen: Wechselrhythmus Grund/Sand (Konzept 2.6). */
.ws-section {
    padding: 3rem 0 3.5rem;
    scroll-margin-top: 4.5rem;
}

.ws-section--sand {
    background: var(--c-flaeche);
}

.ws-intro {
    max-width: 40rem;
    margin: 0 0 2rem;
}

/* Leistungs-Karten (Konzept 3.2) */
.ws-services {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.ws-service-card {
    background: var(--c-grund);
    border: 1px solid var(--c-linie);
    border-radius: 20px;
    padding: 1.25rem 1.4rem;
    transition: translate 150ms ease, box-shadow 150ms ease;
}

.ws-service-card:hover {
    translate: 0 -2px;
    box-shadow: 0 6px 20px rgb(44 36 32 / 0.08);
}

.ws-service-card h3 {
    margin: 0 0 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

/* Die Locke als Aufzählungszeichen der Leistungsliste (Konzept 2.5). */
.ws-service-card h3 .ws-locke {
    flex: none;
    width: 1.3em;
    translate: 0 0.15em;
}

.ws-service-card p {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.ws-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0;
}

.ws-service-meta .ws-dauer {
    font-size: 0.875rem;
    color: var(--c-marke);
}

.ws-service-meta .ws-preis {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--c-marke);
    white-space: nowrap;
}

.ws-fineprint {
    font-size: 0.875rem;
    max-width: 40rem;
    margin: 0 0 1.5rem;
}

/* Foto-Band unter den Leistungen (Slots leistung-baden/-schneiden, Konzept 6). */
.ws-leistung-fotos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0 0;
}

.ws-leistung-fotos img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* „So läuft Ihr Termin" (Konzept 3.3) */
.ws-ablauf {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2rem;
    counter-reset: schritt;
}

.ws-ablauf li {
    counter-increment: schritt;
}

.ws-ablauf li::before {
    content: counter(schritt);
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--c-akzent);
    margin-bottom: 0.4rem;
}

.ws-ablauf h3 {
    margin-bottom: 0.35rem;
}

.ws-ablauf p {
    margin: 0;
}

/* Über uns (Konzept 3.4) */
.ws-ueber {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.ws-ueber-bild {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ws-zitat {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--c-marke);
    border-left: 3px solid var(--c-akzent);
    margin: 1.5rem 0 0;
    padding: 0.25rem 0 0.25rem 1.1rem;
}

/* Galerie (Konzept 3.5) */
.ws-gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ws-gallery figure {
    margin: 0;
    position: relative;
}

.ws-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.ws-gallery figcaption {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: var(--c-marke-tief);
    color: var(--c-grund);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

/* Bewertungs-Slot (Konzept 3.6): gestaltete Platzhalter-Karte, KEINE Fake-Reviews. */
.ws-bewertung-slot {
    border: 2px dashed var(--c-linie);
    border-radius: 20px;
    background: var(--c-grund);
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 34rem;
    margin: 0 auto;
}

.ws-sterne {
    color: var(--c-akzent);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.ws-bewertung-slot p {
    margin: 0;
    font-weight: 500;
}

/* Öffnungszeiten + Kontakt (Konzept 3.7) */
.ws-kontakt-grid {
    display: grid;
    gap: 2rem;
}

.ws-hours {
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.25rem;
    max-width: 26rem;
}

.ws-hours div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--c-linie);
}

.ws-hours dt {
    font-weight: 600;
}

.ws-hours dd {
    margin: 0;
}

.ws-contact address {
    font-style: normal;
    margin: 1.25rem 0 0;
    line-height: 1.7;
}

/* Anfahrts-Platzhalter: stilisierte Grafik statt Karten-Embed (DSGVO, 3.7). */
.ws-anfahrt {
    background: var(--c-flaeche);
    border: 1px solid var(--c-linie);
    border-radius: 20px;
    padding: 2.25rem 1.5rem;
    text-align: center;
}

.ws-anfahrt p {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
}

/* Demo-Kennzeichnungs-Leiste: jede Seite, direkt über dem Footer, NICHT
   schließbar (Konzept 1.5) — dezent, aber klar lesbar. */
.ws-demo-leiste {
    background: var(--c-flaeche);
    border-top: 1px solid var(--c-linie);
    font-size: 0.875rem;
    padding: 0.85rem 0;
}

.ws-demo-leiste p {
    margin: 0;
}

/* Footer (Konzept 3.8) */
.ws-footer {
    background: var(--c-marke-tief);
    color: var(--c-grund);
    padding: 2.25rem 0 2rem;
    font-size: 0.9375rem;
}

.ws-footer a {
    color: var(--c-grund);
}

.ws-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.ws-footer p {
    margin: 0.5rem 0;
}

.ws-demo-badge {
    display: inline-block;
    background: var(--c-akzent);
    color: var(--c-marke-tief);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-right: 0.5rem;
}

.ws-footer-boxeria {
    border-top: 1px solid rgb(250 246 239 / 0.25);
    margin-top: 1.25rem;
    padding-top: 1rem;
    font-size: 0.875rem;
}

/* Sticky Buchungs-Leiste (mobil, Konzept 2.6): Buchen ist IMMER einen Daumen
   entfernt. Mit JS erscheint sie nach dem Scroll am Hero vorbei; ohne JS ist
   sie dauerhaft sichtbar (Progressive Enhancement). */
.ws-sticky-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10;
    display: block;
    background: var(--c-marke);
    color: var(--c-grund);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgb(23 54 47 / 0.25);
    transition: translate 250ms ease;
}

.ws-sticky-cta:active {
    background: var(--c-marke-tief);
}

html.js .ws-sticky-cta {
    translate: 0 110%;
}

html.js .ws-sticky-cta.is-visible {
    translate: 0 0;
}

/* Platz für die Leiste am Seitenende, damit sie den Footer nicht verdeckt. */
body:has(.ws-sticky-cta) .ws-footer {
    padding-bottom: 5.5rem;
}

/* Demo-/Impressums-Seite */
.ws-demo-seite {
    max-width: 44rem;
}

/* Tablet/Desktop: großzügigere Version derselben Ordnung (Konzept 2.6). */
@media (min-width: 768px) {
    .ws-nav {
        display: flex;
    }

    .ws-hero {
        padding: 3.5rem 0 4rem;
    }

    .ws-hero-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 3rem;
    }

    .ws-section {
        padding: 4.5rem 0 5rem;
    }

    .ws-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .ws-ablauf {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
    }

    .ws-ueber {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 3rem;
    }

    .ws-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ws-kontakt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }

    /* Sticky-Leiste ist ein Mobil-Muster — Desktop hat den Header-Button. */
    .ws-sticky-cta {
        display: none;
    }

    body:has(.ws-sticky-cta) .ws-footer {
        padding-bottom: 2rem;
    }
}
