/* ==========================================================
   HoKuArt – Stylesheet  (mobile-first, Flexbox/Grid)
   Design: „Holzwerkstatt Modern" (B3)
   Farben: Kupfer #b87333 | Waldbraun #3d2b1f | Warmweiß #faf7f2
   Schrift: Raleway (Überschriften/Nav) + Open Sans (Fließtext)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

/* --- Reset & Basis ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    background-color: #c8b89a;
    font-family: 'Open Sans', 'Trebuchet MS', sans-serif;
    color: #2c2010;
    line-height: 1.6;
}

a { color: #b87333; }
a:hover { color: #8a5010; }
img { max-width: 100%; height: auto; display: block; }

/* --- Wrapper ---------------------------------------------- */
#wrapper {
    max-width: 980px;
    margin: 0 auto;
    background: #faf7f2;
    box-shadow: 0 4px 32px rgba(0,0,0,0.22);
}

/* --- Header ----------------------------------------------- */
header { overflow: hidden; }
header a { display: block; }
header img { width: 100%; height: auto; display: block; }

/* --- Navigation ------------------------------------------- */
#main-nav {
    background: #2a1e15;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;       /* Hamburger-Menu bricht in neue Zeile */
}

/* Hamburger-Button */
#nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 34px;
    padding: 6px 8px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    margin-right: 10px;
    align-self: center;
}
#nav-toggle span {
    display: block;
    height: 3px;
    background: #c8a880;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Nav-Liste mobil */
#nav-menu {
    list-style: none;
    display: none;
    flex-direction: column;
    width: 100%;
    background: #2a1e15;
}
#nav-menu.open {
    display: flex;
    flex: 0 0 100%;   /* volle Breite → bricht unter den Hamburger-Button */
}

#nav-menu > li > a,
#nav-menu > li > button.dropdown-toggle {
    display: block;
    width: 100%;
    padding: 13px 20px;
    color: #c8b49a;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid transparent;
    text-align: left;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
#nav-menu > li > a:hover,
#nav-menu > li > button.dropdown-toggle:hover,
#nav-menu > li > button.dropdown-toggle[aria-expanded="true"] {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: #b87333;
}

/* Dropdown mobil */
.dropdown {
    list-style: none;
    display: none;
    background: #1a110b;
}
.dropdown.open { display: block; }
.dropdown li a {
    display: block;
    padding: 11px 20px 11px 32px;
    color: #c8a880;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: rgba(184,115,51,0.2); color: #fff; }

/* Desktop-Nav */
@media (min-width: 640px) {
    #nav-toggle { display: none; }

    #nav-menu {
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
        flex: 1;           /* Desktop: füllt restliche Nav-Breite */
        justify-content: center;
    }

    #nav-menu > li { position: relative; }

    #nav-menu > li > a,
    #nav-menu > li > button.dropdown-toggle {
        height: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        padding: 0 15px;
        border-bottom: 3px solid transparent;
        border-left: none;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    #nav-menu > li > a:hover,
    #nav-menu > li > button.dropdown-toggle:hover,
    #nav-menu > li > button.dropdown-toggle[aria-expanded="true"],
    #nav-menu > li.active > a {
        border-bottom-color: #b87333;
        border-left-color: transparent;
        background: rgba(255,255,255,0.05);
        color: #fff;
    }

    /* Dropdown desktop */
    .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        z-index: 200;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.45);
        border-top: 2px solid #b87333;
    }
    .dropdown.open,
    .has-dropdown:hover .dropdown,
    .has-dropdown:focus-within .dropdown { display: block; }

    .dropdown li a {
        padding: 11px 18px;
        font-size: 0.83rem;
    }
    .dropdown li a::before {
        content: '›';
        margin-right: 8px;
        color: #b87333;
        opacity: 0;
        transition: opacity 0.15s;
    }
    .dropdown li a:hover { padding-left: 22px; }
    .dropdown li a:hover::before { opacity: 1; }
}

@media (min-width: 860px) {
    #nav-menu > li > a,
    #nav-menu > li > button.dropdown-toggle {
        font-size: 0.84rem;
        padding: 0 18px;
    }
}


/* --- Kategorie-Hero (Overlay-Kacheln) --------------------- */
.kategorie-hero {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}
.kat-kachel {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
    text-decoration: none;
}
@media (max-width: 560px) {
    /* Alle 5 Kacheln zeigen: 3 oben, 2 unten zentriert (6-Spalten-Raster) */
    .kategorie-hero { grid-template-columns: repeat(6, 1fr); }
    .kat-kachel:nth-child(1) { grid-column: 1 / span 2; }
    .kat-kachel:nth-child(2) { grid-column: 3 / span 2; }
    .kat-kachel:nth-child(3) { grid-column: 5 / span 2; }
    .kat-kachel:nth-child(4) { grid-column: 2 / span 2; }
    .kat-kachel:nth-child(5) { grid-column: 4 / span 2; }
    .kat-overlay span { font-size: 0.7rem; }
}
.kat-kachel img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.kat-kachel:hover img { transform: scale(1.08); }
.kat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,10,3,0.85) 0%, rgba(20,10,3,0.05) 55%, transparent 100%);
    display: flex; align-items: flex-end;
    padding: 12px 6px;
    transition: background 0.3s;
}
.kat-kachel:hover .kat-overlay {
    background: linear-gradient(to top, rgba(184,115,51,0.82) 0%, rgba(20,10,3,0.15) 60%, transparent 100%);
}
.kat-overlay span {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    text-align: center;
    width: 100%;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Hauptinhalt ------------------------------------------ */
#content { padding: 24px 20px; }

/* --- Section-Header --------------------------------------- */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 2px solid #e0d0bc;
    padding-bottom: 10px;
}
.section-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #3d2b1f;
}
.section-header h2 span { color: #b87333; }
.section-header a {
    font-size: 0.83rem;
    color: #b87333;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.section-header a:hover { color: #8a5010; }

/* --- Featured Cards (Neuheiten) --------------------------- */
.featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}
@media (min-width: 560px) {
    .featured { grid-template-columns: 1fr 1fr; }
}
.featured-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #d4c0a0;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.featured-card:hover {
    box-shadow: 0 8px 24px rgba(61,43,31,0.16);
    transform: translateY(-3px);
}
.featured-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.featured-card .fc-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fc-tag {
    display: inline-block;
    background: #b87333;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
}
.fc-tag.gruen { background: #239023; }
.featured-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #3d2b1f;
}
.featured-card p { font-size: 0.85rem; color: #7a6050; line-height: 1.5; }
.fc-preis { margin-top: auto; padding-top: 8px; font-weight: 700; color: #b87333; font-size: 0.9rem; }

/* --- Produkt-Grid ----------------------------------------- */
.produkt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
@media (min-width: 500px) { .produkt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .produkt-grid { grid-template-columns: repeat(4, 1fr); } }

.karte,
.produkt-karte {
    background: #fff;
    border: 1.5px solid #d4c0a0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.karte:hover,
.produkt-karte:hover {
    box-shadow: 0 6px 18px rgba(61,43,31,0.14);
    transform: translateY(-3px);
    border-color: #b87333;
}
.karte img,
.produkt-karte img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.karte-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.karte-nr   { font-size: 0.68rem; color: #9a7a5a; text-transform: uppercase; letter-spacing: 0.5px; }
.karte-name { font-size: 0.88rem; font-weight: 700; font-family: 'Raleway', sans-serif; color: #3d2b1f; }
.karte-preis { font-size: 0.83rem; color: #b87333; font-weight: 700; margin-top: auto; padding-top: 4px; }

/* --- Kategorie-Übersicht (kategorie.php) ------------------ */
.kategorie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}
@media (min-width: 500px) { .kategorie-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .kategorie-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Produktdetail ---------------------------------------- */
.produkt-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 8px 0;
}
@media (min-width: 600px) {
    .produkt-detail { flex-direction: row; align-items: flex-start; }
    .produkt-galerie { flex: 0 0 42%; }
    .produkt-info    { flex: 1; }
}
.produkt-info h1 { font-family: 'Raleway', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; color: #3d2b1f; }
.produkt-info .art-nr { color: #9a7a5a; font-size: 0.82rem; margin-bottom: 12px; }

.varianten-tabelle { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.9rem; }
.varianten-tabelle th { text-align: left; border-bottom: 2px solid #d4c0a0; padding: 6px 8px; font-family: 'Raleway', sans-serif; color: #3d2b1f; }
.varianten-tabelle td { padding: 7px 8px; border-bottom: 1px solid #ede0cc; }
.varianten-tabelle tr.nicht-lieferbar td { color: #bbb; font-style: italic; }

.galerie-haupt {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f3ece0;
    border: 1px solid #e4d8c2;
    border-radius: 8px;
    cursor: zoom-in;
    display: block;
}
.galerie-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.galerie-thumbs img { width: 66px; height: 66px; object-fit: cover; border-radius: 5px; border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s; }
.galerie-thumbs img:hover, .galerie-thumbs img.aktiv { border-color: #b87333; }

/* Beschreibung als Vollbreiten-Block unter dem Artikel */
.produkt-beschreibung {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e4d8c2;
}
.produkt-beschreibung h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #3d2b1f;
    margin-bottom: 10px;
}
.produkt-beschreibung p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #5a4636;
    max-width: 760px;
}

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb { font-size: 0.82rem; color: #9a7a5a; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: #7a5a3a; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #b87333; }
.breadcrumb span::before { content: '›'; margin-right: 4px; }

/* --- Kontakt-Band ----------------------------------------- */
.kontakt-band {
    background: linear-gradient(135deg, #3d2b1f, #5a3e2b);
    border-radius: 12px;
    padding: 22px 24px;
    color: #f0e0c8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}
.kontakt-band h3 { font-family: 'Raleway', sans-serif; font-size: 1.05rem; font-weight: 800; margin-bottom: 5px; }
.kontakt-band p  { font-size: 0.85rem; color: #d4b896; line-height: 1.7; }
.kontakt-band a  { color: #f0d0a0; }

/* --- Entstehungstext -------------------------------------- */
.entstehung {
    margin-top: 28px;
    padding: 18px 22px;
    background: #f0e8d8;
    border-radius: 10px;
    font-size: 0.86rem;
    color: #5a4030;
    line-height: 1.7;
    border-left: 4px solid #b87333;
}
.entstehung strong {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.92rem;
    color: #3d2b1f;
    margin-bottom: 6px;
}

/* --- Fotogalerie ------------------------------------------ */
.foto-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.foto-item {
    margin: 0;
    background: #fff;
    border: 1px solid #e4dccf;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.foto-item a { display: block; }
.foto-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #ece4d6;
    transition: transform 0.3s ease;
}
.foto-item a:hover img { transform: scale(1.05); }
.foto-item figcaption {
    padding: 9px 12px;
    font-size: 0.84rem;
    color: #5a4636;
    line-height: 1.4;
}

/* --- Lightbox --------------------------------------------- */
.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 12, 6, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.lb-overlay.open { display: flex; }
.lb-figure {
    margin: 0;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    background: #2a1e15;
}
.lb-caption {
    color: #e8d5bc;
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
    max-width: 600px;
}
.lb-close, .lb-prev, .lb-next {
    position: fixed;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #b87333; }
.lb-close {
    top: 18px; right: 22px;
    width: 46px; height: 46px;
    font-size: 2rem;
}
.lb-prev, .lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 1.5rem;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
@media (max-width: 560px) {
    .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 1.2rem; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
    .lb-overlay { padding: 16px; }
}

/* --- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #b87333;
    color: #fff;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}
.btn:hover { background: #9a6228; color: #fff; transform: translateY(-1px); }
.btn-gruen { background: #239023; }
.btn-gruen:hover { background: #1a6b1a; }
.btn-outline {
    background: transparent;
    color: #b87333;
    border: 2px solid #b87333;
}
.btn-outline:hover { background: #fdf3e7; color: #8a5010; }

/* --- Formulare -------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.88rem; color: #3d2b1f; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid #d4c0a0; border-radius: 6px;
    font-family: 'Open Sans', sans-serif; font-size: 0.95rem;
    background: #fff; color: #2c2010;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #b87333; outline: none; }

/* --- Pagination ------------------------------------------- */
.pagination { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; padding: 12px 0; list-style: none; }
.pagination a { display: inline-block; padding: 7px 14px; border-radius: 6px; text-decoration: none; color: #5a3010; background: #ede0cc; font-size: 0.88rem; transition: background 0.15s; font-family: 'Raleway', sans-serif; font-weight: 700; }
.pagination a:hover  { background: #d4c0a0; }
.pagination a.active { background: #b87333; color: #fff; }
.paginationcenter { text-align: center; }

/* --- Nav: Warenkorb-Badge --------------------------------- */
.nav-cart-item { margin-left: auto; }   /* schiebt Anfrage-Link ganz nach rechts */
.nav-cart-link { position: relative; white-space: nowrap; }
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #b87333;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 6px;
    margin-left: 5px;
    vertical-align: middle;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* --- Produktseite: Varianten-Auswahl ---------------------- */
.variante-zeile[data-variant-id] { cursor: pointer; transition: background 0.15s; }
.variante-zeile[data-variant-id]:hover { background: #f5ede0; }
.variante-zeile.gewaehlt { background: #fde8cc !important; }
.variante-radio-zelle { width: 32px; text-align: center; }
.variante-radio { cursor: pointer; accent-color: #b87333; width: 16px; height: 16px; }
.verfuegbar-ja  { color: #5a8a3a; font-weight: 700; }
.verfuegbar-nein { color: #aaa; }

/* Mobile: Variantentabelle wird zu antippbaren Karten */
@media (max-width: 600px) {
    .varianten-tabelle { display: block; border-collapse: separate; }
    .varianten-tabelle thead { display: none; }
    .varianten-tabelle tbody { display: block; }
    .varianten-tabelle tr.variante-zeile {
        display: grid;
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas:
            "radio label label avail"
            "radio artnr preis avail";
        gap: 3px 10px;
        align-items: center;
        border: 1px solid #e4d8c2;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 10px;
        background: #fff;
    }
    .varianten-tabelle tr.variante-zeile.gewaehlt {
        border-color: #b87333;
        box-shadow: 0 0 0 2px rgba(184,115,51,0.18);
    }
    .varianten-tabelle td {
        border: none !important;
        padding: 0;
    }
    .varianten-tabelle .variante-radio-zelle { grid-area: radio; width: auto; align-self: center; }
    .varianten-tabelle .variante-radio { width: 20px; height: 20px; }
    .varianten-tabelle td:nth-child(2) {   /* Bezeichnung */
        grid-area: label;
        font-weight: 700;
        font-size: 0.95rem;
        color: #3d2b1f;
    }
    .varianten-tabelle td:nth-child(3) {   /* Art.-Nr. */
        grid-area: artnr;
        font-size: 0.8rem;
        color: #6b5d49;
        white-space: nowrap;
    }
    .varianten-tabelle td:nth-child(3):not(:empty)::before { content: "Art.-Nr. "; color: #9a8a72; }
    .varianten-tabelle td.preis-zelle {    /* Preis */
        grid-area: preis;
        font-size: 0.88rem;
        font-weight: 700;
        color: #b87333;
        justify-self: start;
    }
    .varianten-tabelle td:nth-child(5) {   /* Verfügbarkeit */
        grid-area: avail;
        justify-self: end;
        font-size: 1.1rem;
    }
    .varianten-tabelle tr.nicht-lieferbar { opacity: 0.7; }
}

.warenkorb-aktion {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.menge-label { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.menge-input {
    width: 64px;
    padding: 8px 10px;
    border: 1.5px solid #d4c0a0;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    background: #fff;
    color: #2c2010;
}
.btn-warenkorb {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #b87333;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 7px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-warenkorb:hover:not(:disabled) { background: #9a6228; transform: translateY(-1px); }
.btn-warenkorb:disabled { background: #c8b89a; cursor: not-allowed; }
.warenkorb-feedback {
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 1.4em;
    transition: opacity 0.3s;
}
.warenkorb-feedback.erfolg { color: #4a7a2a; font-weight: 600; }
.warenkorb-feedback.fehler { color: #b83333; font-weight: 600; }

/* --- Warenkorb-Seite -------------------------------------- */
.page-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #3d2b1f;
    margin-bottom: 24px;
}
.warenkorb-leer { text-align: center; padding: 40px 20px; color: #888; }
.warenkorb-leer p { margin-bottom: 16px; font-size: 1.05rem; }

.warenkorb-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 0.93rem;
}
.warenkorb-tabelle th {
    background: #f0e8da;
    color: #3d2b1f;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #d4c0a0;
}
.warenkorb-tabelle td {
    padding: 10px 12px;
    border-bottom: 1px solid #ede0cc;
    vertical-align: middle;
}
.warenkorb-tabelle .menge-col { width: 80px; }
.warenkorb-tabelle .art-nr-zelle { color: #888; font-size: 0.85rem; }
.menge-input-klein {
    width: 60px;
    padding: 5px 8px;
    border: 1.5px solid #d4c0a0;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
    background: #fff;
}
.btn-entfernen {
    background: none;
    border: none;
    color: #b87333;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.btn-entfernen:hover { background: #fde8cc; color: #9a2020; }

.gesamt-zeile td { background: #f0e8da; border-top: 2px solid #d4c0a0; padding: 10px 12px; font-size: 0.95rem; }
.warenkorb-aktionen { margin-bottom: 32px; }
.btn-outline {
    background: transparent;
    border: 2px solid #b87333;
    color: #b87333;
    padding: 8px 18px;
    border-radius: 7px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: #b87333; color: #fff; }

/* --- Anfrage-Formular -------------------------------------- */
.anfrage-formular-wrap {
    background: #f5ede0;
    border-radius: 10px;
    padding: 28px 28px 32px;
    margin-top: 8px;
}
.anfrage-formular-wrap h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #3d2b1f;
    margin-bottom: 6px;
}
.form-hinweis { font-size: 0.9rem; color: #6a5040; margin-bottom: 20px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-gruppe { display: flex; flex-direction: column; gap: 5px; }
.form-gruppe--voll { grid-column: 1 / -1; }

.form-gruppe label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #3d2b1f;
}
.form-gruppe input,
.form-gruppe textarea {
    padding: 10px 12px;
    border: 1.5px solid #d4c0a0;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    background: #fff;
    color: #2c2010;
    transition: border-color 0.2s;
}
.form-gruppe input:focus,
.form-gruppe textarea:focus {
    outline: none;
    border-color: #b87333;
    box-shadow: 0 0 0 3px rgba(184,115,51,0.15);
}
.form-gruppe textarea { resize: vertical; min-height: 100px; }
.pflicht { color: #b83333; margin-left: 1px; }
.optional { color: #888; font-weight: 400; font-size: 0.82rem; }
.form-error { color: #b83333; font-size: 0.82rem; min-height: 1.2em; }

.form-submit-zeile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.pflicht-hinweis { font-size: 0.82rem; color: #888; }
.btn-anfrage {
    display: inline-flex;
    align-items: center;
    background: #b87333;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-anfrage:hover:not(:disabled) { background: #9a6228; transform: translateY(-1px); }
.btn-anfrage:disabled { background: #c8b89a; cursor: not-allowed; }

/* --- Alerts ----------------------------------------------- */
.alert {
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.93rem;
    line-height: 1.5;
}
.alert-success {
    background: #e6f4d9;
    border: 1px solid #9aca70;
    color: #2d5a10;
}
.alert-fehler {
    background: #f7e3df;
    border: 1px solid #e3b3a9;
    color: #8a2c20;
}

/* --- Kontaktformular -------------------------------------- */
.kontakt-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.kontakt-spalte { flex: 1; min-width: 280px; }
.kontakt-karte-spalte { flex: 0 0 420px; }
@media (max-width: 760px) { .kontakt-karte-spalte { flex: 1 1 100%; } }

.kontakt-formular { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.kontakt-formular .btn-anfrage { align-self: flex-start; }

.captcha-gruppe input { max-width: 220px; }

.karte-platzhalter {
    width: 100%;
    min-height: 360px;
    border-radius: 8px;
    background: #ece2d2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23dccab0' stroke-width='1'/%3E%3C/svg%3E");
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}
.karte-hinweis { max-width: 280px; color: #5a4636; }
.karte-hinweis strong { display: block; font-family: 'Raleway', sans-serif; font-size: 1.05rem; margin-bottom: 6px; color: #3d2b1f; }
.karte-hinweis p { font-size: 0.82rem; line-height: 1.5; margin-bottom: 12px; }

/* --- Video (DSGVO: Klick-zu-laden) ------------------------ */
.video-embed { width: 100%; }
.video-consent {
    width: 100%;
    min-height: 220px;
    border: 1px solid #d8c8b0;
    border-radius: 8px;
    background: linear-gradient(135deg, #3d2b1f 0%, #5a4636 100%);
    color: #e8d5bc;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    cursor: pointer;
    text-align: left;
    transition: filter 0.15s;
}
.video-consent:hover { filter: brightness(1.08); }
.video-play {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #b87333;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    padding-left: 4px;
}
.video-consent-text strong { display: block; font-family: 'Raleway', sans-serif; font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.video-consent-text { font-size: 0.85rem; line-height: 1.5; }
.video-ds-hinweis { font-size: 0.78rem; color: #8a7a64; margin-top: 6px; }
.video-embed iframe { border-radius: 8px; display: block; }

/* --- Back-to-Top ------------------------------------------ */
.back-to-top {
    opacity: 0;
    pointer-events: none;
    position: fixed; z-index: 999;
    right: 24px; bottom: 28px;
    width: 42px; height: 42px;
    background: #b87333;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    transition: opacity 0.3s, background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top:hover { background: #9a6228; transform: translateY(-3px); }
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* --- Footer ----------------------------------------------- */
footer {
    background: #1a110b;
    color: #8a6a4a;
    text-align: center;
    padding: 22px 20px;
    font-size: 0.82rem;
    border-top: 3px solid #b87333;
}
footer a { color: #c49060; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-admin {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 10px;
    color: #6a523a;
    transition: color 0.2s, transform 0.2s;
}
.footer-admin:hover { color: #b87333; transform: rotate(45deg); }

/* --- Lightbox (mlightbox compat) -------------------------- */
.unsichtbar { display: none; }
#lgbx, #lgbx_bcg { position: fixed; }
#lgbx_bcg { top:0; left:0; z-index:50; width:100%; height:100%; cursor:pointer; background:rgba(0,0,0,0.88); }
#lgbx { background:#fff; padding:0; z-index:55; top:0; left:0; border-radius:8px; }
#lgbx_close, #lgbx_desc, #lgbx_next, #lgbx_prev { position:absolute; z-index:56; display:none; }
#lgbx_close { right:9px; top:9px; cursor:pointer; width:30px; }
#lgbx_desc  { bottom:0; right:0; background:rgba(0,0,0,0.6); color:#fff; padding:5px 8px 1px; font-size:12px; }
#lgbx_next, #lgbx_prev { cursor:pointer; top:50%; margin-top:-20px; height:40px; }
#lgbx_next { right:5px; } #lgbx_prev { left:5px; }

/* --- Utility ---------------------------------------------- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 28px; }
.text-center { text-align: center; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* --- Alte Klassen (Rückwärtskompatibilität) ---------------- */
.shadow { box-shadow: 0 0 12px rgba(0,0,0,0.3); }
div.img { border: 2px solid #d4c0a0; float: left; width: calc(20% - 10px); box-sizing: border-box; margin: 5px; border-radius: 6px; overflow: hidden; }
div.img:hover { border-color: #b87333; }
div.img img { width: 100%; height: auto; }
div.desc { padding: 5px; text-align: center; font-size: 0.9rem; font-weight: 700; }
div.banner { width: 100%; display: inline-block; margin-bottom: 16px; }
div.artikel { width: 100%; display: flex; gap: 16px; padding: 16px 0; border-bottom: 2px solid #e0d0bc; flex-wrap: wrap; }
div.artikelbild { flex: 0 0 27%; min-width: 140px; }
div.artikelbild img { width: 100%; border-radius: 6px; cursor: pointer; transition: opacity 0.2s; }
div.artikelbild img:hover { opacity: 0.75; }
div.bildunterschrift { font-size: 0.82rem; text-align: center; margin-top: 4px; color: #9a7a5a; }
div.artikelbeschreibung { flex: 1; font-size: 0.95rem; min-width: 0; }
div.startseite { display: flex; flex-wrap: wrap; gap: 16px; }
div.news { flex: 1 1 60%; min-width: 0; }
div.wereweat { flex: 0 0 200px; font-size: 0.88rem; line-height: 1.7; }
div.wereweat p { font-weight: 700; margin-bottom: 6px; }
div.entstehung { font-size: 0.84rem; color: #5a4030; margin-top: 20px; padding-top: 14px; border-top: 1px solid #d4c0a0; }
div.produktpreise { margin-left: 12px; margin-top: 8px; }
.tab { border: none; width: 100%; max-width: 420px; border-collapse: collapse; }
td { padding: 3px 8px 3px 0; font-size: 0.9rem; }
div.zentriert { text-align: center; }
ul.pagination li { display: inline; }
ul.pagination li a { color: #5a3010; float: left; padding: 7px 14px; text-decoration: none; border-radius: 5px; }
ul.pagination li a.active { background: #b87333; color: #fff; }
ul.pagination li a:hover:not(.active) { background: #ede0cc; }
div.paginationcenter { text-align: center; }
div.produkthinweis { font-size: 0.82rem; color: #7a5a3a; }
