/*
 Theme Name: 30fuer30 Child Theme
 Theme URI: https://LegalZeit.de
 Description: Child Theme für GeneratePress für das 30fuer30-Projekt
 Author: Steffen Geyer
 Template: generatepress
 Version: 1.0
*/

/* ===========================
   CSS Custom Properties
   =========================== */

:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --secondary: #1976D2;
    --accent: #F57C00;

    --dark: #0d0d0d;
    --light: #fafafa;
    --text: #212121;
    --text-muted: #555;
    --white: #ffffff;

    --shadow: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 6px 16px rgba(0,0,0,0.15);

    --container-width: min(1200px, 95vw);
    --border-radius: 8px;

    --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
    --step-1: clamp(1.25rem, 1.1rem + 0.75vw, 1.875rem);
    --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
    --step-3: clamp(2rem, 1.7rem + 1.5vw, 3rem);
    --step-4: clamp(2.5rem, 2rem + 2.5vw, 4rem);

    --color-red-600: #C62828;
}

/* ===========================
   Base Styles
   =========================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: var(--step-0);
    background-color: var(--light);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ===========================
   Layout Utilities
   =========================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header .page-title {
    margin-bottom: .25rem;
}

.archive-description {
    color: #555;
    max-width: 620px;
}

/* Card & meta helpers */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}

.card a {
    text-decoration: none;
    color: inherit;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .875rem;
    color: #666;
}

.meta-separator {
    opacity: .6;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--step-0);
    min-width: 180px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* ===========================
   Header
   =========================== */

header#masthead {
    background: var(--dark);
    color: var(--white);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

header#masthead .topbar-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Logo */

header#masthead .logo {
    font-size: var(--step-2);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--white);
}

header#masthead .logo span {
    color: var(--primary);
}

/* Desktop navigation */

header#masthead nav {
    flex-grow: 1;
    margin-left: 30px;
}

header#masthead nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    justify-content: flex-start;
}

header#masthead nav a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
    color: var(--white);
}

header#masthead nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

header#masthead nav a:hover::after {
    width: 100%;
}

/* Sponsor badge */

header#masthead .top-sponsor-badge {
    background-color: #FFC107;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #FFC107;
    transition: all 0.2s ease;
    z-index: 5;
}

header#masthead .top-sponsor-badge:hover {
    font-size: 18px;
    padding: 10px 18px;
    background-color: #FFA000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hamburger toggle */

header#masthead .menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
    background: transparent;
    border: none;
}

header#masthead .hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-red-600);
    position: relative;
    transition: all 0.3s ease;
    border-radius: 2px;
}

header#masthead .hamburger::before,
header#masthead .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-red-600);
    transition: all 0.3s ease;
    border-radius: 2px;
}

header#masthead .hamburger::before {
    top: -8px;
}

header#masthead .hamburger::after {
    top: 8px;
}

#menu-checkbox {
    display: none;
}

/* Hamburger animation */

#menu-checkbox:checked + label.menu-toggle .hamburger {
    background: transparent;
}

#menu-checkbox:checked + label.menu-toggle .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

#menu-checkbox:checked + label.menu-toggle .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ===========================
   News Archive & Single
   =========================== */

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.news-item {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    overflow: hidden;
}

.news-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

.news-item .news-thumb img {
    border-radius: 8px 8px 0 0;
}

.news-content {
    padding: 1rem 1.1rem 1.2rem;
}

.news-title {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
}

.news-title a {
    text-decoration: none;
    color: inherit;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-meta {
    font-size: .875rem;
    color: #666;
    margin: 0 0 .75rem;
}

.news-meta-separator {
    margin: 0 .35rem;
    opacity: .6;
}

.news-excerpt {
    margin-bottom: .75rem;
}

.news-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}

.news-readmore,
.news-presseecho {
    font-size: .9rem;
}

.news-readmore {
    font-weight: 500;
}

.news-presseecho {
    opacity: .85;
}

.news-pagination {
    margin-top: 2rem;
}

/* Single-News */

.single-news-article {
    max-width: 720px;
    margin: 0 auto;
}

.news-header {
    margin-bottom: 1.5rem;
}

.news-header .news-title {
    margin-bottom: .4rem;
}

.news-featured-image {
    margin-top: 1rem;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.single-news-article .news-content {
    margin-top: 1.5rem;
}

.news-related-cities,
.news-presseecho-section {
    margin-top: 2rem;
}

.news-related-cities-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
}

.news-related-cities-list li {
    margin-bottom: .25rem;
}

.news-footer {
    margin-top: 2.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.news-backlink {
    margin-bottom: .75rem;
}

/* ===========================
   Städte
   =========================== */

.staedte-archiv-header {
    margin-bottom: 1.75rem;
}

.staedte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.stadt-card {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stadt-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.stadt-card-image-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.stadt-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stadt-card img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.stadt-card-content {
    padding: .9rem 1rem 1.1rem;
}

.stadt-card-title {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
}

.stadt-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .85rem;
    color: #666;
    margin-bottom: .5rem;
}

.stadt-status {
    font-size: .78rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #eee;
}

.stadt-status-aktiv {
    background: #e0f7e9;
}

.stadt-status-geplant {
    background: #fff4d8;
}

.stadt-card-excerpt {
    font-size: .9rem;
    color: #444;
    margin-bottom: .75rem;
}

.stadt-card-more {
    font-size: .9rem;
    font-weight: 500;
    color: #333;
}

/* Single Stadt */

.stadt-single {
    max-width: 900px;
    margin: 0 auto;
}

.stadt-single img.stadt-bild {
    max-width: 600px;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
}

.stadt-header {
    margin-bottom: 1.5rem;
}

.stadt-meta {
    font-size: .9rem;
    color: #555;
    margin-bottom: 1rem;
}

.stadt-meta-item {
    margin: 0 0 .15rem;
}

.leaflet-map {
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
}

/* ===========================
   Busse
   =========================== */

.busse-archiv .busse-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.bus-item {
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    padding: 1rem 1.1rem 1.2rem;
}

.bus-item-link {
    text-decoration: none;
    color: inherit;
}

.bus-title {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
}

.bus-meta {
    font-size: .9rem;
    color: #555;
    margin-bottom: .5rem;
}

.bus-route {
    margin-bottom: .5rem;
}

.bus-more {
    font-size: .9rem;
    font-weight: 500;
}

/* Single Bus */

.bus-single .bus-container {
    max-width: 720px;
    margin: 0 auto;
}

.bus-header {
    margin-bottom: 1.5rem;
}

.bus-section {
    margin-top: 1.5rem;
}

/* ===========================
   Hanfwissen
   =========================== */

.hanfwissen-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.hanfwissen-item {
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
}

.hanfwissen-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hanfwissen-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.hanfwissen-content {
    padding: 1rem 1.1rem 1.2rem;
}

.hanfwissen-title {
    margin: 0 0 .35rem;
}

.hanfwissen-meta {
    font-size: .85rem;
    color: #666;
    margin-bottom: .5rem;
}

.hanfwissen-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===========================
   Material
   =========================== */

.material-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.material-item {
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
}

.material-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.material-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.material-content {
    padding: 1rem 1.1rem 1.2rem;
}

.material-title {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
}

.material-meta {
    font-size: .85rem;
    color: #666;
    margin-bottom: .5rem;
}

.material-excerpt {
    margin-bottom: .75rem;
}

.material-download-hint {
    font-size: .9rem;
    font-weight: 500;
}

/* Single Material */

.material-single .material-article {
    max-width: 720px;
    margin: 0 auto;
}

.material-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.material-download {
    margin-top: 2rem;
}

.material-download-button {
    display: inline-block;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
}

/* ===========================
   Mitmachen
   =========================== */

.mitmachen-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.mitmachen-item {
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    padding: 1rem 1.1rem 1.2rem;
}

.mitmachen-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.mitmachen-title {
    margin: 0 0 .3rem;
}

.mitmachen-meta {
    font-size: .85rem;
    color: #666;
    margin-bottom: .4rem;
}

.mitmachen-excerpt {
    margin-bottom: .6rem;
}

.mitmachen-more {
    font-size: .9rem;
    font-weight: 500;
}

/* Single Mitmachen */

.mitmachen-single .mitmachen-article {
    max-width: 720px;
    margin: 0 auto;
}

.mitmachen-anleitung {
    margin-top: 1.5rem;
}

.mitmachen-material {
    margin-top: 2rem;
}

/* ===========================
   Unterstützer
   =========================== */

.unterstuetzer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.unterstuetzer-item {
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    padding: 1rem 1.1rem 1.2rem;
    text-align: center;
}

.unterstuetzer-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.unterstuetzer-logo img {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: .75rem;
}

.unterstuetzer-title {
    margin: 0 0 .35rem;
}

.unterstuetzer-meta {
    font-size: .85rem;
    color: #666;
    margin-bottom: .4rem;
}

.unterstuetzer-website {
    font-size: .85rem;
    color: #444;
}

/* Single Unterstützer */

.unterstuetzer-single .unterstuetzer-article {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.unterstuetzer-logo-large img {
    max-width: 220px;
    max-height: 110px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.unterstuetzer-staedte {
    margin-top: 2rem;
}

.unterstuetzer-staedte-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
}

.unterstuetzer-staedte-list li {
    margin-bottom: .25rem;
}

/* ===========================
   Footer
   =========================== */

footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col a {
    display: block;
    padding: 2px 0;
    transition: color 0.2s;
    color: #ccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.75rem;
}

/* ===========================
   Übertrag Wireframe
   =========================== */

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: clamp(40px, 8vw, 80px) 0;
    border-bottom: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

/* Subtiles Cannabis-Blatt als Wasserzeichen */
.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-image: url('data:image/svg+xml,...'); /* Cannabis-Icon */
    opacity: 0.05;
    pointer-events: none;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 50px);
    align-items: center;
}

.hero-text h1 {
    font-size: var(--step-4);
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: var(--step-1);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 40ch; /* Besser lesbare Zeilenlänge */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- CSS FÜR CAROUSEL --- */
/* Der Container muss Position: relative haben, damit die Bilder darin gestapelt werden können */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative; 
    /* Setze eine fixe Höhe, damit der Textbereich nicht springt */
    height: 400px; 
}

/* Jeder Link ist ein einzelnes Slide */
.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden; 
    
    /* NEU: Leichte Drehung auf den Container */
    transform: rotate(2deg); /* Die gewünschte leichte Drehung */
    
    /* NEU: Dezenterer Schatten */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Weniger vertikaler Offset, weniger Stärke */
}

/* Der aktive Slide ist sichtbar */
.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt den Container aus */
    display: block;
}

/* --- CSS CAROUSEL NAVIGATION --- */
.carousel-nav {
    position: absolute;
    top: 50%; /* Vertikal zentriert */
    transform: translateY(-50%) rotate(-2deg); /* Rotation ausgleichen und zentrieren */
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
    color: white;
    border: none;
    padding: 15px 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 20; /* Über dem Bild */
    transition: background-color 0.3s;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 10px; /* 10px Abstand zum linken Rand des Containers */
    border-radius: 0 5px 5px 0;
}

.carousel-nav.next {
    right: 10px; /* 10px Abstand zum rechten Rand des Containers */
    border-radius: 5px 0 0 5px;
}
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg); /* Gleiche Rotation wie Container */
    display: flex;
    gap: 8px;
    z-index: 50; /* Ganz nach oben */
    pointer-events: auto; /* Klickbar machen */
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0; /* Reset */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Besser sichtbar */
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 6px;
    border-color: var(--primary);
}

/* Styling für das Stadt-Kennzeichen */
.city-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(44, 44, 44, 0.8); /* Dunkler, halbtransparenter Hintergrund */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 10;
}

/* --- TICKER BAR --- */
.ticker-bar {
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 60px;
}

.ticker-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: var(--step-3);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.divider {
    display: none; /* Unnötig bei Grid */
}

.countdown {
    font-size: var(--step-1);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
/* Container für Text + Balken nebeneinander/untereinander */
.stat-item-row {
    display: flex;
    flex-direction: column; /* Text oben, Balken unten */
    gap: 8px;
    min-width: 180px; /* Damit die Balken eine gewisse Breite haben */
}

/* Text-Bereich */
.stat-info {
    display: flex;
    justify-content: space-between; /* Zahl links, Label rechts (oder umgekehrt) */
    align-items: baseline;
}

.stat-number {
    font-size: 24px; 
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

/* Der graue Hintergrund-Balken */
.progress-track {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden; /* Damit der innere Balken nicht überrundet */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* Leichter Schatten innen */
}

/* Der farbige Füll-Balken */
.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-in-out; /* Schöne Animation beim Laden */
}

/* Farben zuweisen */
.progress-fill.primary { background-color: var(--primary); }
.progress-fill.secondary { background-color: var(--secondary); }

/* Der Link-Container */
a.ticker-link {
    text-decoration: none; /* Unterstreichung entfernen */
    color: inherit; /* Textfarben beibehalten */
    cursor: pointer; /* Zeigefinger-Mauszeiger */
    
    /* Layout-Eigenschaften von .stat-item-row erben/überschreiben */
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    
    /* Klick-Fläche vergrößern & Feedback */
    padding: 10px 15px; /* Etwas Innenabstand für den Hover-Effekt */
    margin: -10px -15px; /* Negativer Margin gleicht Padding aus, damit Layout nicht springt */
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Hover-Effekt: Leichter Hintergrund & Bewegung */
a.ticker-link:hover {
    background-color: #f0f0f0; /* Hellgrauer Hintergrund beim Drüberfahren */
    transform: translateY(-2px); /* Leichtes Anheben */
}

/* Klick-Effekt */
a.ticker-link:active {
    transform: translateY(0); /* Beim Klicken wieder runter */
    background-color: #e0e0e0;
}

/* --- CSS FÜR COUNTDOWN --- */

a.countdown {
    /* Text-Styling */
    font-size: 20px;
    font-weight: bold;
    color: var(--dark);
    
    /* Layout für den Klick-Bereich */
    display: flex;
    align-items: center;     /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
    height: 100%;            /* Damit er die volle Höhe der Zeile nutzt */
    
    /* Falls der Text zu lang wird auf Handy */
    text-align: center;
}

/* Optional: Ein kleiner Puls-Effekt beim Hover über den Countdown, 
   um Dringlichkeit zu suggerieren */
a.countdown:hover {
    color: var(--primary); /* Text wird grün */
}

/* --- CARDS GRID --- */
.section-title {
    font-size: var(--step-3);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Farbiger Top-Balken */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.card.partner::before { background: var(--secondary); }
.card.map::before { background: var(--primary); }
.card.material::before { background: var(--accent); }

.card h3 {
    font-size: var(--step-1);
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.card p {
    color: var(--text);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Damit alle Cards gleich hoch sind */
}

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start; /* Nicht volle Breite */
}

.card.partner .card-link { color: var(--secondary); }
.card.map .card-link { color: var(--primary); }
.card.material .card-link { color: var(--accent); }

/* --- NEWS BENTO GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.news-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
}

.featured-news img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #e0e0e0;
}

.featured-content {
    padding: 25px;
}

.featured-content h3 {
    font-size: var(--step-1);
    margin-bottom: 0.5rem;
}

.meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: block;
}

.sidebar-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.small-news {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: var(--white);
    transition: box-shadow 0.2s;
}

.small-news:hover {
    box-shadow: var(--shadow);
}

.small-news img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    background: #e0e0e0;
    margin-right: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.small-news h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.small-news p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.all-news-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.all-news-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- SOCIAL PROOF & DONATE --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.partners-box {
    background: var(--white);
    border: 1px solid var(--secondary);
    border-radius: var(--border-radius);
    padding: 30px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.partner-logo {
    aspect-ratio: 1; /* Quadratische Logos */
    background: #f0f0f0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* --- CSS: SPONSOREN GRID --- */

.logo-grid {
    display: grid;
    grid-auto-flow: dense; 
    /* 5 Spalten */
    grid-template-columns: repeat(5, 1fr); 
    gap: 10px;
    margin-top: 20px;
    
    /* WICHTIG: Feste Höhe erzwingen, statt 'minmax' */
    grid-auto-rows: 70px; 
}

/* --- BASIS STYLE (Alle Logos) --- */
.partner-logo {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* WICHTIG: Höhe wird durch das Grid bestimmt (100%), nicht min-height */
    height: 100%; 
    width: 100%;
    
    color: #999;
    font-size: 11px;
    position: relative;
    transition: transform 0.2s;
    overflow: hidden; /* Verhindert, dass Inhalt das Raster sprengt */
}

/* --- PLATINUM (2x2) --- */
.partner-logo.platinum {
    grid-column: span 2; 
    grid-row: span 2;    
    
    background: #e8f5e9; 
    border: 2px solid var(--primary);
    color: var(--dark);
    font-weight: bold;
    font-size: 18px;
    z-index: 1;
}

/* --- GOLD (2x1) --- */
.partner-logo.gold {
    grid-column: span 2; 
    grid-row: span 1; /* Zwingend nur 1 Zeile */
    
    background: #fff8e1; 
    border: 1px solid #FFC107;
    color: #555;
    font-size: 14px;
    font-weight: bold;
    
    /* Layout für flaches Format */
    flex-direction: row; 
    gap: 10px;
}

/* Badge Anpassung im Gold-Logo */
.partner-logo.gold .sponsor-badge {
    background: #FFC107;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

/* Badge Anpassung im Platin-Logo (oben rechts) */
.partner-logo.platinum .sponsor-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.8);
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}
.donate-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.donate-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 25px;
    transition: border-color 0.2s;
}

.donate-card:hover {
    border-color: var(--primary);
}

.donate-card h3 {
    font-size: var(--step-1);
    margin-bottom: 0.5rem;
}

.donate-btn {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s, transform 0.1s;
}

.donate-btn:hover {
    background: var(--primary-dark);
}

.donate-btn:active {
    transform: scale(0.98);
}

.newsletter-card {
    background: var(--dark);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: 3px solid var(--primary);
}

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* --- STORY SECTION --- */
.story-cta {
    background: #e8f5e9;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: clamp(30px, 6vw, 50px);
    text-align: center;
    margin-bottom: 80px;
}

.story-cta h2 {
    font-size: var(--step-3);
    margin-bottom: 0.5rem;
}





/* ===========================
   Responsive
   =========================== */

@media (min-width: 768px) {
    .news-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    header {
        height: auto;
    }

    header .topbar-content {
        flex-wrap: wrap;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    header .menu-toggle {
        display: block;
    }

    header nav,
    header .top-sponsor-badge {
        display: none;
        width: 100%;
    }

    #menu-checkbox:checked ~ nav,
    #menu-checkbox:checked ~ a.top-sponsor-badge {
        display: block;
    }

    header nav {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    header nav ul {
        flex-direction: column;
        gap: 0.4rem;
    }

    header .top-sponsor-badge {
        margin-top: 0.75rem;
    }
}

/* ===========================
   Übertrag Responsive Wireframe
   =========================== */
/* Tablet & Desktop */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        height: 300px; /* Kleinere Höhe auf Handy */
    }
    .carousel-item {
        transform: rotate(0deg); 
    }

    .split-section {
        grid-template-columns: 1fr;
    }
}

/* Mobile Geräte */
@media (max-width: 600px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr); /* Nur 2 Spalten */
        grid-auto-rows: 80px; /* Etwas höher auf Handy für Touch */
    }
    
    /* Platin nimmt volle Breite */
    .partner-logo.platinum {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Gold nimmt volle Breite */
    .partner-logo.gold {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    img.left { float:none; width:100%; }
	
    /* Header-CTA unter dem Menü */
    .header-cta {
        margin-top: 10px;
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        display: block;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .header-cta {
        margin-top: 10px;
        width: 100%;
    }

    /* Hero */
    .hero-text h1 {
        font-size: var(--step-3);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch; /* Buttons volle Breite */
    }

    .btn {
        width: 100%;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Ticker */
    .ticker-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .countdown {
        grid-column: 1 / -1;
        margin-top: 10px;
    }
	.ticker-content {
        flex-direction: column;
        align-items: stretch; /* Balken über volle Breite */
        gap: 30px;
    }
    .stat-item-row {
        width: 100%;
    }
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    /* Newsletter Form */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* Kleinere Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: var(--step-1);
    }

    .ticker-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* --- ZUSÄTZLICHE OPTIMIERUNGEN --- */

/* Reduced Motion für User-Präferenz */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    header, footer, .ticker-bar, .donate-box {
        display: none;
    }

    .hero {
        background: none;
        padding: 20px 0;
    }

    .card, .news-card {
        break-inside: avoid;
        border: 1px solid #000;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary: #006400;
        --text: #000;
        --text-muted: #333;
    }

    .card, .news-card {
        border-width: 2px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #121212;
        --white: #1e1e1e;
        --text: #e0e0e0;
        --text-muted: #aaa;
        --shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .hero {
        background: linear-gradient(135deg, #1b3a1b 0%, #2d5a2d 100%);
    }

    .card, .news-card {
        border-color: #333;
    }
}