/* ==========================================================
   Rübel Wein – styles.css
   Brand Colors:
     Green   #8DC63F
     Wine    #76111B
     Black   #000000
     White   #FFFFFF
   ========================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    color: #000;
    background: #fff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    transition: background .3s ease;
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav__logo img {
    height: 40px;
    width: auto;
}

.nav__back {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: .85rem;
    color: #555;
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .3s;
}

.nav__back:hover {
    color: #8DC63F;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav__links a {
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #000;
}

.nav__links a:hover {
    color: #76111B;
}

/* Hamburger */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, .4) 0%,
        rgba(0, 0, 0, .6) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero__logo {
    width: min(300px, 60vw);
    margin: 0 auto 2rem;
}

.hero__title {
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: .75rem;
}

.hero__claim {
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, .8);
    letter-spacing: .04em;
}

/* ---------- FOTO-DIVIDER ---------- */
.foto-divider {
    width: 100%;
    max-height: 100vh;
    overflow: hidden;
    line-height: 0;
}

.foto-divider img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: top;
    filter: saturate(.85);
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 6rem 2rem;
}

.section__inner {
    max-width: 800px;
    margin: 0 auto;
}

.section--white {
    background: #F7F6F3;
    color: #1a1a1a;
}

.section--dark {
    background: #1a1a1a;
    color: #F7F6F3;
}

.section__heading {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: .06em;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section__heading::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: #8DC63F;
    margin-top: .75rem;
    border-radius: 2px;
}

.section__heading--light {
    color: #fff;
}

.section__text p {
    font-weight: 300;
    font-size: 1.05rem;
    max-width: 640px;
    line-height: 1.9;
}

.section__text p + p {
    margin-top: 1.5rem;
}

/* ---------- WEINE GRID ---------- */
.weine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.wein-card {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color .3s ease;
}

.wein-card:hover {
    border-color: #8DC63F;
}

.wein-card__accent {
    width: 4px;
    height: 32px;
    background: #76111B;
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.wein-card__accent--weiss {
    background: #8DC63F;
}

.wein-card__accent--rot {
    background: #76111B;
}

.wein-card__accent--rose {
    background: #D98C91;
}

.wein-card__name {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: .5rem;
    color: #fff;
}

.wein-card__desc {
    font-weight: 300;
    font-size: .95rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
}

.wein-card--coming {
    opacity: .7;
    border-style: dashed;
}

.wein-card__badge {
    display: inline-block;
    font-weight: 500;
    font-size: .7rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8DC63F;
    border: 1px solid #8DC63F;
    border-radius: 3px;
    padding: .1em .5em;
    margin-left: .5rem;
    vertical-align: middle;
}

/* ---------- BESTELLEN ---------- */
.section__text--light {
    color: rgba(255, 255, 255, .75);
}

.section__text--light p {
    color: rgba(255, 255, 255, .75);
}

.bestellen__btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: #8DC63F;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: .04em;
    transition: background .3s, transform .2s;
}

.bestellen__btn:hover {
    background: #7ab832;
    transform: translateY(-2px);
}

.bestellen__btn--produkt {
    margin-top: 1.5rem;
    padding: .75rem 2rem;
    font-size: .9rem;
}

.produkt__ausgetrunken {
    display: inline-block;
    margin-top: 1.5rem;
    padding: .5rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: rgba(0, 0, 0, .4);
    border: 2px solid rgba(0, 0, 0, .15);
    letter-spacing: .04em;
}

.bestellen-page {
    background:
        radial-gradient(circle at top left, rgba(141, 198, 63, .12), transparent 34%),
        radial-gradient(circle at top right, rgba(118, 17, 27, .12), transparent 28%),
        #fff;
}

.bestellen {
    max-width: 1120px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.bestellen__intro {
    max-width: 760px;
    margin-bottom: 2rem;
}

.bestellprodukte {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.produktkarte {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
}

.produktkarte h2 {
    margin-bottom: .45rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.produktkarte__preis {
    font-weight: 600;
    color: #76111B;
}

.produktkarte__preis span {
    color: rgba(0, 0, 0, .55);
    font-weight: 400;
}

.produktkarte__link {
    justify-self: start;
    font-weight: 600;
    color: #8DC63F;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.produktkarte--form {
    margin-bottom: 0;
}

.bestellen__eyebrow {
    display: inline-block;
    margin-bottom: .85rem;
    padding: .35rem .8rem;
    background: rgba(118, 17, 27, .08);
    color: #76111B;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bestellen__title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: .01em;
}

.bestellen__lead {
    max-width: 70ch;
    font-size: 1.05rem;
    color: rgba(0, 0, 0, .75);
}

.bestellen__facts {
    display: grid;
    gap: .5rem;
    margin-top: 1.4rem;
    padding-left: 1.1rem;
    color: rgba(0, 0, 0, .72);
}

.bestellen__panel,
.bestellen__hinweis {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
}

.bestellen__panel {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.bestellstatus {
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #8DC63F;
    background: rgba(141, 198, 63, .08);
    color: rgba(0, 0, 0, .84);
}

.bestellstatus ul {
    margin: .6rem 0 0 1rem;
}

.bestellstatus--success {
    border-left-color: #8DC63F;
    background: rgba(141, 198, 63, .12);
}

.bestellstatus--note {
    border-left-color: #76111B;
    background: rgba(118, 17, 27, .08);
}

.bestellstatus--error {
    border-left-color: #b00020;
    background: rgba(176, 0, 32, .08);
}

.bestellformular {
    display: grid;
    gap: 1.5rem;
}

.bestellformular__gruppe {
    border: 0;
    padding: 0;
}

.bestellformular__gruppe legend {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #76111B;
}

.bestellmengen,
.bestellformular__grid {
    display: grid;
    gap: 1rem;
}

.bestellmengen {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bestellformular__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bestellfeld {
    display: grid;
    gap: .45rem;
    color: rgba(0, 0, 0, .78);
    font-weight: 500;
}

.bestellfeld span {
    font-size: .92rem;
    letter-spacing: .02em;
}

.bestellfeld input,
.bestellfeld textarea {
    width: 100%;
    padding: .95rem 1rem;
    border: 1px solid rgba(0, 0, 0, .14);
    background: #fff;
    color: #000;
    font: inherit;
    border-radius: 0;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.bestellfeld textarea {
    resize: vertical;
    min-height: 124px;
}

.bestellfeld input:focus,
.bestellfeld textarea:focus {
    outline: none;
    border-color: #76111B;
    box-shadow: 0 0 0 3px rgba(118, 17, 27, .12);
}

.bestellfeld--quantity input {
    max-width: 7rem;
}

.bestellfeld--wide {
    grid-column: 1 / -1;
}

.bestellformular__submit {
    border: 0;
    cursor: pointer;
}

.bestellen__hinweis {
    max-width: 760px;
    padding: 1.5rem 1.75rem;
    color: rgba(0, 0, 0, .75);
}

.bestellen__hinweis h2 {
    margin-bottom: .6rem;
    font-size: 1.2rem;
    color: #000;
}

.bestellen__hinweis p {
    margin: 0;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #000;
    color: #fff;
    padding: 5rem 2rem 2rem;
}

.footer__inner {
    max-width: 800px;
    margin: 0 auto;
}

.footer__heading {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: .06em;
    margin-bottom: 2.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.footer__heading::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: #8DC63F;
    margin-top: .75rem;
    border-radius: 2px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__col p {
    font-weight: 300;
    font-size: .95rem;
    line-height: 1.9;
}

.footer__col a:hover {
    color: #8DC63F;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.5rem;
    text-align: center;
    font-weight: 300;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

.footer__bottom a {
    color: rgba(255, 255, 255, .5);
}

.footer__bottom a:hover {
    color: #8DC63F;
}

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- JAHRGANGS-LINKS IN CARDS ---------- */
.wein-card__jahrgaenge {
    list-style: none;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.wein-card__jahrgaenge a {
    display: inline-block;
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 3px;
    padding: .3em .8em;
    transition: color .25s ease, border-color .25s ease;
}

.wein-card__jahrgaenge a:hover {
    color: #8DC63F;
    border-color: #8DC63F;
}

/* ---------- PRODUKTSEITE ---------- */
.produkt {
    padding: 8rem 2rem 4rem;
    background: #F7F6F3;
    min-height: 100vh;
}

.produkt__inner {
    max-width: 900px;
    margin: 0 auto;
}

.produkt__back {
    display: inline-block;
    font-weight: 500;
    font-size: .85rem;
    letter-spacing: .04em;
    color: #76111B;
    margin-bottom: 2.5rem;
    transition: color .25s ease;
}

.produkt__back:hover {
    color: #8DC63F;
}

.produkt__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.produkt__image-placeholder {
    aspect-ratio: 3 / 4;
    background: #e8e6e1;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 300;
    font-size: .95rem;
    color: #999;
}

.produkt__kategorie {
    display: inline-block;
    font-weight: 500;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25em .7em;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.produkt__kategorie--weiss {
    background: rgba(141, 198, 63, .12);
    color: #5a8a1e;
}

.produkt__kategorie--rot {
    background: rgba(118, 17, 27, .1);
    color: #76111B;
}

.produkt__kategorie--rose {
    background: rgba(217, 140, 145, .15);
    color: #a45a5f;
}

.produkt__name {
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: .04em;
    color: #1a1a1a;
    margin-bottom: .5rem;
}

.produkt__jahrgang {
    font-weight: 400;
    font-size: .95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.produkt__beschreibung {
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

.produkt__preis {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a1a1a;
    margin: 1rem 0;
}

.produkt__grundpreis {
    font-weight: 400;
    font-size: 0.9rem;
    color: #666;
}

.produkt__versandhinweis {
    font-weight: 300;
    font-size: .85rem;
    color: #888;
    margin-bottom: .5rem;
}

.produkt__versandhinweis a {
    color: #76111B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.produkt__versandhinweis a:hover {
    color: #8DC63F;
}

/* ---------- AUSBAU ---------- */
.ausbau {
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.ausbau__heading {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.ausbau__text {
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    max-width: 640px;
}

/* ---------- EXPERTISE ---------- */
.expertise {
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.expertise__heading {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.expertise__tabelle {
    width: 100%;
    max-width: 480px;
    border-collapse: collapse;
}

.expertise__tabelle th,
.expertise__tabelle td {
    text-align: left;
    padding: .55rem .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    font-size: .95rem;
}

.expertise__tabelle th {
    font-weight: 500;
    color: #1a1a1a;
    width: 45%;
}

.expertise__tabelle td {
    font-weight: 300;
    color: #444;
}

.expertise__note {
    font-size: .85rem;
    color: #888;
    margin-top: 1rem;
}

/* ---------- NÄHRWERTE ---------- */
.naehrwerte {
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: 2.5rem;
}

.naehrwerte__heading {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.naehrwerte__sub {
    font-weight: 500;
    font-size: 1rem;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

.naehrwerte__hinweis {
    margin-bottom: .5rem;
}

.naehrwerte__tabelle {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    margin-top: .5rem;
}

.naehrwerte__tabelle th,
.naehrwerte__tabelle td {
    text-align: left;
    padding: .6rem .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-weight: 300;
    font-size: .95rem;
}

.naehrwerte__tabelle th {
    font-weight: 500;
    color: #1a1a1a;
}

.naehrwerte__note {
    font-size: .85rem;
    color: #888;
    margin-top: 1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70vw;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right .35s ease;
        border-left: 1px solid rgba(0, 0, 0, .06);
    }

    .nav__links.open {
        right: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero__logo {
        width: min(240px, 65vw);
    }

    .produkt__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .produkt {
        padding: 6rem 1.5rem 3rem;
    }

    .bestellen {
        padding: 6rem 1.5rem 3rem;
    }

    .bestellen__panel {
        padding: 1.5rem;
    }

    .bestellprodukte {
        grid-template-columns: 1fr;
    }

    .bestellen__facts {
        padding-left: 1rem;
    }

    .bestellmengen,
    .bestellformular__grid {
        grid-template-columns: 1fr;
    }

    .bestellfeld--quantity input {
        max-width: 100%;
    }

    .foto-divider,
    .foto-divider img {
        max-height: 50vh;
        height: 50vh;
    }
}
