/* Globales Box-Modell fixen */
html, body, :root {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* GLOBAL FIX gegen Overscroll-Balken */
html, body, :root {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

    background-color: transparent !important;
    overscroll-behavior: none;
}

/* Hintergrundverläufe direkt auf :root */
:root.italia-page {
    background: linear-gradient(to bottom, #8a3f00, #d87b2f);
    background-repeat: no-repeat;
    background-size: cover;
}

:root.natur-page {
    background: linear-gradient(to bottom, #1f3a26, #3c6e47);
    background-repeat: no-repeat;
    background-size: cover;
}

:root.stadt-page {
    background: linear-gradient(to bottom, #4a0f17, #8b1e2d);
    background-repeat: no-repeat;
    background-size: cover;
}

:root.astronomie-page {
    background: linear-gradient(to bottom, #0d1f3f, #1a3a6e);
    background-repeat: no-repeat;
    background-size: cover;
}

/* -----------------------------------------------------------
   NEU: Hintergrund für Kontakt + Impressum (Option A)
----------------------------------------------------------- */
:root.kontakt-page,
html.kontakt-page,
body.kontakt-page,
:root.impressum-page,
html.impressum-page,
body.impressum-page {
    background: linear-gradient(to bottom, #0d1f3f, #1a3a6e);
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

/* Header + Footer */
.site-title-wrapper,
.footer-wrapper {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    background: transparent;
}

.title-line,
.footer-line {
    height: 2px;
    margin: 10px auto;
    width: 100%;
    max-width: 1800px;
    background: rgba(255,255,255,0.4);
}

.site-title,
.footer-text {
    font-weight: 300;
    font-size: 2.4rem;
    letter-spacing: 3px;
    margin: 10px 0;
    text-transform: lowercase;
    color: white;
}

.title-link,
.footer-text a {
    color: inherit;
    text-decoration: none;
}

.title-link:hover,
.footer-text a:hover {
    text-decoration: underline;
}

/* Stadt-Menü */
.stadt-menu {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    color: white;
    text-align: center;
}

.stadt-menu h2 {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 20px;
}

.stadt-menu ul {
    list-style: none;
    padding: 0;
}

.stadt-menu li {
    margin: 15px 0;
}

.stadt-menu a {
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    letter-spacing: 2px;
}

.stadt-menu a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------------
   VERBESSERTER Hintergrund-Fix für ALLE Seiten
----------------------------------------------------------- */
:root.italia-page,
html.italia-page,
body.italia-page,
:root.stadt-page,
html.stadt-page,
body.stadt-page,
:root.natur-page,
html.natur-page,
body.natur-page,
:root.astronomie-page,
html.astronomie-page,
body.astronomie-page,
:root.kontakt-page,
html.kontakt-page,
body.kontakt-page,
:root.impressum-page,
html.impressum-page,
body.impressum-page {
    min-height: 100%;
    min-height: 100vh;
    height: auto;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Bildgrößen */
.gallery-item img {
    max-width: 100%;
    width: 100%;
    display: block;
    height: 240px;
    object-fit: cover;
}