/* Font Awesome Local Font */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/fa-solid-900.woff2") format("woff2");
}

.fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-envelope:before { content: "\f0e0"; }
.fa-trophy:before { content: "\f091"; }
.fa-calendar:before { content: "\f133"; }
.fa-info-circle:before { content: "\f05a"; }
.fa-arrow-up:before { content: "\f062"; }
.fa-map-marker-alt:before { content: "\f3c5"; }
.fa-table-tennis-paddle-ball:before { content: "\f45d"; }
.fa-baseball-bat-ball:before { content: "\f432"; }
.fa-user-check:before { content: "\f4fc"; }
.fa-download:before { content: "\f019"; }
.fa-clock:before { content: "\f017"; }
.fa-home:before { content: "\f015"; }
.fa-chevron-down:before { content: "\f078"; }
.fa-chevron-up:before { content: "\f077"; }
.fa-search-plus:before { content: "\f00e"; }
.fa-times:before { content: "\f00d"; }
.fa-external-link-alt:before { content: "\f35d"; }

/* Reset und Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(63, 169, 255, 0.1);
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo a img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo a:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #3fa9ff;
    background: rgba(63, 169, 255, 0.08);
    transform: translateY(-1px);
}


/* Modern Hamburger Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(63, 169, 255, 0.05);
    border: 1px solid rgba(63, 169, 255, 0.1);
}

.nav-hamburger:hover {
    background: rgba(63, 169, 255, 0.1);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #3fa9ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 2px 0;
    border-radius: 2px;
}

/* Hamburger Animation */
.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3fa9ff 0%, #2a8ee6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

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

/* Info Features */
.info-features {
    padding: 30px 0;
    background: #f8f9fa;
}

.info-features .features-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.info-features .feature-highlight {
    display: flex;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.info-features .feature-highlight:hover {
    transform: translateX(10px);
}

.info-features .feature-icon {
    font-size: 2.5rem;
    color: #3fa9ff;
    margin-right: 30px;
    min-width: 80px;
}

.info-features .feature-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.info-features .feature-text p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.info-features .feature-text a {
    color: #3fa9ff;
    text-decoration: none;
}

.info-features .feature-text a:hover {
    text-decoration: underline;
}

.additional-features {
    padding: 80px 0;
    background: white;
}

.additional-features .features-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.additional-features .feature-highlight {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.additional-features .feature-highlight:hover {
    transform: translateX(10px);
}

.additional-features .feature-icon {
    font-size: 2.5rem;
    color: #3fa9ff;
    margin-right: 30px;
    min-width: 80px;
}

.additional-features .feature-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.additional-features .feature-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.member-links {
    list-style: none;
    padding: 0;
}

.member-links li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.member-links li:before {
    content: '•';
    color: #3fa9ff;
    font-weight: bold;
    margin-right: 10px;
}

.member-links li:last-child {
    border-bottom: none;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.whatsapp-icon img {
    width: 100%;
    max-width: 300px;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.whatsapp-icon img:hover {
    transform: scale(1.02);
}

.whatsapp-list {
    margin: 15px 0;
    padding-left: 20px;
    color: #666;
}

.whatsapp-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.whatsapp-btn {
    background: #25d366;
    color: white !important;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    text-decoration: none;
    color: white !important;
}

.whatsapp-btn:visited {
    color: white !important;
}

.whatsapp-btn i {
    margin-right: 8px;
}

.btn-success {
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-success i {
    margin-right: 8px;
}

/* Events Section */
.events-section {
    padding: 0px 0;
    background: #f8f9fa;
}

.events-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.events-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 12px 16px;       /* weniger Padding */
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    gap: 15px;                /* Abstand zwischen Datum & Text */
}

.event-item:hover {
    transform: translateX(5px);
}

.event-date {
    background: #3fa9ff;
    color: white;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 55px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;

    display: flex;
    flex-direction: column;   /* <-- macht die 2 Zeilen */
    align-items: center;
    justify-content: center;
}

.event-month {
    font-size: 0.75rem;
    margin-top: 2px;
    display: block;           /* falls überschrieben: block sichert die 2. Zeile */
}

.event-details h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;          /* kleiner */
    line-height: 1.3;
}

.event-time,
.event-location {
    margin: 2px 0;
    font-size: 0.85rem;
}

.no-events {
    text-align: center;
    padding: 30px;
    color: #666;
}

.calendar-links {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
    padding-bottom: 80px;
}

.calendar-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.calendar-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Responsive Design für Homepage */
@media (max-width: 768px) {
    .whatsapp-icon {
        margin-right: 0;
        margin-bottom: 20px;
        min-width: auto;
    }

    .whatsapp-icon img {
        max-width: 250px;
    }

    .calendar-buttons {
        flex-direction: column;
        align-items: center;
    }

    .calendar-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .info-sections .info-card {
        padding: 25px;
        margin-bottom: 20px;
    }
    .event-item {
        flex-direction: row;
        text-align: left;
        padding: 10px 14px;
    }

    .event-date {
        min-width: 48px;
        font-size: 1rem;
        padding: 6px 0;
    }

    .event-details h3 {
        font-size: 0.95rem;
    }

    .event-time,
    .event-location {
        font-size: 0.8rem;
    }

}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .whatsapp-content {
        padding: 20px;
    }

    .info-features .feature-highlight,
    .additional-features .feature-highlight {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .info-features .feature-icon,
    .additional-features .feature-icon {
        margin-right: 0;
        margin-bottom: 20px;
        min-width: auto;
    }
    .event-item {
        padding: 8px 12px;
    }

    .event-date {
        min-width: 44px;
        font-size: 0.95rem;
        padding: 5px 0;
    }

    .event-details h3 {
        font-size: 0.9rem;
    }

    .event-time,
    .event-location {
        font-size: 0.78rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary i {
    color: white !important;
}

.btn-primary {
    background: #3fa9ff;
    color: white !important;
    text-decoration: none;
}

.btn-primary:hover {
    background: #2a8ee6;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 169, 255, 0.3);
}

.btn-primary:visited {
    color: white !important;
}

.btn-secondary {
    background: transparent;
    color: #3fa9ff;
    border: 2px solid #3fa9ff;
}

.btn-secondary:hover {
    background: #3fa9ff;
    color: white;
}

.btn-full {
    width: 100%;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

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

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

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

.feature-icon {
    font-size: 3rem;
    color: #3fa9ff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

.feature-link {
    color: #3fa9ff;
    text-decoration: none;
    font-weight: 600;
}

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

/* News Section */
.news {
    padding: 80px 0;
}

.news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.news-card {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.news-date {
    background: #3fa9ff;
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 80px;
}

.news-date .day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.news-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #3fa9ff 0%, #2a8ee6 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 0px;
}

/* Kompakter Header-Variante für Detailseiten */
.page-header.compact-header {
    padding: 28px 0;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3fa9ff;
}

/* Cards */
.info-grid,
.training-grid,
.membership-grid,
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Compact Teams Table */
.teams-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.teams-table {
    width: 100%;
    border-collapse: collapse;
}

.teams-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease;
}

.teams-table tbody tr.team-row:hover {
    background: #f8fcff;
}

.teams-table tbody tr.team-row {
    position: relative;
}

.teams-table tbody tr:last-child {
    border-bottom: none;
}

.teams-table td {
    padding: 12px 20px;
    font-size: 0.95rem;
    text-wrap: nowrap;
}

/* Age Group Headers */
.age-group-header {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    font-size: 1.1rem;
}

.age-group-header:hover {
    background: #f8f9fa !important;
}

.age-group-header td {
    padding: 15px 20px;
}

.age-group-header.age-adults {
    background: linear-gradient(to right, rgba(63,169,255,0.15) 0%, rgba(63,169,255,0.05) 100%);
    color: #2a8ee6;
    border-left: 5px solid #3fa9ff;
}

.age-group-header.age-seniors {
    background: linear-gradient(to right, rgba(142,68,173,0.15) 0%, rgba(142,68,173,0.05) 100%);
    color: #8e44ad;
    border-left: 5px solid #8e44ad;
}

.age-group-header.age-juniors {
    background: linear-gradient(to right, rgba(39,174,96,0.15) 0%, rgba(39,174,96,0.05) 100%);
    color: #27ae60;
    border-left: 5px solid #27ae60;
}

.group-cell {
    width: 40%;
    padding: 0;
}

.team-name-cell {
    width: 60%;
    padding: 0;
}

.team-row-link {
    color: #333 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
    height: 100%;
}

.group-cell .team-row-link {
    color: #555 !important;
    font-weight: 500;
}

.team-name-cell .team-row-link {
    font-weight: 500;
}

.team-row-link:hover {
    color: #3fa9ff !important;
}

.team-row-link:visited {
    color: #333 !important;
}

.group-cell .team-row-link:visited {
    color: #555 !important;
}

.team-row-link:visited:hover {
    color: #3fa9ff !important;
}

/* Subtle left border for team rows */
.team-row.age-adults {
    border-left: 3px solid transparent;
}

.team-row.age-seniors {
    border-left: 3px solid transparent;
}

.team-row.age-juniors {
    border-left: 3px solid transparent;
}

.team-row.age-adults:hover {
    border-left-color: #3fa9ff;
}

.team-row.age-seniors:hover {
    border-left-color: #8e44ad;
}

.team-row.age-juniors:hover {
    border-left-color: #27ae60;
}

.info-card,
.training-card,
.team-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-card:hover,
.training-card:hover,
.membership-card:hover,
.team-card:hover {
    transform: translateY(-5px);
}

.membership-card.featured {
    border: 3px solid #3fa9ff;
    transform: scale(1.05);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #3fa9ff;
    margin: 15px 0;
}

.team-league {
    color: #3fa9ff;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Altersklassen-Header in Teamkarte */
.team-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.age-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    background: #e9f5ff;
    color: #2a8ee6;
    border: 1px solid rgba(63,169,255,0.25);
}

/* Deutlicher Farbstreifen oben je Altersklasse */
.team-card .age-strip {
    height: 6px;
    width: calc(100% + 30px);
    margin: -30px -30px 12px -30px; /* über volle Kartenbreite inkl. Padding */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.team-card.age-adults .age-strip { background: #3fa9ff; }
.team-card.age-seniors .age-strip { background: #8e44ad; }
.team-card.age-juniors .age-strip { background: #27ae60; }

/* Kräftige linke Akzentlinie zusätzlich */
.team-card.age-adults { border-left: 5px solid #3fa9ff; padding-left: 24px; }
.team-card.age-seniors { border-left: 5px solid #8e44ad; padding-left: 24px; }
.team-card.age-juniors { border-left: 5px solid #27ae60; padding-left: 24px; }

/* Badge-Farbgebung pro Altersklasse */
.team-card.age-adults .age-badge {
    background: rgba(63,169,255,0.12);
    color: #2a8ee6;
    border-color: rgba(63,169,255,0.3);
}

.team-card.age-seniors .age-badge {
    background: rgba(142,68,173,0.12);
    color: #8e44ad;
    border-color: rgba(142,68,173,0.3);
}

.team-card.age-juniors .age-badge {
    background: rgba(39,174,96,0.12);
    color: #27ae60;
    border-color: rgba(39,174,96,0.3);
}

/* Team-League-Farbe je Altersklasse */
.team-card.age-adults .team-league { color: #3fa9ff; }
.team-card.age-seniors .team-league { color: #8e44ad; }
.team-card.age-juniors .team-league { color: #27ae60; }

/* Links im Titel leicht einfärben je Altersklasse */
.team-card.age-adults h3 a:hover { color: #2a8ee6; }
.team-card.age-seniors h3 a { color: #603483; }
.team-card.age-seniors h3 a:hover { color: #8e44ad; }
.team-card.age-juniors h3 a { color: #1e8b52; }
.team-card.age-juniors h3 a:hover { color: #27ae60; }

/* Mobile kleine Optimierung */
@media (max-width: 480px) {
    .age-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .team-card .age-strip {
        height: 5px;
        margin-bottom: 10px;
    }
    .teams-table td {
        padding: 0px;
    }
    .team-row-link {
        padding: 0px;
    }

}

/* Badge-Farbgebung pro Altersklasse */
.team-card.age-adults .age-badge {
    background: rgba(63,169,255,0.1);
    color: #2a8ee6;
    border-color: rgba(63,169,255,0.3);
}

.team-card.age-seniors .age-badge {
    background: rgba(142,68,173,0.08);
    color: #8e44ad;
    border-color: rgba(142,68,173,0.25);
}

.team-card.age-juniors .age-badge {
    background: rgba(39,174,96,0.1);
    color: #27ae60;
    border-color: rgba(39,174,96,0.25);
}

/* Mobile kleine Optimierung */
@media (max-width: 480px) {
    .age-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

.no-teams-message {
    text-align: center;
    padding: 60px 0;
}

.message-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.message-card i {
    font-size: 3rem;
    color: #3fa9ff;
    margin-bottom: 20px;
}

.message-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.message-card p {
    color: #666;
    line-height: 1.6;
}

.team-info-section {
    margin-top: 60px;
}

.team-info-section .info-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.team-info-section .btn {
    margin-top: 20px;
    padding: 12px 30px;
}

.team-info-section .btn i {
    margin-right: 8px;
}

.season-section {
    margin-bottom: 0px;
}

.season-title {
    font-size: 2rem;
    color: #3fa9ff;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3fa9ff;
}

.season-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.season-toggle:hover {
    color: #2a8ee6;
    transform: translateY(-2px);
}

.season-title-text {
    flex-shrink: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.season-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.season-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 1;
    pointer-events: auto;
}

.season-section.collapsed .season-content {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.teams-section .teams-grid {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .team-row-link {
        padding: 0px;
    }
    .teams-table td {
        padding: 0px;
    }

    .season-header {
        gap: 15px;
    }

    .wtv-logo {
        height: 24px;
    }

    .wtv-portal-link {
        padding: 6px;
    }

    .season-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
        padding-bottom: 12px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .season-toggle {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .season-title-text {
        word-break: break-word;
        hyphens: auto;
        flex: 1;
    }

    .toggle-icon {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .team-row-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .age-group-header td {
        padding: 12px;
        font-size: 1rem;
    }

    .group-cell {
        width: 35%;
    }

    .team-name-cell {
        width: 65%;
    }
}

@media (max-width: 480px) {
    .season-title {
        font-size: 1.2rem;
        margin-bottom: 25px;
        padding-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .season-toggle {
        gap: 8px;
    }

    .toggle-icon {
        font-size: 0.9rem;
    }

    .team-row-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .age-group-header td {
        padding: 10px;
        font-size: 0.95rem;
    }

    .group-cell {
        width: 30%;
    }

    .team-name-cell {
        width: 70%;
    }
}

/* Mannschafts-Details */
.season-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    gap: 20px;
}

.season-title-detail {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: left;
    font-weight: 600;
    flex: 1;
}

.wtv-portal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wtv-portal-link:hover {
    border-color: #3fa9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 169, 255, 0.2);
}

.wtv-logo {
    height: 32px;
    width: auto;
    display: block;
}

.breadcrumb {
    margin-top: 15px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.meetings-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.meetings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.meetings-header .group-title {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.meetings-table-container {
    overflow-x: auto;
    background: white;
}

.meetings-table {
    width: 100%;
    border-collapse: collapse;
}

/* Ergebnis-Spalte global rechtsbündig */
.meetings-table th:nth-child(4),
.meetings-table td:nth-child(4) {
    text-align: right;
}

.meetings-table thead {
    background: #3fa9ff;
    color: white;
}

.meetings-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.meetings-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.meetings-table tbody tr:hover {
    background: #f8fcff;
}

.meetings-table tbody tr:last-child td {
    border-bottom: none;
}

.meeting-date a {
    color: #3fa9ff;
    text-decoration: none;
    font-weight: 500;
}

.meeting-date a:hover {
    text-decoration: underline;
}

.meeting-result {
    font-weight: 600;
}

.meeting-result .pending {
    color: #6c757d;
    font-style: italic;
}

.winner-trophy {
    color: #ffd700;
    margin-right: 6px;
    font-size: 1.1rem;
}

/* Gruppen / Ranglisten */
.groups-section {
    padding: 0 0 0px;
    background: white;
}

.group-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 20px 0;
    overflow: hidden;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.group-header .group-title {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.table-details-toggle {
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #3fa9ff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.table-details-toggle:hover {
    background: #2a8ee6;
    transform: scale(1.1);
}

.table-details-toggle i {
    transition: all 0.3s ease;
}

.group-card.show-details .table-details-toggle {
    background: #2a8ee6;
}

.group-card.show-details .table-details-toggle i::before {
    content: "\f00d"; /* fa-times icon */
}

.group-title {
    margin: 0;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.2rem;
    color: #333;
}

/* Override when inside group-header */
.group-header + .group-table-container {
    border-top: none;
}

.team-meetings {
    padding: 20px 0 0px;
    background: white;
}

/* Kompakte Variante innerhalb der Spielplan-Sektion */
.team-meetings .group-title {
    font-size: 1.2rem;
}

.group-table-container {
    overflow-x: auto;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.group-table thead {
    background: #3fa9ff;
    color: #fff;
}

.group-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
}

.group-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.95rem;
}

.group-table tbody tr:last-child td {
    border-bottom: none;
}

.group-table .rank {
    width: 1%;
    white-space: nowrap;
}

.group-table .team {
    width: auto;
    word-break: break-word;
}

.group-table .col-stats {
    text-align: center;
    white-space: nowrap;
}

.group-table .col-rank {
    width: 1%;
    white-space: nowrap;
}

.group-table .col-team {
    width: auto;
}

.group-table .col-points {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

/* Legacy support */
.group-table .points {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.group-table tr.is-hetzendorf td.team {
    font-weight: 700;
    color: #2a8ee6;
}

/* Mobile Anpassungen für Gruppentabellen */
@media (max-width: 768px) {
    .group-title {
        font-size: 1.05rem;
        padding: 12px 14px;
    }
    .group-table th, .group-table td {
        padding: 6px 8px;
        font-size: 0.85rem;
    }

    /* Show details toggle button on mobile */
    .table-details-toggle {
        display: block;
    }

    /* Hide extended columns by default on mobile */
    .group-table .col-extended {
        display: none;
    }

    /* Show extended columns when details are toggled */
    .group-card.show-details .col-extended {
        display: table-cell;
    }

    .group-card.show-details .group-table .col-stats {
        font-size: 0.75rem;
        padding: 6px 3px;
    }

    .group-table .col-team {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .group-table th, .group-table td {
        padding: 5px 4px;
        font-size: 0.75rem;
    }

    .group-card.show-details .group-table .col-stats {
        font-size: 0.7rem;
        padding: 5px 2px;
    }

    .group-table .col-team {
        min-width: 100px;
        font-size: 0.8rem;
    }
}

.team-card h3 a {
    color: #333;
    text-decoration: none;
}

.team-card h3 a:hover {
    color: #3fa9ff;
    text-decoration: underline;
}

/* Spaltenbreiten für Meetings-Tabelle - auf Inhaltsbreite angepasst */
.meetings-table {
    table-layout: auto;
}

.meetings-table th:nth-child(1),
.meetings-table td:nth-child(1) {
    width: 1px;
    white-space: nowrap;
}

.meetings-table th:nth-child(2),
.meetings-table td:nth-child(2) {
    width: 1px;
    white-space: nowrap;
}

.meetings-table th:nth-child(3),
.meetings-table td:nth-child(3) {
    width: 1px;
    white-space: nowrap;
}

.meetings-table th:nth-child(4),
.meetings-table td:nth-child(4) {
    width: 1px;
    white-space: nowrap;
}

/* Latest Results Table - Mobile optimizations */
@media (max-width: 768px) {
    .latest-results-table .col-team {
        display: none;
    }

    .latest-results-table .col-date {
        white-space: nowrap;
        width: 1%;
        font-size: 0.8rem;
    }

    .latest-results-table .col-group {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        min-width: 100px;
    }

    .latest-results-table .col-group a {
        font-weight: 500;
    }

    .latest-results-table .col-opponent {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .latest-results-table .col-result {
        white-space: nowrap;
        width: 1%;
        text-align: right;
    }

    .latest-results-table th,
    .latest-results-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }

    .latest-results-table thead th {
        font-size: 0.85rem;
        padding: 10px 6px;
    }
}

@media (max-width: 480px) {
    .latest-results-table th,
    .latest-results-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }

    .latest-results-table .col-date {
        font-size: 0.75rem;
    }

    .latest-results-table .col-result {
        font-size: 0.75rem;
    }

    .latest-results-table .winner-trophy {
        font-size: 0.8rem;
        margin-right: 2px;
    }
}

/* Responsive Design für Meetings-Tabelle */
@media (max-width: 768px) {
    /* Besseres Wrapping und keine erzwungene Spaltenverteilung */
    .meetings-table {
        table-layout: auto;
        font-size: 0.85rem;
    }

    .meetings-table thead th {
        font-size: 0.85rem;
    }

    .meetings-table th,
    .meetings-table td {
        padding: 6px 8px;
        vertical-align: top;
    }

    /* Runde ausblenden, nicht Ergebnis */
    .meetings-table th:nth-child(2),
    .meetings-table td:nth-child(2) {
        display: none;
    }

    /* Datum kompakt, nicht umbrechend */
    .meetings-table th:nth-child(1),
    .meetings-table td:nth-child(1) {
        white-space: nowrap;
        width: 1%;
    }

    /* Gegner nutzt restliche Breite, darf umbrechen */
    .meetings-table th:nth-child(3),
    .meetings-table td:nth-child(3) {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        padding-left: 10px;
    }

    /* Ergebnis kompakt rechts */
    .meetings-table th:nth-child(4),
    .meetings-table td:nth-child(4) {
        white-space: nowrap;
        width: 1%;
        text-align: right;
    }

    .meeting-date {
        font-size: 0.8rem;
    }

    .winner-trophy {
        font-size: 0.9rem;
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .meetings-table {
        table-layout: auto;
        font-size: 0.8rem;
    }

    .meetings-table thead th {
        font-size: 0.8rem;
    }

    .meetings-table th,
    .meetings-table td {
        padding: 5px 6px;
        vertical-align: top;
    }

    /* Datum sehr schmal, nicht umbrechend */
    .meetings-table th:nth-child(1),
    .meetings-table td:nth-child(1) {
        white-space: nowrap;
        width: 1%;
    }

    /* Gegner darf frei umbrechen und nutzt den Platz */
    .meetings-table th:nth-child(3),
    .meetings-table td:nth-child(3) {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        padding-left: 8px;
    }

    /* Ergebnis kompakt rechts */
    .meetings-table th:nth-child(4),
    .meetings-table td:nth-child(4) {
        white-space: nowrap;
        width: 1%;
        text-align: right;
    }

    .meeting-date {
        font-size: 0.75rem;
    }

    .meeting-result {
        font-size: 0.75rem;
    }

    .winner-trophy {
        font-size: 0.8rem;
        margin-left: 4px;
    }
}

/* Contact & Impressum */
.impressum-section {
    padding: 60px 0;
    background: white;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-content h2 {
    color: #3fa9ff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.impressum-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
}

.address-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.impressum-content a {
    color: #3fa9ff;
    text-decoration: none;
}

.impressum-content a:hover {
    text-decoration: underline;
}

.transport-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.transport-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.transport-info {
    max-width: 700px;
    margin: 0 auto;
}

.transport-info h4 {
    color: #3fa9ff;
    margin: 25px 0 10px 0;
}

.associations-section {
    padding: 60px 0;
    background: white;
}

.associations-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logo-item img {
    max-height: 80px;
    width: auto;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0);
    transform: scale(1.05);
}

.legal-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.legal-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    color: #3fa9ff;
    margin: 25px 0 15px 0;
}

.privacy-section {
    padding: 60px 0;
    background: white;
}

.privacy-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h3 {
    color: #3fa9ff;
    margin: 30px 0 15px 0;
}

.privacy-content p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3fa9ff;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #333;
}

@media (max-width: 768px) {
    .logos-grid {
        gap: 40px;
    }

    .logo-item img {
        max-height: 60px;
    }

    .impressum-content,
    .legal-content,
    .privacy-content {
        padding: 0 20px;
    }

    .transport-info {
        padding: 0 20px;
    }
}


/* Flash Messages */
.flash-messages {
    padding: 20px;
}

.flash-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3fa9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }

    .nav-logo a img {
        height: 45px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 30px 0;
        gap: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid rgba(63, 169, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        display: block;
        margin: 8px 20px;
        padding: 15px 25px;
        border-radius: 12px;
        text-align: center;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(63, 169, 255, 0.1);
        transform: translateX(-20px);
        opacity: 0;
        animation: slideInLeft 0.3s ease forwards;
    }

    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(6) { animation-delay: 0.35s; }
    .nav-menu.active .nav-link:nth-child(7) { animation-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(8) { animation-delay: 0.45s; }
    .nav-menu.active .nav-link:nth-child(9) { animation-delay: 0.5s; }

    .nav-menu .nav-link:hover {
        background: rgba(63, 169, 255, 0.12);
        transform: translateX(5px);
    }


    .nav-hamburger {
        display: flex;
    }

    /* Mobile Menu Animation */
    @keyframes slideInLeft {
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    /* Overlay for mobile menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: -1;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .features-grid,
    .info-grid,
    .training-grid,
    .membership-grid,
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        top: 65px;
        padding: 20px 0;
    }

    .nav-menu .nav-link {
        margin: 5px 15px;
        padding: 12px 20px;
        font-size: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .features h2,
    .news h2 {
        font-size: 2rem;
    }

    .feature-card,
    .info-card,
    .training-card,
    .membership-card,
    .team-card {
        padding: 20px;
    }

}

/* Additional mobile improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .nav-link {
        padding: 12px 20px;
        min-height: 44px; /* Apple's minimum touch target */
    }

    .btn {
        min-height: 44px;
        padding: 12px 25px;
    }
}

/* Smooth transitions for better UX */
.nav-menu * {
    -webkit-tap-highlight-color: transparent;
}

/* Loading animation for better perceived performance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeIn 0.6s ease-out;
}

/* Webcam & Weather specific styles */
.webcam-section {
    padding: 60px 0;
}

.webcam-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.webcam-card,
.weather-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.webcam-placeholder {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    color: #666;
}

/* clickable image inside placeholder */
.webcam-placeholder .webcam-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0; /* remove inline gap */
}

/* Responsive images choose with srcset; show zoom cursor to indicate enlargement */
.webcam-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.15s ease;
}
.webcam-placeholder img:active,
.webcam-placeholder img:focus {
    transform: scale(0.995);
}

/* CSS-only modal (opened via #webcam-full fragment and :target) */
.webcam-full {
    display: none;
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* show modal when targeted */
.webcam-full:target {
    display: flex;
}

/* full image inside modal */
.webcam-full-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.7);
    display: block;
    margin: 0 auto;
}

/* close button (simple large ×) */
.webcam-full-close {
    position: absolute;
    top: 18px;
    right: 30px;
    font-size: 2.6rem;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    font-weight: 700;
    opacity: 0.95;
    padding: 6px;
}

/* Make close area touch-friendly on small devices */
@media (max-width: 480px) {
    .webcam-full-close {
        top: 12px;
        right: 16px;
        font-size: 2rem;
    }
}

/* Clicking outside the image (the overlay) is handled by linking to '#' via the close link; no JS required. */

/* existing weather / webcam small responsive rule */
@media (max-width: 768px) {
    .webcam-grid {
        grid-template-columns: 1fr;
    }
}

/* Anlage-spezifische Styles */
.anlage-description {
    padding: 40px 0;
    background: #f8f9fa;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* Bildergalerie */
.anlage-gallery {
    padding: 80px 0;
    background: white;
}

.anlage-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Feature Highlights */
.anlage-features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-highlight {
    display: flex;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-highlight:hover {
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #3fa9ff;
    margin-right: 30px;
    min-width: 80px;
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.feature-text p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Verbesserte Info Cards */
.anlage-info {
    padding: 80px 0;
    background: white;
}

.anlage-info h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

.info-icon {
    font-size: 2.5rem;
    color: #3fa9ff;
    margin-bottom: 20px;
    text-align: center;
}

.info-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

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

.info-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.info-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3fa9ff;
    font-weight: bold;
}

.info-card li:last-child {
    border-bottom: none;
}


/* Responsive Design für Anlage */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item img {
        height: 300px;
    }

    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 20px;
        min-width: auto;
    }

    .intro-text {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item img {
        height: 250px;
    }

    .anlage-gallery h2,
    .anlage-info h2 {
        font-size: 2rem;
    }

    .feature-highlight {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2rem;
    }
}

/* Benefits Section */
.benefits-section {
    margin-top: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-item i {
    font-size: 2.5rem;
    color: #3fa9ff;
    margin-bottom: 15px;
}

.benefit-item h4 {
    margin-bottom: 10px;
    color: #333;
}

/* Membership Page Specific */
.membership-intro {
    padding: 40px 0;
    background: #f8f9fa;
}

.intro-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #3fa9ff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.intro-box p {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.membership-fees {
    padding: 80px 0;
    background: white;
}

.membership-fees h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

.fees-table {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.membership-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.membership-table thead {
    background: #3fa9ff;
    color: white;
}

.membership-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.membership-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.membership-table tbody tr:hover {
    background: #f8fcff;
}

.membership-table tbody tr:last-child td {
    border-bottom: none;
}

.price {
    font-weight: bold;
    color: #3fa9ff;
    font-size: 1.1rem;
}

.price-free {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
}

.included-info {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 25px;
    background: #e3f2fd;
    border-radius: 10px;
    border-left: 4px solid #3fa9ff;
}

.included-info p {
    margin: 0;
    color: #1565c0;
    line-height: 1.6;
}

.membership-actions {
    padding: 80px 0;
    background: #f8f9fa;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.action-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.action-card .card-header {
    background: linear-gradient(135deg, #3fa9ff 0%, #2a8ee6 100%);
    color: white;
    padding: 25px;
    margin-bottom: 0;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.card-content {
    padding: 30px;
    text-align: center;
}

.card-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-content .btn {
    padding: 12px 25px;
    font-weight: 600;
    background: linear-gradient(135deg, #3fa9ff 0%, #2a8ee6 100%);
    color: white;
    border: none;
}

.card-content .btn:hover {
    background: linear-gradient(135deg, #2a8ee6 0%, #1976d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 169, 255, 0.3);
}

.card-content .btn i {
    margin-right: 8px;
}

/* Responsive Design für Mitgliedschaft */
@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fees-table {
        margin: 0 15px;
    }

    .membership-table th,
    .membership-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .membership-table th:nth-child(2),
    .membership-table td:nth-child(2) {
        display: none;
    }

    .included-info {
        margin: 30px 15px 0;
        padding: 20px;
    }

    .intro-box {
        margin: 0 15px;
        padding: 20px;
    }

    .intro-box p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .membership-fees h2 {
        font-size: 2rem;
    }

    .membership-table th,
    .membership-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .card-content {
        padding: 20px;
    }

    .card-header {
        padding: 20px !important;
    }
}

/* Trainer Section */
.trainer-info {
    margin-top: 60px;
}

.trainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trainer-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.trainer-card h4 {
    color: #3fa9ff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Tennis School Specific Styles */
.tennis-school-intro {
    padding: 80px 0;
    background: #f8f9fa;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.logo-section {
    text-align: center;
}

.tennisfriends-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.cooperation-info h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.cooperation-info .intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.training-focus {
    padding: 80px 0;
    background: white;
}

.training-focus h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 60px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.focus-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.focus-card:hover {
    transform: translateY(-5px);
    border-color: #3fa9ff;
    background: white;
    box-shadow: 0 10px 30px rgba(63, 169, 255, 0.1);
}

.focus-icon {
    font-size: 2.5rem;
    color: #3fa9ff;
    margin-bottom: 20px;
}

.focus-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.focus-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.training-programs {
    padding: 80px 0;
    background: #f8f9fa;
}

.training-programs h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 60px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.program-card.featured {
    border-color: #3fa9ff;
    background: linear-gradient(135deg, #f8fcff 0%, #f0f8ff 100%);
}

.program-icon {
    font-size: 2.2rem;
    color: #3fa9ff;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

.program-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.program-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.detail-item {
    background: rgba(63, 169, 255, 0.1);
    color: #3fa9ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-item i {
    font-size: 0.8rem;
}

.contact-training {
    padding: 80px 0;
    background: linear-gradient(135deg, #3fa9ff 0%, #2a8ee6 100%);
}

.contact-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-box h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    padding: 12px 30px;
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-buttons .btn-secondary {
    background: white;
    color: #3fa9ff;
}

.contact-buttons .btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Responsive Design für Tennisschule */
@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .tennisfriends-logo {
        max-width: 200px;
    }

    .focus-grid,
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-card {
        padding: 25px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .program-details {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .training-focus h2,
    .training-programs h2 {
        font-size: 2rem;
    }

    .cooperation-info h2 {
        font-size: 1.8rem;
    }

    .contact-box h2 {
        font-size: 1.8rem;
    }

    .focus-card,
    .program-card {
        padding: 20px;
    }

    .tennisfriends-logo {
        max-width: 180px;
    }
}

/* Reservations specific */
.reservation-info {
    padding: 60px 0;
    background: #f8f9fa;
}

.reservation-system-link {
    text-align: center;
    margin-bottom: 60px;
}

.reservation-system-link h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
}

.system-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.system-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-large i {
    margin-right: 10px;
}

.access-info {
    margin-top: 60px;
}

.access-info h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.info-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-card a {
    color: #3fa9ff;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.highlight-box {
    background: #f0f8ff;
    border: 2px solid #3fa9ff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
}

.highlight-box p {
    color: #2a5885;
    margin: 0;
    font-weight: 500;
}

.rules-section {
    padding: 80px 0;
    background: white;
}

.rules-section h2 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.warning-box i {
    color: #856404;
    font-size: 1.5rem;
    margin-right: 15px;
}

.warning-box p {
    color: #856404;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

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

.rule-category {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.rule-category h3 {
    color: #3fa9ff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #3fa9ff;
    padding-bottom: 10px;
}

.rule-list {
    list-style: none;
    padding: 0;
}

.rule-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.rule-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3fa9ff;
    font-weight: bold;
    font-size: 1.2rem;
}

.rule-list li:last-child {
    border-bottom: none;
}

.rule-list strong {
    color: #333;
}

.important-notice {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.important-notice h3 {
    color: #721c24;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.important-notice i {
    margin-right: 10px;
}

.important-notice p {
    color: #721c24;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.court-rules {
    padding: 80px 0;
    background: #f8f9fa;
}

.court-rules h2 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.court-rules-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.court-rules-list {
    counter-reset: rule-counter;
    list-style: none;
    padding: 0;
}

.court-rules-list li {
    counter-increment: rule-counter;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 40px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.court-rules-list li:before {
    content: counter(rule-counter);
    position: absolute;
    left: 0;
    top: 15px;
    background: #3fa9ff;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.court-rules-list li:last-child {
    border-bottom: none;
}

.court-info-box {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

.court-info-box p {
    color: #155724;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design für Reservierungen */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rule-category {
        padding: 20px;
    }

    .system-info,
    .info-card,
    .court-rules-content {
        padding: 25px;
    }

    .important-notice {
        padding: 20px;
    }

    .court-rules-list li {
        padding-left: 35px;
        font-size: 1rem;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .rules-section h2,
    .court-rules h2 {
        font-size: 2rem;
    }

    .reservation-system-link h2,
    .access-info h2 {
        font-size: 1.8rem;
    }

    .system-info,
    .info-card,
    .court-rules-content {
        padding: 20px;
    }

    .rule-category {
        padding: 15px;
    }
}


.submit-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem; /* großer Button */
    font-size: 1.2rem; /* größere Schrift */
    font-weight: 600; /* etwas kräftiger */
    text-transform: uppercase; /* optionale Großschreibung */
    color: #fff; /* weiße Schrift */
    background: linear-gradient(135deg, #0077cc, #005fa3); /* edler Verlauf */
    border: none;
    border-radius: 12px; /* abgerundete Ecken */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0088ee, #0066bb);
    transform: translateY(-2px); /* leichter „Lift“-Effekt */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 119, 204, 0.3);
}


/* Admin-Tabelle */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* sorgt für horizontales Scrollen bei vielen Spalten */
    font-size: 0.95rem;
}

.admin-table thead {
    background: #3fa9ff;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background: #f8fcff;
}

.status-disabled {
    color: #aaa;
    font-style: italic;
}

/* Kleine Buttons in Tabellen */
.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Modal Overlay schöner gestalten */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: scaleIn 0.25s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eee;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #333;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #3fa9ff;
    color: #fff;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
