/* ============================================
   Goldener Hirsch Ipsheim — Stylesheet
   Farbpalette: Oliv, Gold, Warmweiß, Dunkelbraun, Akzent-Rot
   ============================================ */

:root {
    --oliv: #72754a;
    --oliv-dark: #5a5d3a;
    --gold: #c9a84c;
    --gold-light: #d4b85c;
    --warmweiss: #faf8f0;
    --dunkelbraun: #3d2e1c;
    --braun: #5a4a3a;
    --rot: #8b2e2e;
    --text: #3d2e1c;
    --text-light: #6b5b4b;
    --bg: #faf8f0;
    --bg-alt: #f0ede4;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Typography */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dunkelbraun);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
a { color: var(--oliv); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---- HEADER ---- */
.site-header {
    background: var(--dunkelbraun);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 70px;
}
.logo { display: flex; flex-direction: column; text-decoration: none; }
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}
.logo-sub { font-size: 0.75rem; color: var(--braun); letter-spacing: 0.15em; text-transform: uppercase; color: #a09080; }

/* Navigation */
.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-menu > a, .nav-dropdown > a {
    color: #d4c8b8;
    padding: 1.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.2s, background 0.2s;
    display: block;
}
.nav-menu > a:hover, .nav-dropdown > a:hover,
.nav-menu > a.active, .nav-dropdown > a.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dunkelbraun);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 0 0 6px 6px;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #d4c8b8;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(90,74,58,0.3);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { color: var(--gold); background: rgba(201,168,76,0.08); }
.dropdown-menu a.highlight { color: var(--gold); font-weight: 600; }

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dunkelbraun) no-repeat center center;
    background-size: cover;
    color: var(--warmweiss);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(61,46,28,0.5), rgba(61,46,28,0.7));
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem 1.5rem;
}
.hero h1 {
    color: var(--gold);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}
.hero p {
    font-size: 1.1rem;
    color: #d4c8b8;
    font-weight: 300;
}
.hero-sub { min-height: 45vh; }

/* ---- CARDS / HIGHLIGHTS ---- */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.highlight-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.highlight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.highlight-card .card-body { padding: 1.5rem; }
.highlight-card h3 { margin-bottom: 0.5rem; color: var(--oliv); }
.highlight-card p { color: var(--text-light); font-size: 0.95rem; }

/* ---- CONTENT SECTIONS ---- */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.content-split.reverse { direction: rtl; }
.content-split.reverse > * { direction: ltr; }
.content-split img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ---- MENU / KARTEN ---- */
.menu-page { max-width: 800px; margin: 0 auto; }
.menu-title {
    text-align: center;
    color: var(--gold);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.3rem;
}
.menu-subtitle {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2.5rem;
}
.menu-block { margin-bottom: 2.5rem; }
.menu-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--oliv);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    position: relative;
}
.menu-block-desc {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.menu-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.menu-item-name { font-weight: 600; white-space: nowrap; }
.menu-item-dots {
    flex: 1;
    border-bottom: 1px dotted var(--braun);
    min-width: 30px;
    margin-bottom: 4px;
}
.menu-item-price { white-space: nowrap; font-weight: 600; color: var(--oliv); }
.menu-item-info { color: var(--text-light); font-size: 0.85rem; margin-left: 0.3rem; }
.menu-item-desc {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    padding-left: 0;
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #d0c8b8;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--oliv);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn:hover { background: var(--oliv-dark); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--dunkelbraun); }
.btn-gold:hover { background: var(--gold-light); color: var(--dunkelbraun); }

/* Success/Error messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.alert-error { background: #fce4ec; border: 1px solid #ef9a9a; color: #c62828; }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--dunkelbraun);
    color: #d4c8b8;
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}
.footer-col p { font-size: 0.9rem; margin-bottom: 0.3rem; line-height: 1.6; }
.footer-col a { color: #d4c8b8; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(90,74,58,0.4);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #8a7a6a;
}

/* ---- OPENING HOURS (reusable) ---- */
.opening-hours { line-height: 1.8; }
.opening-hours strong { color: var(--text); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--dunkelbraun);
        flex-direction: column;
        border-top: 1px solid rgba(90,74,58,0.4);
    }
    .nav-menu.open { display: flex; }
    .nav-menu > a, .nav-dropdown > a { padding: 0.8rem 1.5rem; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.1);
        border-radius: 0;
    }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }

    .hero { min-height: 40vh; }
    .hero-sub { min-height: 30vh; }
    .highlight-grid { grid-template-columns: 1fr; }
    .content-split { grid-template-columns: 1fr; gap: 1.5rem; }
    .content-split.reverse { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- PRINT (Speisekarten) ---- */
@media print {
    .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .menu-title { color: #000; }
    .menu-block-title { color: #333; border-bottom-color: #999; }
    .menu-item-price { color: #000; }
    .menu-item-dots { border-bottom-color: #ccc; }
    .section { padding: 1rem 0; }
    .container { max-width: 100%; padding: 0; }
}
