/*
 * Öffentliche Bestellseite (/bestellen). Stil und Design wie www.mobile-sauna-kronhardt.de:
 * Farben (Nacht, Dämmerung, Papier, Bullauge-Rot, Fichte/Bernstein), Schriften Playfair Display + Golos Text,
 * kantige Ecken (2px), 1,5px-Rahmen, rote Primär-Buttons, Gutschein-Ticket.
 * Schriften liegen lokal (OFL, siehe fonts/OFL-*.txt), damit die CSP keine fremden Quellen braucht.
 */
@font-face { font-family: "Playfair Display Variable"; font-style: normal; font-display: swap; font-weight: 400 900;
    src: url(fonts/playfair-display-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/playfair-display-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display Variable"; font-style: normal; font-display: swap; font-weight: 400 900;
    src: url(fonts/playfair-display-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/playfair-display-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text Variable"; font-style: normal; font-display: swap; font-weight: 400 900;
    src: url(fonts/golos-text-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/golos-text-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text Variable"; font-style: normal; font-display: swap; font-weight: 400 900;
    src: url(fonts/golos-text-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/golos-text-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    color-scheme: light;
    --c-night: #141b3c;
    --c-dusk: #2b3a8c;
    --c-paper: #f4f1ea;
    --c-paper-deep: #e8e3d6;
    --c-sheet: #fbfaf6;
    --c-spruce: #e8a93a;
    --c-porthole: #c8372d;
    --c-porthole-dark: #a52c23;
    --bg: var(--c-paper);
    --bg-alt: var(--c-paper-deep);
    --surface: var(--c-sheet);
    --ink: var(--c-night);
    --ink-muted: #555b7a;
    --rule: #141b3c2e;
    --link: var(--c-dusk);
    --accent: var(--c-porthole);
    --accent-hover: var(--c-porthole-dark);
    --focus: var(--c-dusk);
    --error-text: #8f1f17;
    --error-bg: #f8e1dd;
    --radius: 2px;
    --border-strong: 2px solid var(--ink);
    --font-body: "Golos Text Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Playfair Display Variable", Georgia, "Times New Roman", serif;
    --step--1: .875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.625rem;
    --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
    --step-4: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --content-width: 74rem;
    --gutter: max(1.25rem, calc((100vw - var(--content-width)) / 2));
    --section-gap: clamp(3rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
    font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--bg);
}
main { flex: 1; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2 {
    font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; line-height: 1.08;
    font-variant-numeric: lining-nums; text-wrap: balance; overflow-wrap: break-word; hyphens: auto;
}
h1 { font-size: var(--step-4); }
.label { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.kicker { color: var(--accent); margin-bottom: var(--space-2); }
.lead { max-width: 36rem; margin-top: var(--space-3); font-size: var(--step-1); line-height: 1.5; color: var(--ink-muted); }
.note { font-size: var(--step--1); color: var(--ink-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-2); top: -4rem; z-index: 20; padding: .5rem 1rem; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: var(--space-1); }

/* Logo (wie auf der Website) */
.site-logo { display: inline-flex; flex-direction: column; position: relative; line-height: 1; white-space: nowrap; color: inherit; --logo-size: 2.5rem; }
.site-logo--large { --logo-size: 3rem; }
.site-logo-name { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; font-size: calc(var(--logo-size) * 1.089); }
.site-logo-name svg { display: inline-block; height: .86em; width: auto; vertical-align: -.06em; margin: 0 .01em; }
.site-logo-tail { display: inline-block; position: relative; }
.site-logo-tagline {
    position: absolute; top: 100%; left: .03em; right: .02em; display: flex; justify-content: space-between;
    margin-top: .01em; font-family: var(--font-body); font-size: .2em; font-weight: 600; text-transform: uppercase;
}
.site-logo-tagline .gap { width: .3em; }

/* Kopfzeile */
.site-header {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-3); padding: .75rem var(--gutter) 1.1rem; background: var(--bg); border-bottom: 1px solid var(--rule);
}
.site-header .logo { color: var(--ink); text-decoration: none; display: flex; align-items: center; }
.nav-main { display: flex; align-items: center; gap: var(--space-4); }
.nav-list { display: flex; align-items: center; gap: var(--space-3); list-style: none; }
.nav-link { color: var(--ink); font-weight: 500; text-decoration: none; padding: .5rem 0; }
.nav-link:hover { color: var(--link); text-decoration: underline 1.5px; text-underline-offset: 8px; }
.nav-link.active { text-decoration: underline 3px var(--accent); text-underline-offset: 8px; }
.nav-call {
    display: inline-flex; align-items: center; gap: .5rem; padding-left: var(--space-4); border-left: 1px solid var(--rule);
    color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.nav-call svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.nav-call:hover { color: var(--link); }
@media (max-width: 60rem) {
    .nav-list { display: none; }
    .nav-call { padding-left: 0; border-left: 0; }
}
@media (max-width: 30rem) {
    .site-logo { --logo-size: 2rem; }
    .nav-call { font-size: var(--step--1); }
}

/* Bänder (Abschnitte) */
.band { padding: var(--section-gap) var(--gutter); }
.band--deep { background: var(--bg-alt); }
.intro-grid { display: grid; gap: var(--space-4) var(--space-5); align-items: center; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 56rem) { .intro-grid { grid-template-columns: 1fr; } }

.steps { display: flex; flex-wrap: wrap; gap: .5rem var(--space-3); margin-top: var(--space-3); list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: inline-flex; align-items: baseline; gap: .5rem; font-size: .9375rem; font-weight: 600; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: var(--step-1); color: var(--link); }

/* Dekoratives Gutschein-Ticket */
.voucher-card {
    position: relative; width: 100%; max-width: 24rem; margin: 0 auto;
    padding: var(--space-4) var(--space-3) var(--space-3); color: var(--c-night); background: var(--c-spruce);
}
.voucher-card::before, .voucher-card::after {
    content: ""; position: absolute; bottom: 3.25rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bg);
}
.voucher-card::before { left: -.75rem; }
.voucher-card::after { right: -.75rem; }
.voucher-card-title { margin-top: var(--space-3); font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.15; }
.voucher-card-plan { margin-top: .5rem; font-size: .9375rem; }
.voucher-card-price { margin-top: var(--space-3); font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; line-height: 1; }
.voucher-card-line { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 2px dashed var(--c-night); font-size: .8125rem; }
@media (max-width: 56rem) { .voucher-card { display: none; } }

/* Formular */
.form-wrap { max-width: 46rem; margin: 0 auto; }
.order-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-section { display: flex; flex-direction: column; gap: var(--space-3); border: 0; border-top: var(--border-strong); padding-top: var(--space-3); min-width: 0; }
.form-section legend {
    float: left; width: 100%; margin-bottom: var(--space-1); display: flex; align-items: baseline; gap: .75rem;
    font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.2;
}
.form-section legend + * { clear: both; }
.section-no { color: var(--link); font-variant-numeric: lining-nums; }
.field { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.field > label { font-size: var(--step--1); font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 40rem) { .field-row { grid-template-columns: 1fr; } }
.input {
    width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--surface);
    border: 1.5px solid var(--c-night); border-radius: var(--radius); padding: .75rem 1rem;
}
textarea.input { resize: vertical; line-height: 1.45; }
.input::placeholder { color: #8a8ea6; }
.input:focus-visible { outline: 3px solid var(--c-dusk); outline-offset: 2px; }
.input[aria-invalid=true] { border-color: var(--c-porthole); }
.with-unit { position: relative; max-width: 16rem; }
.with-unit .input { padding-right: 3rem; font-variant-numeric: tabular-nums; }
.unit { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-muted); }
.hint { font-size: var(--step--1); color: var(--ink-muted); }
.field-error { font-size: var(--step--1); font-weight: 600; color: var(--error-text); }

/* Auswahl als Segmente (wie im Preisrechner der Website) */
.segmented { display: flex; flex-wrap: wrap; }
.segmented label {
    display: flex; align-items: center; gap: .625rem; padding: .75rem 1rem; cursor: pointer;
    font-weight: 600; line-height: 1.3; background: var(--surface); border: 1.5px solid var(--c-night);
}
.segmented label + label { margin-left: -1.5px; }
.segmented label:has(input:checked) { color: var(--c-paper); background: var(--c-night); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--c-dusk); outline-offset: 2px; }
.segmented input { accent-color: var(--c-spruce); flex-shrink: 0; }
.segmented small { display: block; font-weight: 400; font-size: var(--step--1); opacity: .8; }
.segmented--stack { flex-direction: column; }
.segmented--stack label + label { margin-left: 0; margin-top: -1.5px; }

/* Felder je nach Auswahl ein-/ausblenden. Ohne :has() (ältere Browser) bleiben alle sichtbar. */
.order-form:has(input[name=kind][value=amount]:checked) .kind-package { display: none; }
.order-form:has(input[name=kind][value=package]:checked) .kind-amount { display: none; }
.order-form:has(input[name=delivery][value=buyer]:checked) .delivery-recipient { display: none; }

.check { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.5; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex-shrink: 0; accent-color: var(--c-night); }
.form-submit { gap: var(--space-2); }

/* Buttons wie auf der Website */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 3.25rem;
    padding: .75rem 1.5rem; font: inherit; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none;
    cursor: pointer; border: 2px solid transparent; border-radius: var(--radius);
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { color: #fff; background: var(--accent); }
.btn--primary:hover { color: #fff; background: var(--accent-hover); }
.btn--ghost { color: var(--ink); border-color: currentColor; background: transparent; }
.btn--ghost:hover { color: var(--ink); background: color-mix(in srgb, currentColor 14%, transparent); }
.form-submit .btn { align-self: flex-start; }
@media (max-width: 40rem) { .form-submit .btn, .actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.alert {
    margin-bottom: var(--space-3); padding: .875rem 1rem; font-weight: 600;
    color: var(--error-text); background: var(--error-bg); border-left: 4px solid var(--c-porthole);
}

/* Danke-/Hinweisseiten */
.message { max-width: 44rem; }
.message .note { margin-top: var(--space-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* Honeypot: aus dem sichtbaren Bereich, aber nicht display:none (manche Bots prüfen das) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Fußzeile wie auf der Website */
.site-footer { padding: var(--space-4) var(--gutter) 0; border-top: var(--border-strong); background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding-bottom: var(--space-4); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.footer-brand > a { color: var(--ink); text-decoration: none; padding-bottom: .6rem; }
.nap { font-style: normal; font-size: var(--step--1); line-height: 1.6; color: var(--ink-muted); }
.nap strong { color: var(--ink); }
.nap a { color: inherit; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); list-style: none; }
.footer-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-links a:hover { text-decoration: underline 1.5px; text-underline-offset: 6px; }
.credit { padding-block: var(--space-2); border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--ink-muted); }

/* Einbettung per iframe (/bestellen?embed=1): ohne Kopf-/Fußzeile, kompakter, Höhe = Inhalt */
body.embed { min-height: 0; display: block; }
.embed .band { padding-block: clamp(1.5rem, 4vw, 3rem); }
.embed .intro-grid { grid-template-columns: 1fr; }
.embed .voucher-card { display: none; }
.embed h1 { font-size: var(--step-3); }
