/* Variablen für Farben & Fonts */
:root {
    --primary-red: #e4002b;
    --dark-bg: #111111;
    --light-gray: #f4f4f4;
    --text-white: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* Header & Navigation */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.logo {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
}

.red { color: var(--primary-red); }

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li { margin-left: 25px; }

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover { color: var(--primary-red); }

.btn-red {
    background-color: var(--primary-red);
    padding: 10px 20px;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}

.hero-overlay {
    background: rgba(0,0,0,0.4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background: var(--primary-red);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

.slider-container {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 1s ease-in-out; /* Weicher Übergang */
    z-index: 1;
}

.slide.active {
    opacity: 1; /* Nur die aktive Slide ist sichtbar */
    z-index: 2;
}

/* Pfeile */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    transition: background 0.3s;
}

.prev:hover, .next:hover { background: var(--primary-red); }
.prev { left: 20px; }
.next { right: 20px; }

/* Grid Layout */
.container {
    max-width: 1200px;
    margin: 5px auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-red);
    padding-left: 15px;
}

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

/* Event Cards */
.event-card {
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-red);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-info { padding: 20px; }

.event-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.date { font-weight: bold; color: #555; }
.location { color: #888; font-size: 0.9rem; margin-bottom: 15px; }

.read-more {
    text-decoration: none;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

/* Blog Detail Spezifisch */
.blog-post {
    background-color: #fff;
}

/* Hero Section */
.post-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax-Effekt */
    display: flex;
    align-items: flex-end;
    color: #fff;
    padding-bottom: 60px;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.post-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 15px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

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

.post-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.meta-item {
    margin-right: 20px;
}

/* Content Area */
.post-container {
    max-width: 800px; /* Schmaler für bessere Lesbarkeit */
    margin: -40px auto 60px; /* Schiebt den Content leicht über das Hero-Bild */
    background: #fff;
    position: relative;
    z-index: 10;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.post-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

/* Styling für WordPress-Content (Bilder, Absätze) */
.post-body p {
    margin-bottom: 25px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.post-body h2, .post-body h3 {
    font-family: 'Oswald', sans-serif;
    margin: 40px 0 20px;
    text-transform: uppercase;
}

/* Zurück Button */
.back-to-blog {
    display: inline-block;
    margin-top: 40px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.back-to-blog:hover {
    letter-spacing: 1px;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .post-hero h1 { font-size: 2.2rem; }
    .post-container {
        margin-top: 0;
        padding: 25px;
    }
    .post-hero { height: 40vh; }
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .navbar { padding: 20px; }
    nav { display: none; } /* Einfachheitshalber für dieses Beispiel */
    .hero-content h1 { font-size: 2.5rem; }
}

/* Grundlegende Navbar-Struktur */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0,0,0,0.9); /* Oder transparent je nach Wunsch */
    position: relative;
    z-index: 1000;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-list li { margin-left: 20px; }

/* Burger Button - Standardmäßig unsichtbar */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

:root {
    --iron-red: #e30613;
    --iron-dark: #1a1a1a;
    --iron-light: #f4f4f4;
}

.gallery-container { padding: 40px 0; background: #fff; }

/* Event Selektor Cards */
.event-selector {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    margin-bottom: 50px;
}

.event-chip {
    min-width: 250px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    text-decoration: none;
}

.event-chip.active, .event-chip:hover {
    filter: grayscale(0%);
    border-color: var(--iron-red);
    transform: translateY(-5px);
}

.event-chip .overlay {
    position: absolute;
    bottom: 0; background: rgba(0,0,0,0.7);
    width: 100%; color: #fff; padding: 10px;
    font-size: 0.9rem; font-weight: bold;
}

/* Gallery Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #eee;
}

.photo-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.photo-item:hover img { transform: scale(1.05); }

.photo-comment {
    position: absolute;
    bottom: -100%; left: 0; width: 100%;
    background: rgba(227, 6, 19, 0.9); /* Ironman Red */
    color: white; padding: 10px;
    transition: bottom 0.3s ease;
}

.photo-item:hover .photo-comment { bottom: 0; }

/* Mobile Ansicht (unter 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-container {
        display: none; /* Erstmal verstecken */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        padding: 20px 0;
    }

    .nav-container.active {
        display: block; /* Zeigen, wenn aktiv */
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }
}

/* Ranking Modern Layout - Classic */
.ranking-hero-simple { text-align: center; margin-bottom: 30px; }
.section-subtitle { color: #666; margin-top: -15px; margin-bottom: 30px; font-size: 1.1rem; }

.filter-card-modern {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.filter-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.filter-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}

.filter-item select, .filter-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
}

.rank-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.rank-table-modern tr td {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.rank-table-modern tr td:first-child { border-left: 1px solid #eee; border-radius: 10px 0 0 10px; }
.rank-table-modern tr td:last-child { border-right: 1px solid #eee; border-radius: 0 10px 10px 0; }

.points-display {
    background: #f4f7f9;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
    color: #333;
}

/* Top Ranks Highlighting */
.rank-1 .rank-badge { background: #ffd700; color: #000; }
.rank-2 .rank-badge { background: #c0c0c0; color: #000; }
.rank-3 .rank-badge { background: #cd7f32; color: #fff; }

.ranking-hero {
    background: linear-gradient(135deg, var(--aloha-red) 0%, #a32426 100%);
    color: white;
    padding: 80px 0 100px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.filter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.3);
}

.info-block {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    border-left: 5px solid var(--aloha-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.info-title { font-weight: 800; text-transform: uppercase; font-size: 0.9rem; color: var(--aloha-dark); margin-bottom: 15px; display: flex; align-items: center; }
.info-title i { color: var(--aloha-red); margin-right: 10px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.calc-item { background: #f8f9fa; padding: 12px; border-radius: 10px; border: 1px solid #eee; }
.calc-item h6 { font-weight: 700; font-size: 0.8rem; margin-bottom: 5px; color: var(--aloha-red); }
.calc-item p { font-size: 0.75rem; margin: 0; color: #666; line-height: 1.3; }

.filter-header-group { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.form-label-inline { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; color: #6c757d; letter-spacing: 0.5px; margin: 0; }

.select-minimal {
    border: none;
    background: transparent;
    font-weight: 800;
    color: var(--aloha-red);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
}
.select-minimal:focus { outline: none; }

.form-control-sport {
    border-radius: 12px;
    border: 2px solid #edf2f7;
    padding: 10px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.form-control-sport:focus { border-color: var(--aloha-red); box-shadow: 0 0 0 4px rgba(214, 54, 56, 0.1); outline: none; }

.search-group { position: relative; }
.search-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #adb5bd; }
.search-input-sport { padding-left: 45px !important; height: 45px; }

.rank-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; margin-top: 10px; }
.rank-table tbody tr { transition: all 0.2s ease; cursor: pointer; }
.rank-table tbody tr:hover { transform: translateY(-3px); }
.rank-table td { background: white; padding: 18px 25px; vertical-align: middle; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.rank-table td:first-child { border-radius: 15px 0 0 15px; }
.rank-table td:last-child { border-radius: 0 15px 15px 0; }

.rank-number { font-weight: 900; font-size: 1.2rem; color: var(--aloha-dark); }
.top-1 .rank-number { color: var(--gold); }
.top-2 .rank-number { color: var(--silver); }
.top-3 .rank-number { color: var(--bronze); }

.points-pill { background: var(--aloha-dark); color: white; padding: 6px 15px; border-radius: 10px; font-weight: 800; }
.top-1 .points-pill { background: var(--aloha-red); }

.modal-content { border-radius: 20px; border: none; }
.modal-header-sport { background: var(--aloha-dark); color: white; border: none; }
