/* ============================================================
   Wildmarkt – Stylesheet
   ============================================================ */

:root {
    --green: #2f4a34;
    --green-dark: #1e3024;
    --green-light: #4a6b52;
    --accent: #c8752f;
    --accent-dark: #a85f22;
    --cream: #f7f3ec;
    --card-bg: #ffffff;
    --text: #24302a;
    --text-muted: #6b7669;
    --border: #e2ddd0;
    --danger: #b3372c;
    --ok: #2f7d4f;
    --warn: #c8752f;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(30, 48, 36, 0.08);
    --header-h: 61px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; color: var(--green-dark); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.wm-icon { display: inline-block; vertical-align: -4px; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.site-header {
    background: var(--green);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--shadow);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}
.icon-link:hover { background: rgba(255,255,255,0.12); }

.badge-dot {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--green);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #c9c2b3; cursor: not-allowed; }

.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-ghost { background: transparent; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-secondary { background: #eee7d9; color: var(--green-dark); }
.btn-secondary:hover { background: #e2d8c2; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f2b22; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
}
.icon-btn:hover { background: var(--cream); }
.icon-btn.danger { color: var(--danger); border-color: #eccac5; }

/* ---------------------------------------------------------------
   Layout containers
   --------------------------------------------------------------- */

.site-main { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.site-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 2rem 1.25rem 2.5rem;
}

/* ---------------------------------------------------------------
   Hero + Suche
   --------------------------------------------------------------- */

.hero {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 1.75rem;
}
.hero h1 { color: #fff; margin-bottom: 0.4rem; }
.hero p { color: rgba(255,255,255,0.85); max-width: 46em; }

.search-form {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.3rem;
    max-width: 480px;
    flex-wrap: wrap;
}
.search-form input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
}

.search-form { max-width: 640px; }
.geo-status {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    margin: 0.6rem 0 0;
    min-height: 1.1em;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 1.5rem;
}
.chip {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.chip:hover:not(.active) { border-color: var(--green-light); }

/* ---------------------------------------------------------------
   Angebots-Grid & Karten
   --------------------------------------------------------------- */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.15rem;
}

.listing-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.listing-card-image {
    aspect-ratio: 4 / 3;
    background: #e9e4d6 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b7ae98" stroke-width="1.4"><circle cx="12" cy="12" r="9"/></svg>') center/40% no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.listing-card-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}
.badge-verfuegbar { background: var(--ok); }
.badge-angefragt { background: var(--warn); }
.badge-reserviert { background: var(--warn); }
.badge-nicht-verfuegbar { background: #8a8378; }

.fav-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}
.fav-btn.active { color: var(--danger); }
.fav-btn svg { fill: none; stroke: currentColor; }
.fav-btn.active svg { fill: currentColor; }

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(47,125,79,0.12);
    color: var(--ok);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    width: fit-content;
}
.verified-badge .wm-icon { width: 14px; height: 14px; }

.listing-card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.listing-card-title { font-weight: 700; font-size: 1.02rem; color: var(--green-dark); }
.listing-card-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.listing-card-seller { font-size: 0.8rem; color: var(--text-muted); }
.listing-card-price { font-weight: 700; color: var(--accent-dark); font-size: 1.05rem; margin-top: 0.2rem; }
.listing-card-weight { font-size: 0.82rem; color: var(--text-muted); }
.listing-card-footer { margin-top: 0.7rem; }

.new-listing-tile {
    border: 2px dashed var(--green-light);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-decoration: none;
    color: var(--green);
    gap: 0.5rem;
    font-weight: 700;
}
.new-listing-tile:hover { background: rgba(74,107,82,0.06); }

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
}

/* ---------------------------------------------------------------
   Formulare
   --------------------------------------------------------------- */

.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    max-width: 520px;
}

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="file"], select, textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--green-light);
}

.checkbox-row { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 500; }

.form-actions { display: flex; gap: 0.6rem; margin-top: 1.4rem; }

.alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.1rem;
    font-size: 0.92rem;
}
.alert-error { background: #fbe9e7; color: var(--danger); border: 1px solid #f3c9c2; }
.alert-success { background: #e6f3ea; color: var(--ok); border: 1px solid #bfe2cb; }
.alert-info { background: #eef2ec; color: var(--green-dark); border: 1px solid #d6ddd0; }

/* ---------------------------------------------------------------
   Reservierungs-Dialog
   --------------------------------------------------------------- */

dialog.reserve-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    width: min(440px, 92vw);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
dialog.reserve-dialog::backdrop { background: rgba(20, 28, 22, 0.55); }
.dialog-inner { padding: 1.6rem; }
.dialog-close { position: absolute; top: 0.9rem; right: 1rem; background: none; border: none; cursor: pointer; color: var(--text-muted); }
.reserve-summary {
    background: var(--cream);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}
.reserve-summary strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; color: var(--green-dark); }

/* ---------------------------------------------------------------
   Dashboard
   --------------------------------------------------------------- */

.dash-section { margin-bottom: 2.2rem; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }

/* ---------------------------------------------------------------
   Reiter im Dashboard – leere Bereiche bekommen gar keinen Reiter
   --------------------------------------------------------------- */

.tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0 0 1.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 1.5px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 42px;
}
.tab:hover { background: rgba(74,107,82,0.08); color: var(--green-dark); }
.tab.is-active { background: var(--green); color: #fff; }
.tab.is-active:hover { background: var(--green); }

.tab-count {
    background: rgba(0,0,0,0.12);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tab.is-active .tab-count { background: rgba(255,255,255,0.25); }

.tab-panel[hidden] { display: none; }

.request-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.request-info strong { display: block; color: var(--green-dark); }
.request-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.request-contact { font-size: 0.85rem; margin-top: 0.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.request-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--warn);
}
.status-pill.pill-ok { background: var(--ok); }

/* Admin: Jagdschein-Prüfung */
.review-note {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--green-dark);
    background: var(--cream);
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
}
.review-data {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.review-data strong { color: var(--text); }

.mine-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.mine-table th, .mine-table td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.mine-table th { background: var(--cream); color: var(--green-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; }
.mine-table tr:last-child td { border-bottom: none; }
.mine-table .row-actions { display: flex; gap: 0.4rem; }

/* ---------------------------------------------------------------
   Klickbare Karten (Startseite) – gestreckter Link
   --------------------------------------------------------------- */

.listing-card { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.listing-card:hover { box-shadow: 0 6px 20px rgba(30,48,36,0.14); transform: translateY(-2px); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.fav-btn { z-index: 3; }
.card-cta { position: relative; z-index: 2; }
textarea { min-height: 96px; resize: vertical; }

.request-qty {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

/* ---------------------------------------------------------------
   Einheiten-Umschalter im Angebotsformular
   --------------------------------------------------------------- */

.unit-toggle { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.unit-option {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}
.unit-option input { width: auto; margin: 0; }
.unit-option:has(input:checked) {
    border-color: var(--green);
    background: rgba(74,107,82,0.08);
    color: var(--green-dark);
}

/* ---------------------------------------------------------------
   Angebots-Detailseite
   --------------------------------------------------------------- */

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.back-link:hover { text-decoration: underline; }

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
    margin-bottom: 1.75rem;
}

.detail-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: #e9e4d6 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b7ae98" stroke-width="1.4"><circle cx="12" cy="12" r="9"/></svg>') center/35% no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: var(--shadow);
}
.detail-image .listing-card-badge { top: 0.75rem; left: 0.75rem; }

.detail-category {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(74,107,82,0.12);
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.detail-info h1 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.detail-price { font-size: 1.5rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 1.1rem; }

.detail-facts { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.detail-facts li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.detail-facts li span { color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.detail-facts li strong { color: var(--green-dark); text-align: right; }

.detail-description h3 { margin-bottom: 0.4rem; }
.detail-description p { color: var(--text); font-size: 0.95rem; }

.detail-reserve {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem;
    max-width: 560px;
}
.detail-reserve h2 { margin-bottom: 0.4rem; }

/* ---------------------------------------------------------------
   Jagdschein-Prüfung: Ladeanzeige + Ergebnis
   --------------------------------------------------------------- */

.verify-screen {
    max-width: 480px;
    margin: 2.5rem auto;
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 1.75rem;
}
.verify-screen h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.verify-screen p { color: var(--text); }
.verify-screen .btn { margin-top: 1.2rem; }

.scope-loader { width: 130px; height: 130px; margin: 0 auto 1.5rem; }
.scope-ring { transform-origin: 50% 50%; animation: scope-spin 1.05s linear infinite; }
@keyframes scope-spin { to { transform: rotate(360deg); } }

.verify-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
    max-width: 320px;
    margin: 1.6rem auto 0;
}
.verify-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: var(--accent);
    animation: verify-bar-move 1.15s ease-in-out infinite;
}
@keyframes verify-bar-move {
    0%   { margin-left: -40%; }
    100% { margin-left: 100%; }
}

.result-icon { width: 96px; height: 96px; margin: 0 auto 1.2rem; }
.result-icon.result-ok { color: var(--ok); }
.result-icon.result-pending { color: var(--warn); }
.result-icon svg { animation: result-pop 0.35s ease-out; }
@keyframes result-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .scope-ring, .verify-bar span, .result-icon svg { animation: none; }
}

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

@media (max-width: 820px) {
    .detail-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .detail-image { max-width: 520px; }

    /* Kategorien als eine seitlich wischbare Zeile statt vier Umbruchzeilen. */
    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0.9rem 0.7rem;
        margin: 1rem -0.9rem 1.2rem;
        scrollbar-width: none;
    }
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chips > * { flex: 0 0 auto; scroll-snap-align: start; }
    .chip { padding: 0.6rem 1.1rem; }

    /* Größeres Fingerziel zum Löschen einer Kategorie. */
    .chip-del-form { top: -9px; right: -9px; }
    .chip-del { width: 26px; height: 26px; font-size: 1.1rem; }
}

@media (max-width: 700px) {
    :root { --header-h: 64px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    .brand { font-size: 1.15rem; }
    .site-header-inner { padding: 0.6rem 0.9rem; gap: 0.5rem; }
    .site-nav { gap: 0.2rem; }
    .site-main { padding: 1rem 0.9rem 3rem; }
    .main-menu { right: 0.9rem; }
    .cart-fab { right: 0.9rem; width: 56px; height: 56px; }

    .hero { padding: 1.4rem 1.15rem; }
    .hero h1 { font-size: 1.45rem; }
    .search-row { flex-direction: column; align-items: stretch; }
    .search-row .search-form { margin-top: 1.1rem; }
    .search-form input[type="text"] { min-width: 0; }
    .wish-add { margin-top: 0; width: 100%; justify-content: center; }
    .wish-panel { padding: 1.15rem; }
    .wish-grid { grid-template-columns: 1fr; }

    .listing-grid { grid-template-columns: 1fr; gap: 1rem; }
    .listing-card-image { aspect-ratio: 16 / 9; }
    .new-listing-tile { min-height: 110px; }

    .form-card, .detail-reserve, .info-sheet { padding: 1.15rem; max-width: none; }
    .detail-price { font-size: 1.3rem; }

    .request-card { flex-direction: column; align-items: stretch; }
    .request-actions { flex-wrap: wrap; }
    .request-actions > * { flex: 1 1 30%; }
    .request-actions .btn { width: 100%; justify-content: center; }
    .info-actions .btn { flex: 1; justify-content: center; }

    /* Tabellen werden zu Karten – kein seitliches Scrollen mehr. */
    .mine-table, .mine-table tbody, .mine-table tr, .mine-table td { display: block; width: 100%; }
    .mine-table { box-shadow: none; background: none; border-radius: 0; }
    .mine-table thead { display: none; }
    .mine-table tr {
        background: var(--card-bg);
        border: 1.5px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-bottom: 0.8rem;
        padding: 0.3rem 0.2rem;
    }
    .mine-table td {
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        text-align: right;
        padding: 0.6rem 0.9rem;
    }
    .mine-table td:last-child { border-bottom: none; }
    .mine-table td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--text-muted);
        text-align: left;
        flex-shrink: 0;
    }
    .mine-table .row-actions { justify-content: flex-end; }

    /* Fingerfreundliche Mindestgrößen */
    .btn { padding: 0.7rem 1.1rem; min-height: 44px; }
    .btn-sm { padding: 0.5rem 0.9rem; min-height: 40px; }
    .icon-btn { width: 42px; height: 42px; }
    input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
    input[type="number"], input[type="date"], select, textarea { font-size: 16px; }
}

/* "+"-Chip zum schnellen Kategorie-Anlegen (nur Jäger) */
.filter-chips button.chip { font-family: inherit; }
.chip-add { cursor: pointer; font-weight: 700; font-size: 1.05rem; line-height: 1; padding: 0.35rem 0.85rem; }
.chip-add:hover { border-color: var(--green-light); }
.add-cat-form {
    display: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 1.5rem;
}
.add-cat-form input[type="text"] { max-width: 240px; }

/* Kategorie löschen: kleines Minus oben rechts auf dem Chip-Rand (nur Jäger) */
.chip-group { position: relative; display: inline-flex; }
.chip-del-form { position: absolute; top: -7px; right: -7px; margin: 0; z-index: 2; line-height: 0; }
.chip-del {
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    box-shadow: 0 1px 3px rgba(30,48,36,0.2);
}
.chip-del:hover { color: #fff; background: var(--danger); border-color: var(--danger); }

/* ---------------------------------------------------------------
   Dekorative Hirsch-Silhouetten in den Seitenrändern
   (nur auf breiten Desktop-Ansichten, rein dekorativ)
   --------------------------------------------------------------- */
/* Ein großer grüner Hirschkopf links und rechts im leeren Seitenrand.
   Nur Desktop (ab 1440px), damit er nie über den Inhalt läuft. */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: calc((100vw - 1180px) / 2);   /* volle Seitenspalte -> Hirsch mittig darin */
    height: 340px;
    background: no-repeat center / contain;
    background-image: url("/assets/img/hirsch-kopf-gruen.png");
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
    display: none;
}
body::before { left: 0; }
body::after  { right: 0; transform: translateY(-50%) scaleX(-1); }

@media (min-width: 1440px) {
    body::before, body::after { display: block; }
}

/* ---------------------------------------------------------------
   Schwebender Warenkorb (Normalnutzer) – erscheint nur mit Inhalt
   --------------------------------------------------------------- */

.cart-fab {
    position: fixed;
    top: calc(var(--header-h) + 0.7rem);
    right: max(1.25rem, calc((100vw - 1180px) / 2 + 1.25rem));
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 48, 36, 0.28);
    z-index: 25;
    animation: cart-fab-in 0.25s ease-out;
}
.cart-fab[hidden] { display: none; }
.cart-fab:hover { background: var(--accent-dark); }
.cart-fab .wm-icon { width: 24px; height: 24px; }
.cart-fab .badge-dot { top: -2px; right: -2px; border-color: var(--cream); }

@keyframes cart-fab-in {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cart-fab { animation: none; }
}

/* ---------------------------------------------------------------
   Burger-Menü
   --------------------------------------------------------------- */

.burger {
    position: relative;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}
.burger:hover { background: rgba(255,255,255,0.12); }
.burger span:not(.badge-dot) {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger .badge-dot { top: 2px; right: 2px; }

.main-menu {
    position: absolute;
    top: 100%;
    right: max(1.25rem, calc((100% - 1180px) / 2 + 1.25rem));
    width: min(280px, calc(100vw - 2rem));
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(20, 28, 22, 0.25);
    padding: 0.5rem;
    z-index: 30;
}
.main-menu[hidden] { display: none; }

.menu-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem 0.8rem;
    font-weight: 700;
    color: var(--green-dark);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.4rem;
}
.menu-user .avatar { width: 32px; height: 32px; flex-shrink: 0; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 44px;
}
.menu-item:hover { background: var(--cream); }
.menu-item .wm-icon { color: var(--green); flex-shrink: 0; }
.menu-item span:not(.menu-count) { flex: 1; }

.menu-count {
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.menu-count[hidden] { display: none; }

.site-main { position: relative; z-index: 1; }

/* ---------------------------------------------------------------
   Suche + Gesuch-Panel
   --------------------------------------------------------------- */

.search-row { display: flex; align-items: flex-start; gap: 0.7rem; flex-wrap: wrap; }
.search-row .search-form { flex: 1; margin-top: 1.3rem; }

.wish-add {
    margin-top: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1.5px dashed rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.wish-add:hover { background: rgba(255,255,255,0.2); }
.search-note { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 600; margin: 0.7rem 0 0; }
.wish-hint { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin: 0.8rem 0 0; }

/* Hero: zweispaltig mit Vorbestell-Hinweis rechts */
.hero-inner { display: flex; gap: 2rem; align-items: stretch; }
.hero-main { flex: 1; min-width: 0; }
.hero-aside {
    flex: 0 0 340px;
    align-self: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}
.hero-aside-lead { color: rgba(255,255,255,0.92); font-size: 0.9rem; line-height: 1.45; margin: 0 0 0.7rem; }
.hero-aside-lead strong { color: #fff; font-weight: 800; }
.hero-aside-list {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
@media (max-width: 860px) {
    .hero-inner { flex-direction: column; gap: 1.3rem; }
    .hero-aside { flex-basis: auto; width: 100%; align-self: stretch; }
}

/* Archiv-Karten (abgearbeitete Anfragen) etwas ruhiger */
.request-card.is-archived { border-left: 3px solid var(--ok); background: rgba(47,125,79,0.04); }

.wish-panel {
    display: none;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.wish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.wish-grid-full { grid-column: 1 / -1; }

/* ---------------------------------------------------------------
   Regional-Kennzeichnung
   --------------------------------------------------------------- */

.regional-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(47,125,79,0.12);
    color: var(--ok);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    width: fit-content;
}
.regional-badge .wm-icon { width: 15px; height: 15px; }
.regional-badge-sm { font-size: 0.72rem; padding: 0.1rem 0.55rem; margin: 0.1rem 0 0; }
.regional-badge-sm .wm-icon { width: 12px; height: 12px; }

/* ---------------------------------------------------------------
   Warenkorb
   --------------------------------------------------------------- */

.card-cart-form { margin-top: 0.4rem; position: relative; z-index: 2; }

.cart-list { display: flex; flex-direction: column; gap: 1rem; }

/* Jede Position sitzt in einem eigenen Kasten mit Kopf-, Haupt- und Fußzeile. */
.cart-box {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--cream);
    border-bottom: 1.5px solid var(--border);
}
.cart-box-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--green-dark);
    text-decoration: none;
    min-width: 0;
    overflow-wrap: anywhere;
}
.cart-box-title:hover { text-decoration: underline; }
.cart-box-head .icon-btn { width: 30px; height: 30px; flex-shrink: 0; }

.linklike {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--green-dark);
    text-decoration: underline;
    cursor: pointer;
}

.cart-box-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
}

.cart-box-foot {
    display: flex;
    gap: 0.7rem;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(247, 243, 236, 0.55);
}
.cart-box-foot label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); display: block; }
.cart-box-foot input { margin-top: 0.15rem; }

/* Rückmeldung statt „Übernehmen"-Button – gespeichert wird sofort. */
.cart-saved {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ok);
    padding-bottom: 0.6rem;
    white-space: nowrap;
}

.cart-added {
    margin: 0.6rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ok);
}
.cart-added:empty { margin: 0; }
.cart-added a { color: var(--green-dark); }

.cart-item-image {
    width: 84px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #e9e4d6 center/cover no-repeat;
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-meta { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.cart-qty { width: 110px; }
.cart-notes { flex: 1; min-width: 180px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; flex-shrink: 0; }
.cart-item-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.cart-item-total { font-weight: 800; font-size: 1.15rem; color: var(--accent-dark); }

.cart-sum {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: var(--card-bg);
    border: 1.5px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.2rem;
    margin-top: 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dark);
}
.cart-sum strong { font-size: 1.4rem; color: var(--accent-dark); }

@media (max-width: 700px) {
    .cart-box-main { display: grid; grid-template-columns: 84px 1fr; gap: 0.8rem; padding: 0.9rem; }
    .cart-item-image { width: 84px; height: 64px; }
    .cart-item-side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        padding-top: 0.6rem;
        border-top: 1px solid var(--border);
    }
    .cart-box-foot { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .cart-qty { width: 100%; }
    .cart-saved { padding: 0; }
}

/* ---------------------------------------------------------------
   Anfrage-Info & Druckansicht
   --------------------------------------------------------------- */

.request-note {
    margin-top: 0.5rem;
    font-size: 0.86rem;
    background: var(--cream);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
}

.info-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

.info-sheet {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    max-width: 720px;
}
.info-sheet h1 { font-size: 1.4rem; }
.info-sub { color: var(--text-muted); font-size: 0.86rem; }
.info-sheet h2 { font-size: 1.05rem; margin-top: 1.5rem; }
.info-sheet .detail-facts { margin-bottom: 0.6rem; }
.info-sum { font-weight: 800; font-size: 1.15rem; color: var(--accent-dark); margin-top: 1rem; }

/* ---------------------------------------------------------------
   Navigations-Link im Header (z. B. Rezepte)
   --------------------------------------------------------------- */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
}
.nav-link:hover { background: rgba(255,255,255,0.12); }
.nav-link .wm-icon { width: 18px; height: 18px; }
@media (max-width: 560px) {
    .nav-link span { display: none; }
}

/* ---------------------------------------------------------------
   Zustand: Frisch / Eingefroren vakuumiert
   --------------------------------------------------------------- */
.cons-toggle { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cons-option { flex: 1; min-width: 150px; cursor: pointer; }
.cons-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.cons-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--text-muted);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cons-card .wm-icon { width: 34px; height: 34px; }
.cons-option:has(input:checked) .cons-card {
    border-color: var(--green);
    background: rgba(74,107,82,0.10);
    color: var(--green-dark);
    box-shadow: 0 2px 8px rgba(30,48,36,0.12);
}
.cons-option input:focus-visible + .cons-card { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Zustand-Badge auf Karten/Detailseite */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.9rem; }
.badge-row .regional-badge { margin-bottom: 0; }
.cons-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
}
.cons-badge .wm-icon { width: 15px; height: 15px; }
.cons-badge-frisch  { background: rgba(47,125,79,0.12);  color: var(--ok); }
.cons-badge-gefroren{ background: rgba(45,110,170,0.14); color: #2467a5; }
.cons-badge-sm { font-size: 0.72rem; padding: 0.1rem 0.55rem; }
.cons-badge-sm .wm-icon { width: 12px; height: 12px; }

/* ---------------------------------------------------------------
   Formular-Helfer (Rezepte)
   --------------------------------------------------------------- */
.form-row-2 { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row-2 .form-group { flex: 1; min-width: 180px; }
.img-preview {
    margin-top: 0.6rem;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
}
.img-gallery-edit { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.img-gallery-item {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}
.img-del-check {
    width: 100%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.2rem 0.35rem;
    border-radius: 0 0 9px 9px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.img-del-check input { width: auto; margin: 0; }

/* ---------------------------------------------------------------
   Rezepte – Dashboard-Verwaltung
   --------------------------------------------------------------- */
.recipe-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.recipe-admin-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.recipe-admin-thumb {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-light);
}
.recipe-admin-thumb .wm-icon { width: 34px; height: 34px; }
.recipe-admin-body { padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.recipe-admin-body .row-actions { justify-content: flex-start; }

/* ---------------------------------------------------------------
   Rezepte – öffentliche Karten
   --------------------------------------------------------------- */
.hero-slim { padding: 1.6rem 1.5rem; }
.recipe-card-image { display: flex; align-items: center; justify-content: center; background-color: var(--cream); }
.recipe-card-placeholder .wm-icon { width: 46px; height: 46px; color: var(--green-light); }
.recipe-card-intro { font-size: 0.86rem; color: var(--text-muted); margin: 0.3rem 0 0; }
.recipe-card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.35rem; }
.recipe-card-meta span {
    font-size: 0.74rem;
    background: var(--cream);
    color: var(--text-muted);
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
}

/* ---------------------------------------------------------------
   Rezept-Detailansicht
   --------------------------------------------------------------- */
.recipe-view {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem;
    max-width: 900px;
    margin: 0 auto;
}
.recipe-head { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: flex-start; }
.recipe-head-text { flex: 1; min-width: 260px; }
.recipe-head h1 { margin: 0 0 0.3rem; }
.recipe-author { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.recipe-intro { font-size: 1rem; line-height: 1.55; margin: 0 0 1rem; }
.recipe-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.recipe-meta-item {
    background: var(--cream);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
}
.recipe-print-btn { margin-top: 0.3rem; }
.recipe-cover {
    width: 300px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.recipe-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.8rem;
    margin-top: 1.6rem;
}
.recipe-ingredients h2, .recipe-steps h2, .recipe-gallery h2 {
    font-size: 1.15rem;
    color: var(--green-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.35rem;
    margin-bottom: 0.8rem;
}
.recipe-ingredients ul { list-style: none; padding: 0; margin: 0; }
.recipe-ingredients li {
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
}
.recipe-ingredients li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.85rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.recipe-steps ol { padding-left: 0; margin: 0; list-style: none; counter-reset: step; }
.recipe-steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.1rem 2.6rem;
    line-height: 1.6;
}
.recipe-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.recipe-gallery { margin-top: 1.6rem; }
.recipe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
}
.recipe-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
}
.print-only { display: none; }

@media (max-width: 680px) {
    .recipe-columns { grid-template-columns: 1fr; gap: 1.2rem; }
    .recipe-view { padding: 1.1rem; }
    .recipe-cover { width: 100%; }
}

@media print {
    .site-header, .site-footer, .no-print, .back-link { display: none !important; }
    body { background: #fff; }
    body::before, body::after { display: none !important; }
    .site-main { padding: 0; max-width: none; }
    .info-sheet { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
    .recipe-view { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
    .recipe-columns { grid-template-columns: 1fr 2fr; }
    .print-only { display: block; }
    .recipe-steps li::before { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .recipe-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .recipe-print-foot { margin-top: 1.5rem; color: #666; font-size: 0.8rem; text-align: center; }
}

/* ---------------------------------------------------------------
   Erweiterungen: Aktionspreis, Neu-Kennzeichen, €/kg, "Aus dem Revier"
   --------------------------------------------------------------- */

/* Feste, hervorgehobene Kennzeichen (Neu / Im Angebot) – Punkt 5 & 6 */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    width: fit-content;
}
.tag-badge-sm { font-size: 0.72rem; padding: 0.1rem 0.55rem; }
.tag-new  { background: #b8541f; color: #fff; }
.tag-sale { background: #c62b2b; color: #fff; }

/* Aktionspreis: alter Preis durchgestrichen, neuer Preis rot – Punkt 6 */
.price-old  { text-decoration: line-through; color: #8a8a8a; font-weight: 600; margin-right: 0.4rem; }
.price-sale { color: #c62b2b; font-weight: inherit; }

/* Ungefährer Preis je kg bei Stück-/Packungsverkauf – Punkt 4 */
.listing-card-perkg { color: #777; font-size: 0.82rem; margin-top: 0.1rem; }
.detail-perkg { color: #666; font-size: 0.95rem; margin: -0.7rem 0 1.1rem; }

/* "Gesuch aufgeben"-Button auch im Hinweis-Kasten – Punkt 3 */
.wish-add-aside { margin-top: 1rem; width: 100%; justify-content: center; }

/* Desktop: "Aus dem Revier" mittig in der Kopfleiste – Punkt 8 */
.site-header-inner > .brand    { flex: 1 1 0; }
.site-header-inner > .site-nav { flex: 1 1 0; justify-content: flex-end; }
.site-center-nav { display: flex; justify-content: center; flex: 0 0 auto; }
.nav-link-feature { border: 1.5px solid rgba(255,255,255,0.35); }

/* Öffentliche Revier-Seite – Punkt 8 */
.revier-view { max-width: 900px; margin: 0 auto; }
.revier-head h1 { display: flex; align-items: center; gap: 0.5rem; }
.revier-head h1 .wm-icon { width: 26px; height: 26px; }
.revier-sub { color: #666; margin: 0.3rem 0 1rem; }
.revier-text { line-height: 1.6; margin: 1rem 0 1.5rem; }
.revier-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}
.revier-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* Konto-Link im Menükopf – Punkt 1 (Nachtrag) */
.menu-user-link { text-decoration: none; cursor: pointer; border-radius: 8px; transition: background 0.15s; }
.menu-user-link:hover { background: rgba(74,107,82,0.08); }

/* ---------------------------------------------------------------
   Hirsch-Grafiken (ersetzen das alte Wildschwein-Branding)
   --------------------------------------------------------------- */
.brand-logo { height: 30px; width: auto; display: inline-block; vertical-align: middle; }
.menu-item .menu-deer { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }

/* Dezente Hirsch-Silhouette im Startseiten-Hero */
.hero-has-deer { position: relative; overflow: hidden; }
.hero-has-deer .hero-inner { position: relative; z-index: 1; }
.hero-deer {
    position: absolute;
    right: -10px;
    bottom: -14px;
    width: 300px;
    max-width: 42%;
    aspect-ratio: 1820 / 1964;
    background: url('/assets/img/hirsch-wald-weiss.png') right bottom / contain no-repeat;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 860px) { .hero-deer { width: 200px; opacity: 0.10; } }

/* Kopf der „Aus dem Revier"-Seite: Text links, Hirsch-Wald-Bild rechts */
.revier-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.revier-head-text { flex: 1; min-width: 220px; }
.revier-head-deer { width: 240px; max-width: 40%; height: auto; flex-shrink: 0; }
@media (max-width: 560px) {
    .revier-head-deer { width: 160px; max-width: 45%; }
}

/* --- Vorschaltseite ("Willkommen" / Weiter-Gate) --- */
.intro-header {
    background: var(--green);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.intro-next {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    padding: 0.7rem 2.8rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.15s ease, transform 0.05s ease;
}
.intro-next:hover { background: var(--accent-dark); }
.intro-next:active { transform: translateY(1px); }
.intro-footnote { color: #777; margin-top: 1.5rem; font-size: 0.95rem; }
