/**
 * Frontend CSS - FANBUS.KOELN Design
 */

:root {
    --fc-red: #c31924;
    --fc-red-dark: #9a1419;
    --fc-white: #FFFFFF;
    --fc-gray: #333333;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333 !important;
    background-color: #f8f9fa;
}

/* ============================================
   HAMBURGER MENU - EXTRA SICHTBAR OP MOBILE!
   ============================================ */

.navbar-toggler {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 12px 16px !important;
    border: 4px solid white !important;
    background-color: rgba(255,255,255,0.3) !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 60px;
    min-height: 50px;
    position: relative !important;
    z-index: 9999 !important;
}

.navbar-toggler:hover,
.navbar-toggler:active,
.navbar-toggler:focus {
    background-color: rgba(255,255,255,0.5) !important;
    border-color: white !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.5) !important;
}

/* EXTRA DICKES Icon för Mobile! */
.navbar-toggler-icon {
    display: block !important;
    width: 35px !important;
    height: 35px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* MOBILE: Extra groß und sichtbar! */
@media (max-width: 991px) {
    .navbar-toggler {
        padding: 14px 18px !important;
        border: 5px solid white !important;
        min-width: 70px;
        min-height: 60px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    
    .navbar-toggler-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ============================================
   NAVBAR - IMMER ROTER HINTERGRUND!
   ============================================ */
.navbar,
.navbar.bg-fc,
.navbar-dark,
nav.navbar {
    background: linear-gradient(135deg, #c31924, #9a1419) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    padding: 15px 0 !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* Container muss Hamburger nicht überschneiden! */
.navbar .container {
    position: relative !important;
    overflow: visible !important;
}

/* ALLE Navbar-Elemente MÜSSEN sichtbar sein! */
.navbar *,
.navbar-dark *,
.navbar-nav *,
.navbar .nav-link,
.navbar-dark .navbar-nav .nav-link,
nav.navbar .nav-link {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.15) !important;
}

.navbar-brand,
.navbar-brand *,
.navbar .navbar-brand {
    font-size: 22px !important;
    font-weight: bold !important;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 28px;
}

.navbar-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
    }
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    transition: all 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.15);
    border-radius: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link i {
    margin-right: 5px;
}

/* Dropdown Toggle (User-Menü) - IMMER SICHTBAR */
.navbar-nav .dropdown-toggle {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

.navbar-nav .dropdown-toggle:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.15) !important;
}

/* Dropdown darf Hamburger nicht überdecken! */
.navbar-nav .dropdown,
.navbar-nav .dropdown-menu {
    z-index: 5 !important;
}

/* Dropdown-Menü Schriftfarbe - DUNKLER für bessere Lesbarkeit! */
.dropdown-menu {
    background-color: white !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.dropdown-item {
    color: #333333 !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #c31924 !important;
}

.dropdown-item i {
    color: #666666 !important;
    margin-right: 8px;
    width: 18px;
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: #c31924 !important;
}

/* ============================================
   MOBILE: EINFACH & GUT!
   ============================================ */
@media (max-width: 991px) {
    /* Hamburger rechts - klaar un sichtbar! */
    .navbar-toggler {
        order: 10 !important;
        margin-left: auto !important;
    }
    
    /* Logo links */
    .navbar-brand {
        order: 1 !important;
    }
    
    /* Navbar-Container: Flexbox för richtije Ordnung */
    .navbar > .container {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    /* Collapse: Volle Breite, unter Navbar */
    .navbar-collapse {
        order: 20 !important;
        flex-basis: 100% !important;
        width: 100% !important;
    }
}

.btn-register {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000000 !important;
    border: 3px solid #FFD700 !important;
    border-radius: 25px;
    padding: 10px 25px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    text-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-register:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700) !important;
    color: #000000 !important;
    border: 3px solid #ffffff !important;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
}

/* Admin Button - EXTRA AUFFÄLLIG */
.btn-admin {
    background-color: rgba(255,215,0,0.9) !important;
    color: #000 !important;
    border-radius: 20px;
    padding: 8px 20px !important;
    font-weight: 700;
    border: 2px solid rgba(255,215,0,1) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-admin:hover {
    background-color: rgba(255,215,0,1) !important;
    color: #000 !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255,215,0,0.5);
}

/* Mobile Navigation Styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(237, 28, 36, 0.98);
        padding: 25px;
        margin-top: 20px;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .nav-item {
        margin: 8px 0;
        text-align: left;
    }
    
    .nav-link {
        padding: 15px 20px !important;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
        display: block;
    }
    
    .nav-link:hover {
        background-color: rgba(255,255,255,0.25);
        transform: translateX(5px);
    }
    
    .dropdown-menu {
        background-color: white !important;
        border: 1px solid #ddd !important;
        margin-left: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    .dropdown-item {
        color: #333333 !important;
        font-weight: 500 !important;
        padding: 12px 20px;
    }
    
    .dropdown-item:hover {
        background-color: #f8f9fa !important;
        color: #c31924 !important;
    }
    
    .dropdown-item i {
        color: #666666 !important;
    }
    
    .dropdown-item:hover i {
        color: #c31924 !important;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 30px;
    padding-bottom: 30px;
}

/* ============================================
   PREMIUM PARTNER BANNER
   ============================================ */

.premium-partner-banner {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-partner-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF6B00, #FFD700);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.premium-badge i {
    animation: pulse 2s infinite;
}

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

.premium-logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.premium-logo-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.premium-logo-placeholder i {
    font-size: 60px;
    color: #FF6B00;
}

.premium-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.premium-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-features li {
    padding: 8px 0;
    color: #333;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-features i {
    color: #28a745;
    font-size: 18px;
}

.btn-premium {
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    border: none;
    color: white;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 0, 0.6);
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    color: white;
}

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

@media (max-width: 768px) {
    .premium-partner-banner {
        padding: 20px;
    }
    
    .premium-title {
        font-size: 24px;
    }
    
    .premium-features {
        font-size: 14px;
    }
    
    .btn-premium {
        width: 100%;
        margin-top: 15px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
    /* Hintergrund-Bild (GIF) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

/* Overlay für bessere Lesbarkeit des Textes */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(195, 25, 36, 0.85), 
        rgba(154, 20, 25, 0.85)
    );
    z-index: 1;
}

/* GIF-Hintergrund kleiner machen */
.hero-section[style*="background-image"] {
    background-size: 400px auto !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Content über dem Overlay */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content .lead {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

/* Section Title */
.section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--fc-gray);
    margin-bottom: 30px;
    text-align: center;
}

.section-title i {
    color: var(--fc-red);
    margin-right: 10px;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.match-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.match-competition {
    font-weight: 600;
    color: var(--fc-red);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-teams {
    text-align: center;
    margin-bottom: 20px;
}

.match-team {
    font-size: 18px;
    margin: 10px 0;
}

.match-vs {
    color: var(--fc-red);
    font-weight: bold;
    font-size: 14px;
    margin: 10px 0;
}

.match-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.match-info > div {
    margin: 8px 0;
}

.match-info i {
    color: var(--fc-red);
    width: 20px;
    margin-right: 8px;
}

.match-rides {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.rides-count {
    color: var(--fc-red);
    font-weight: 600;
}

.no-rides {
    color: #999;
    font-size: 14px;
}

.match-actions .btn {
    width: 100%;
}

/* Features Section */
.features-section {
    border-radius: 30px;
    margin: 50px 0;
    padding: 50px 20px !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    color: white;
}

.features-section h4 {
    color: var(--fc-gray);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Auth Pages */
.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: var(--fc-gray);
    margin-bottom: 10px;
}

.auth-header h2 i {
    color: var(--fc-red);
    margin-right: 10px;
}

.auth-form .form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.auth-form .form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
}

.auth-form .form-control:focus {
    border-color: var(--fc-red);
    box-shadow: 0 0 0 0.2rem rgba(195, 25, 36, 0.15);
}

.auth-footer a {
    color: var(--fc-red);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 36px;
    font-weight: bold;
    color: var(--fc-gray);
    margin-bottom: 10px;
}

.dashboard-header h1 i {
    color: var(--fc-red);
    margin-right: 10px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--fc-red), var(--fc-red-dark));
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--fc-gray);
}

.stat-label {
    color: #777;
    font-size: 14px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.card-header {
    background: white;
    border-bottom: 2px solid #f0f0f0;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.card-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--fc-gray);
}

.card-header h5 i {
    color: var(--fc-red);
    margin-right: 8px;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--fc-red);
    border-color: var(--fc-red);
}

.btn-primary:hover {
    background: var(--fc-red-dark);
    border-color: var(--fc-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(195, 25, 36, 0.3);
}

.btn-outline-primary {
    color: var(--fc-red);
    border-color: var(--fc-red);
}

.btn-outline-primary:hover {
    background: var(--fc-red);
    border-color: var(--fc-red);
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 8px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert i {
    margin-right: 8px;
}

/* List Group */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

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

/* Footer */
.footer {
    margin-top: 50px;
    padding: 30px 0;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 15px;
}

.footer ul {
    padding: 0;
}

.footer a {
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--fc-red) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content .lead {
        font-size: 16px;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading i {
    font-size: 48px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

