/* style.css - Das Design der Bunten Karnevalsmäuse (Professional Edition) */

:root {
    --primary-color: #003b73; /* Ein tieferes, seriöseres Blau */
    --secondary-color: #00a8e8; 
    --accent-red: #e63946;
    --accent-yellow: #f4a261;
    --accent-green: #2a9d8f;
    --text-dark: #2b2d42; /* Etwas weicheres Schwarz */
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-offwhite: #f4f7f6;
    --gradient-carnival: linear-gradient(135deg, var(--accent-red), var(--accent-yellow), var(--accent-green), var(--secondary-color));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    overflow-x: hidden; 
}

/* --- Typografie & Basics --- */
h1, h2, h3, h4 {
    line-height: 1.2;
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid transparent;
    border-image: var(--gradient-carnival) 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: auto;
    position: relative; /* Wichtig für die Positionierung des Mobile-Menüs */
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 59, 115, 0.05);
}

.nav-links a.cta-link {
    background-color: var(--primary-color);
    color: white !important;
    border: 2px solid var(--primary-color);
}

.nav-links a.cta-link:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
}

/* --- Hamburger Menü Toggle (Standardmäßig unsichtbar auf Desktop) --- */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Hero Banner Section --- */
.hero-banner {
    position: relative;
    height: 85vh; 
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 85px; 
    background-image: url('banner.png');
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color); 
}

.hero-banner-small {
    height: 40vh;
    min-height: 300px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0, 59, 115, 0.85), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 20px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-banner-small .hero-content h1 {
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    opacity: 0.95;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

/* --- Allgemeine Sektionen --- */
.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 5px;
    background: var(--gradient-carnival);
    margin: 15px auto 0;
    border-radius: 3px;
}

.section-header .subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: auto;
}

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

/* --- SVG Wellen --- */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(130% + 1.3px);
    height: 80px;
}

/* --- Features Grid (Wofür wir stehen) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Vision 2027 Bereich --- */
.vision-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: white;
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border-left: 8px solid var(--accent-red);
}

.vision-text {
    flex: 2;
}

.vision-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vision-icon {
    flex: 1;
    text-align: center;
    font-size: 12rem;
    color: rgba(230, 57, 70, 0.1);
}

/* --- Status Box (Sponsorensuche zuerst) --- */
.status-box {
    display: flex;
    gap: 40px;
    background: white;
    border: 2px solid var(--accent-yellow);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(244, 162, 97, 0.15);
    max-width: 1000px;
    margin: auto;
}

.status-icon {
    font-size: 4rem;
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
}

.status-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.alert-info {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--bg-offwhite);
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Sponsoren Karten Design --- */
.sponsoren-container {
    max-width: 1100px;
    margin: 0 auto;
}

.sponsoren-cards {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    flex: 1;
    min-width: 350px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.3s ease;
    border-top: 8px solid;
}

.card:hover {
    transform: translateY(-8px);
}

.card-suchen { border-top-color: var(--accent-yellow); }
.card-bieten { border-top-color: var(--accent-green); }

.card-icon {
    font-size: 4rem; 
    margin-bottom: 25px;
}
.card-suchen .card-icon { color: var(--accent-yellow); }
.card-bieten .card-icon { color: var(--accent-green); }

.card h4 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.card ul {
    list-style-type: none;
    padding-left: 0;
}

.card ul li {
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card ul li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
}

.card-suchen ul li::before {
    content: '\f061'; 
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.card-bieten ul li::before {
    content: '\f00c'; 
    color: var(--accent-green);
    font-size: 1.3rem;
}

/* --- Partner Präsentation Grid (Für die neue sponsoren.html) --- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.partner-item {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.partner-item:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.partner-logo {
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    width: 100%;
}

.partner-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.partner-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.partner-link:hover { text-decoration: underline; }

/* --- Endloser Sponsoren-Ticker (Marquee) --- */
.sponsor-ticker-wrapper {
    background-color: white;
    padding: 40px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.sponsor-ticker-wrapper::before,
.sponsor-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.sponsor-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.sponsor-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.sponsor-ticker-track {
    display: inline-block;
    animation: scrollTicker 30s linear infinite; 
}

.sponsor-ticker-track:hover {
    animation-play-state: paused;
}

.ticker-logo {
    display: inline-block;
    margin: 0 40px; 
    height: 60px;   
    vertical-align: middle;
    filter: grayscale(100%); 
    opacity: 0.6;
    transition: all 0.3s ease;
}

.ticker-logo:hover {
    filter: grayscale(0%); 
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: white;
    margin-top: 0;
}

/* --- Responsive Anpassungen (Tablet & Mobile) --- */
@media (max-width: 992px) {
    .vision-container {
        flex-direction: column;
        padding: 40px;
    }
    .vision-icon {
        font-size: 6rem;
        order: -1; 
    }
    .status-box {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px;
    }
    .status-icon {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Menü-Button anzeigen */
    .menu-toggle {
        display: block;
    }
    
    /* Navigation für Handys umbauen (versteckt, bis auf "active" geklickt wird) */
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Direkt unter den Header, je nach Höhe des Headers anpassen */
        left: 0;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
    }

    /* Diese Klasse wird durch das JavaScript in der HTML-Datei aktiviert */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
        display: block;
        padding: 10px; /* Etwas mehr Klickfläche für Finger */
    }
    
    .nav-links a.cta-link {
       margin: 15px auto;
       width: 80%; /* Button-Breite auf Handys anpassen */
    }

    /* Restliche Handy-Anpassungen */
    nav {
        padding: 1rem 5%;
    }
    .hero-banner {
        height: auto;
        padding: 80px 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center !important;
    }
    .footer-left, .footer-right {
        text-align: center !important;
    }
}