/* Author: Robert Kiehn
   Überarbeitet: modernes Layout, responsiv, barrierearm.
   Farben & Schriften aus der ursprünglichen style.css übernommen. */

/* === Lokale Fonts === */

/* Font: Inter Tight von Google Fonts (Variable Font, alle Stärken 100–900 in einer Datei)
Quelle: https://fonts.google.com/specimen/Inter+Tight/
Lizenz: SIL Open Font License 1.1 – siehe fonts/Inter_Tight/OFL.txt
Auf lateinische Zeichen reduziert und als WOFF gespeichert (ca. 70 statt 580 KB). */

@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/Inter_Tight/InterTight-VariableFont_wght.woff) format('woff');
}
@font-face {
    font-family: 'Inter Tight';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/Inter_Tight/InterTight-Italic-VariableFont_wght.woff) format('woff');
}

/* Font: Londrina Solid von Google Fonts
Quelle: https://fonts.google.com/specimen/Londrina+Solid
Lizenz: SIL Open Font License 1.1 – siehe fonts/Londrina_Solid/OFL.txt
Bewusst unverändert als TTF: Der Name „Londrina Solid“ ist in der Lizenz
geschützt (Reserved Font Name), veränderte Fassungen dürften ihn nicht tragen. */

@font-face {
    font-family: 'Londrina Solid';
    font-style: normal;
    font-weight: 300;   /* war: font-style: thin (ungültig) */
    font-display: swap;
    src: url(../fonts/Londrina_Solid/LondrinaSolid-Light.ttf) format('truetype');
    unicode-range: U+0000-00A6, U+00A8-FFFF; /* ohne § – Londrina hat dafür nur eine leere Glyphe */
}
@font-face {
    font-family: 'Londrina Solid';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/Londrina_Solid/LondrinaSolid-Regular.ttf) format('truetype');
    unicode-range: U+0000-00A6, U+00A8-FFFF; /* ohne § – Londrina hat dafür nur eine leere Glyphe */
}
@font-face {
    font-family: 'Londrina Solid';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(../fonts/Londrina_Solid/LondrinaSolid-Black.ttf) format('truetype');
    unicode-range: U+0000-00A6, U+00A8-FFFF; /* ohne § – Londrina hat dafür nur eine leere Glyphe */
}

/* Ersatz-Glyphe: Das § (U+00A7) in Überschriften kommt aus Inter Tight,
   alle anderen Zeichen weiterhin aus Londrina Solid. */
@font-face {
    font-family: 'Londrina Solid';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/Inter_Tight/InterTight-VariableFont_wght.woff) format('woff');
    unicode-range: U+00A7;
}

/* === Variablen === */
:root {
    /* Farbpalette (unverändert) */
    --palm: #a4bea0;
    --leaf: #205919;
    --sea: #8bad9d;
    --sand-light: #f3efe2;
    --sand: #dfd7bb;
    --sunset: #d89065;
    --tomato: #c36c5d;
    --wine: #4d0f20;
    --verlauf: linear-gradient(var(--sand-light), var(--sand));

    /* Ergänzungen */
    --text: #2b2420;
    --text-soft: #5d524a;
    --leaf-dark: #163f12;
    --tomato-dark: #8f3f33;   /* kontraststark für Text auf Hell */
    --white: #fffdf8;

    --font-body: 'Inter Tight', system-ui, Arial, Helvetica, sans-serif;
    --font-display: 'Londrina Solid', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgb(77 15 32 / .06), 0 8px 28px rgb(77 15 32 / .10);
    --shadow-lg: 0 2px 4px rgb(77 15 32 / .08), 0 24px 60px rgb(77 15 32 / .18);

    --header-h: 4.25rem;
    --wrap: 72rem;
    --gap: clamp(1rem, 3vw, 2rem);
    --section-pad: clamp(3.5rem, 9vw, 7rem);
    --ease: cubic-bezier(.22, .8, .28, 1);

    color-scheme: light;
}

/* === Allgemein === */

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

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

body {
    margin: 0;
    background: var(--sand-light);
    color: var(--text);
    font-family: var(--font-body);   /* statt * { font-family } */
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button, input, select { font: inherit; color: inherit; }

a, a:visited { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Fokus nur bei Tastaturbedienung sichtbar (statt outline: none) */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--sunset);
    outline-offset: 3px;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--leaf); color: #fff !important;
    padding: .6rem 1rem; border-radius: var(--radius-sm);
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.wrap {
    width: min(100% - 2 * var(--gap), var(--wrap));
    margin-inline: auto;
}

/* === Typografie === */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--leaf);
    line-height: 1.05;
    margin: 0 0 .5em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 2rem + 4.5vw, 5.5rem); font-weight: 900; }
h2 { font-size: clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem); font-weight: 900; }
h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tomato-dark);
    margin-bottom: .35rem;
}

.note {
    background: var(--white);
    border-left: 4px solid var(--sunset);
    padding: .9rem 1.1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .95em;
}

/* === Buttons === */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.5em;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
    background: var(--leaf); color: #fff !important;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--tomato); }
.btn--primary:hover { background: var(--tomato-dark); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / .8); }
.btn--ghost:hover { background: rgb(255 255 255 / .15); }
.btn--ghost-dark { background: transparent; border-color: var(--leaf); color: var(--leaf) !important; }
.btn--small { padding: .55em 1.1em; font-size: .9rem; }

/* === Header & Navigation === */

.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgb(243 239 226 / .82);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgb(77 15 32 / .08);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(77 15 32 / .08); }

.site-header__inner {
    height: 100%;
    width: min(100% - 2 * var(--gap), var(--wrap));
    margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-display); font-size: 1.7rem; font-weight: 900;
    color: var(--leaf) !important; text-decoration: none !important;
}
.brand__mark { width: 2.5rem; height: 2.5rem; flex: none; transition: transform .8s var(--ease); }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-size: 1.6rem; }
.brand__sub { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tomato-dark); margin-top: .15rem; }
.brand:hover .brand__mark { transform: rotate(180deg); }

.main-nav ul {
    list-style: none;   /* Entfernt die standardmäßigen Aufzählungspunkte */
    margin: 0; padding: 0;
    display: flex; gap: .25rem;
}
.main-nav a {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    color: var(--wine);
    text-decoration: none;
    transition: background-color .2s, color .2s, transform .3s ease-in-out;
}
.main-nav a:hover { background: var(--palm); color: var(--leaf-dark); transform: translateY(-2px); }
.main-nav a[aria-current="true"] { background: var(--leaf); color: var(--sand-light); }

.nav-toggle {
    display: none;
    width: 2.75rem; height: 2.75rem;
    border: 0; border-radius: 50%;
    background: var(--palm);
    cursor: pointer;
    position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    position: absolute; left: 50%; width: 1.2rem; height: 2px;
    background: var(--leaf-dark); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; transform: translateX(-50%); }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 52rem) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--sand-light);
        border-bottom: 1px solid rgb(77 15 32 / .1);
        box-shadow: var(--shadow);
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        transition: clip-path .35s var(--ease), visibility 0s .35s;
    }
    .main-nav.is-open {
        clip-path: inset(0 0 0 0); visibility: visible;
        transition: clip-path .35s var(--ease);
    }
    .main-nav ul { flex-direction: column; padding: .75rem var(--gap) 1.25rem; }
    .main-nav a { font-size: 1.5rem; padding: .5rem .75rem; }
}

/* === Hero === */

.hero {
    position: relative;
    min-height: min(92svh, 56rem);
    display: grid; align-items: end;
    color: var(--white);
    isolation: isolate;
    z-index: 1;
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + 3rem) 0 clamp(2.5rem, 6vw, 5rem);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%;
    animation: hero-zoom 18s var(--ease) both;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgb(32 20 14 / .78) 0%, rgb(32 20 14 / .45) 50%, rgb(32 20 14 / 0) 85%),
        linear-gradient(0deg, rgb(32 20 14 / .55) 0%, transparent 45%);
}
.hero__sticker {
    position: absolute; right: clamp(1rem, 6vw, 7rem); bottom: 0;
    width: clamp(9rem, 26vw, 23rem); height: auto;
    transform: translateY(22%) rotate(6deg);
    filter: drop-shadow(0 12px 24px rgb(30 12 0 / .35));
    animation: sticker-in 1s .4s var(--ease) both;
    transition: transform .4s var(--ease);
}
.hero__sticker:hover { transform: translateY(20%) rotate(1deg) scale(1.03); }
@keyframes sticker-in {
    from { opacity: 0; transform: translateY(45%) rotate(-12deg) scale(.8); }
    to   { opacity: 1; transform: translateY(22%) rotate(6deg); }
}
@media (max-width: 52rem) {
    .hero { padding-bottom: 7rem; }
    .hero__sticker { width: 9.5rem; right: 1rem; transform: translateY(35%) rotate(6deg); animation-name: sticker-in-sm; }
    @keyframes sticker-in-sm { from { opacity: 0; transform: translateY(60%) rotate(-12deg) scale(.8); } to { opacity: 1; transform: translateY(35%) rotate(6deg); } }
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero h1 { color: var(--white); max-width: 14ch; }
.hero .eyebrow { color: var(--sunset); }
.hero__lead { max-width: 36rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.5rem; }

.hero__facts {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 3rem);
}
.hero__facts li { display: grid; color: var(--white); }
.hero__facts strong { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 900; line-height: 1; color: var(--sand-light); }
.hero__facts span { font-size: .9rem; opacity: .85; }

/* === Sektionen === */

.section { padding-block: var(--section-pad); }
.section--sand { background: var(--verlauf); }
.section--tomato { background: var(--tomato); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.section--tomato::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: clamp(36rem, 70vw, 60rem); aspect-ratio: 1;
    right: clamp(-22rem, -18vw, -8rem); top: -12rem;
    background: url("../img/pizza-salame.svg") center / contain no-repeat;
    opacity: .07;
    animation: slow-spin 240s linear infinite;
}
/* Große Funghi ganz dezent hinter „Beläge & Weine“ */
.section--funghi { position: relative; overflow: hidden; isolation: isolate; }
.section--funghi::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: clamp(30rem, 55vw, 48rem); aspect-ratio: 1;
    left: clamp(-20rem, -16vw, -8rem); top: -6rem;
    background: url("../img/pizza-funghi-gross.svg") center / contain no-repeat;
    opacity: .06;
    transform: rotate(-12deg);
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.section--tomato h2, .section--tomato h3 { color: var(--white); }
.section--tomato .eyebrow { color: var(--sand-light); }
.section--leaf { background: var(--leaf); color: var(--sand-light); }
.section--leaf h2 { color: var(--sand-light); }
.section--leaf .eyebrow { color: var(--palm); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p:last-child { font-size: 1.1em; }

.split {
    display: grid; gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 56rem) {
    .split { grid-template-columns: 1.05fr 1fr; }
    .split--reverse .split__media { order: -1; }
}
.split__media { margin: 0; }
.split__media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}

/* Mehlkarten */
.flour-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.flour-card {
    background: var(--white); border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow);
    border-top: 6px solid var(--tomato);
    transition: transform .3s var(--ease);
}
.flour-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.flour-card--violet { border-top-color: #a98bc4; }
.flour-card h3 { margin-bottom: .2em; }
.flour-card__type { font-size: .85rem; font-weight: 700; color: var(--tomato-dark); margin-bottom: .6em; }
.flour-card--violet .flour-card__type { color: #6b4a8a; }
.flour-card p:last-child { margin: 0; font-size: .95em; }

/* Ofen-Wahl */
.oven-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.25rem 0 .5rem; }
.oven-card {
    position: relative; display: grid; gap: .3rem; text-align: left; cursor: pointer;
    background: rgb(255 255 255 / .06); color: var(--sand-light);
    border: 2px solid rgb(243 239 226 / .25); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; font-size: .92rem; line-height: 1.5;
    transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.oven-card:hover { transform: translateY(-3px); border-color: var(--palm); }
.oven-card strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.oven-card__temp { font-weight: 700; color: var(--sunset); }
.oven-card__badge {
    position: absolute; top: -.7rem; right: 1rem; padding: .1rem .6rem; border-radius: 999px;
    background: var(--sunset); color: var(--wine); font-size: .75rem; font-weight: 700;
    opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease);
}
.oven-card[aria-pressed="true"] { background: rgb(243 239 226 / .14); border-color: var(--sunset); }
.oven-card[aria-pressed="true"] .oven-card__badge { opacity: 1; transform: none; }

/* Checkliste */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.checklist li { position: relative; padding-left: 2rem; color: inherit; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .3em;
    width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background: var(--sunset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* === Rezept: Rechner + Schritte === */

.recipe {
    display: grid; gap: var(--gap);
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 64rem) {
    .recipe { grid-template-columns: 22.5rem 1fr; gap: 3rem; }
    .calc { position: sticky; top: calc(var(--header-h) + 1rem); }
}

.calc__card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    border-top: 8px solid var(--leaf);
}
@media (min-width: 64rem) {
    .calc__card { max-height: calc(100svh - var(--header-h) - 2rem); overflow-y: auto; scrollbar-width: thin; }
}
.calc__title { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; }
.calc__subtitle {
    font-size: 1.35rem; margin: 1.5rem 0 .5rem; padding-top: 1.1rem;
    border-top: 2px dashed var(--sand);
}
.calc__weight, .calc__start { font-size: .9rem; color: var(--text-soft); margin: .6rem 0 0; }
.calc__weight strong, .calc__start strong { color: var(--wine); }
.calc__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.calc__toast { min-height: 1.4em; font-size: .85rem; color: var(--leaf); margin: .5rem 0 0; }

.field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.field__label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-weight: 700; font-size: .9rem; margin-bottom: .4rem; padding: 0;
    color: var(--text);
}
.field__label output { font-family: var(--font-display); font-size: 1.25rem; color: var(--tomato-dark); font-weight: 400; }
.field__hint { font-size: .8rem; color: var(--text-soft); margin: .35rem 0 0; line-height: 1.45; }
[data-only][hidden] { display: none; }

/* Stepper */
.stepper {
    display: grid; grid-template-columns: 3rem 1fr 3rem;
    background: var(--sand-light); border-radius: 999px; padding: .25rem;
}
.stepper__btn {
    border: 0; border-radius: 50%; background: var(--leaf); color: #fff;
    font-size: 1.5rem; line-height: 1; cursor: pointer; aspect-ratio: 1;
    transition: transform .15s, background-color .2s;
}
.stepper__btn:hover { background: var(--leaf-dark); }
.stepper__btn:active { transform: scale(.9); }
.stepper input {
    width: 100%; border: 0; background: transparent; text-align: center;
    font-family: var(--font-display); font-size: 2rem; color: var(--wine);
    -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Segmented Control */
.segmented {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--sand-light); border-radius: 999px; padding: .25rem; gap: .25rem;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
    text-align: center; padding: .5rem .5rem; border-radius: 999px;
    font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--text-soft);
    transition: background-color .25s, color .25s, box-shadow .25s;
}
.segmented label:hover { color: var(--leaf); }
.segmented input:checked + label { background: var(--leaf); color: #fff; box-shadow: var(--shadow); }
.segmented input:focus-visible + label { outline: 3px solid var(--sunset); outline-offset: 2px; }
.segmented--small label { padding: .35rem .5rem; font-size: .85rem; }

/* Range mit markiertem Idealbereich */
.range {
    --pct: calc((var(--val, 63) - var(--min)) / (var(--max) - var(--min)) * 100%);
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 2rem; background: transparent; cursor: pointer; margin: 0;
}
.range::-webkit-slider-runnable-track {
    height: .5rem; border-radius: 999px;
    background:
        linear-gradient(var(--sunset), var(--sunset)) 0 / var(--pct) 100% no-repeat,
        var(--ideal, var(--sand));
}
.range::-moz-range-track {
    height: .5rem; border-radius: 999px;
    background:
        linear-gradient(var(--sunset), var(--sunset)) 0 / var(--pct) 100% no-repeat,
        var(--ideal, var(--sand));
}
.range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 1.5rem; height: 1.5rem; margin-top: -.5rem; border-radius: 50%;
    background: var(--tomato); border: 3px solid var(--white); box-shadow: 0 2px 6px rgb(0 0 0 / .25);
    transition: transform .15s;
}
.range::-moz-range-thumb {
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--tomato); border: 3px solid var(--white); box-shadow: 0 2px 6px rgb(0 0 0 / .25);
}
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
#hydration {
    --ideal: linear-gradient(90deg,
        var(--sand) calc((var(--ideal-from) - var(--min)) / (var(--max) - var(--min)) * 100%),
        var(--palm) 0 calc((var(--ideal-to) - var(--min)) / (var(--max) - var(--min)) * 100%),
        var(--sand) 0);
}

/* Switch */
.switch { display: flex; align-items: center; gap: .65rem; font-size: .9rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__track {
    flex: none; width: 2.75rem; height: 1.5rem; border-radius: 999px;
    background: var(--sand); position: relative; transition: background-color .25s;
}
.switch__track::after {
    content: ""; position: absolute; top: .2rem; left: .2rem;
    width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .25s var(--ease);
}
.switch input:checked + .switch__track { background: var(--leaf); }
.switch input:checked + .switch__track::after { transform: translateX(1.25rem); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--sunset); outline-offset: 2px; }

.input {
    width: 100%; padding: .55rem .8rem; border-radius: var(--radius-sm);
    border: 2px solid var(--sand); background: var(--sand-light);
}
.input:focus-visible { border-color: var(--sunset); outline: none; }

/* Zutaten-Tabelle (aus alter Tabellenformatierung weiterentwickelt) */
.ingredients { width: 100%; border-collapse: collapse; }
.ingredients td {
    padding: .45rem 0; border-bottom: 1px solid var(--sand); text-align: left; vertical-align: baseline;
}
.ingredients tr:last-child td { border-bottom: 0; }
.ingredients td:first-child { color: var(--text); }
.ingredients td:last-child {
    text-align: right; white-space: nowrap;
    font-family: var(--font-display); font-size: 1.2rem; color: var(--wine);
}
.ingredients small { display: block; font-size: .75rem; color: var(--text-soft); }
.ingredients tr { transition: background-color .2s; }
.ingredients tr:hover { background: rgb(216 144 101 / .12); }
.ingredients .is-changed td:last-child { animation: flash .6s; }
@keyframes flash { 0% { color: var(--sunset); transform: scale(1.1); } 100% { color: var(--wine); } }

.ingredients--light td { border-color: rgb(255 255 255 / .25); color: var(--white) !important; }
.ingredients--light td:last-child { color: var(--white) !important; }
.ingredients--light small { color: rgb(255 255 255 / .75); }
.ingredients--light tr:hover { background: rgb(255 255 255 / .08); }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.25rem, 3vw, 2rem); counter-reset: step; }
.step {
    display: grid; grid-template-columns: 1fr;
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
}
@media (min-width: 40rem) {
    .step { grid-template-columns: minmax(12rem, 2fr) 3fr; }
}
.step__media { margin: 0; overflow: hidden; }
.step__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .8s var(--ease); }
.step:hover .step__media img { transform: scale(1.05); }
.step__body { padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.step__body h3 { display: flex; align-items: center; gap: .6rem; }
.step__num {
    display: inline-grid; place-items: center; flex: none;
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    background: var(--tomato); color: #fff; font-size: 1.3rem; font-weight: 900;
}
.step__body strong { color: var(--wine); }
.step__body strong[data-q] {
    background: linear-gradient(transparent 60%, rgb(216 144 101 / .35) 0);
    padding-inline: .1em; transition: background-color .3s;
}
.step__tip + .step__tip { margin-top: .6rem; }
.step__tip { font-size: .9em; color: var(--text-soft); margin: 0; padding-left: .9rem; border-left: 3px solid var(--palm); }
.step__time:empty, [data-oven][hidden] { display: none; }
.field__hint.is-warning { color: var(--tomato-dark); font-weight: 700; }
.step__time {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .02em;
    color: var(--leaf); background: rgb(164 190 160 / .35);
    padding: .2rem .7rem; border-radius: 999px; margin-bottom: .6rem;
}
.step__time::before {
    content: ""; width: .9em; height: .9em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* === Soße === */

.sauce { background: rgb(77 15 32 / .18); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.tabs { display: inline-flex; gap: .25rem; background: rgb(77 15 32 / .25); border-radius: 999px; padding: .3rem; margin-bottom: 1.75rem; }
.tabs [role="tab"] {
    border: 0; background: transparent; color: var(--white); cursor: pointer;
    font-family: var(--font-display); font-size: 1.3rem;
    padding: .4rem 1.25rem; border-radius: 999px; transition: background-color .25s, color .25s;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--sand-light); color: var(--tomato-dark); }
.sauce__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.sauce__panel:not([hidden]) { animation: fade-up .45s var(--ease); }
.mini-steps { margin: 0; padding-left: 1.25rem; display: grid; gap: .6rem; }
.mini-steps li::marker { font-family: var(--font-display); color: var(--sand-light); }

/* === Pizza-Slider auf Holzplatte === */

.board-slider {
    --board: url("../img/holzplatte.jpg");
    position: relative;
    width: min(100% - 2 * var(--gap), 80rem);
    margin: 0 auto clamp(3rem, 7vw, 5rem);
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    /* Platzhalter-Holz aus CSS, bis img/holzplatte.jpg existiert */
    background:
        var(--board) center / cover no-repeat,
        radial-gradient(120% 90% at 50% 40%, transparent 40%, rgb(40 20 8 / .45) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .19 0 0 0 0 .08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, transparent 0 7.5rem, rgb(60 30 10 / .35) 7.5rem calc(7.5rem + 2px)),
        linear-gradient(180deg, #b98552, #9c6a3b 55%, #8a5a2f);
    touch-action: pan-y;
    user-select: none;
}

.board-slider__stage {
    position: relative;
    aspect-ratio: 16 / 8;
    min-height: 18rem;
}
@media (max-width: 40rem) {
    .board-slider__stage { aspect-ratio: 3 / 2; min-height: 0; }
    .board-slide { inset: 6% 6% 4%; }
}

.board-slide {
    position: absolute; inset: 4% 16% 27%;
    display: grid; place-items: center;
    margin: 0;
    transform: translateX(var(--x, 130%)) rotate(var(--r, 0deg));
    opacity: var(--o, 0);
    transition: transform 1s var(--ease), opacity .8s var(--ease);
    will-change: transform;
    pointer-events: none;
}
.board-slide.is-active { --x: 0%; --o: 1; --r: 0deg; }
.board-slide.no-anim { transition: none; }
.board-slider.is-dragging .board-slide { transition: none; }
.board-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgb(30 12 0 / .45)) drop-shadow(0 4px 4px rgb(30 12 0 / .35));
    -webkit-user-drag: none;
}

.board-slider__caption {
    position: absolute; left: 0; right: 0; bottom: 4.5rem;
    display: flex; justify-content: center; pointer-events: none;
}
.caption-card {
    background: rgb(243 239 226 / .92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: .8rem 1.4rem;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: min(92%, 38rem);
    animation: caption-in .7s var(--ease) both;
}
.caption-card h3 { margin: 0 0 .15rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 900; }
.caption-card p { margin: 0; font-size: .9rem; color: var(--text); }
.caption-card .wine { margin-top: .35rem; color: var(--wine); font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }
.caption-card .wine svg { width: 1em; height: 1em; }
@keyframes caption-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 40rem) {
    .board-slider__caption { position: static; padding: 0 1rem 0; margin-top: -1rem; }
}

.board-slider__controls {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: .75rem;
    padding: 1rem;
}
.round-btn {
    width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0;
    background: rgb(243 239 226 / .9); color: var(--leaf);
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / .25);
    transition: transform .2s var(--ease), background-color .2s;
}
.round-btn:hover { transform: scale(1.08); background: var(--white); }
.round-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.round-btn .icon-play { fill: currentColor; stroke: none; display: none; }
.board-slider.is-paused .icon-pause { display: none; }
.board-slider.is-paused .icon-play { display: block; }

.board-slider__dots { display: flex; gap: .5rem; padding-inline: .5rem; }
.board-slider__dots button {
    width: .75rem; height: .75rem; border-radius: 999px; border: 0; padding: 0;
    background: rgb(243 239 226 / .55); cursor: pointer;
    transition: width .4s var(--ease), background-color .3s;
}
.board-slider__dots button[aria-current="true"] { width: 2rem; background: var(--sand-light); }

/* Belags-Karten */
.toppings-title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 900; }
.toppings {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
}
.topping {
    background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem;
    box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .6rem;
    transition: transform .3s var(--ease), box-shadow .3s;
    color: var(--text);
}
.topping:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.topping h4 { margin: 0; font-size: 1.6rem; font-weight: 900; }
.topping__ingredients { font-size: .92rem; margin: 0; flex: 1; }
.topping__wine {
    display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: center;
    padding-top: .75rem; border-top: 2px dashed var(--sand); font-size: .9rem; margin: 0;
}
.topping__wine .dot { width: .85rem; height: .85rem; border-radius: 50%; grid-row: span 2; align-self: start; margin-top: .3rem; }
.dot--rot { background: var(--wine); }
.dot--weiss { background: #e7d68a; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.dot--rose { background: #e6a1a0; }
.topping__wine strong { color: var(--wine); }
.topping__wine span:last-child { color: var(--text-soft); font-size: .85rem; }

/* === Rechtliche Seiten === */

.legal { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.legal__wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.legal h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 900; margin-top: 2.25rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { color: inherit; }
.legal a { text-decoration: underline; text-underline-offset: .2em; }
.legal code { font-size: .9em; background: var(--sand); padding: .1em .35em; border-radius: 4px; }
.legal__lead { font-size: 1.15em; background: var(--white); border-left: 4px solid var(--palm); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal__date, .legal__back { margin-top: 2.5rem; color: var(--text-soft); }
.todo { background: #ffe58a; color: var(--wine); padding: 0 .3em; border-radius: 4px; font-weight: 700; }

/* === Footer === */

.site-footer { background: var(--wine); color: var(--sand); padding: 3rem 0; text-align: center; font-size: .9rem; }
.site-footer a, .site-footer a:visited { color: var(--sand-light); }
.site-footer__logo { width: 12rem; height: auto; margin: 0 auto 1rem; transform: rotate(-4deg); filter: drop-shadow(0 8px 18px rgb(0 0 0 / .3)); }
.site-footer__sub { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; opacity: .85; }
.site-footer__links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.site-footer__copy { margin: 0; opacity: .8; }
.site-footer__brand { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--sand-light); margin-bottom: .1rem; }

/* === Scroll-Animationen === */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

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

/* === Druckansicht: nur Rezept === */

@media print {
    .site-header, .hero, #mehl, #inspiration, #ofen, .site-footer, .calc__actions, .calc__toast,
    .step__media, .skip-link, .tabs, .field, .calc__subtitle + .field { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .section { padding: 0 0 1rem; background: none !important; color: #000; }
    .section--tomato h2, .section--tomato h3, .ingredients--light td { color: #000 !important; }
    .recipe { display: block; }
    .calc__card, .step, .sauce { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; margin-bottom: .75rem; }
    .calc { position: static; }
    .calc__card { max-height: none; overflow: visible; }
    .sauce__panel[hidden] { display: block !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .step { grid-template-columns: 1fr; }
}
