/* ==========================================================================
   1. CSS VARIABLES (Zentrale Steuerung für den Kunden)
   ========================================================================== */
:root {
    /* Farben */
    --bg-color: #000000;
    --text-color: #ffffff;
    --color-h1: #b9ff00;
    --color-h2: #8d86ff;
    --footer-bg: #111111;
    --footer-border: #333333;
    --link-color: #b9ff00;
    --link-hover: #ffffff;

    /* Typografie & Spacing */
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width-image: 1200px;
    --max-width-content: 800px; /* Hält den Text auf angenehmer Lesebreite */
    --spacing-default: 2rem;
}

/* ==========================================================================
   2. RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   3. LAYOUT & TYPOGRAFIE
   ========================================================================== */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert alles */
    width: 100%;
}

.hero-header {
    width: 100%;
    max-width: var(--max-width-image);
    margin: 0 auto var(--spacing-default) auto;
}

/* Das Bild selbst */
.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content-section {
    width: 100%;
    max-width: var(--max-width-content);
    padding: 0 1.5rem; /* Abstand nach links/rechts auf Handys */
    text-align: center;
    margin-bottom: 4rem;
}

/* Fluid Typography: clamp() skaliert die Schriftgröße automatisch zwischen einem Min- und Max-Wert je nach Bildschirmbreite */
h1 {
    color: var(--color-h1);
    font-size: clamp(2rem, 5vw, 3.5rem); 
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--color-h2);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 2rem;
}

.teaser-text, .post-form-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0; /* Minimal weicher als reines Weiß für bessere Lesbarkeit */
}

/* Container für das externe Formular */
.form-wrapper {
    width: 100%;
    margin-bottom: 2.5rem;
    /* Optional: Ein minimaler Rahmen oder Hintergrund für das Formular, falls gewünscht */
    /* background: #1a1a1a; padding: 2rem; border-radius: 8px; */
}

.form-placeholder-text {
    border: 1px dashed #555;
    padding: 3rem 1rem;
    color: #888;
}

/* ==========================================================================
   4. FOOTER (Flexbox)
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 3rem 1.5rem;
    width: 100%;
}

.footer-container {
    max-width: var(--max-width-image);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Wichtig für Mobile, damit es umbricht */
    gap: 2rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #aaaaaa;
}

.footer-address strong {
    color: var(--text-color);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

/* Barrierefreiheit & Hover */
.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-color: var(--link-color);
    text-underline-offset: 4px;
}

/* ==========================================================================
   5. RESPONSIVE DESIGN (Mobile Anpassungen)
   ========================================================================== */
@media (max-width: 768px) {
    /* Auf kleinen Bildschirmen brechen wir den Footer um und zentrieren ihn */
    .footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
}

/* ==========================================================================
   6. RECHTSTEXTE (Impressum, Datenschutz, Teilnahmebedingungen)
   ========================================================================== */

/* Überschreibt die Zentrierung der Startseite für lange Texte */
.legal-content {
    text-align: left; 
    margin-top: 5rem; /* Etwas mehr Abstand nach oben, da das Bild fehlt */
}

/* Die Hauptüberschrift bleibt als Seitentitel schön zentriert */
.legal-content h1 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Unterüberschriften im Text */
.legal-content h2 {
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color); /* Neutrales Weiß für sachliche H2 */
    font-size: 1.5rem;
}

/* Fließtext und Listen */
.legal-content p, 
.legal-content ul, 
.legal-content ol {
    color: #cccccc; /* Ein weiches Grau für entspanntes Lesen auf Schwarz */
    margin-bottom: 1.5rem;
    font-size: 1.05rem; /* Ein Hauch größer für bessere Lesbarkeit */
}

/* Listen-Einrückung */
.legal-content ul, 
.legal-content ol {
    margin-left: 2rem; 
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Links in Rechtstexten (z. B. E-Mail-Adressen) */
.legal-content a {
    color: var(--link-color);
    text-decoration: none;
}

.legal-content a:hover,
.legal-content a:focus {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-color: var(--link-color);
    text-underline-offset: 4px;
}