﻿/* --- GLOBALE STYLES & VARIABLEN --- */
:root {
    --color-red: #D32F2F;
    --color-green: #2E7D32;
    --color-white: #FFFFFF;
    --color-dark: #1A1A1A;
    --color-light: #F5F5F5;
    --color-gray: #E0E0E0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
}

/* --- HEADER & NAVIGATION (DESKTOP) --- */
.main-header {
    background-color: var(--color-dark);
    border-bottom: 4px solid var(--color-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative; 
    height: 70px; 
}

/* Logo mit Überlappung */
.logo {
    position: absolute;
    top: 5px; 
    left: 20px;
    z-index: 1001; 
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3)); 
}

.logo-img {
    height: 180px; 
    width: auto;
    display: block;
    transition: height 0.3s ease, transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav-links {
    margin-left: auto; 
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-red);
}

/* --- HAMBURGER STYLES (AUF DESKTOP VERSTECKT) --- */
.menu-toggle {
    display: none; 
}

.hamburger {
    display: none; 
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- SCROLL-ANIMATION (LOGOSCHRIFT WIRD KLEINER) --- */
.main-header.scrolled .logo-img {
    height: 75px; 
}
.main-header.scrolled .header-container {
    height: 60px;
    transition: height 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/pic01.jpg') center/cover no-repeat;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    border-bottom: 6px solid var(--color-red);
}

.hero h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-light);
}

/* --- KACHEL LAYOUT (GRID) --- */
.grid-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tile {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 5px solid var(--color-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tile-double {
    grid-column: span 1;
}

/* Gestreckte Kachel (Volle Breite) */
.tile-full {
    grid-column: 1 / -1; /* Zwingt die Kachel, sich über alle verfügbaren Spalten zu erstrecken */
}

/* Styling für den Textbereich in gestreckte Kachel */
.about-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.about-content p:last-child {
    margin-bottom: 0; /* Verhindert unnötigen Abstand nach dem letzten Absatz */
}


@media (min-width: 900px) {
    .tile-double {
        grid-column: span 2;
    }
}

.tile h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-gray);
    padding-bottom: 10px;
}

.text-red { color: var(--color-red); }
.text-green { color: var(--color-green); }

/* --- ELEMENTE IN DEN KACHELN --- */
.event-list { list-style: none; }
.event-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray);
}
.event-list li:last-child { border-bottom: none; }
.event-list .date {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 15px;
    white-space: nowrap;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--color-gray);
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    color: var(--color-white);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s;
    width: 100%;
    margin-top: 10px;
}
.btn:hover { opacity: 0.9; }
.btn-green { background-color: var(--color-green); }
.btn-red { background-color: var(--color-red); }

.shop-preview {
    background-color: var(--color-light);
    border: 1px dashed var(--color-gray);
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px;
}

.widget-placeholder {
    background-color: #f9f9f9;
    border: 1px solid var(--color-gray);
    border-radius: 4px;
    min-height: 150px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fb-tile, .insta-tile { 
    border-top-color: var(--color-dark); 
}

.mock-post {
    background: white;
    padding: 10px;
    margin-top: 10px;
    border-left: 3px solid #1877F2;
    font-size: 0.9rem;
}
.insta-grid-mock {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.insta-pic {
    background-color: var(--color-gray);
    aspect-ratio: 1;
    border-radius: 4px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
    border-top: 4px solid var(--color-red);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-section h3 {
    color: var(--color-green);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.1rem;
}
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-section ul li a:hover { color: var(--color-red); }

/* --- PNG SOCIAL LISTE IM FOOTER --- */
.footer-social-list {
    list-style: none;
    display: flex;
    gap: 20px; /* Abstand zwischen den Bildern */
    padding: 0;
}

.footer-social-list li {
    margin-bottom: 0;
}

.footer-social-list a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* Formatierung deiner eigenen PNG-Grafiken */
.social-png {
    width: 32px;  /* Perfekte Breite für Footer-Icons */
    height: 32px; /* Perfekte Höhe */
    object-fit: contain;
    /* Macht farbige PNGs standardmäßig leicht weißlich/hellgrau, damit sie zum Footer passen */
    filter: brightness(0) invert(0.9); 
    transition: filter 0.3s ease;
}

/* Hover-Effekte */
.footer-social-list li:nth-child(1) a:hover .social-png,
.footer-social-list li:nth-child(2) a:hover .social-png {
    /* Färbt die Icons beim Hovern */
    filter: invert(21%) sepia(91%) saturate(4529%) hue-rotate(352deg) brightness(87%) contrast(92%);
}

.footer-social-list a:hover {
    transform: scale(1.15); /* Kleiner Vergrößerungs-Effekt beim Drüberfahren */
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #aaa;
}

/* Versteckt den Text visuell für den Besucher, hält ihn aber aktiv für Google/Vorlesefunktionen */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Versteckt scrollbars für ein saubereres Design (optional) */
.widget-container::-webkit-scrollbar {
    width: 6px;
}
.widget-container::-webkit-scrollbar-thumb {
    background-color: var(--color-gray);
    border-radius: 3px;
}

.loading-placeholder {
    text-align: center;
    color: #666;
    padding: 50px 0;
    font-size: 0.9rem;
}

/* Passt das offizielle Facebook-Plugin an die Kachelbreite an */
.fb-page, .fb-page span, .fb-page iframe {
    width: 100% !important;
}

/* --- RESPONSIVE ANPASSUNGEN (MOBILE & TABLET) --- */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Logo exakt zentriert */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 5px;
        z-index: 2005; /* über der Sidebar, falls diese aufklappt */
    }

    .logo-img {
        height: 85px;
    }
    
    /* Aktiviert das Drei-Strich-Icon rechts */
    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px;
        z-index: 2010; /* Das Icon liegt ganz oben */
    }
    
    /* SIDEBAR NAVIGATION: Startet komplett rechts ausserhalb (-100%) */
    .nav-links {
        position: fixed; 
        top: 0;
        right: -100%; 
        width: 280px; 
        height: 100vh; 
        background-color: var(--color-dark);
        border-left: 4px solid var(--color-red);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
        margin-left: 0;
        padding: 100px 25px 40px 25px; /* Schafft oben Platz für das X */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        z-index: 2000; /* Sidebar ist über allem anderen Inhalt */
    }
    
    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid #333; 
        width: 100%;
        text-align: left;
        font-size: 1.2rem;
        display: block;
    }
    
    /* WENN DIE CHECKBOX AKTIV IST: Schiebe Sidebar ins Bild (right: 0) */
    .menu-toggle:checked ~ .nav-links {
        right: 0 !important; 
    }
    
    /* WENN DIE CHECKBOX AKTIV IST: Verwandle Striche in ein rotes X */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-red);
    }
    
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-red);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}
/* --- Gezielte Link-Regeln für die Kacheln --- */

.tile a {
    color: var(--color-black);
    text-decoration: none; /* Entfernt den standardmäßigen Unterstrich */
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Nur die Links in den Kacheln werden beim Mouseover rot */
.tile a:hover {
    color: var(--color-red);
}

/* Ausnahme für die Buttons */
.tile .btn {
    color: var(--color-white) !important;
    text-decoration: none !important;
}
.footer-email {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--color-red);
    text-decoration: none;
}
/* --- FORMULAR STYLES (MATCHING FANCLUB DESIGN) --- */

.tile-form-container {
    grid-column: 1 / -1; /* Zwingt das Formular auf großen Bildschirmen über die volle Breite zu gehen */
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--primary-green); /* Grüner Akzent oben */
}

.club-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* Stil der Eingabefelder */
.club-form input[type=text], .club-form input[type=email], .club-form input[type=date] {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    background-color: var(--pure-white);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

/* Fokus-Zustand (Feld wird bei Klick vereinsgrün umrandet) */
.club-form input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* 2-Spalten-Layout für PLZ und Ort auf Desktop */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

/* SEPA-Bereich Box */
.sepa-section {
    border: 2px dashed #E0E0E0;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #FAFAFA;
    margin: 1.5rem 0;
}

.sepa-section legend h3 {
    background-color: var(--dark-gray);
    color: var(--pure-white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sepa-text {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sepa-text p {
    margin-bottom: 0.8rem;
}

.sepa-details {
    background-color: #EEEEEE;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-left: 4px solid var(--primary-red); /* Roter Akzent im SEPA-Kasten */
}

/* Fehlermeldungen */
.error {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: -0.2rem;
}

/* Rechtstexte & Links */
.form-legal-notice {
    font-size: 0.9rem;
    color: #666666;
    border-left: 4px solid var(--primary-green);
    padding-left: 1rem;
}

.form-link {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: underline;
}

.form-link:hover {
    color: #B71C1C;
}

/* Stellt sicher, dass das Formular-Button-Element die gleichen Effekte nutzt wie der Link-Button */
button.btn-green {
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
}

button.btn-green:hover {
    transform: translateY(-1px); /* Minimaler Hebe-Effekt beim Drüberfahren */
}

button.btn-green:active {
    transform: translateY(1px);  /* Klick-Effekt beim Runterdrücken */
}

/* Box für erfolgreiches Absenden */
.success-box {
    display: none;
    background-color: #E8F5E9;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.success-box h2 {
    color: var(--primary-green) !important;
    margin-bottom: 0.5rem;
}

.success-box p {
    font-size: 1.2rem;
    color: #2E7D32;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .form-grid-2col {
        grid-template-columns: 1fr; /* PLZ und Ort untereinander auf Handys */
    }
    
    .sepa-section {
        padding: 1rem;
    }
}
/* --- STYLES FÜR ANMELDUNG & DROPDOWNS --- */

/* Formatiert die Select-Auswahllisten passend zu den Textfeldern */
.club-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    background-color: var(--pure-white);
    font-family: inherit;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    /* Sorgt für ein einheitliches Aussehen auf allen Geräten */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='10' height='10' viewBox='0 0 10 10'><path d='M0 3l5 5 5-5z' fill='%23333'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

/* Grüner Fokus-Effekt beim Anklicken der Dropdowns */
.club-form select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Spezifische Anpassung für den input-Submit-Button der Fahrt-Anmeldung */
input.custom-submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
    border: none;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background var(--transition-speed), transform var(--transition-speed);
    
    /* HIER IST DIE RETTUNG FÜR DAS SMARTPHONE: */
    white-space: normal; 
    word-wrap: break-word;
}

input.custom-submit-btn:hover {
    transform: translateY(-1px);
}

input.custom-submit-btn:active {
    transform: translateY(1px);
}

/* Styling für die PayPal-Warnbox (Vereinsrot als Signalfarbe) */
.paypal-warning-box {
    background-color: #FFEBEE; /* Sehr helles Rot */
    border-left: 4px solid var(--primary-red); /* Kräftiges Vereinsrot als Balken */
    padding: 1rem;
    border-radius: 4px;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.95rem;
}

.paypal-warning-box i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}
