/* Globales Styling & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    background-color: #f8f9fa;
}

body {
    line-height: 1.6;
    padding-top: 70px;
}

/* Navigation & Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    z-index: 1000;
}

.brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #001a96;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #444444;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #001a96;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Haupt-Layout-Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}

/* Start-Bereich mit Pfeilschild im Hintergrund */
#start-bereich::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    height: 90%;
    background-image: url('images/Zeichen_333_-_Pfeilschild_-_Ausfahrt_von_der_Autobahn,_StVO_1980.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.12;
    filter: drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.08));
    z-index: 0;
    pointer-events: none;
}

#start-bereich .hero,
#start-bereich .container {
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 30px 20px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    color: #001a96;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #666666;
    font-style: italic;
}

#intro {
    border-bottom: none;
    padding: 20px 0;
}

/* Sektionen allgemein & Hintergründe */
section {
    position: relative;
    padding: 50px 0;
    border-bottom: 1px solid #e0e0e0;
}

section:last-of-type {
    border-bottom: none;
}

/* Dynamische Wasserzeichen-Hintergründe pro Abschnitt */
.section-with-bg::before {
    content: "";
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 320px;
    height: 70%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.bg-gefahrstelle::before {
    background-image: url('images/Zeichen_101_-_Gefahrstelle,_StVO_1970.svg');
}

/* Hintergrund bei Perspektive: 90-Jahre-Zusatzzeichen */
.bg-ende-tempo::before {
    background-image: url('images/Zusatzzeichen_1008-31_-_90Jahre,_StVO_1992.svg');
    max-width: 280px;
    top: 60%;
}

.bg-kraftfahrstrasse::before {
    background-image: url('images/Zeichen_331_-_Kraftfahrstrasse_(600x600);_StVO_1992.svg');
}

/* Hintergrund bei Links: blaues Ankündigungsschild */
.bg-ausfahrt-pfeil::before {
    background-image: url('images/AB-AS-blau.svg');
    max-width: 380px;
}

h2 {
    font-size: 1.8rem;
    color: #001a96;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* Textkästen & Zitate */
.bible-verse, .quote-box {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bible-verse {
    border-left: 4px solid #001a96;
    font-size: 1.1rem;
}

.quote-box {
    border-left: 4px solid #666666;
}

.quote-box cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-style: normal;
    color: #666666;
    font-weight: bold;
}

/* Grafik-Einbindung bei "Perspektive" */
.schilder-group {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px 0;
    gap: 5px;
}

.sign-main {
    width: 120px;
    height: auto;
}

.sign-sub {
    width: 140px;
    height: auto;
}

/* Header mit Icon (bei Link-Sektion) */
.section-header-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-header-with-icon h2 {
    margin-bottom: 0;
}

.header-icon {
    height: 36px;
    width: auto;
}

/* Buttons & Kontaktbereich */
.contact-box {
    position: relative;
    z-index: 1;
    margin-top: 25px;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #001a96;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #001266;
}

/* Weiterführende Links */
.link-list {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.link-list li {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #001a96;
}

.link-list a {
    color: #001a96;
    text-decoration: none;
}

.link-list a:hover {
    text-decoration: underline;
}

/* Footer & Impressum */
footer, #impressum {
    position: relative;
    background-color: transparent !important;
    padding: 50px 0 30px 0;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666666;
    overflow: hidden;
    border-top: 1px solid #e0e0e0;
}

footer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 450px;
    height: 90%;
    background-image: url('images/Zeichen_365-59_-_Autobahnkapelle,_StVO_2013.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.06));
    z-index: 0;
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 1;
}

/* Responsive Design für Mobilgeräte */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 60px;
        background-color: #ffffff;
        height: calc(100vh - 60px);
        width: 70%;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.nav-active {
        display: flex;
        transform: translateX(0%);
    }

    .hero h1 {
        font-size: 2rem;
    }
}
