/* Weingut Ziegler – Übergangsseite. Keine externen Ressourcen. */

:root {
    --cream: #f7f2e8;
    --paper: #fffdf8;
    --ink: #2a1f22;
    --muted: #6b5f58;
    --wine: #6e1f30;
    --wine-deep: #4d1420;
    --vine: #6b7a3c;
    --gold: #b38b4d;
    --line: #e4d9c6;

    --sun: #ecd3a0;
    --hill-1: #e5dac2;
    --hill-2: #b9b88a;
    --hill-3: #727c45;
    --rows: #4c5530;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 1.0625rem/1.65 var(--sans);
    color: var(--ink);
    background: var(--cream);
}

a { color: var(--wine); text-underline-offset: .18em; }
a:hover { color: var(--wine-deep); }

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

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.12;
    color: var(--wine-deep);
    margin: 0 0 .5em;
}

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Brand ---------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--wine);
    text-decoration: none;
}
.brand__mark { width: 34px; height: 41px; flex: none; }
.brand__leaf { fill: var(--vine); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; color: var(--wine-deep); }
.brand__place { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

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

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 85% 0%, #fbeacb 0%, transparent 60%),
        var(--cream);
    padding-bottom: clamp(150px, 22vw, 300px);
}

.hero__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-block: 1.5rem;
}

.hero__phone {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: .45rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, .6);
}
.hero__phone::before { content: "☎\FE0E"; margin-right: .45rem; color: var(--gold); }

.hero__body {
    position: relative;
    z-index: 1;
    padding-top: clamp(2.5rem, 8vw, 6rem);
    max-width: 1120px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1.4rem;
    padding: .4rem .9rem .4rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wine);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.pulse {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--vine);
    box-shadow: 0 0 0 0 rgba(107, 122, 60, .5);
    animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 .6rem rgba(107, 122, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 122, 60, 0); }
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    letter-spacing: -.01em;
    max-width: 14ch;
}

.lead {
    max-width: 38rem;
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    color: var(--muted);
    margin: 0 0 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.progress {
    list-style: none;
    margin: 2.8rem 0 0;
    padding: 0;
    display: grid;
    gap: .7rem;
    max-width: 26rem;
}
.progress li {
    display: grid;
    grid-template-columns: 6.5rem 1fr auto;
    align-items: center;
    gap: .9rem;
    font-size: .9rem;
}
.progress__label { font-weight: 600; }
.progress__state { font-size: .8rem; color: var(--muted); }
.progress__bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}
.progress__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--wine));
    animation: working 2.8s ease-in-out infinite;
}
.progress li + li .progress__bar span { animation-delay: -1.2s; }
@keyframes working {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(260%); }
}

.hills {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(170px, 26vw, 360px);
    display: block;
}
.hills .sun { fill: var(--sun); }
.hills .hill-1 { fill: var(--hill-1); }
.hills .hill-2 { fill: var(--hill-2); }
.hills .hill-3 { fill: var(--hill-3); }
.hills .rows { fill: none; stroke: var(--rows); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .1 11; }

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    font: 600 1rem/1.2 var(--sans);
    color: #fff;
    background: var(--wine);
    border: 1px solid var(--wine);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.button:hover { color: #fff; background: var(--wine-deep); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(77, 20, 32, .6); }
.button--ghost { color: var(--wine); background: transparent; border-color: rgba(110, 31, 48, .35); }
.button--ghost:hover { color: var(--wine-deep); background: var(--paper); box-shadow: none; }
.button--full { width: 100%; }

/* ---------- Kontakt ---------- */

.contact {
    background: var(--hill-3);
    background: linear-gradient(var(--hill-3) 0, #5e6738 100%);
    padding-block: 0 clamp(3rem, 8vw, 6rem);
    scroll-margin-top: 1rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.contact__info {
    color: #f3efe0;
    padding-top: 1rem;
}
.contact__info h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.contact__info p { color: #e5e3cd; max-width: 30rem; }
.contact__info a { color: #fff; }
.contact__info a:hover { color: var(--sun); }

.facts { margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.facts div { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 1rem; }
.facts dt {
    font-size: .75rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sun);
    margin-bottom: .25rem;
}
.facts dd { margin: 0; font-size: 1.1rem; }

.card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: 0 30px 60px -30px rgba(30, 20, 10, .45);
}
.card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- Formular ---------- */

.form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--wine); }

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d6cab6;
    border-radius: 10px;
    padding: .75rem .9rem;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(110, 31, 48, .15);
}

.field__hint { margin: 0; font-size: .85rem; color: var(--muted); }
.field__error { margin: 0; font-size: .875rem; font-weight: 600; color: #a3192f; }
.has-error input,
.has-error textarea { border-color: #a3192f; }

.field--check {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: .7rem;
    font-size: .92rem;
    color: var(--muted);
}
.field--check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--wine); }
.field--check label { font-weight: 400; font-size: inherit; }
.field--check .field__error { grid-column: 2; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    font-size: .95rem;
}
.notice strong { display: block; margin-bottom: .15rem; }
.notice--success { background: #eef2e1; border: 1px solid #c6d1a2; color: #3d4720; }
.notice--error { background: #fbeceb; border: 1px solid #efc2c0; color: #7d1726; }

/* ---------- Rechtliche Seiten ---------- */

.legal-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-header .wrap { padding-block: 1.25rem; }

.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal p, .legal li { color: #3e3330; }
.back { display: inline-block; margin-top: 2.5rem; font-weight: 600; }

/* ---------- Footer ---------- */

.footer {
    background: var(--wine-deep);
    color: #e9d9d4;
    font-size: .875rem;
}
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 2rem;
    padding-block: 1.4rem;
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--sun); text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .contact__grid { grid-template-columns: 1fr; }
    .contact__info { padding-top: 0; }
}

@media (max-width: 560px) {
    .hero__phone { display: none; }
    .form__row { grid-template-columns: 1fr; }
    .hero__actions .button { flex: 1 1 100%; }
    .progress li { grid-template-columns: 5.8rem 1fr auto; gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pulse, .progress__bar span { animation: none; }
    .progress__bar span { width: 100%; opacity: .55; }
    .button { transition: none; }
}
