/* =========================================================
   1. STRUKTUR & STABILER FOOTER (CSS GRID)
   ========================================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	overflow-y: scroll; /* senkrechter scollbalken immer an */
	overflow-x: scroll; /* waagerecht*/
}

/* Ändert die Hintergrundfarbe für den Bildschirmrand standardmäßig auf ein helles Pastell-Weinrot */
body.light-wine-bg {
    background-color: #FDF2F2; 
}

* {
    box-sizing: border-box;
}

.content-wrapper {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Alle Links auf der gesamten Seite standardmäßig ohne Unterstrich */
a {
    text-decoration: none;
}

/* =========================================================
   2. HEADER STYLING (TIEFES WEINROT)
   ========================================================= */
.main-header {
    background-color: #4A0404; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    border-bottom: 2px solid #5C0606;
}

.logo a {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.logo a:hover {
    color: #007bff; 
}

/* =========================================================
   3. MOBIL-NAVIGATION (Abstufungen in Weinrot)
   ========================================================= */
.menu-toggle {
    display: none;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #4A0404; 
    z-index: 1000;
}

.menu-toggle:checked ~ .main-nav {
    display: block;
}

.menu-toggle:checked ~ .hamburger-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle:checked ~ .hamburger-btn span:nth-child(2) { opacity: 0; }
.menu-toggle:checked ~ .hamburger-btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    display: block;
    color: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid #5C0606;
    transition: background-color 0.2s ease, color 0.2s ease; 
}

.main-nav ul ul {
    display: none;
}

/* Harmonische weinrote Abstufungen für die 5 Ebenen auf dem Smartphone */
.main-nav ul ul a { background-color: #5C0606; padding-left: 40px; }         
.main-nav ul ul ul a { background-color: #6E0808; padding-left: 60px; }       
.main-nav ul ul ul ul a { background-color: #800A0A; padding-left: 80px; }     
.main-nav ul ul ul ul ul a { background-color: #930C0C; padding-left: 100px; } 

.main-nav li:hover > ul,
.main-nav li:active > ul {
    display: block;
}

/* =========================================================
   4. DESKTOP-NAVIGATION (Ab 769px Breite / Waagerecht rechts)
   ========================================================= */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        width: auto;
        background-color: transparent;
    }

    .main-nav > ul {
        display: flex;
        justify-content: flex-end;
    }

    .main-nav li {
        position: relative;
    }

    .main-nav a {
        border-bottom: none;
    }

    .main-nav ul ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
    }

    .main-nav ul ul ul,
    .main-nav ul ul ul ul,
    .main-nav ul ul ul ul ul {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
    }

    /* Feste Treppen-Einrückung auf dem Desktop */
    .main-nav ul ul a { padding-left: 20px; background-color: #5C0606; }
    .main-nav ul ul ul a { padding-left: 35px; background-color: #6E0808; }
    .main-nav ul ul ul ul a { padding-left: 50px; background-color: #800A0A; }
    .main-nav ul ul ul ul ul a { padding-left: 65px; background-color: #930C0C; }
}

/* =========================================================
   5. HOVER- & AKTIV-STYLING (NAVIGATION)
   ========================================================= */
.main-nav a:hover {
    background-color: #add8e6 !important; 
    color: #222 !important;              
}

.main-nav a.active {
    background-color: #0056b3 !important; 
    color: #fff !important;
    font-weight: bold;
}

.main-nav a.active:hover {
    background-color: #add8e6 !important;
    color: #222 !important;
}

.x {    content: '▼';
    right: 15px;
    font-size: 0.8rem;
}

/* =========================================================
   6. INHALTSBOX & ACCORDION (AUFROLLEFFEKT)
   ========================================================= */
.info-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(74, 4, 4, 0.04); 
    border: 1px solid #F5E1E1; 
    margin-top: 10px;
    margin-bottom: 20px;
}

.info-card h1 {
    color: #4A0404;
    margin-top: 0;
}

.accordion-item {
    margin-top: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #eee;
    overflow: hidden;
}

.accordion-toggle {
    display: none;
}

.accordion-header {
    display: block;
    padding: 15px;
    background: #fdf8f8;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    user-select: none;
    border-bottom: 1px solid #eee;
}

.accordion-header::after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 15px;
    margin: 0;
    line-height: 1.5;
}

.accordion-toggle:checked ~ .accordion-content { max-height: 800px; }
.accordion-toggle:checked ~ .accordion-header::after { transform: rotate(180deg); }

/* =========================================================
   7. FOOTER STYLING & WEITERE LINKS
   ========================================================= */
.main-footer {
    background-color: #4A0404; 
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    width: 100%;
    border-top: 2px solid #5C0606;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #dbb3b3; 
    margin: 0 10px;
    display: inline-block;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #007bff; 
}

.footer-copyright {
    color: #a87e7e;
    font-size: 0.8rem;
}

.content-wrapper a {
    color: #333;
    transition: color 0.2s ease;
}
.content-wrapper a:hover {
    color: #007bff;
}