@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* === Hauptfarben (Vereinsfarben: Schwarz & Rot) === */
    --primary-red: #BA181B;
    --primary-dark: #0B090A;

    /* === Rot-Abstufungen === */
    --red-darker: #660708;
    --red-dark: #A4161A;
    --red-base: #BA181B;
    --red-light: #E5383B;

    /* === Schwarz/Grau-Abstufungen === */
    --black: #0B090A;
    --gray-darkest: #161A1D;
    --gray-dark: #B1A7A6;
    --gray-medium: #D3D3D3;
    --gray-light: #F5F3F4;
    --white: #FFFFFF;

    /* === Semantische Zuordnungen === */
    --color-brand: #BA181B;

    /* Text */
    --text-primary: #0B090A;
    --text-secondary: #161A1D;
    --text-muted: #B1A7A6;
    --text-inverse: #FFFFFF;

    /* Hintergrund */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F3F4;
    --bg-dark: #0B090A;
    --bg-darker: #161A1D;

    /* Interaktive Elemente */
    --link-color: #BA181B;
    --link-hover: #E5383B;
    --button-bg: #BA181B;
    --button-hover: #A4161A;

    /* Borders & Trenner */
    --border-light: #D3D3D3;
    --border-medium: #B1A7A6;
    --border-dark: #161A1D;

    /* Spezielle Bereiche */
    --header-bg: #161A1D;
    --footer-bg: #0B090A;
    --nav-bg: #161A1D;
    --card-bg: #FFFFFF;
    --card-hover: #F5F3F4;

    /* SVG/Icons */
    --icon-primary: #BA181B;
    --icon-secondary: #E5383B;
}

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

html {
    box-sizing: border-box;
    scrollbar-gutter: stable;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    text-align: center;
    font-family: Poppins, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    overflow-x: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

svg {
    fill: black;
}

/* ==================== NAVIGATION ==================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    border-bottom: 2px solid grey;
    background-color: var(--gray-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

nav ul {
    list-style: none;
}

nav a {
    text-decoration: none;
    color: black;
    border: 2px solid black;
    border-radius: 30px;
    padding: 5px 15px;
    margin-right: 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

nav a.logo {
    border: none;
    display: inline;
    position: relative;
    top: 30px;
}

nav a:hover,
.dropdown:hover {
    border-color: #BA181B;
}

nav a:hover,
.dropdown:hover .dropdown-btn {
    border-color: #BA181B;
    color: #BA181B;
}

nav a:hover svg,
.dropdown:hover svg {
    fill: #BA181B;
}

.nav-logo {
    width: 120px;
    aspect-ratio: 1;
}

nav a,
nav .dropdown-btn,
.dropdown {
    text-decoration: none;
    display: flex;
    margin-right: 15px;
}

.dropdown-btn {
    width: 100%;
    background: none;
    border: 2px solid black;
    border-radius: 30px;
    padding: 5px 15px 5px 20px;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: black;
}

.dropdown-btn svg {
    width: 22px;
    height: 22px;
}

nav .sub-menu {
    display: none;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#sidebar-active {
    display: none;
}

.open-sidebar-button {
    margin-left: auto;
    position: fixed;
    right: 20px;
    top: 5px;
}

.open-sidebar-button,
.close-sidebar-button {
    display: none;
}

.mobile-logo {
    display: none;
}

/* Dropdown */

.dropdown {
    position: relative;
    display: inline-block;
    padding: 0;
    border: none;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 5px;
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    overflow: hidden;
}

.dropdown:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 0;
    margin: 0;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: black;
    text-decoration: none;
    border: none;
    border-radius: 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.sub-menu li a:hover {
    background-color: #f0f0f0;
    color: red;
}

/* ==================== MAIN ==================== */

main {
    flex: 1;
    position: relative;
    top: 80.2px;
    max-width: 1200px;
    margin: auto;
    padding-top: 30px;
    margin-top: 40px;
    margin-bottom: 140px;
}

/* ==================== FOOTER ==================== */

footer {
    margin-top: auto;
    width: 100%;
    background-color: var(--gray-light);
    border-top: 2px solid grey;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-item {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
}

.footer-item h2 {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: #000;
}

.footer-item p,
.footer-item a {
    font-size: 0.9em;
    color: #333;
    line-height: 1.8;
}

.footer-item a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-item a:hover {
    color: #dc0813;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo .nav-logo {
    width: 100px;
}

/* ==================== WIDGETS ==================== */

.widget-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    background-color: #e8e8e8;
    border-radius: 15px;
}

.fussballde_widget {
    width: 95%;
    max-width: 95%;
    padding: 40px;
}

/* ==================== MANNSCHAFTSSEITE ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #dc0813;
}

.team-header h1 {
    font-size: 2.5em;
    color: #000;
    margin-bottom: 10px;
}

.team-header p {
    font-size: 1.2em;
    color: #666;
}

.team-image {
    width: 100%;
    background: linear-gradient(135deg, #dc0813 0%, #a00610 100%);
    border-radius: 10px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
}

.team-image img {
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: linear-gradient(135deg, #dc0813 0%, #a00610 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.team-description {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    line-height: 1.8;
    border: 2px solid #dc0813;
}

.team-description h2 {
    color: #dc0813;
    margin-bottom: 15px;
}

.team-description ul {
    list-style: none;
    padding-left: 0;
}

.team-description li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.team-description li::before {
    content: '';
    position: absolute;
    left: 0;
}

/* ==================== INFO GRID & CARDS ==================== */

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

.info-card {
    background: #f9f9f9;
    border: 2px solid #dc0813;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(220, 8, 19, 0.2);
}

.info-card h2 {
    color: #dc0813;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: #dc0813;
}

#equipment {
    text-align: left;
}

/* ==================== TRAINING SEASONS ==================== */

.training-seasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Season card */
.season-item {
    padding: 24px;
    border-radius: 10px;
    background: var(--bg-secondary); /* light grey instead of pure white */
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.season-title {
    font-weight: bold;
    color: #dc0813;
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.season-title svg {
    fill: #dc0813;
}

.training-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.training-item:last-child {
    border-bottom: none;
}

.training-day {
    font-weight: bold;
    color: #000;
    font-size: 1em;
    margin-bottom: 6px;
}

.training-location {
    color: #333;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 3px;
}

.training-location svg {
    fill: #dc0813;
}

.training-address {
    color: #888;
    font-size: 0.8em;
}

/* ==================== CONTACT ==================== */

.contact-person {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.contact-person:last-child {
    border-bottom: none;
}

.contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dc0813;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    text-align: center;
}

.contact-name {
    font-weight: bold;
    color: #000;
    font-size: 1.1em;
    margin-bottom: 3px;
}

.contact-role {
    color: #dc0813;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.contact-details {
    color: #666;
    font-size: 0.9em;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.contact-item svg {
    fill: #dc0813;
    flex-shrink: 0;
}

.contact-details a {
    color: #dc0813;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* ==================== HIGHLIGHT BOX ==================== */

.highlight-box {
    background: linear-gradient(135deg, #dc0813 0%, #a00610 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.3em;
    line-height: 1.8;
}

.highlight-box strong {
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

/* ==================== FEATURE GRID ==================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.feature-icon svg {
    fill: #dc0813;
}

.feature-title {
    font-weight: bold;
    color: #dc0813;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.feature-text {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
}

/* ==================== CTA BOX ==================== */

.cta-box {
    background: linear-gradient(135deg, #dc0813 0%, #a00610 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.cta-box h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #dc0813;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== HERO SECTION ==================== */

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('images/platz1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
    display: inline-block;
    background: #dc0813;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 8, 19, 0.4);
}

/* ==================== ABOUT SECTION ==================== */

.about-section {
    background: white;
    padding: 10px 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 25px;
}

.about-header h2 {
    font-size: 2.5em;
    color: #000;
    margin-bottom: 15px;
}

.about-header .underline {
    width: 80px;
    height: 4px;
    background: #dc0813;
    margin: 0 auto;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content strong {
    color: #dc0813;
}

/* ==================== FEATURES GRID ==================== */

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

.feature-card {
    background: #e8e8e8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(220, 8, 19, 0.2);
}

.feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.feature-content {
    padding: 25px;
    background: inherit;
}

/* ==================== HIGHLIGHTS SECTION ==================== */

.highlights-section {
    background: linear-gradient(135deg, #dc0813 0%, #a00610 100%);
    border-radius: 15px;
    padding: 60px 20px;
    color: white;
    margin-bottom: 60px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.highlight-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.highlight-icon > svg {
    fill: white;
}

.highlight-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.highlight-text {
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.6;
}

/* ==================== GALLERY SECTION ==================== */

.gallery-section {
    padding: 20px 20px;
    background: white;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 2.5em;
    color: #000;
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

/* ==================== MEDIA QUERIES ==================== */

@media (max-width: 960px) {
    .container {
        padding: 20px;
    }

    .team-header h1 {
        font-size: 2em;
    }

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

    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .highlight-box {
        font-size: 1.1em;
        padding: 20px;
    }

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

    .hero-content p {
        font-size: 1.2em;
    }

    .about-header h2,
    .gallery-header h2 {
        font-size: 2em;
    }

    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .training-seasons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 757px) {
    html,
    body {
        background-image: none;
        background: linear-gradient(135deg, #BA181B 0%, #A4161A 100%);
    }

    .container {
        padding: 0;
    }

    .links-container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 10px;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background-color: #D3D3D3;
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 1s ease-out;
    }

    .fussballde_widget {
        max-width: 100%;
        padding: 0;
    }

    .widget-wrapper {
        max-width: 100%;
        background: none;
    }

    .mobile-logo {
        position: absolute;
        left: 0;
        right: 0;
        display: block;
        z-index: -1;
    }

    .links-container > .logo {
        display: none;
    }

    nav a,
    .dropdown,
    .dropdown-btn {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        margin: 10px 2px;
        justify-content: center;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        display: block;
        padding: 20px;
    }

    .open-sidebar-button {
        margin-left: auto;
    }

    #sidebar-active:checked ~ .links-container {
        right: 0;
    }

    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }
}

/* Tablet: 2x2 Grid */
@media (max-width: 900px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-logo {
        order: 0;
    }

    .footer-item:nth-child(2) {
        order: 1;
    }

    .footer-item:nth-child(3) {
        order: 2;
    }

    .footer-item:nth-child(4) {
        order: 3;
    }
}

/* Mobile: 1 Spalte */
@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-logo .nav-logo {
        width: 80px;
    }
}