/* Grundeinstellungen */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #cae1ff;
    font-family: Arial, Tahoma, sans-serif;
    line-height: 1.5;
}

.main-grid-container {
    display: grid;
    grid-template-columns: 25px 1fr;
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    min-height: 100vh;
}

/* Sidebar & Content */
.sidebar-left {
    background: url('images/HG_Muster.jpg') repeat-y top left;
}

.content-right {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.header-banner {
    height: 160px;
    background: url('images/Panoramabild_Banner.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
}

/* Hamburger Menü */
input#hamburg { display: none; }

label.hamburg {
    display: block;
    background: #1c86ee;
    width: 60px;
    height: 45px;
    position: relative;
    margin: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.line {
    position: absolute;
    left: 10px;
    height: 4px;
    width: 40px;
    background: #fff;
    border-radius: 2px;
    transition: 0.4s;
}

.line:nth-child(1) { top: 10px; }
.line:nth-child(2) { top: 20px; }
.line:nth-child(3) { top: 30px; }

#hamburg:checked + .hamburg .line:nth-child(1) { transform: translateY(10px) rotate(-45deg); }
#hamburg:checked + .hamburg .line:nth-child(2) { opacity: 0; }
#hamburg:checked + .hamburg .line:nth-child(3) { transform: translateY(-10px) rotate(45deg); }

/* Navigation */
nav.topmenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: #f9f9f9;
}

#hamburg:checked ~ nav.topmenu {
    max-height: 1000px;
}

nav.topmenu ul {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
}

nav.topmenu a {
    color: #1c86ee;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

nav.topmenu a:hover { color: #ff8c00; }

/* Oberste Zeile im Kopfbereich */
.header-top-bar {
    background-color: #ffdead;
    border: 1px solid #ffffff;
    padding: 10px 15px;  /* 10px oben/unten, 15px links/rechts */
    font-size: 0.8em;
    color: #000000;
    text-align: left;
    width: 100%;
    margin-bottom: 30px;

    & a {
        color: #0040ff;
        text-decoration: none;
        padding: 2px 5px;
        transition: all 0.3s ease;

        &:hover {
            color: #ffffff;
            background-color: #1c86ee;
            text-decoration: none;
            border-radius: 4px;
        }
    }
}

/*Bilder*/
figure {
    margin: 0; /* Reset für Browser-Standards */
    max-width: 100%;
    display: block;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.6em;
    cursor: zoom-in; /* Zeigt dem User: Hier kann man klicken */
    transition: transform 0.3s ease;
}

figure img:hover {
    transform: scale(1.02); /* Kleiner Effekt beim Drüberfahren */
}

figure.float-left {
    float: left;
    margin: 0 20px 25px 0; /* 25px Abstand nach unten zum nächsten Textabsatz */
    width: 250px;
    display: flex;
    flex-direction: column; /* Stapelt Bild und Unterschrift sauber untereinander */
}

figure.float-right {
    float: right;
    margin: 0 0 25px 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
}

figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* Spezielle Klasse für breite Panoramabilder */
figure.panorama {
    width: 100%;        /* Nutzt die volle Breite des Artikels */
    margin: 20px 0;     /* Abstand oben und unten zum Text */
    float: none;        /* Ganz wichtig: Damit kein Text daneben fließt */
    display: block;
}

/* Panorama-Bild optimieren */
figure.panorama img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

/* --- Die Bildunterschriften --- */
figure figcaption {
    background-color: rgba(197, 241, 251, 0.8);
    padding: 6px;
    margin-top: 6px;      /* Abstand vom Bild zur eigenen Unterschrift */
    margin-bottom: 25px;   /* Abstand von der Unterschrift zum nächsten Bild im Stapel */
    border-radius: 0.5em;
    border: 1px solid #0040ff;
    text-align: center;
    font-size: 0.75em;
    color: #1c86ee;
    line-height: 1.3;
}

/* --- Das letzte Element im Stapel braucht keinen Abstand nach unten --- */
figure figcaption:last-child {
    margin-bottom: 0;
}

/* --- Bilder innerhalb einer Figure --- */
figure img {
    display: block;
    width: 100%;
    height: auto;
}

figure img + img {
    margin-top: 15px; /* Hier stellst du den Abstand zwischen den Bildern ein */
}

figure figcaption {
    margin-top: 8px;
}

/* Die Vergrößerungs-Ansicht (Lightbox) */
.vergroessertes-bild {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dunkler für mehr Fokus */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Sehr hoch, damit es über allem liegt */
    cursor: zoom-out;
}

.vergroessertes-bild img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 0; /* In der Großansicht meist schöner ohne Rundung */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: zoom-out;
}

/* Responsive Anpassung: Auf dem Handy werden die Bilder groß */
@media (max-width: 600px) {
    figure.float-left,
    figure.float-right {
        float: none;
        margin: 10px auto;
        width: 100%; /* Bild nimmt volle Breite ein */
    }
}


/*Text*/
.text-fl::first-letter {
  font-size: 1.6em;
  font-weight: bold;
}

/* Blaue Schrift linksbündig groß  */
h1
{
text-align: left;
vertical-align: top;
font-style: normal;
color: #1c86ee;
font-size: 1.5em;
}

/* Artikel & Boxen */
/* --- TEXT-FORMATIERUNG --- */
article {
    display: flow-root;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #000000;
}

/* Gemeinsame Link-Styles für alle Artikel-Bereiche */
article a,
article.regionen a,
.infobox a {
    color: #000000;
    text-decoration: underline;
    padding: 2px 4px;
    transition: all 0.3s ease;
}

article a:hover,
article.regionen a:hover,
.infobox a:hover {
    color: #ffffff;
    background-color: #c0c0c0;
    text-decoration: none;
    border-radius: 4px;
}

/* Absätze innerhalb von Artikeln für saubere Abstände */
article p {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Die Initialen (Erster Buchstabe) */
.text-fl::first-letter {
    font-size: 1.6em;
    font-weight: bold;
    color: #000000;
}

/* --- SPEZIELLE BEREICHE --- */
article.regionen {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #c0c0c0;
    border-radius: 0.6em;
    background-color: #fcfcfc;
}

.spaced {
    margin-bottom: 5em !important;
}

/* Infobox (Navigation unten) */
.infobox {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 0.85em;
    line-height: 2; /* Mehr Zeilenabstand für die Link-Liste */
}

/* Fussbereich */
.footer-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffdead;
    border: 1px solid #ffffff;
    padding: 10px;
    font-size: 0.8em;
    color: #1c86ee;
    font-style: italic;
    margin-top: auto;
}

.footer-links {
    flex: 1;            /* Nimmt den verfügbaren Platz ein */
    text-align: center; /* Zentriert den Text und die Links innerhalb dieses Bereichs */

    & a {
        color: #0040ff;
        text-decoration: none;
        padding: 2px 5px;
        transition: all 0.3s ease;

        &:hover {
            color: #ffffff;
            background-color: #1c86ee;
            text-decoration: none;
            border-radius: 4px;
        }
    }
}

.footer-arrow {
    display: flex;
    gap: 10px;
    align-items: center;

    & img {
        width: 23px;
        height: 23px;
        border: none;
        display: block;
        transition: transform 0.2s ease;

        &:hover {
            transform: scale(1.1);
        }
    }
}

/*-----ifames YouTube------------------------------------*/
.video-block {
    width: 100%;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-block iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.6em;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-block::before,
.video-block::after {
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    background-color: #d3d3d3; /* Dein Hellgrau */
    border-radius: 4px;
    margin: 15px 0;
}

/* Die Bildunterschrift unter dem Video */
.video-block figcaption {
    margin-top: 10px;
    font-size: 0.85em;
    font-style: italic;
    color: #1c86ee;
    text-align: center;
}

/* Trennlinien */
hr.video {
    border: none;
    height: 8px;
    background-color: #d3d3d3;
    border-radius: 4px;
    width: 100%;
    margin: 25px 0;
}

/* Aktualisiert am - Datumsanzeige */
.last-update {
    margin-top: 40px;
    margin-bottom: 10px;
    padding-left: 15px;
    font-size: 0.75em;
    color: #777777;
    text-align: left;
    font-style: italic;
}

/* Responsivität */
@media (max-width: 768px) {
    .main-grid-container {
        grid-template-columns: 1fr; /* Sidebar links verschwindet auf Mobile */
    }
    .sidebar-left { display: none; }
}
@media (max-width: 768px) {
    .header-top-bar {
        margin-bottom: 15px; /* Halber Abstand auf kleinen Bildschirmen */
    }
}