/* ══════════════════════════════════════════════════════════════
   LAKESIDE CHALLENGE – Main Stylesheet
   ══════════════════════════════════════════════════════════════ */

/* ── ALLGEMEIN ──────────────────────────────────────────────── */
:root {
    --lc-primary: #0a1628;
    --lc-secondary: #1a3a5c;
    --lc-accent: #f39c12;
    --lc-blue: #0d6efd;
    --lc-green: #28a745;
    --lc-red: #dc3545;
    --lc-dark: #1a1a1a;
    --lc-light: #f8f9fa;
    --lc-shadow: 0 4px 15px rgba(0,0,0,.08);
    --lc-shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --lc-radius: 12px;
    --lc-radius-sm: 8px;
    --lc-transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    transition: var(--lc-transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* ── SELECTION ──────────────────────────────────────────────── */
::selection {
    background: var(--lc-secondary);
    color: white;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    padding: 12px 0;
    transition: var(--lc-transition);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar .nav-link {
    font-weight: 600;
    font-size: 14px;
    padding: 8px 15px !important;
    border-radius: 6px;
    transition: var(--lc-transition);
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--lc-shadow-lg);
    border-radius: var(--lc-radius-sm);
    padding: 8px;
    animation: fadeInDown 0.2s ease;
}

.navbar .dropdown-item {
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 14px;
    transition: var(--lc-transition);
}

.navbar .dropdown-item:hover {
    background: var(--lc-light);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── HERO SECTIONS ──────────────────────────────────────────── */

/* Startseite Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lc-primary), var(--lc-secondary));
    color: white;
    padding: 190px 0;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('/assets/img/hero-bg.jpg');
    background-position: center 20%;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 8s ease;
}



.hero-section:hover .hero-bg {
    transform: scale(1.05);
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,22,40,0.3), rgba(26,58,92,0.1));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Alle Unterseiten-Heroes */
.kat-hero,
.team-hero,
.result-hero,
.galerie-hero,
.info-hero,
.kontakt-hero {
    background: linear-gradient(135deg, rgba(10,22,40,0.9), rgba(26,58,92,0.85));
    color: white;
    padding: 60px 0 40px;
}

/* Hero-Titel alle Seiten */
.hero-section h1,
.kat-hero h1,
.team-hero h1,
.result-hero h1,
.galerie-hero h1,
.info-hero h1,
.kontakt-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Hero Subtexte */
.hero-section p,
.kat-hero p,
.team-hero p,
.result-hero p,
.galerie-hero p,
.info-hero p,
.kontakt-hero p {
    text-shadow: 0 1px 5px rgba(0,0,0,0.15);
}


/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
    margin-bottom: 0;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

.breadcrumb a {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
    font-weight: 600;
    border-radius: var(--lc-radius-sm);
    transition: var(--lc-transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--lc-blue);
    border-color: var(--lc-blue);
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    box-shadow: 0 4px 15px rgba(13,110,253,0.3);
}

.btn-dark {
    background: var(--lc-dark);
    border-color: var(--lc-dark);
}

.btn-dark:hover {
    background: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-success:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
    border-radius: var(--lc-radius);
    overflow: hidden;
    transition: var(--lc-transition);
}

.card-header {
    font-weight: 600;
    font-size: 15px;
}

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── TABLES ─────────────────────────────────────────────────── */
.table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.table-hover tbody tr {
    transition: background 0.2s;
}

/* ── FORMS ──────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: var(--lc-blue);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.form-control,
.form-select {
    border-radius: var(--lc-radius-sm);
    transition: var(--lc-transition);
}

.input-group-text {
    border-radius: var(--lc-radius-sm) 0 0 var(--lc-radius-sm);
}

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert {
    border: none;
    border-radius: var(--lc-radius-sm);
    font-weight: 500;
}

/* ── PROGRESS ───────────────────────────────────────────────── */
.progress {
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* ── TABS ───────────────────────────────────────────────────── */
.nav-tabs {
    border-bottom: 2px solid #eee;
}

.nav-tabs .nav-link {
    font-weight: 600;
    font-size: 14px;
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    transition: var(--lc-transition);
}

.nav-tabs .nav-link:hover {
    color: var(--lc-blue);
    border-bottom-color: rgba(13,110,253,0.3);
}

.nav-tabs .nav-link.active {
    color: var(--lc-blue);
    border-bottom-color: var(--lc-blue);
    background: transparent;
}

/* ── ACCORDION ──────────────────────────────────────────────── */
.accordion-button {
    font-weight: 600;
    font-size: 14px;
}

.accordion-button:not(.collapsed) {
    background: var(--lc-light);
    color: var(--lc-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* ── FOOTER FIX ─────────────────────────────────────────────── */
footer {
    color: rgba(255,255,255,0.9) !important;
}

footer .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

footer h5 {
    color: white !important;
}

footer a {
    color: rgba(255,255,255,0.7) !important;
}

footer a:hover {
    color: white !important;
}

footer hr {
    border-color: rgba(255,255,255,0.1) !important;
}

footer .list-unstyled li {
    color: rgba(255,255,255,0.6);
}

footer .text-center.text-muted {
    color: rgba(255,255,255,0.4) !important;
}


/* ── ANIMATIONEN ────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}

/* ── HOVER EFFEKTE ──────────────────────────────────────────── */
.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--lc-shadow-lg);
}

.hover-scale {
    transition: transform 0.3s;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* ── COUNTDOWN ──────────────────────────────────────────────── */
#countdown strong {
    font-size: 1.1em;
    margin: 0 2px;
}

/* ── TURNIER FAKTEN ─────────────────────────────────────────── */
.display-4.fw-bold {
    font-family: 'Montserrat', sans-serif;
}

/* ── LIVE PULSE ─────────────────────────────────────────────── */
.badge.bg-danger i.fa-circle {
    animation: blinker 1.2s linear infinite;
}

@keyframes blinker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ── TOOLTIP FIX ────────────────────────────────────────────── */
[title] {
    position: relative;
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
    .navbar, footer, .btn, .filter-bar, .auto-refresh-info,
    .live-section, #countdown, .breadcrumb {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablets */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 !important;
    }
    .hero-section h1,
    .display-5 {
        font-size: 2rem !important;
    }
    .display-3 {
        font-size: 2.5rem !important;
    }
    .navbar-brand span {
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0 !important;
    }
    .hero-section h1,
    .display-5 {
        font-size: 1.6rem !important;
    }
    .display-3 {
        font-size: 2rem !important;
    }
    .display-4 {
        font-size: 1.5rem !important;
    }

    /* Match Cards */
    .match-card .card-body {
        padding: 8px 10px !important;
        font-size: 12px;
    }
    .team-logo-sm {
        width: 18px;
        height: 18px;
    }

    /* Tabs */
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Tabellen */
    .table {
        font-size: 12px;
    }
    .table th, .table td {
        padding: 6px 8px;
    }

    /* Rangliste */
    .rangliste th, .rangliste td {
        padding: 6px 5px;
        font-size: 11px;
    }

    /* Footer */
    footer {
        text-align: center;
    }
    footer .col-md-4 {
        margin-bottom: 20px;
    }

    /* Buttons */
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Filter */
    .filter-bar {
        padding: 10px 12px;
    }

    /* Stat Boxes */
    .stat-box .number {
        font-size: 1.3rem;
    }

    /* Lightbox */
    .lightbox-img {
        max-width: 95%;
        max-height: 80vh;
    }
    .lightbox-nav {
        padding: 10px 12px;
        font-size: 1.3rem;
    }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }

    /* Live Section */
    .live-match {
        padding: 10px;
    }
    .live-match .display-4 {
        font-size: 1.8rem !important;
    }

    /* Kontakt Info Items */
    .kontakt-info-item .icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    /* Album Cards */
    .album-overlay h5 {
        font-size: 14px;
    }
}

/* Kleine Smartphones */
@media (max-width: 374px) {
    .hero-section h1,
    .display-5 {
        font-size: 1.3rem !important;
    }
    .navbar-brand img {
        height: 30px !important;
    }
    .navbar-brand span {
        font-size: 0.9rem;
    }
    .btn {
        font-size: 13px;
    }
}

/* ── DARK MODE (optional, für Zukunft) ──────────────────────── */
@media (prefers-color-scheme: dark) {
    /* Kann später aktiviert werden */
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── UTILITY KLASSEN ────────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, var(--lc-primary), var(--lc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--lc-primary), var(--lc-secondary));
}

.border-radius {
    border-radius: var(--lc-radius);
}

.shadow-custom {
    box-shadow: var(--lc-shadow);
}

.shadow-custom-lg {
    box-shadow: var(--lc-shadow-lg);
}

.overflow-hidden {
    overflow: hidden;
}

.aspect-4-3 {
    aspect-ratio: 4/3;
    object-fit: cover;
}

.aspect-16-9 {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.min-h-200 { min-height: 200px; }
.min-h-300 { min-height: 300px; }

/* ── GOOGLE MAPS RESPONSIVE ─────────────────────────────────── */
.card-body iframe {
    width: 100%;
    min-height: 300px;
    border: none;
}

/* ── HERO HINTERGRUNDBILD ───────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    transition: transform 8s ease;
}

.hero-section:hover .hero-bg {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 0 !important;
    }
}

