/* ==========================================================
   1) Grundlayout & Typografie
========================================================== */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: #fafafa;
    color: #222;
    padding-bottom: 120px;
}

a {
    color: #b00000;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: #e00000;
}

h2, h3 {
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 15px;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2 {
  margin-top: 20px;
}

p {
  line-height: 1.6;
}

/* ==========================================================
   6) Layout (Content + Sidebar)
========================================================== */

.layout {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 25px;
}

.content {
    width: 75%;
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.content img {
    width: 50%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

.sidebar {
    width: 25%;
    background: #f3f3f3;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sidebar a {
    color: #b00000;
}

.sidebar iframe {
    display: block;
    margin: 0 auto;
}


/* ==========================================================
   13) Responsive Layout
========================================================== */

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .content,
    .sidebar {
        width: 100%;
    }
}


/* >>> MOBILE OPTIMIERUNG – NEU <<< */
/* ==========================================================
   Mobile Grundoptimierung
========================================================== */

@media (max-width: 900px) {

    body {
        font-size: 17px;
        line-height: 1.75;
        padding-bottom: 160px; /* mehr Platz wegen Footer */
    }

    h2, h3 {
        margin-bottom: 18px;
        font-size: 1.4rem;
    }

    section, .content, .sidebar {
        padding: 28px 20px !important;
    }

    /* Bilder im Content */
    .content img {
        width: 100% !important;
        max-width: 480px;
        margin: 0 auto 25px;
        display: block;
    }

    /* Layout */
    .layout {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .content, .sidebar {
        width: 100%;
        border-radius: 12px;
    }

    /* Buttons */
    button, .btn {
        padding: 16px;
        font-size: 17px;
        border-radius: 10px;
    }

    /* Tabellen */
    .termine-table {
        font-size: 15px;
    }
}


/* >>> MOBILE OPTIMIERUNG – NEU <<< */
/* ==========================================================
   Mobile Header / Navigation
========================================================== */

@media (max-width: 900px) {

    header {
        padding-bottom: 15px;
    }

    .header-banner img {
        max-width: 90%;
        border-radius: 10px;
    }

    /* Burger-Icon größer & besser klickbar */
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        width: 36px;
        height: 4px;
    }

    /* Mobile Menü */
    .nav ul {
        width: 85%;
        right: 50%;
        transform: translateX(50%);
        top: 70px;
        padding: 30px 25px;
        gap: 22px;
    }

    .nav a {
        font-size: 1.2rem;
        padding: 14px 18px;
    }
}


/* >>> MOBILE OPTIMIERUNG – NEU <<< */
/* ==========================================================
   Footer – Mobile Fix
========================================================== */

@media (max-width: 900px) {
    footer {
        padding: 18px;
        font-size: 15px;
    }
}

/* >>> MOBILE HEADER – KOMPLETT OPTIMIERT <<< */

@media (max-width: 900px) {

    /* Header kompakter */
    header {
        padding: 12px 0 18px;
        background: linear-gradient(135deg, #b30000, #7a0000);
        position: sticky;
        top: 0;
        z-index: 3000;
        backdrop-filter: blur(6px);
    }

    /* Banner-Bild kleiner & harmonischer */
    .header-banner img {
        max-width: 85%;
        border-radius: 10px;
        margin-top: 10px;
    }

    /* Burger-Icon größer & besser klickbar */
    .nav-toggle-label {
        top: 18px;
        right: 18px;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        width: 36px;
        height: 4px;
        border-radius: 4px;
    }

    /* Mobile Menü als modernes Overlay */
    .nav ul {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.92);
        padding: 35px 25px;
        border-radius: 14px;
        gap: 22px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.35);
        position: absolute;
        top: 70px;
        right: 50%;
        transform: translateX(50%);
        width: 85%;
        text-align: center;
    }

    /* Menü aktiv */
    .nav-toggle:checked ~ nav ul {
        display: flex;
    }

    /* Menü-Links größer & klarer */
    .nav a {
        font-size: 1.25rem;
        padding: 14px 18px;
        border-radius: 8px;
        background: rgba(255,255,255,0.08);
    }

    .nav a:hover {
        background: rgba(255,255,255,0.18);
    }

    /* Scroll-Effekt mobil entschärft */
    header.scrolled {
        padding: 8px 0 12px;
        background: rgba(179, 0, 0, 0.95);
    }

    header.scrolled .header-banner img {
        max-width: 75%;
    }
}


/* ==========================================================
   14) Cookie Banner
========================================================== */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 20px;
    z-index: 99999;
    display: none;
}

.cookie-box {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

#cookie-banner button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

#cookie-accept {
    background: #28a745;
    color: #fff;
}

#cookie-decline {
    background: #dc3545;
    color: #fff;
}


/* ==========================================================
   15) Termine – Tabelle
========================================================== */

.termine-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 20px;
}

.termine-table th,
.termine-table td {
    border: 1px solid #ccc;
    padding: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.termine-table th {
    background: #f2f2f2;
    font-weight: 600;
}

@media (max-width: 768px) {
    .termine-table {
        font-size: 14px;
    }
}
