/* cmsms stylesheet: Suchtvorbeugung_Main_CSS modified: Tuesday, April 14, 2026 10:41:19 AM */
/* --- 1. VARIABLEN & GRUNDLAGEN (DSGVO & WCAG konform) --- */
:root {
    /* Das ARGE-Rot: Signalstark für Buttons & wichtige Hover-Zustände */
    --color-primary: #df0517;    
    
    /* Ein dunkles Blau-Grau: WCAG AAA-konform auf Weiß (perfekt für Footer & Hero) */
    --color-secondary: #1a365d;  
    
    /* Das Anthrazit aus dem Logo: Perfekter AAA-Kontrast für Fließtext & Überschriften */
    --color-text: #231f20;       
    
    /* Ein dunkleres Grau für sekundäre Texte (WCAG AA konform) */
    --color-text-light: #4a4a4a; 
    
    --color-bg: #ffffff;
    
    /* Ein sehr sanftes Grau für Hintergründe (blendet nicht) */
    --color-bg-light: #f4f5f7;   
    
    /* Der System Font Stack (100% DSGVO-konform, keine externen Ladezeiten) */
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    
    --container-width: 1200px;
}

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

/* --- 2. BASIS & WCAG-LESBARKEIT --- */
body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6; /* Wichtig für gute Lesbarkeit (Legasthenie-freundlich) */
    font-size: 1rem; 
}

/* --- WCAG: Deutliche Fokus-Stile für Tastaturnutzer --- */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--color-secondary); 
    outline-offset: 2px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #a30411; /* Etwas dunkleres Rot beim Hovern */
}

/* Sicherstellen, dass Links im Fließtext erkennbar sind (WCAG) */
p a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

p a:hover, p a:focus {
    text-decoration-thickness: 2px;
}

/* Container für mittige Ausrichtung */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. TYPOGRAFIE --- */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text); /* Anthrazit für Überschriften wirkt extrem seriös */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* --- 4. HEADER & NAVIGATION --- */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    position: sticky; 
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Leichter Schatten für räumliche Trennung */
}

.header-inner {
    display: flex;
    /* justify-content entfernt, damit Logo und Menü links aneinander bleiben */
    align-items: center;
}

/* Fester Abstand zwischen Logo und dem Menü */
.logo {
    margin-right: 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none; /* Keine Unterstreichung im Hauptmenü */
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

/* Ausnahme: Verhindert, dass Buttons in Absätzen unterstrichen werden */
p .btn {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #a30411;
    border-color: #a30411;
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-text);
    color: var(--color-text);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-text);
    color: #ffffff;
}

/* --- Desktop-spezifische Anpassungen für die Navigationspositionierung --- */
.header-cta.desktop-only {
    margin-left: auto; /* Schiebt *nur* den Button ganz nach rechts */
    display: block; 
}

/* --- 5. SEKTIONEN & LAYOUT --- */
section {
    padding: 60px 0; /* Padding reduziert für engere Abschnitte */
}

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

/* Hero (Startseite oben) */
.hero {
    background-color: var(--color-secondary);
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    color: #ffffff; /* Weißer Text auf dunkelblauem Grund für AAA Kontrast */
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #e2e8f0; /* Helles Grau für gute Lesbarkeit */
}

.hero .btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
}

.hero .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color-secondary);
}

/* News Sektion spezifisch */
.news-teaser {
    padding-bottom: 20px; /* Reduziert den Platz nach unten */
}

.news-teaser h2 {
    text-align: center; /* Zentriert die Überschrift über den Karten */
    margin-bottom: 2rem;
}

/* News Grid (Flexbox für perfekte Zentrierung) */
.news-grid {
    display: flex;
    flex-wrap: wrap;       /* Lässt die Karten in die nächste Zeile umbrechen */
    justify-content: center; /* Zentriert die Karten absolut in der Mitte */
    gap: 30px;
}

/* Wir geben den einzelnen Karten jetzt eine feste Breite mit Flexbox */
.news-card {
    flex: 0 1 320px;       /* Wächst nicht (0), darf schrumpfen (1), Basisbreite ist 320px */
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Dezenter Basisschatten */
    transition: box-shadow 0.4s ease; /* NUR Schatten animieren */
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); /* Breiter, weicher Glow-Schatten */
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.news-card h3 a {
    text-decoration: none; /* Keine Unterstreichung für Karten-Titel */
    color: var(--color-secondary);
}

.news-card h3 a:hover {
    color: var(--color-primary);
}

/* Mitglieder Sektion spezifisch */
.members-teaser {
    padding-top: 40px; /* Reduziert den Platz nach oben zur News-Sektion */
}

/* Members Grid */
.members-grid {
    display: grid;
    /* auto-fill sorgt dafür, dass sich die Karten gleichmäßig verteilen */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

/* Die neue, interaktive Mitglieder-Karte */
.member-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    color: var(--color-text-light);
    font-weight: 500;
    text-decoration: none; /* Keine Unterstreichung beim Text */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.4s ease; /* Übergang für Rahmen, Textfarbe und Schatten */
}

.member-card:hover, .member-card:focus {
    border-color: var(--color-primary); /* Rahmen wird ARGE-Rot */
    color: var(--color-primary); /* Text wird ARGE-Rot */
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); /* Satter Glow-Schatten ohne Hüpfen */
}

/* Styling, falls später Logos eingefügt werden */
.member-card img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%); /* Macht bunte Logos elegant grau... */
    transition: filter 0.4s ease;
}

.member-card:hover img, .member-card:focus img {
    filter: grayscale(0%); /* ...und beim Hovern werden sie farbig! */
}

/* --- 6. FOOTER --- */
.site-footer {
    background-color: var(--color-secondary);
    color: #e2e8f0;
    padding: 60px 0 20px 0;
}

.site-footer h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(250px, 2fr) repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer a {
    color: #e2e8f0;
    text-decoration: none;
}

.site-footer a:hover, .site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- 7. THEMEN GRID (Positionspapiere & PDFs) --- */
.themen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.thema-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Dezenter Basisschatten */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.4s ease; /* NUR Schatten animieren */
}

.thema-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); /* Breiter, weicher Glow-Schatten */
}

.thema-image {
    background-color: #e2e8f0;
    aspect-ratio: 16 / 9; /* Modernes Breitbild-Format für die Cover */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eaeaea;
}

.thema-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Sorgt dafür, dass die Bilder das Format immer schön füllen */
}

.thema-content {
    padding: 25px;
    flex-grow: 1; /* Schiebt die Karte auf gleiche Höhe, wenn andere länger sind */
    display: flex;
    flex-direction: column;
}

.thema-content h3 {
    margin-bottom: 10px;
    color: var(--color-secondary);
}

.thema-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
    flex-grow: 1; /* Drückt die Links immer an den unteren Rand */
}

.thema-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
}

.thema-downloads a {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.3;
}

/* Ein schicker kleiner Download-Pfeil vor jedem PDF-Link */
.thema-downloads a::before {
    content: "↓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.8rem;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.thema-downloads a:hover::before {
    background: var(--color-primary);
    color: #ffffff;
}

/* --- 8. MOBILE NAVIGATION (Responsive) --- */

/* Standardmäßig (Desktop) ist der Hamburger-Button unsichtbar */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    position: absolute;
    display: block;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -10px; }
.hamburger-inner::after { content: ""; bottom: -10px; }

/* Wenn aktiv (Menü offen): Verwandle die 3 Striche in ein rotes X */
.mobile-menu-toggle.is-active .hamburger-inner { background-color: transparent; }
.mobile-menu-toggle.is-active .hamburger-inner::before { transform: translateY(10px) rotate(45deg); background-color: var(--color-primary); }
.mobile-menu-toggle.is-active .hamburger-inner::after { transform: translateY(-10px) rotate(-45deg); background-color: var(--color-primary); }

.mobile-cta {
    display: none; /* Kontaktbutton im Menü auf Desktop verstecken */
}

/* MEDIA QUERY: Ab 1024px Bildschirmbreite (Tablets & Handys) greift dieser Code */
@media (max-width: 1024px) {
    /* Wenn der Bildschirm kleiner wird, schieben wir das Logo und den Hamburger ganz nach links/rechts */
    .header-inner {
        justify-content: space-between;
    }
    
    .logo {
        margin-right: 0; /* Entfernt den festen Abstand auf kleinen Screens */
    }
    
    .mobile-menu-toggle {
        display: block; /* Hamburger Button anzeigen */
    }
    
    .header-cta.desktop-only {
        display: none; /* Desktop-Kontaktbutton verstecken */
    }

    .main-nav {
        position: absolute;
        top: 100%; /* Direkt unterhalb des Headers */
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: none; /* Menü ist anfangs unsichtbar */
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid #eaeaea;
    }

    /* Diese Klasse wird vom JavaScript hinzugefügt, wenn man klickt */
    .main-nav.is-open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column; /* Menüpunkte untereinander */
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #eaeaea;
    }
    
    .mobile-cta {
        display: block;
        margin-top: 20px;
    }
    
    .mobile-cta .btn {
        width: 100%; /* Großer, klickbarer Button auf dem Handy */
    }
}

/* Kleiner Bonus: Machen wir auch die Hero-Schrift auf dem Handy etwas kleiner */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .hero { padding: 60px 0; }
}

/* --- 9. MASSNAHMEN SEITE --- */
.lead-text {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--color-text-light);
    max-width: 800px;
}

/* Flexbox Container für jede Maßnahme: Text links, Bild rechts */
.massnahme-item {
    display: flex;
    flex-wrap: wrap; /* Bricht auf mobilen Geräten sauber um */
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* Die Text-Spalte nimmt den restlichen Platz ein */
.massnahme-content {
    flex: 1 1 300px;
}

.massnahme-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

/* Die Bild/Logo-Spalte auf der rechten Seite */
.massnahme-media {
    flex: 0 0 200px; /* Standardbreite für mittelgroße Logos */
    display: flex; /* Zum Zentrieren, falls das Logo schmaler ist */
    justify-content: center;
}

.massnahme-media.media-small {
    flex: 0 0 120px; /* Für kleine, hochformatige Logos wie EUPC */
}

.massnahme-media.media-large {
    flex: 0 0 350px; /* Für die großen 4:3 Platzhalter-Bilder */
}

/* Basis-Styling für alle Bilder in dieser Sektion */
.massnahme-media img {
    max-width: 100%; /* Verhindert Verpixelung durch Strecken */
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Spezifisches Styling für die großen 4:3 Bilder (GSW, plus) */
.massnahme-media.media-large img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%; /* Große Bilder sollen die Spalte füllen */
}

/* Ein unsichtbarer Hover-Effekt für klickbare Logos (z.B. Dialogwoche) */
.massnahme-media a:hover img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Sauberer Trennstrich zwischen den Maßnahmen */
.massnahmen-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 40px 0;
}

/* Graue Hervorhebungs-Boxen für zusätzliche Infos */
.info-box {
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Boxen mit rotem Akzent-Strich links */
.info-box-accent {
    background-color: var(--color-bg-light);
    padding: 15px;
    border-left: 3px solid var(--color-primary);
    margin-bottom: 1rem;
}

.info-box-accent.italic {
    font-style: italic;
}
/* --- 10. NEWS & PRESSE SEITE --- */
.news-list-view {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px; /* Begrenzt die Breite für optimalen Lesefluss */
}

/* Überschreibt die Startseiten-Einstellungen für die Kacheln in der Listenansicht */
.news-list-view .news-card {
    flex: 1 1 auto; 
    width: 100%;
}

/* --- 11. MASSNAHMEN ALS KACHEL-GRID --- */
.massnahmen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.massnahme-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.massnahme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* Der Bereich für das Bild/Logo oben */
.massnahme-card-media {
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

/* Logos (z.B. EUPC, movin) sollen zentriert und nicht zu riesig sein */
.massnahme-card-media img {
    max-width: 180px;
    max-height: 90px;
    object-fit: contain;
}

/* Große Bilder (GSW, plus) sollen den Bereich komplett füllen */
.massnahme-card-media.media-cover {
    padding: 0;
}

.massnahme-card-media.media-cover img {
    width: 100%;
    height: 200px;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

/* Neuer, dezenter Platzhalter anstelle des roten Balkens */
.massnahme-card-media.media-none {
    min-height: 120px;
    background-color: #f8f9fa; /* Sehr helles Neutral-Grau */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

/* Ein dezentes, grafisches Element im Hintergrund */
.massnahme-card-media.media-none::after {
    content: 'info'; /* Oder ein Unicode-Symbol wie \2139 */
    font-family: serif;
    font-style: italic;
    font-size: 5rem;
    color: #f1f3f5;
    font-weight: bold;
    pointer-events: none;
}

/* Optionaler kleiner Akzentstrich oben für die Marken-Identität */
.massnahme-card-media.media-none::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e9ecef; /* Neutraler Akzent */
}

/* Der Textbereich */
.massnahme-card-content {
    padding: 25px;
    flex-grow: 1; /* Schiebt die Box auf volle Höhe */
    display: flex;
    flex-direction: column;
}

.massnahme-card-content h2 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.massnahme-card-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Pushed die Links/Zusatzinfos immer ganz nach unten */
.massnahme-card-footer {
    margin-top: auto; 
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 0.9rem;
}

.massnahme-card-footer a {
    font-weight: bold;
}
