/* Bauernkate – eigene Styles (Texturen, Buttons, Divider).
   Farb-/Font-System kommt aus der Tailwind-Config im <head>. */

body {
    background-color: #fff8f1;
    background-image: url("../img/textures/paper-fibers.png");   /* lokal gehostet */
    color: #211b0d;
}

.wood-texture {
    background-image: url("../img/textures/wood-pattern.png");
}

.chalkboard {
    background-color: #1d1c15;
    border: 12px solid #4a2c2a;
}

.carved-btn {
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}
.carved-btn:active {
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(1px);
}

.section-divider {
    border-bottom: 2px dashed #d4c3c1;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.8s ease-out both; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 6px solid #fff8f1;
}
.lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff8f1;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Mobile-Menü */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* Leaflet-Karte auf der öffentlichen Seite */
#standort-karte { width: 100%; height: 100%; min-height: 300px; z-index: 0; }

/* Speisekarte: Reiter (Speisen/Getränke) + aufklappbare Kategorien auf der Kreidetafel */
.menu-tab {
    color: #fff8f1;
    border: 2px solid rgba(255, 248, 241, 0.35);
    border-radius: 2px;
    padding: 8px 28px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}
.menu-tab:hover { border-color: rgba(255, 248, 241, 0.7); }
.menu-tab-active {
    background: rgba(255, 248, 241, 0.15);
    border-color: #fff8f1;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.15);
}

.menu-cat summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #fff8f1;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 248, 241, 0.2);
    list-style: none;
    user-select: none;
}
.menu-cat summary::-webkit-details-marker { display: none; }
.menu-cat summary:hover { border-bottom-color: rgba(255, 248, 241, 0.5); }
.menu-cat summary::after {
    content: '▾';
    font-size: 18px;
    opacity: 0.7;
    transition: transform 0.2s ease;
    margin-left: auto;
}
.menu-cat[open] summary::after { transform: rotate(180deg); }
.menu-count {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.55;
    border: 1px solid rgba(255, 248, 241, 0.4);
    border-radius: 10px;
    padding: 1px 8px;
    white-space: nowrap;
}

/* Markdown-formatierte Texte (Tailwind-Preflight setzt Listen/Überschriften zurück) */
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 0.75em; }
.rich-text strong { font-weight: 700; }
.rich-text em { font-style: italic; }
.rich-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rich-text a:hover { opacity: 0.8; }
.rich-text ul { list-style: disc; padding-left: 1.4em; margin: 0 0 0.75em; }
.rich-text ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 0.75em; }
.rich-text li { margin-bottom: 0.25em; }
.rich-text h3, .rich-text h4, .rich-text h5, .rich-text h6 {
    font-family: 'Domine', serif; font-weight: 700; line-height: 1.2;
    margin: 0.6em 0 0.3em; color: #321716;
}
.rich-text h3 { font-size: 1.4em; }
.rich-text h4 { font-size: 1.2em; }
.rich-text h5, .rich-text h6 { font-size: 1.05em; }
.rich-text code {
    background: rgba(0, 0, 0, 0.06); padding: 0.05em 0.35em;
    border-radius: 3px; font-family: ui-monospace, monospace; font-size: 0.9em;
}
