/* Das sorgt dafür, dass Abstände die Boxen nicht breiter machen als das Handy-Display */
* {box-sizing: border-box;}

/* --- 1. HEADER & GRUNDSTRUKTUR --- */
header {position: fixed;top: 0; left: 0; width: 100%;background-color: #2c3e50;z-index: 10000;height: 90px;display: flex;flex-direction: column;align-items: center;justify-content: center;}
header h1 { color: white; margin: 0; font-size: 1.4rem; }
body { padding-top: 100px !important; } /* Platz für den fixen Header */

/* --- 2. NAVIGATION DESKTOP (Normalansicht) --- */
#nav-list { display: flex; list-style: none; padding: 0; margin: 5px 0 0 0; }
#nav-list li { margin: 0 12px; position: relative; }
#nav-list a { color: white; text-decoration: none; font-weight: bold; font-size: 0.95rem; }
.menu-icon { display: none; } /* Auf PC unsichtbar */

/* Dropdown Desktop */
.dropdown-content {display: none; position: absolute; background: #34495e;min-width: 180px; z-index: 10001; box-shadow: 0 8px 16px rgba(0,0,0,0.2);}
.dropdown-content a { padding: 10px; display: block; font-size: 0.85rem !important; }
.dropdown:hover .dropdown-content { display: block; }

body { font-family: Arial, sans-serif; margin: 0; line-height: 1.6;padding-top: 100px;/* Dieser Wert muss evtl. feinjustiert werden */ }
main { padding: 40px; max-width: 800px; margin: auto; }
footer { text-align: center; padding: 20px; background: #eee; font-size: 0.9em; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
th { background: #27ae60; color: white; text-transform: uppercase; font-size: 0.9em; }
tr:hover { background: #f9f9f9; }
td a { text-decoration: none; color: #2c3e50; font-weight: bold; display: block; }



/* Clubmeisterschaften*/

.info-grid { display: flex;flex-wrap: wrap; /* Erlaubt das Umbrechen auf dem Handy */ gap: 20px; margin: 30px 0; }
.info-grid p {flex: 1; min-width: 280px; /* Bricht unter 280px Breite automatisch in die nächste Zeile */background: #fdfdfd;border: 1px solid #eee;padding: 20px;border-radius: 8px;}
.info-box { flex: 1; background: #f4f4f4; padding: 20px; border-left: 5px solid #27ae60; border-radius: 5px; }

.cta-section { background: #2c3e50; color: white; padding: 30px; text-align: center; border-radius: 10px; }
.button { display: inline-block; background: #27ae60; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin-top: 15px; }
.button:hover { background: #219150; }

.deadline-urgent { color: #e74c3c; font-weight: bold; }
.footer-nav a:hover { text-decoration: underline; color: #27ae60 !important; }

.pdf-container { width: 100%; max-width: 900px; margin: 20px auto; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.profile-header { margin-bottom: 40px; }
.experience { font-size: 1.2rem; color: #27ae60; font-weight: bold; margin-bottom: 20px; }
.contact-card { background: #f8f9fa; border: 1px solid #ddd; padding: 20px; border-radius: 10px; max-width: 400px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.contact-card p { margin: 10px 0; }
.contact-card a { color: #2c3e50; text-decoration: none; font-weight: bold; }
.contact-card a:hover { color: #27ae60; text-decoration: underline; }
.contact-card a[href*="wa.me"] { color: #25D366; }
.price-info { font-size: 1.1rem; color: #c0392b; margin: 15px 0 !important; }


.highlight-box {background-color: #e8f5e9;padding: 20px;border-radius: 8px;border-left: 6px solid #27ae60;margin-bottom: 30px;}
.donation-info {background: #fdf2e9;padding: 15px;border-radius: 8px;margin: 20px 0;border: 1px dashed #e67e22;text-align: center;}


/* Falls noch nicht geschehen: WhatsApp & Telefon Farben */
.whatsapp-btn { background-color: #25D366 !important; }
.call-btn { background-color: #3498db !important; }
.paypal-btn {background-color: #0070ba !important; /* PayPal Blau */color: white !important;font-weight: bold;}
.paypal-btn:hover {background-color: #005ea6 !important;text-decoration: none;}
.trophy-box { background: linear-gradient(135deg, #fff9e6 0%, #ffecb3 100%);border: 2px solid #ffcc00 !important;text-align: center;}
.trophy-box h3 {color: #b8860b;}
.small-text {font-size: 0.9rem;line-height: 1.4;}

.mode-details ul {list-style-type: "🎾 ";padding-left: 20px;}
.mode-details h3 {margin-top: 0;}


/* Dunkelgrüne Box für die Siegerehrung */
.award-ceremony-box {background-color: #1b4d3e; /* Edles Dunkelgrün */color: #ffffff; /* Weiße Schrift für Kontrast */padding: 25px;border-radius: 10px;text-align: center;margin: 30px 0;box-shadow: 0 4px 10px rgba(0,0,0,0.2);border: 2px solid #27ae60;}
.award-ceremony-box h3 {margin-top: 0;color: #f1c40f; /* Goldene Farbe für die Überschrift */text-transform: uppercase;letter-spacing: 1px;}
.award-ceremony-box p {font-size: 1.1rem;margin-bottom: 0;}
.mentor-box {background-color: #f0f7ff;border-left: 5px solid #3498db;}
.schedule-box {background: #fff;padding: 20px;border-radius: 10px;margin: 20px 0;box-shadow: 0 2px 5px rgba(0,0,0,0.1);}
.schedule-table {width: 100%;border-collapse: collapse;}
.schedule-table td {padding: 10px;border-bottom: 1px solid #eee;}
.schedule-table tr:last-child td {border-bottom: none;}
.contact-list {text-align: left;max-width: 500px;margin: 20px auto;background: rgba(255,255,255,0.1);padding: 15px;border-radius: 8px;}
.contact-item {margin-bottom: 10px;padding-bottom: 5px;border-bottom: 1px solid rgba(255,255,255,0.2);}
.contact-item a {color: white;text-decoration: underline;}
.intro-text {font-size: 1.1rem;line-height: 1.6;color: #34495e;margin-bottom: 30px;}


/* training.html*/
.reason-grid {display: flex;flex-wrap: wrap; /* Erlaubt das Umbrechen auf dem Handy */ gap: 20px;margin-bottom: 30px;}
.reason-card {flex: 1; min-width: 280px; /* Bricht unter 280px Breite automatisch in die nächste Zeile */background: #fdfdfd;border: 1px solid #eee;padding: 20px;border-radius: 8px;}

.health-box {background-color: #e8f5e9; /* Zartes Grün */padding: 25px;border-radius: 12px;margin-top: 40px;border-left: 8px solid #2ecc71;}
.did-you-know {margin-top: 15px;padding: 10px;background: rgba(255, 255, 255, 0.5);border-radius: 5px;font-style: italic;}
.detailed-article {max-width: 800px;margin: 0 auto;line-height: 1.8;}

.elixir-point {margin-bottom: 40px;padding-bottom: 20px;border-bottom: 1px solid #eee;}
.elixir-point h3 {color: #27ae60;font-size: 1.4rem;margin-bottom: 10px;}
.summary-box {background-color: #2c3e50;color: white;padding: 30px;border-radius: 10px;text-align: center;font-size: 1.2rem;}
.training-table {width: 100%;border-collapse: collapse;margin-top: 20px;}
.training-table th, .training-table td {padding: 12px;text-align: left;border-bottom: 1px solid #ddd;vertical-align: top; /* Text oben ausrichten, wie in der PDF */}
.training-table th {background-color: #2c3e50;color: white;}
.download-container {display: flex;flex-direction: column;align-items: center;gap: 15px;margin: 30px 0;}

/* Der Info-Button (Dunkelblau/Grau) */
.info-btn {background-color: #34495e !important;color: white !important;padding: 12px 25px;text-decoration: none;border-radius: 5px;display: inline-block;font-weight: bold;}
.info-btn:hover {background-color: #2c3e50 !important;}
/* Der Anmelde-Button (Grün) */
.signup-btn {background-color: #27ae60 !important;color: white !important;padding: 15px 30px;text-decoration: none;border-radius: 5px;display: inline-block;font-weight: bold;font-size: 1.1rem;box-shadow: 0 4px 6px rgba(0,0,0,0.1);}
.signup-btn:hover {    background-color: #219150 !important;}
html {scroll-behavior: smooth;/* Dieser Wert muss der Höhe deines fixierten Headers entsprechen (ca. 140px - 180px) */scroll-padding-top: 160px; }

/* training.html - Anmeldung Whatsapp */
.day-row {display: flex;align-items: center;gap: 10px;margin-bottom: 10px;border-bottom: 1px solid #eee; padding-bottom: 5px;}
.day-label {width: 85px;font-weight: bold;}
.day-row select {flex: 1;padding: 5px;font-size: 0.9rem;}


/* WArum ist 2x Training besser als 1x Vergleich */

.comparison-container {
        display: flex;
        gap: 20px;
        margin: 30px 0;
        flex-wrap: wrap;
    }

    .box {
        flex: 1;
        min-width: 300px;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .box-1x {
        background-color: #f1f1f1;
        border: 1px solid #ccc;
    }

    .box-2x {
        background-color: #e8f5e9; /* Leichtes Grün */
        border: 2px solid #4caf50;
        position: relative;
    }

    .badge {
        position: absolute;
        top: -15px;
        right: 15px;
        background: #4caf50;
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.8em;
        font-weight: bold;
    }

    .box h2 {
        margin-top: 0;
        font-size: 1.4em;
    }

    .box ul {
        padding-left: 20px;
    }

    .box li {
        margin-bottom: 10px;
    }

    .timer-info {
        font-weight: bold;
        color: #d32f2f;
        display: block;
        margin-top: 15px;
        font-size: 1.1em;
    }

    .success-info {
        font-weight: bold;
        color: #2e7d32;
        display: block;
        margin-top: 15px;
        font-size: 1.1em;
    }



    
.hospitality {background-color: #fff4e6; /* Zartes Orange für Gastfreundschaft */border-left: 5px solid #e67e22;}
.logistics {background-color: #e3f2fd; /* Zartes Blau für Transport */border-left: 5px solid #3498db;}
.schedule-box {background: #f9f9f9;padding: 20px;border: 1px solid #ddd;border-radius: 8px;margin: 30px 0;}

.intro-text {font-style: italic;font-size: 1.1rem;color: #555;border-left: 3px solid #ccc;padding-left: 15px;margin-bottom: 25px;}
.time-badge {display: inline-block;background-color: #3498db;color: white;padding: 2px 8px;border-radius: 4px;font-size: 0.9em;font-weight: bold;}
.checklist-box {background-color: #f0f7ff;border-left: 5px solid #3498db;}
.check-list {list-style: none;padding-left: 0;}
.check-list li::before {content: "🎾 ";margin-right: 5px;}



/* Match-Vorbereitung */

.agassi-quote {background: #1b4d3e;color: white;padding: 25px;border-radius: 10px;margin: 30px 0;}
.agassi-quote h3 { color: #f1c40f; }
.agassi-check-container {background: rgba(255, 255, 255, 0.1);padding: 15px;border-radius: 8px;margin-top: 15px;text-align: left;}
.agassi-hint {font-size: 0.9rem;margin-top: 15px;opacity: 0.8;}

.matchplan-guide .step-card {background: #fff;border: 1px solid #ddd;padding: 15px;margin-bottom: 10px; border-radius: 5px;}
.matchplan-download {background-color: #fdf2e9; /* Dein helles Pfirsich/Rosa */border: 2px dashed #e67e22;padding: 30px;text-align: center;border-radius: 15px;margin-top: 40px;color: #2c3e50 !important; /* Dunkle Schrift für maximale Lesbarkeit */}
.matchplan-download h3 {color: #d35400 !important; /* Kräftiges Orange für die Überschrift */margin-bottom: 15px;}
.matchplan-download p {color: #2c3e50 !important;font-size: 1.1rem;line-height: 1.5;}
.hint {color: #7f8c8d !important; /* Ein dezentes Grau für den kleinen Hinweis unten */font-style: italic;margin-top: 15px;}

.check-item {display: block;margin: 10px 0;cursor: pointer;font-size: 1rem;}
.check-item input[type="checkbox"] {margin-right: 10px;transform: scale(1.2); /* Macht die Box auf dem Handy größer */accent-color: #f1c40f; /* Goldener Haken */}



/* --- STYLING FÜR DIE REKORDE-SEITE --- */

/* Der Hintergrund der gesamten Sektion */
.records-section {padding: 20px;background-color: #f4f7f6; /* Ganz helles Grau/Grün für den Hintergrund */border-radius: 15px;}
/* Die Container-Karten für jede Disziplin */
.record-card {background: #ffffff; /* Weißer Karten-Hintergrund */border-radius: 12px;box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Schatten, damit die Karte "schwebt" */margin-bottom: 40px;overflow: visible !important /* Erlaubt das Rausragen von Elementen */;border: 1px solid #ddd;}
/* Der dunkelgrüne Header der Karte */
.record-header {background-color: #1b4d3e; /* Edles Tennis-Dunkelgrün */color: white;padding: 15px 20px;border-bottom: 3px solid #27ae60;position: relative; /* Wichtig für die Positionierung des Tooltips */}
.record-header h3 { display: flex;         /* Aktiviert die Reihe */
    align-items: center;   /* Zentriert Icon und Text vertikal zueinander */
    justify-content: center; /* Hält das ganze Paket in der Mitte der grünen Box */
    gap: 10px;             /* Erzeugt den Abstand zwischen Text und Icon */
    margin: 0;
}
/* Tabellen-Styling innerhalb der Karten */
.detailed-record-table {width: 100%;border-collapse: collapse;background-color: white;}
.detailed-record-table th {background-color: #f8f9fa;color: #2c3e50;padding: 12px;font-size: 0.85rem;text-transform: uppercase;border-bottom: 2px solid #eee;}
.detailed-record-table td {padding: 15px 10px;border-bottom: 1px solid #eee;text-align: center;color: #333;}
/* Die Spalte mit den Rekord-Zahlen hervorheben */
.detailed-record-table td.score {font-weight: bold;color: #27ae60;background-color: #f1f8f5;width: 20%; /* Etwas breiter für das Jahr */white-space: nowrap; /* Verhindert Zeilenumbruch bei Jahr */}
/* Zeilen beim Drüberfahren hervorheben */
.detailed-record-table tr:hover {background-color: #f9f9f9;}
/* Altersklassen-Spalte fett machen */
.detailed-record-table td:first-child {font-weight: bold;background-color: #fcfcfc;color: #1b4d3e;width: 10%;}    
/* Die Challenge-Box am Ende */
.challenge-box {background-color: #2c3e50;color: white;padding: 30px;text-align: center;border-radius: 12px;margin-top: 50px;border: 2px solid #f1c40f; /* Goldener Rahmen */}
.record-submission {margin-top: 50px;padding-bottom: 50px;}
.submission-card {background: #fff;padding: 30px;border-radius: 15px;border: 2px solid #27ae60;box-shadow: 0 4px 20px rgba(0,0,0,0.1);}
.form-group {display: flex;gap: 15px;margin-bottom: 15px;}
.form-group input, .form-group select {flex: 1;padding: 12px;border: 1px solid #ddd;border-radius: 5px;font-size: 1rem;}

/* Infofelder Rekord-Seite */
/* Das Info-Icon Styling */
.info-icon {position: relative;display: inline-block;cursor: help;margin-left: 10px;font-size: 1.1rem;color: #f1c40f; /* Gold-Gelb */}
/* Der versteckte Text-Kasten */
.tooltip-text {visibility: hidden;width: 240px;background-color: #2c3e50;color: #fff;text-align: left;border-radius: 8px;padding: 15px;position: absolute;z-index: 10005;/* ÄNDERUNG: Nach unten aufklappen statt nach oben */top: 120%; /* Erscheint unter dem Icon */left: 50%;transform: translateX(-50%); /* Saubere Zentrierung */opacity: 0;transition: opacity 0.3s;font-size: 0.9rem;line-height: 1.4;box-shadow: 0 8px 20px rgba(0,0,0,0.4);font-weight: normal;}
/* Den kleinen Pfeil nach OBEN zeigen lassen */
.tooltip-text::after {content: "";position: absolute;bottom: 100%; /* Pfeil oben am Kasten */left: 50%;margin-left: -5px;border-width: 5px;border-style: solid;border-color: transparent transparent #2c3e50 transparent;}
/* Zeige das Feld, wenn man auf das Icon tippt */
.info-icon:active .tooltip-text,
/* Anzeigen beim Drüberfahren */
.info-icon:hover .tooltip-text {visibility: visible;opacity: 1;}
/* Mobile Optimierung: Auf dem Handy zeigen wir es beim Tippen */
@media screen and (max-width: 768px) {
        .tooltip-text {
        position: fixed;    /* Klebt am Bildschirm, nicht am Icon */
        top: 30%;           /* Erscheint im oberen Drittel des Handys */
        left: 10%;          /* 10% Abstand vom linken Rand */
        width: 80% !important; /* Nutzt 80% der Handybreite */
        margin-left: 0;
        transform: none;
        visibility: hidden;
        z-index: 20000;     /* Ganz oben auf der Ebene */
    }
}


/* Ranglisten.html */

.strategy-box {background-color: #f0f7ff;padding: 20px;border-radius: 10px; border-left: 5px solid #3498db;margin: 30px 0;}
.price-hint {background: #fff5f5;padding: 10px;border: 1px solid #feb2b2;border-radius: 5px;font-size: 0.9rem;}
.check-container {background: #f9f9f9;padding: 20px;border: 1px solid #ddd;border-radius: 10px;}
.ranking-box {background: #fff;padding: 20px;border-radius: 10px;box-shadow: 0 2px 8px rgba(0,0,0,0.1);margin-bottom: 20px;}
.ranking-box ol {padding-left: 20px;font-weight: bold;color: #2c3e50;}
.ranking-box li {margin-bottom: 8px;padding-bottom: 5px;border-bottom: 1px dotted #ccc;}
.rule-card {background: #fdfdfd;border: 1px solid #ddd;padding: 20px;margin-bottom: 15px;border-radius: 8px;}



/* --- 3. MOBILE NAVIGATION (Handy unter 768px) --- */

/* Globale Rettung gegen das Wackeln der Seite */

html, body {max-width: 100%;overflow-x: hidden; /* Verhindert das seitliche Schieben */margin: 0;padding: 0;}
@media screen and (max-width: 768px) {
    /* Alle Container auf volle Breite, aber ohne Überstand */
    .submission-card, .info-box, .highlight-box, .reason-card, .record-card, .section, main {width: 100% !important;max-width: 100% !important;margin: 10px 0 !important; /* Nur Abstand nach oben/unten */padding: 15px !important; /* Innenabstand verkleinern */border-left: none !important; /* Spart Platz am Rand */}
    /* Falls du Flexbox nutzt, hier das Überlappen verhindern */
    .form-group, .info-grid, .reason-grid {display: flex;flex-direction: column; /* Untereinander statt nebeneinander */width: 100%;}
    /* Verhindert, dass Input-Felder rechts rauswandern */
    input, select, textarea {width: 100% !important;max-width: 100%;}
    /* 1. Header & Layout-Fixes */
    header {display: flex !important;flex-direction: row !important;justify-content: space-between !important;padding: 0 15px !important;width: 100% !important;height: 70px !important;}
    header h1 { font-size: 1rem !important; margin: 0 !important; }
    /* 2. Burger-Icon */
    .menu-icon {display: flex !important;flex-direction: column;justify-content: center;gap: 5px;cursor: pointer;z-index: 10001;}
    .menu-icon span { width: 25px; height: 3px; background: white !important; }
    /* 3. Menü-Liste */
    #nav-list {display: none;flex-direction: column;position: absolute;top: 70px; left: 0; width: 100%;background: #2c3e50;padding: 0; margin: 0;border-top: 1px solid #3e5871;}
    #nav-list.active { display: flex !important; }
    /* 4. Dropdowns (WICHTIG!) */
    .dropdown-content {display: none; /* Standardmäßig ZU */background: #3e5871;position: static;width: 100%;}
    /* Diese Klasse wird per JavaScript für das aktive Dropdown gesetzt */
    .dropdown.open .dropdown-content {display: block !important;}
    #nav-list li { width: 100%; text-align: center; border-bottom: 1px solid #3e5871; padding: 15px 0; }
    body { padding-top: 80px !important; }
    /* Tabellen-Rettung */
    .table-container { width: 100% !important; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
    table, .detailed-record-table { width: 100% !important; min-width: auto !important; font-size: 0.85rem; }
    /* Alle Boxen-Gitter auf dem Handy UNTEREINANDER stapeln */
    .info-grid, .about-grid, .reason-grid {display: flex !important;flex-direction: column !important; /* Macht aus nebeneinander -> untereinander */gap: 15px; /* Abstand zwischen den gestapelten Boxen */}
    /* Sicherstellen, dass die Boxen die volle Breite nutzen */
    .info-box, .reason-card, .about-text, .about-image {width: 100% !important;margin-left: 0 !important;margin-right: 0 !important;}
}
/* --- STYLING FÜR DIE 3 ACCORDIONS --- */

/* Der Haupt-Container, damit die Seite auf PC und Handy richtig sitzt */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.subtitle {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 30px;
}

/* Der Accordion-Button */
.accordion {
    background-color: #2c3e50; /* Passend zu deinem Header */
    color: white;
    cursor: pointer;
    padding: 18px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hover-Effekt und aktiver Zustand */
.accordion:hover, .accordion.active {
    background-color: #1b4d3e; /* Das edle Tennis-Dunkelgrün aus deinem CSS */
}

/* Kleiner visueller Indikator (Plus/Minus) am rechten Rand */
.accordion::after {
    content: '\2795'; /* Plus-Zeichen */
    font-size: 0.9rem;
    color: white;
}

.accordion.active::after {
    content: "\2796"; /* Minus-Zeichen */
}

/* Das versteckte Panel für den Inhalt */
.panel {
    background-color: #ffffff;
    border-left: 4px solid #27ae60; /* Grüner Streifen passend zu deinen Boxen */
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out; /* Sorgt für das sanfte Gleiten */
    padding: 0 20px; /* Kein vertikales Padding im geschlossenen Zustand */
}

/* Abstandshalter für den Inhalt im Panel */
.panel-content {
    padding: 20px 0;
}

.panel h3 {
    margin-top: 20px;
    color: #2c3e50;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.panel ul {
    padding-left: 20px;
}

.panel li {
    margin-bottom: 8px;
}
