:root {
    --rost: #b5502e;
    --rost-dunkel: #8b3d22;
    --rost-tief: #7a331c;
    --rost-hell: #f5e6df;
    --rost-hell-2: #ead0c4;
    --rost-text: #7a3319;

    --tinte: #1f2430;
    --tinte-sekundaer: #5b6472;
    --flaeche: #ffffff;
    --flaeche-sanft: #faf7f5;
    --rand: #e7ded9;

    --radius: 14px;
    --schatten: 0 12px 32px rgba(122, 51, 28, 0.10);

    font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--tinte);
    background: var(--flaeche);
    line-height: 1.55;
}

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

.breite {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--rost); }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn-voll {
    background: var(--rost);
    color: #fff;
}

.btn-voll:hover {
    background: var(--rost-dunkel);
}

.btn-leise {
    background: transparent;
    color: var(--rost-text);
    border: 1.5px solid var(--rost-hell-2);
}

.btn-leise:hover {
    background: var(--rost-hell);
    border-color: var(--rost);
}

.btn-gross {
    padding: 0.85rem 1.6rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* --------------------------------------------------------------------- Kopf */

.kopf {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--rand);
}

.kopf-inhalt {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 68px;
}

.marke {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--tinte);
    text-decoration: none;
    margin-right: auto;
}

.marke img { border-radius: 8px; }

.kopf-nav {
    display: flex;
    gap: 1.5rem;
}

.kopf-nav a {
    color: var(--tinte-sekundaer);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.kopf-nav a:hover { color: var(--rost); }

.kopf-aktionen {
    display: flex;
    gap: 0.6rem;
}

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

.hero {
    background: linear-gradient(180deg, var(--rost-hell) 0%, var(--flaeche) 78%);
    padding: 4rem 0 3rem;
}

.hero-inhalt {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ueberzeile {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--rost);
    margin: 0 0 0.6rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hero-lead {
    font-size: 1.08rem;
    color: var(--tinte-sekundaer);
    max-width: 46ch;
}

.hero-aktionen {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.hero-bild img {
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    border: 1px solid var(--rand);
}

/* --------------------------------------------------------------- Funktionen */

.funktionen { padding: 5rem 0; }

.abschnitt-titel {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 2.5rem;
}

.abschnitt-lead {
    text-align: center;
    color: var(--tinte-sekundaer);
    max-width: 56ch;
    margin: -1.5rem auto 2.5rem;
}

.funktionen-raster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.funktion {
    background: var(--flaeche-sanft);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 1.4rem;
}

.funktion-bild {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--rand);
    background: #fff;
}

.funktion-bild--icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rost-hell);
    border: none;
}

.funktion-bild--icon svg {
    width: 42px;
    height: 42px;
    color: var(--rost);
}

.funktion h3 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
}

.funktion p {
    margin: 0;
    color: var(--tinte-sekundaer);
    font-size: 0.95rem;
}

/* ------------------------------------------------------------------ Familie */

.familie {
    background: var(--rost-tief);
    color: #fff;
    padding: 5rem 0;
}

.familie-inhalt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.familie .ueberzeile { color: #f0c9b8; }

.familie h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.familie p { color: #f2ded4; }

.haken-liste {
    list-style: none;
    margin: 1.2rem 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.haken-liste li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 600;
}

.haken-liste li::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3"><path d="M5 13l4 4L19 7"/></svg>') center/70% no-repeat;
            mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3"><path d="M5 13l4 4L19 7"/></svg>') center/70% no-repeat;
    background-color: #f0c9b8;
    -webkit-mask-repeat: no-repeat;
}

.familie-bild img {
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------- Statistik */

.statistik {
    padding: 5rem 0;
    background: var(--flaeche-sanft);
    border-top: 1px solid var(--rand);
    border-bottom: 1px solid var(--rand);
}

.statistik-kennzahlen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.statistik-laedt,
.statistik-leer {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--tinte-sekundaer);
    padding: 2rem 0;
}

.statistik-kennzahl {
    text-align: center;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 1.75rem 1rem;
}

.statistik-kennzahl-wert {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--rost);
    line-height: 1.1;
}

.statistik-kennzahl-label {
    margin-top: 0.35rem;
    font-weight: 600;
}

.statistik-kennzahl-unter {
    margin-top: 0.35rem;
    color: var(--tinte-sekundaer);
    font-size: 0.85rem;
}

.statistik-rekorde {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.statistik-rekord-karte {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--flaeche);
    padding: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.statistik-rekord-karte:hover {
    border-color: var(--rost);
    box-shadow: var(--schatten);
}

.statistik-rekord-karte img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--rand);
    border-radius: 10px;
    flex: none;
    padding: 0.35rem;
}

.statistik-rekord-titel {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rost);
    font-weight: 700;
}

.statistik-rekord-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.15rem 0;
}

.statistik-rekord-wert {
    color: var(--tinte-sekundaer);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------- Marktplatz */

.marktplatz { padding: 5rem 0; }

.marktplatz-raster {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    min-height: 80px;
}

.marktplatz-laedt,
.marktplatz-leer {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--tinte-sekundaer);
    padding: 2rem 0;
}

.marktplatz-karte {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--flaeche-sanft);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.marktplatz-karte:hover {
    border-color: var(--rost);
    box-shadow: var(--schatten);
}

.marktplatz-karte img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    padding: 0.75rem;
}

.marktplatz-karte-info {
    padding: 0.85rem 1rem 1.1rem;
}

.marktplatz-karte-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
}

.marktplatz-karte-preis {
    color: var(--rost);
    font-weight: 700;
}

.marktplatz-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.marktplatz-fussnote {
    text-align: center;
    color: var(--tinte-sekundaer);
    font-size: 0.82rem;
    max-width: 52ch;
    margin: 1rem auto 0;
}

/* --------------------------------------------------------------- Rechtliches */

.rechtliches { padding: 4rem 0 5rem; }

.rechtstext {
    max-width: 70ch;
}

.rechtstext h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 1.5rem;
}

.rechtstext h2 {
    font-size: 1.1rem;
    margin: 2rem 0 0.5rem;
}

.rechtstext p {
    color: var(--tinte-sekundaer);
}

.rechtstext-platzhalter {
    background: var(--rost-hell);
    border: 1px solid var(--rost-hell-2);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--rost-text) !important;
    font-size: 0.9rem;
}

/* ----------------------------------------------------------------- Abschluss */

.abschluss {
    background: var(--rost-hell);
    padding: 4rem 0;
}

.abschluss-inhalt {
    text-align: center;
}

.abschluss h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* --------------------------------------------------------------------- Fuss */

.fuss {
    border-top: 1px solid var(--rand);
    padding: 2.5rem 0;
}

.fuss-inhalt {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.marke--fuss {
    font-size: 1rem;
    margin-right: 1rem;
}

.fuss-nav {
    display: flex;
    gap: 1.2rem;
    margin-right: auto;
}

.fuss-nav a {
    color: var(--tinte-sekundaer);
    text-decoration: none;
    font-size: 0.9rem;
}

.fuss-nav a:hover { color: var(--rost); }

.fuss-copy {
    color: var(--tinte-sekundaer);
    font-size: 0.85rem;
    margin: 0;
}

/* -------------------------------------------------------------------- Mobil */

@media (max-width: 900px) {
    .kopf-nav { display: none; }

    .hero-inhalt,
    .familie-inhalt {
        grid-template-columns: 1fr;
    }

    .hero-bild { order: -1; }

    .funktionen-raster {
        grid-template-columns: repeat(2, 1fr);
    }

    .marktplatz-raster {
        grid-template-columns: repeat(2, 1fr);
    }

    .statistik-kennzahlen,
    .statistik-rekorde {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .funktionen-raster,
    .marktplatz-raster {
        grid-template-columns: 1fr;
    }

    .hero-aktionen .btn { width: 100%; }

    .kopf-aktionen .btn-leise { display: none; }
}
