/* ===========================================================================
   Food Free – zentrales Stylesheet
   Aesthetik: "Warm Luxury Editorial" – edel, ruhig, viel Weissraum,
   charaktervolle Serifen-Headlines, feine Gold-Details, dezente Textur.
   Farbpalette unveraendert. Schrift: Fraunces (Display) + Hanken Grotesk (Text).
   =========================================================================== */

:root {
    /* --- Farben (unveraendert) --- */
    --bg:        #F1E7D6;
    --bg-2:      #E9DCC6;
    --card:      #E4D6BF;
    --card-2:    #EFE4D1;
    --primary:   #6B4A37;
    --primary-d: #503624;
    --primary-l: #8a6446;
    --gold:      #C9A227;
    --gold-l:    #DBB94A;
    --gold-d:    #A8861C;
    --text:      #38291F;
    --text-soft: #7c6957;
    --cream:     #FBF4E8;
    --cream-soft:#E6D6BE;
    --line:      rgba(107, 74, 55, 0.16);
    --goldline:  rgba(201, 162, 39, 0.34);
    --weiss:     #FFFDF8;
    --fehler:    #a8281f;
    --erfolg:    #2f7d46;

    /* --- Schrift --- */
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans:  'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;

    /* --- Form --- */
    --radius:    20px;
    --radius-sm: 12px;
    --pill:      999px;

    /* --- Schatten (warm, geschichtet) --- */
    --schatten-s: 0 2px 6px rgba(56,41,31,.06), 0 8px 20px rgba(56,41,31,.07);
    --schatten:   0 4px 12px rgba(56,41,31,.07), 0 22px 48px rgba(56,41,31,.13);
    --schatten-l: 0 8px 22px rgba(56,41,31,.10), 0 40px 80px rgba(56,41,31,.18);

    --max: 1120px;
}

/* --- Reset / Grundlagen ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(1200px 620px at 82% -12%, var(--bg-2), transparent 58%),
        radial-gradient(820px 520px at 6% 2%, rgba(201,162,39,.10), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}

/* --- Typografie --------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--primary); }

p { margin: 0 0 1rem; }

a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-d); }

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

/* Überschriften-Accent: feine Goldlinie unter zentrierten Titeln */
h1.text-zentriert::after,
h2.text-zentriert::after,
.hero h1::after {
    content: "";
    display: block;
    width: 56px; height: 2px;
    margin: .85rem auto 0;
    background: linear-gradient(90deg, var(--gold-l), var(--gold-d));
    border-radius: 2px;
}

/* --- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.6rem; }
.inhalt { flex: 1 0 auto; padding: 3.5rem 0 5rem; }
.schmal { max-width: 470px; margin: 0 auto; }
.mittel { max-width: 760px; margin: 0 auto; }

/* --- Header ------------------------------------------------------------- */
.kopf {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(120deg, var(--primary-d), var(--primary) 62%, var(--primary-l));
    border-bottom: 1px solid rgba(201,162,39,.55);
    box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 26px rgba(56,41,31,.22);
}
.kopf .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 78px;
}
.logo {
    font-family: var(--serif);
    font-size: 1.55rem; font-weight: 600;
    letter-spacing: .01em;
    color: var(--cream);
}
.logo:hover { color: #fff; }
.logo .punkt { color: var(--gold-l); }

.nav { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.nav a {
    position: relative;
    padding: .55rem .9rem;
    color: var(--cream-soft);
    font-size: .93rem; font-weight: 500;
    letter-spacing: .01em;
    border-radius: var(--radius-sm);
}
.nav a:hover { color: #fff; }
/* feine Gold-Unterstreichung beim Hover/aktiv */
.nav a:not(.btn)::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .34rem;
    height: 1.5px; background: var(--gold-l);
    transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
    border-radius: 2px;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav a.aktiv { color: #fff; }
.nav a.aktiv::after { transform: scaleX(1); }

/* "Premium"/"Registrieren" im Header: goldener Blickfang */
.kopf .nav a.btn {
    background: linear-gradient(135deg, var(--gold-l), var(--gold-d));
    color: #322811;
    padding: .55rem 1.15rem;
    margin-left: .4rem;
    box-shadow: 0 4px 14px rgba(201,162,39,.34);
}
.kopf .nav a.btn::after { display: none; }
.kopf .nav a.btn:hover { color: #2b2310; filter: brightness(1.05); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 46px; height: 46px;
    background: none; border: none; cursor: pointer; border-radius: 12px; padding: 0;
}
.hamburger span { display: block; width: 25px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.hamburger.aktiv span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.aktiv span:nth-child(2) { opacity: 0; }
.hamburger.aktiv span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: none; cursor: pointer;
    font-family: var(--sans); font-weight: 600; font-size: .98rem;
    letter-spacing: .015em;
    padding: .85rem 1.7rem;
    border-radius: var(--pill);
    background: var(--primary);
    color: #fff;
    box-shadow: var(--schatten-s);
    transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn:hover { background: var(--primary-d); color: #fff; transform: translateY(-2px); box-shadow: var(--schatten); }
.btn:active { transform: translateY(0); }
.btn--block { display: flex; width: 100%; }

.btn--gold {
    background: linear-gradient(135deg, var(--gold-l), var(--gold-d));
    color: #2b2310;
    box-shadow: 0 8px 24px rgba(201,162,39,.36);
}
.btn--gold:hover { background: linear-gradient(135deg, var(--gold-l), var(--gold-d)); color: #2b2310; filter: brightness(1.06); }

.btn--ghost {
    background: transparent; color: var(--primary);
    border: 1.5px solid var(--primary); box-shadow: none;
}
.btn--ghost:hover { background: var(--primary); color: #fff; }

.btn--klein { padding: .42rem .95rem; font-size: .84rem; }
.btn--mitte { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

.btn--gefahr { background: var(--fehler); box-shadow: none; }
.btn--gefahr:hover { background: #861f18; }

/* --- Karten ------------------------------------------------------------- */
.karte {
    background: linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid var(--goldline);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 2.4rem;
}

/* --- Formulare ---------------------------------------------------------- */
.feld { margin-bottom: 1.2rem; }
.feld label {
    display: block; font-weight: 600; font-size: .8rem;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-soft); margin-bottom: .45rem;
}
.feld input, .feld select, .feld textarea {
    width: 100%; padding: .85rem 1rem;
    font-family: var(--sans); font-size: 1rem; color: var(--text);
    background: var(--weiss);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
    outline: none; border-color: var(--gold-d);
    box-shadow: 0 0 0 4px rgba(201,162,39,.16);
}
.feld textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.feld select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 2.6rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B4A37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 13px;
}
.feld select::-ms-expand { display: none; }
.feld input[type="date"] { width: 100%; box-sizing: border-box; text-align: left; -webkit-appearance: none; appearance: none; }
.feld input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.feld input[type="date"]::-webkit-calendar-picker-indicator { margin-left: auto; }

.feld--check { display: flex; align-items: flex-start; gap: .65rem; }
.feld--check input { width: auto; margin-top: .35rem; }
.feld--check label { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); }

.feld-hinweis { font-size: .85rem; color: var(--text-soft); margin-top: .4rem; }

/* --- Meldungen ---------------------------------------------------------- */
.meldung { padding: .95rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-size: .95rem; }
.meldung--fehler { background: #f6e1de; color: var(--fehler); border: 1px solid #e3b3ad; }
.meldung--erfolg { background: #e1f1e6; color: var(--erfolg); border: 1px solid #aad4b8; }
.meldung ul { margin: .35rem 0 0; padding-left: 1.2rem; }

/* --- Trenner mit Gold-Raute -------------------------------------------- */
.trenner {
    border: none; height: 1px; margin: 1.9rem 0; position: relative;
    background: linear-gradient(90deg, transparent, var(--goldline), transparent);
}
.trenner::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 6px; height: 6px; transform: translate(-50%,-50%) rotate(45deg);
    background: var(--gold); border-radius: 1px;
}

/* --- Premium-Badge ------------------------------------------------------ */
.badge-premium {
    display: inline-flex; align-items: center; gap: .35rem;
    background: linear-gradient(135deg, var(--gold-l), var(--gold-d));
    color: #2b2310; font-family: var(--sans);
    font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: var(--pill);
    box-shadow: 0 3px 10px rgba(201,162,39,.32);
}

/* --- Hilfsklassen ------------------------------------------------------- */
.text-zentriert { text-align: center; }
.text-soft { color: var(--text-soft); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.stapel > * + * { margin-top: 1.75rem; }

/* --- Hero --------------------------------------------------------------- */
.hero {
    text-align: center;
    max-width: 880px; margin: 0 auto;
    padding: 4rem 1.5rem 4.5rem;
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    font-family: var(--sans); font-size: .76rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d);
    margin-bottom: 1.4rem;
}
.hero .eyebrow::before, .hero .eyebrow::after {
    content: ""; width: 26px; height: 1px; background: var(--gold-d); opacity: .6;
}
.hero h1 { margin-bottom: .2rem; }
.hero p.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-soft);
    max-width: 56ch; margin: 1.6rem auto 2.2rem; line-height: 1.6;
}
.hero-aktionen { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-aktionen .btn { margin: 0; }

/* dezenter Erklär-Link */
.link-erklaer {
    background: none; border: none; cursor: pointer;
    font-family: var(--sans); font-weight: 600; font-size: .95rem;
    color: var(--primary); padding: .4rem .2rem;
    border-bottom: 1.5px solid var(--goldline);
    transition: color .18s ease, border-color .18s ease;
}
.link-erklaer:hover { color: var(--gold-d); border-color: var(--gold); }

/* Sanftes, gestaffeltes Einblenden der Hero-Elemente */
.hero > * { animation: aufblenden .8s cubic-bezier(.2,.7,.3,1) both; }
.hero .eyebrow      { animation-delay: .05s; }
.hero h1            { animation-delay: .14s; }
.hero p.lead        { animation-delay: .24s; }
.hero-aktionen      { animation-delay: .34s; }
.hero .mt-2         { animation-delay: .44s; }
@keyframes aufblenden { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero > * { animation: none; } }

/* --- Filterleiste (Entdecken) ------------------------------------------ */
.filterkarte { max-width: 580px; margin: 0 auto 1.9rem; padding: 1.6rem; }
.filterbar { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; }
.filterbar .feld { margin: 0; flex: 1; min-width: 90px; }
.filterbar .feld--breit { flex: 2.2; min-width: 160px; }
.filter-aktionen { display: flex; gap: .6rem; justify-content: center; margin-top: 1.2rem; }

/* --- Profilkarte (Entdecken) ------------------------------------------- */
.profilkarte {
    max-width: 460px; margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--goldline);
    border-radius: var(--radius);
    box-shadow: var(--schatten-l);
    overflow: hidden;
}
.profilkarte .foto { position: relative; }
.profilkarte .foto img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.profilkarte .foto .overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(56,41,31,.86));
    color: #fff; padding: 2.2rem 1.25rem 1.1rem; text-align: center;
}
.profilkarte .body { padding: 1.8rem; }
.profilkarte .name { margin-bottom: .15rem; }

/* --- Fotogalerie -------------------------------------------------------- */
.foto-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, 130px); justify-content: start; }
.foto-grid .item { text-align: center; }
.foto-grid .item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--schatten-s); border: 1px solid var(--goldline); }
.foto-grid .item form { margin: .45rem 0 0; }

/* --- Profilseite -------------------------------------------------------- */
.profil-wrap { max-width: 760px; margin: 0 auto; }

/* --- Modal -------------------------------------------------------------- */
.modal {
    width: min(560px, 92vw); max-height: 88vh; padding: 0;
    border: 1px solid var(--goldline); border-radius: var(--radius);
    background: linear-gradient(180deg, var(--card-2), var(--card));
    color: var(--text); box-shadow: var(--schatten-l); overflow: auto;
}
.modal::backdrop { background: rgba(56,41,31,.5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal .modal-inner { padding: 2.5rem; }
.modal[open] { animation: modal-auf .22s cubic-bezier(.2,.7,.3,1); }
@keyframes modal-auf { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* --- Blocksatz ---------------------------------------------------------- */
.blocktext { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }

/* --- Footer ------------------------------------------------------------- */
.fuss {
    flex-shrink: 0;
    background: linear-gradient(120deg, var(--primary-d), var(--primary));
    border-top: 1px solid rgba(201,162,39,.55);
    margin-top: 3.5rem; padding: 2.4rem 0;
    font-size: .9rem; color: var(--cream-soft);
}
.fuss .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.fuss-links a { color: var(--cream-soft); margin-right: 1.3rem; }
.fuss-links a:hover { color: var(--gold-l); }

/* --- Overflow-Schutz ---------------------------------------------------- */
.karte, .meldung, .profilkarte, .profilkarte .body, .feld, .hero, .modal, .nav a { min-width: 0; overflow-wrap: break-word; }
h1, h2, h3, p, a, span, label, li { overflow-wrap: break-word; }

/* --- Mobile Navigation (Hamburger + Klappmenue) ------------------------ */
.mobilnav { display: none; }
@media (max-width: 760px) {
    .hamburger { display: flex; }
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: .2rem;
        background: linear-gradient(160deg, var(--primary), var(--primary-d));
        border-bottom: 1px solid rgba(201,162,39,.55);
        box-shadow: 0 14px 28px rgba(56,41,31,.32);
        padding: .8rem 1rem 1.2rem;
    }
    .nav.offen { display: flex; }
    .nav a { width: 100%; padding: 1rem; font-size: 1.05rem; color: var(--cream); }
    .nav a:not(.btn)::after { display: none; }
    .nav a:hover, .nav a.aktiv { background: rgba(255,255,255,.10); color: var(--gold-l); }
    .kopf .nav a.btn { width: 100%; margin: .4rem 0 0; padding: .95rem 1rem; }
}

/* --- Responsiv ---------------------------------------------------------- */
@media (max-width: 560px) {
    body { font-size: 16px; }
    .karte { padding: 1.6rem; }
    .inhalt { padding: 2.25rem 0 3rem; }
    .kopf .container { min-height: 64px; }
    .logo { font-size: 1.35rem; }
    .hero { padding: 2.75rem 1rem 3.25rem; }
    .hero .eyebrow::before, .hero .eyebrow::after { width: 16px; }
    .hero-aktionen .btn { width: 100%; }
    .modal .modal-inner { padding: 1.6rem; }
}

/* --- Desktop-Politur (mehr Ruhe & Weissraum) --------------------------- */
@media (min-width: 761px) {
    .inhalt { padding: 4.5rem 0 6.5rem; }
    .hero { padding: 5.5rem 2rem 6rem; }
    .karte { padding: 2.8rem; }
    .stapel > * + * { margin-top: 2.5rem; }
    .blocktext, .hero p.lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
}
