/* --- 1. GLOBALE VARIABLEN & BASIS --- */
:root {
    --brand-blue: #369;
    --brand-light: #f2f2f2;
    --brand-yellow: #ff2;
    --text-dark: #333;
    --bg-main: #bbb;
    --white: #ffffff;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 2. HEADER & LOGO --- */
.header {
    background: var(--brand-light);
    text-align: center;
    position: relative;
    border: 2px solid white;
    border-radius: 4px;
    padding: 0.3rem 1rem;
    max-width: 1000px;
    margin: 0.5rem auto;
}

.logo-container {
    border-bottom: 1px solid var(--brand-blue);
    border-top: 1px solid var(--brand-blue);
    padding: 5px 0;
    margin: 2vh auto;
}

.logo-container img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* --- 3. NAVIGATION & HAMBURGER --- */
.main-nav {
    background-color: var(--brand-blue);
    max-width: 1000px;
    margin-bottom: 1rem; /* auto 1rem auto;*/
    margin-top: 1rem;
    border-radius: 4px;
    padding: -0.5rem;
 }

.nav-toggle { display: none; } /* Die Checkbox */

.hamburger-label {
    display: none; /* Nur auf Mobil sichtbar */
    color: white;
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: pointer;
    text-align: right;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}


.nav-list a {
    color: white !important;
    text-decoration: none;
    padding: 0.8rem;
    display: block;
    font-size: 1.1em;
    transition: 0.3s;
}

.nav-list a:hover {
    background: rgba(255,255,255,0.2);
    color: var(--brand-yellow);
}

/* --- 4. HAUPTBEREICH & SEKTIONEN --- */
main {
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
    flex: 1;
    background-color: var(--bg-main);
    width: 100%;
}

section {
    background: var(--white);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 125%;
}

h2 { color: var(--brand-blue); padding-bottom: 0.5rem; }
h3 { color: brown; }
p { font-size: 1.1em; hyphens: auto; -webkit-hyphens: auto; }

/* --- 5. TABELLEN (Öffnungszeiten) --- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border: 1px solid #ddd; text-align: left; }
th { background-color: #ccc; color: var(--text-dark); }

/* --- 6. FORMULARE & BUTTONS --- */
form { display: flex; flex-direction: column; gap: 0.5rem; max-width: 300px; margin: auto; }
input, button[type="submit"] { padding: 10px; font-size: 1rem; }
button[type="submit"] { background: var(--brand-blue); color: white; border: none; cursor: pointer; border-radius: 4px;}
button[type="submit"]:hover { background: #0056b3; }

/* --- 7. FOOTER & BACK TO TOP --- */
footer {
    text-align: center;
    background: var(--brand-blue);
    color: white;
    padding: 1rem;
    margin-top: auto;
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 25px;
    z-index: 199;
    background-color: #007BFF;
    color: white;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
}

/* --- 8. PWA & INSTALL BANNER --- */
#install-prompt-container, #install-banner {
    position: fixed;
    background-color: #333;
    color: white;
    padding: 15px;
    z-index: 10000;
    width: 100%;
    left: 0;
    text-align: center;
}
#install-banner { top: 0; border-bottom: 4px solid var(--brand-yellow); animation: slideDown 0.5s ease-out; }

/* --- 9. RESPONSIVE DESIGN (Media Queries) --- */
@media (max-width: 768px) {
	.main {width: 100hw !important; padding:0 !important}
    .hamburger-label { display: block; } /* Hamburger Icon zeigen */
    .nav-list {
        /*display: none; */ /* Menü verstecken */
        flex-direction: column;
        width: 100%;
        font-size: small
    }
    
	.nav-list a{
        color: white;
        flex-direction: column;
        width: 100%;
        line-height: 0.3rem !important;
        margin-top: -5px;
    }

    /* Hamburger Logik: Wenn Checkbox an, dann Liste zeigen */
    .nav-toggle:checked ~ .nav-list { display: flex; }
    section { font-size: 100%; padding: 1rem; width: auto}
    /* Tabellen Umwandlung für Mobile */
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr { border: 1px solid #ccc; margin-bottom: 5px; }
    td { border: none; position: relative; padding-left: 50%; }
    td:before { content: attr(data-label); position: absolute; left: 10px; font-weight: bold; }
}

@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.rot {color: maroon; font-weight: bold}
