/* ==========================================================================
   INHALTSVERZEICHNIS (Suche mit Strg+F nach den Überschriften)
   ==========================================================================
   01. RESET & BASIS-LAYOUT (Abstände, Schriftart, Container)
   02. HEADER & NAVIGATION (Logo, Menüführung)
   03. INHALTSBEREICH (Main, Überschriften, Text)
   04. BILDER (Hero-Bild, Inhaltsbilder)
   05. BESONDERE ELEMENTE (Kicker, Hinweisbox, Buttons)
   06. TABELLEN
   07. FOOTER (Fußzeile)
   08. FORMULARE (Kontaktformular, Checkboxen)
   09. LAYOUT-STRUKTUREN (Side-by-Side, Zick-Zack, Split-Row)
   ========================================================================== */


/* ==========================================================================
   01. RESET & BASIS-LAYOUT
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: #0056b3;
}

a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   02. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 15px; /* Abstand zwischen Logo und Text */
    font-size: 1.5em; 
    font-weight: bold; 
    color: #004488; 
}

.header-logo-img {
    height: 70px; /* Begrenzt die Höhe des Logos, damit der Header nicht verzerrt wird */
    width: auto;
}

/* Basis-Navigation (Desktop) */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

nav ul li a {
    color: #333;
    font-weight: 500;
}

nav ul li a:hover {
    color: #004488;
}

/* Hamburger-Icon (Auf dem Desktop unsichtbar) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001; /* Bleibt immer obenauf */
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #004488;
    border-radius: 3px;
}

/* Schließen-Button in der Sidebar (Desktop unsichtbar) */
.close-menu {
    display: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    color: #004488;
    align-self: flex-end;
    margin-bottom: 20px;
}


/* ==========================================================================
   03. INHALTSBEREICH (Main, Überschriften, Text)
   ========================================================================== */
main {
    background: #fff;
    padding: 40px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    min-height: 60vh;
}

h1,
h2,
h3 {
    color: #004488;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.2em;
    border-bottom: 2px solid #004488;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    margin-top: 30px;
    font-size: 1.6em;
}

p,
ul,
table {
    margin-bottom: 20px;
}

ul {
    margin-left: 20px;
}


/* ==========================================================================
   04. BILDER (Hero-Bild, Inhaltsbilder)
   ========================================================================== */
.hero-img, .content-img { 
    margin: 20px 0; 
    text-align: left; /* oder 'center', wenn du sie mittig haben willst */
}

/* Größen für alle Bilder innerhalb dieser Container */
.content-img img {
    width: 100%; /* Bild nimmt nur noch die halbe Breite ein */
    max-width: 500px; /* Bild wird nie größer als 500 Pixel */
    height: auto; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Leichter, moderner Schattenwurf */
}

.hero-img img {
    width: 100%; /* Das große Titelbild ganz oben darf oft breiter sein */
    height: auto;
    border-radius: 8px;
}


/* ==========================================================================
   05. BESONDERE ELEMENTE (Kicker, Hinweisbox, Buttons)
   ========================================================================== */
.kicker {
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.hinweisbox {
    background: #e2e3e5;
    padding: 15px;
    border-left: 4px solid #6c757d;
    margin-top: 30px; /* Schafft die Lücke nach oben */
    margin-bottom: 20px;
    border-radius: 4px;
}

.cta-btn {
    display: inline-block;
    background: #004488;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.cta-btn:hover {
    background: #003366;
    text-decoration: none;
    color: #fff;
}


/* ==========================================================================
   06. TABELLEN
   ========================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background: #f1f1f1;
    color: #004488;
}


/* ==========================================================================
   07. FOOTER (Fußzeile)
   ========================================================================== */
footer {
    background: #343a40;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9em;
    margin-top: 40px;
}

footer a {
    color: #82caff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.address {
    margin-bottom: 10px;
    font-style: italic;
    color: #ccc;
}


/* ==========================================================================
   08. FORMULARE (Kontaktformular, Checkboxen)
   ========================================================================== */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    gap: 15px;
    margin-top: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

form label {
    font-weight: bold;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

form .checkbox-label {
    flex-direction: row;
    align-items: flex-start;
    font-weight: normal;
}

form .checkbox-label input {
    margin-top: 5px;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

form button {
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 12px;
    background-color: #004488;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

form button:hover {
    background-color: #003366;
}


/* ==========================================================================
   09. LAYOUT-STRUKTUREN (Side-by-Side, Zick-Zack, Split-Row, Listen)
   ========================================================================== */

/* --- Bild-Text-Blöcke (Feature Row) --- */
.feature-row {
    display: flex;
    align-items: center; /* Zentriert Bild und Text auf einer Höhe */
    gap: 30px; /* Abstand zwischen Bild und Text */
    margin-bottom: 40px;
}

.feature-row .content-img {
    flex: 0 0 45%; /* Das Bild nimmt 45% der Breite ein */
    margin: 0; /* Überschreibt alte Abstände */
}

/* Beide Boxen (Bild und Text) erhalten exakt den gleichen Platz (50/50) */
.feature-row .content-img, 
.feature-text {
    flex: 1; /* Teilt den Container exakt in der Mitte */
    margin: 0;
}

/* Verhindert, dass alte max-width-Werte die Bilder stoppen */
.feature-row .content-img img {
    width: 100%; 
    max-width: 100%; 
}

/* Schrift im Textbereich der Feature-Row */
.feature-text {
    flex: 1; 
    font-size: 1.15em; /* 15% größer */
    line-height: 1.7; /* Mehr Zeilenabstand */
}

/* Umgedrehtes Layout (Text links, Bild rechts) */
.feature-row.reverse {
    flex-direction: row-reverse;
}

/* Abstand zwischen einer H2-Überschrift und dem ersten Bild-Text-Block */
h2 + .feature-row {
    margin-top: 45px;
}

/* --- Zwei-Spalten-Layout (Text-Split-Row) --- */
.text-split-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    font-size: 1.15em;
    line-height: 1.7;
}

.text-split-row > div {
    flex: 1; /* Teilt den Platz exakt 50/50 auf */
}

/* --- Kompakte Listen-Darstellung --- */
.compact-list {
    font-size: 0.85em; /* Macht die Schrift kleiner */
    line-height: 1.5; /* Verringert den Zeilenabstand */
    margin-top: 20px; /* Schafft Luft nach oben */
}

.compact-list p {
    margin-bottom: 5px; /* Zieht Überschrift näher an die Liste heran */
}

/* --- Mobile Ansicht (Smartphones) für Layout-Strukturen --- */
@media (max-width: 768px) {
    /* Layout-Strukturen untereinander anordnen */
    .feature-row, 
    .feature-row.reverse {
        flex-direction: column;
        align-items: flex-start;
    }
    .feature-row .content-img {
        flex: 0 0 100%;
        width: 100%;
    }
    .text-split-row {
        flex-direction: column;
    }
    
    /* NEU: Sidebar für Smartphones aktivieren */
    .menu-toggle {
        display: flex; /* Zeigt das Hamburger-Icon */
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%; /* Versteckt die Liste rechts außerhalb des Bildschirms */
        width: 250px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out; /* Weiche Slide-Animation */
        z-index: 1000;
    }
    
    nav ul.open {
        right: 0; /* Fährt die Sidebar ins Bild, sobald die Klasse 'open' da ist */
    }
    
    .close-menu {
        display: block; /* Zeigt das 'X' zum Schließen */
    }
}