:root {
    --accent: #1E88E5;
    --muted: #6b7280;
    --bg: #fbfbfc;
    --card: #ffffff;
    --maxw: 1100px;
}

/* --- Grundlayout --- */
* { box-sizing: border-box; }

body {
    font-family: Roboto, 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: #0f1724;
}

.container {
    max-width: var(--maxw);
    margin: 18px auto;
    padding: 18px;
}

/* =======================
   HEADER + NAVIGATION
========================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;   /* ZENTRIERT LOGO + SLOGAN */
    justify-content: center;
    text-align: center;
}


.branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* --- LOGO Variante A --- */
/* mobil größer, desktop kleiner */
.logo img {
    max-width: 300px;
    height: auto;
    display: block;
}

@media (min-width: 769px) {
    .logo img {
        max-width: 220px;
    }
}

/* Mobil: Logo etwas größer */
@media (max-width: 850px) {
    .logo img {
        max-width: 220px;
    }
}

/* --- SLOGAN --- */
.slogan {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 6px;
    max-width: 90%;
    color: #FF0000; /* hinzugefügt */
}

/* --- Navigation Desktop --- */
.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.site-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* --- Mobile Menübutton --- */
.nav-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* --- Navigation Mobile --- */
@media (max-width: 850px) {

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        padding-bottom: 15px;
    }

    .site-nav.show {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
}

/* =======================
   MAIN / CONTENT
========================= */

main { padding: 20px; }

.card {
    background: var(--card);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(9,15,20,0.04);
    margin-bottom: 16px;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #ddd;
    background-color: #f8f8f8;
}

/* =======================
   SUBPAGE LAYOUT
========================= */

.content-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.65;
    font-size: 1.07rem;
}

.page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Autorinfo */
.author-note {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #bbb;
    font-size: 0.95rem;
    text-align: left;
    color: #555;
}

/* Rechtsquellen */
.rechtsquellen {
    background: #e3ecf7;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid #324b81;
    margin-top: 2rem;
    border-radius: 6px;
}

.rechtsquellen a {
    text-decoration: underline dotted;
}

/* =======================
   BILDER + GALERIE
========================= */

img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Bilder mit Textumfluss */
.bild-links {
    float: left;
    margin: 0 20px 15px 0;
    width: 40%;
}

.bild-rechts {
    float: right;
    margin: 0 0 15px 20px;
    width: 40%;
}

@media (max-width: 700px) {
    .bild-links,
    .bild-rechts {
        float: none;
        display: block;
        margin: 15px auto;
        width: 100%;
    }
}


/* Galerie */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery img {
    width: 200px;
    border-radius: 6px;
    cursor: zoom-in;
    border: 1px solid #ccc;
    transition: transform 0.3s ease;
}

/* gallery-grid soll identisch funktionieren wie gallery */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-grid img {
    width: 200px;
    height: auto;
    border-radius: 6px;
    cursor: zoom-in;
    border: 1px solid #ccc;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Handy: 2 nebeneinander */
@media (max-width: 700px) {
    .gallery-grid img {
        width: calc(50% - 15px);
    }
}








.gallery img:hover {
    transform: scale(1.05);
}

/* =======================
   LIGHTBOX (repariert)
========================= */

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 10px;
}
/* ===== Info-Box / Hintergrundblock (Option A ohne Rand) ===== */

.infobox {
    background: #e3ecf7 !important;
    padding: 1.2rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 6px !important;
    border-left: 5px solid #1E88E5 !important; /* die Markierung */
    line-height: 1.6 !important;
}



/* =======================
   NACH-OBEN-BUTTON
========================= */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 22px;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.back-to-top.show {
    display: block;
    opacity: 0.9;
}

.back-to-top:hover {
    opacity: 1;
}

/* =======================
   DRUCKANSICHT / PRINT
========================= */
@media print {

    /* Mobile-Menübutton NICHT drucken */
    .nav-toggle {
        display: none !important;
    }

    /* Navigation IMMER anzeigen */
    .site-nav {
        display: block !important;
    }

    .site-nav ul {
        flex-direction: row !important;
        gap: 12px !important;
    }

    .site-nav a {
        font-size: 12pt !important;
    }
}