/* ==========================================================================
   BÜRGER HILLSCHEID - MAIN STYLESHEET
   ========================================================================== */

/* 1. SCHRIFTARTEN */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/roboto-v51-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/roboto-v51-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/roboto-v51-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/roboto-v51-latin-700.woff2') format('woff2');
}

/* 2. VARIABLEN & RESET */
:root {
    --primary: #1e4620;
    --primary-hover: #2d4222;
    --accent: #f4a261;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
    --radius: 10px;
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. TOP BAR */
.top-bar {
    background-color: #163318;
    color: #ffffff;
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.location-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.location-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* 4. HEADER & NAVIGATION */
.site-header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.brand-wappen {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.main-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav .menu-active > a,
.main-nav .menu-current > a {
    background-color: rgba(30, 70, 32, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 8px 0;
    z-index: 1000;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.main-nav li:hover > ul,
.main-nav li.is-focused > ul {
    display: flex;
}

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    display: block;
    background: var(--primary);
    height: 3px;
    width: 25px;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s;
}
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 5px; }

/* 5. HERO BANNER MIT SKYLINE HINTERGRUND (SKALIERT MIT DER HOEHE) */
.hero-banner {
    position: relative;
    background-color: #2c4322; /* Hauptgrün als Hintergrund */
    background-image: url('image/skyline-banner.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    /* Grafik passt sich dynamisch an die Höhe des Banners an (100% Höhe) */
    background-size: auto 100%; 
    color: #ffffff;
    margin-bottom: 35px;
    text-align: center;
    padding: 100px 20px 80px 20px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 43, 20, 0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* 6. MAIN LAYOUT & INHALT */
.site-main {
    flex: 1;
    margin-bottom: 50px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.content-area h1, .content-area h2, .content-area h3 {
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 20px;
}

.content-area h1:first-child, .content-area h2:first-child {
    margin-top: 0;
}

.content-area p { margin-bottom: 15px; }
.content-area ul, .content-area ol { margin-bottom: 15px; padding-left: 20px; }

.mod_nwi_default {
    display: block;
}

/* 7. SEITENLEISTE (SIDEBAR) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget h3, .sidebar-widget h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-widget ul { list-style: none; }
.sidebar-widget li { margin-bottom: 10px; }
.sidebar-widget a {
    text-decoration: none;
    color: var(--text-main);
    display: block;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.sidebar-widget a:hover {
    background: rgba(30, 70, 32, 0.1);
    color: var(--primary);
}

/* 8. TABELLEN STYLING */
.content-area { overflow-x: auto; }
.content-area table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 0.95rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.content-area th {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
}

.content-area td {
    padding: 12px 16px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

.content-area tbody tr:nth-child(even) { background-color: rgba(0, 0, 0, 0.02); }
.content-area tbody tr:hover td { background-color: rgba(30, 70, 32, 0.05); }

/* 9. FOOTER */
.site-footer {
    background: #111e12;
    color: #cfd8d0;
    padding-top: 40px;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.fuss1 h3, .fuss2 h3, .fuss3 h3 { color: #ffffff; margin-bottom: 15px; }
.fuss1 ul, .fuss2 ul, .fuss3 ul { list-style: none; }
.fuss1 a, .fuss2 a, .fuss3 a { color: #cfd8d0; text-decoration: none; line-height: 2; }
.fuss1 a:hover, .fuss2 a:hover, .fuss3 a:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
    background: #091109;
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #1c2e1d;
}

/* 10. VORLESEFUNKTION (TEXT-TO-SPEECH) */
.tts-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tts-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.tts-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.tts-btn-secondary { background-color: #6c757d; }
.tts-btn-secondary:hover { background-color: #5a6268; }

.tts-btn-danger { background-color: #dc3545; }
.tts-btn-danger:hover { background-color: #bd2130; }

/* 11. RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .layout-grid { grid-template-columns: 1fr; }
    .nav-toggle-label { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }
    .main-nav.nav-open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: flex-start; }
    .main-nav ul ul { position: static; box-shadow: none; border: none; padding-left: 15px; }
    .nav-toggle:checked ~ .main-nav { display: block; }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 15px 50px 15px;
    }
    .hero-content h1 {
        font-size: 1.75rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .footer-inner { grid-template-columns: 1fr; gap: 25px; }
}