/* BSW Design Guidelines Implementation */
:root {
    /* Primärfarben & Verlauf */
    --bsw-violett: rgb(121, 35, 81);
    --bsw-dark-pink: rgb(177, 25, 73);
    --bsw-pink: rgb(207, 0, 85);
    --bsw-dark-orange: rgb(238, 116, 2);
    --bsw-light-orange: rgb(244, 152, 0);
    --bsw-white: rgb(255, 255, 255);
    --bsw-black: rgb(0, 0, 0);
    --bsw-grey: #f4f4f4;
    
    /* Typografie */
    --font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-headline: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Heavy Condensed simuliert */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    color: var(--bsw-black);
    line-height: 1.5;
    background-color: var(--bsw-white);
}

/* Typografie Anpassungen */
h1, h2, h3 {
    font-family: var(--font-headline);
    font-weight: 800; /* Heavy */
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    transform: skewX(-8deg); /* Negative Neigung für Dynamik */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    z-index: 1;
}

/* Balken-Element hinter Headlines */
.headline-balken {
    position: relative;
    display: inline;
    padding: 5px 10px;
    /* Damit der Hintergrund bei Umbruch korrekt gehandhabt wird (nur modernere Browser, Fallback ist ok) */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Standard Balken (Desktop: schräges Element) */
.headline-balken::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(90deg, var(--bsw-violett), var(--bsw-dark-orange));
    opacity: 0.64;
    z-index: -1;
    transform: skewX(-15deg); /* Dynamische Form */
}

/* Header & Nav */
header {
    background: var(--bsw-white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px; 
}

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

nav a {
    text-decoration: none;
    color: var(--bsw-violett);
    font-weight: bold;
    text-transform: uppercase;
}

/* Burger Menü (Desktop: versteckt) */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--bsw-violett);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, var(--bsw-violett) 0%, var(--bsw-pink) 50%, var(--bsw-dark-orange) 100%);
    color: white;
    padding: 80px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-media {
    flex: 1;
    min-width: 300px;
    background: rgba(0,0,0,0.2);
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--bsw-dark-orange);
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 20px;
}

.btn:hover {
    transform: scale(1.05);
    background-color: var(--bsw-light-orange);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 10px;
}

/* Content Sections */
section {
    padding: 60px 5%;
}

.bg-grey {
    background-color: var(--bsw-grey);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Problem & Fakten */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fact-card {
    background: white;
    padding: 30px;
    border-left: 5px solid var(--bsw-pink);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.fact-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--bsw-violett);
    display: block;
    margin-bottom: 10px;
}

/* Deep Dive Modal/Accordion */
.deep-dive-toggle {
    color: var(--bsw-dark-pink);
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
}

.deep-dive-content {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
}

/* Action / Musteranfragen */
.action-box {
    background: white;
    border: 2px solid var(--bsw-dark-orange);
    padding: 40px;
    margin-top: 30px;
    position: relative;
}

.copy-area {
    background: #f9f9f9;
    padding: 15px;
    border: 1px dashed #ccc;
    margin: 15px 0;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: scroll;
}

/* Media Center */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.media-item {
    background: #eee;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    position: relative;
}

.download-btn-sm {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--bsw-violett);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--bsw-black);
    color: white;
    padding: 40px 5%;
    margin-top: 60px;
}

footer a {
    color: var(--bsw-light-orange);
}

/* --- Störer Design (Gelber Marker) --- */
.stoerer-yellow {
    display: inline-block;
    background-color: #fff000; /* Signalgelb */
    color: #000; /* Schwarzer Text für Kontrast */
    font-weight: 900;
    padding: 5px 15px;
    margin: 10px 0;
    transform: rotate(-2deg); /* Leichte Drehung */
    box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
    border: 2px solid #000;
    text-transform: uppercase;
    font-size: 1.1em;
}

/* --- Modal (Popup) Design für Rechtstexte --- */
.modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); /* Dunkler Hintergrund */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    position: relative;
    border-top: 10px solid var(--bsw-violett);
    border-radius: 4px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Styles & Mobile Menü */
@media (max-width: 768px) {
    /* --- OPTIMIERUNG FÜR SCHRIFTGRÖßE --- */
    
    h1 {
        /* Viel kleiner auf Mobile (war vorher 3rem/2rem) */
        font-size: 1.8rem; 
        line-height: 1.2;
        /* Reduziere die Neigung auf Mobile, liest sich besser */
        transform: skewX(-4deg);
    }
    
    h2 {
        font-size: 1.5rem; /* Kompakter */
        margin-bottom: 1rem;
    }

    /* --- FIX FÜR DEN HINTERGRUND-BALKEN --- */
    /* Auf Mobile deaktivieren wir das schräge Element und nutzen einen Gradient direkt auf dem Text */
    .headline-balken::before {
        display: none; /* Altes Element weg */
    }

    .headline-balken {
        /* Neuer Verlauf: Funktioniert auch wenn der Text umbricht! */
        background: linear-gradient(180deg, transparent 60%, rgba(238, 116, 2, 0.4) 60%);
        padding: 0 5px;
        /* Box Decoration Break sorgt dafür, dass der Style auf jeder Zeile einzeln angewendet wird */
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }

    /* Hero Anpassungen */
    .hero { 
        flex-direction: column; 
        padding: 40px 5%; /* Weniger Padding oben/unten */
    }
    
    .hero-text { 
        padding-right: 0; 
        margin-bottom: 30px; 
    }

    /* Störer etwas kleiner */
    .stoerer-yellow {
        font-size: 0.9em;
        margin-top: 15px;
    }

    /* Header Anpassungen für Mobile */
    header {
        flex-direction: row; /* Logo links, Burger rechts */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px; /* Etwas kompakter */
        position: sticky;
        top: 0;
    }

    .logo {
        margin-bottom: 0;
    }
    
    .logo img {
        height: 35px; /* Logo noch etwas kleiner für mehr Platz */
        width: auto;
    }

    /* Burger Icon anzeigen */
    .burger-menu {
        display: flex;
        z-index: 1001;
    }

    /* Navigation verstecken und absolut positionieren */
    nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--bsw-white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
        margin: 10px 0;
    }

    nav a {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem; /* Größere Klickfläche im Menü */
    }

    /* Burger Animation zu X */
    .burger-menu.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .burger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Buttons mobil */
    .btn, .btn-secondary {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-bottom: 10px;
    }
}
