﻿/* Mythical Dark Theme - Underworld Website */
/* FINAL GLOBAL VERSION - CSS ONLY */

:root {
    --mythical-dark-bg: #0a0a0f;
    --mythical-dark-surface: #1a1a2e;
    --mythical-dark-card: #16213e;
    --mythical-dark-accent: #0f3460;
    --mythical-gold: #d4af37;
    --mythical-gold-light: #f4d03f;
    --mythical-purple: #6a0dad;
    --mythical-purple-light: #8b2fc9;
    --mythical-red: #8b0000;
    --mythical-text: #e0e0e0;
    --mythical-text-dim: #b0b0b0;
    --mythical-border: #2a2a3e;
    --mythical-shadow: rgba(0, 0, 0, 0.8);
    --mythical-glow: rgba(212, 175, 55, 0.3);
}

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

body {
    background: linear-gradient(135deg, var(--mythical-dark-bg) 0%, #1a1a2e 50%, #0f0f1a 100%);
    background-attachment: fixed;
    color: var(--mythical-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 100px !important; 
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(106, 13, 173, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Row und Col Reset */
.row,
[class*="col-"] {
    overflow: visible !important;
    position: relative;
    z-index: 1 !important;
}

/* Navigation Styles - FIXED TOP */
.navbar-mythical {
    position: fixed !important; /* Fixiert die Leiste oben */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    
    /* Hintergrund fast deckend für Lesbarkeit */
    background: rgba(15, 15, 26, 0.98) !important;
    
    /* Deaktiviert Blur, um Dropdown-Layering Probleme zu verhindern */
    backdrop-filter: none !important; 
    
    border-bottom: 2px solid var(--mythical-gold);
    box-shadow: 0 4px 20px var(--mythical-shadow);
    padding: 1rem 0;
    
    /* Z-Index höher als alles andere */
    z-index: 10000 !important; 
}

.navbar-collapse {
    z-index: 10001 !important;
    position: relative;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--mythical-gold) !important;
    text-shadow: 0 0 10px var(--mythical-glow), 0 0 20px var(--mythical-glow);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--mythical-gold-light) !important;
    text-shadow: 0 0 15px var(--mythical-glow), 0 0 30px var(--mythical-glow);
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--mythical-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mythical-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--mythical-gold) !important;
    background: rgba(212, 175, 55, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--mythical-gold) !important;
    background: rgba(212, 175, 55, 0.15);
}

/* Dropdown-Menüs */
.dropdown-menu {
    background: var(--mythical-dark-card) !important;
    border: 1px solid var(--mythical-border) !important;
    box-shadow: 0 8px 32px var(--mythical-shadow) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0 !important;
    
    z-index: 10002 !important; /* Über der Navbar */
    position: absolute !important;
    
    display: none;
    margin: 0 !important;
    margin-top: 0.5rem !important;
}

.dropdown-menu.show {
    display: block !important;
}

.nav-item.dropdown {
    position: relative !important;
}

.dropdown-item {
    color: var(--mythical-text) !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--mythical-gold) !important;
}

.dropdown-divider {
    border-color: var(--mythical-border);
    margin: 0.5rem 0;
}

/* Card Styles */
.card-mythical,
.card,
.card-body {
    position: relative;
    overflow: visible !important;
    z-index: 1 !important; /* Niedrig halten */
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.card-mythical {
    background: linear-gradient(135deg, var(--mythical-dark-card) 0%, var(--mythical-dark-surface) 100%);
    border: 1px solid var(--mythical-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--mythical-shadow), 0 0 20px rgba(212, 175, 55, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-mythical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--mythical-gold), transparent);
    opacity: 0.6;
    overflow: hidden;
}

.card-mythical:hover {
    box-shadow: 0 12px 40px var(--mythical-shadow), 0 0 30px rgba(212, 175, 55, 0.2);
    border-color: var(--mythical-gold);
    margin-top: -5px;
    margin-bottom: calc(2rem + 5px);
}

.card-title-mythical {
    color: var(--mythical-gold);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--mythical-glow);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--mythical-gold);
    font-weight: bold;
    text-shadow: 0 0 10px var(--mythical-glow);
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Buttons */
.btn-mythical {
    background: linear-gradient(135deg, var(--mythical-gold) 0%, var(--mythical-gold-light) 100%);
    color: var(--mythical-dark-bg);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-mythical:hover {
    background: linear-gradient(135deg, var(--mythical-gold-light) 0%, var(--mythical-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: var(--mythical-dark-bg);
}

.btn-mythical-primary {
    background: linear-gradient(135deg, var(--mythical-purple) 0%, var(--mythical-purple-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.btn-mythical-primary:hover {
    background: linear-gradient(135deg, var(--mythical-purple-light) 0%, var(--mythical-purple) 100%);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.5);
    color: white;
}

.btn-mythical-success {
    background: linear-gradient(135deg, #2d5016 0%, #3d7016 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-mythical-success:hover {
    background: linear-gradient(135deg, #3d7016 0%, #2d5016 100%);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.5);
    color: white;
}

/* Tables */
.table-mythical {
    background: var(--mythical-dark-card);
    color: var(--mythical-text);
    border-radius: 8px;
    overflow: visible; 
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

.table-mythical thead {
    background: linear-gradient(135deg, var(--mythical-dark-accent) 0%, var(--mythical-dark-card) 100%);
    color: var(--mythical-gold);
    border-bottom: 2px solid var(--mythical-gold);
}

.table-mythical tbody tr {
    border-bottom: 1px solid var(--mythical-border);
    transition: all 0.2s ease;
}

.table-mythical tbody tr:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.01);
}

.table-mythical th,
.table-mythical td {
    padding: 1rem;
    vertical-align: middle;
}

/* Forms */
.form-control-mythical {
    background: var(--mythical-dark-surface);
    border: 1px solid var(--mythical-border);
    color: var(--mythical-text);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control-mythical:focus {
    background: var(--mythical-dark-card);
    border-color: var(--mythical-gold);
    color: var(--mythical-text);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    outline: none;
}

.form-label-mythical {
    color: var(--mythical-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer-mythical {
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.95) 0%, rgba(10, 10, 15, 0.95) 100%);
    border-top: 2px solid var(--mythical-gold);
    color: var(--mythical-text-dim);
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -4px 20px var(--mythical-shadow);
}

.footer-mythical a {
    color: var(--mythical-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-mythical a:hover {
    color: var(--mythical-gold-light);
    text-shadow: 0 0 10px var(--mythical-glow);
}

/* Cookie Banner */
.cookie-banner-mythical {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    border-top: 2px solid var(--mythical-gold);
    padding: 1.5rem;
    box-shadow: 0 -4px 30px var(--mythical-shadow);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-banner-mythical.show {
    display: block;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner-mythical .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner-mythical .cookie-text {
    flex: 1;
    min-width: 300px;
    color: var(--mythical-text);
}

.cookie-banner-mythical .cookie-actions {
    display: flex;
    gap: 1rem;
}

/* Login Modal */
.login-modal-mythical .modal-content {
    background: var(--mythical-dark-card);
    border: 1px solid var(--mythical-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--mythical-shadow);
}

.login-modal-mythical .modal-header {
    background: linear-gradient(135deg, var(--mythical-dark-accent) 0%, var(--mythical-dark-card) 100%);
    border-bottom: 2px solid var(--mythical-gold);
    color: var(--mythical-gold);
}

.login-modal-mythical .modal-title {
    color: var(--mythical-gold);
    font-weight: bold;
    text-shadow: 0 0 10px var(--mythical-glow);
}

.login-modal-mythical .btn-close {
    filter: invert(1);
}

.login-modal-mythical .modal-body {
    background: var(--mythical-dark-card);
    color: var(--mythical-text);
}

.login-modal-mythical .modal-footer {
    background: var(--mythical-dark-card);
    border-top: 1px solid var(--mythical-border);
}

/* Alert Messages */
.alert-mythical {
    background: var(--mythical-dark-card);
    border: 1px solid var(--mythical-border);
    border-radius: 8px;
    color: var(--mythical-text);
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-mythical-success {
    border-color: #2d5016;
    background: rgba(45, 80, 22, 0.2);
    color: #90ee90;
}

.alert-mythical-danger {
    border-color: var(--mythical-red);
    background: rgba(139, 0, 0, 0.2);
    color: #ff6b6b;
}

.alert-mythical-warning {
    border-color: var(--mythical-gold);
    background: rgba(212, 175, 55, 0.2);
    color: var(--mythical-gold);
}

/* Specials Placeholder */
.specials-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--mythical-text-dim);
}

.specials-placeholder-icon {
    font-size: 4rem;
    color: var(--mythical-gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--mythical-glow);
}

.specials-placeholder h3 {
    color: var(--mythical-gold);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.4rem; }
    .card-mythical { padding: 1.5rem; }
    .cookie-banner-mythical .cookie-content { flex-direction: column; text-align: center; }
    .cookie-banner-mythical .cookie-actions { width: 100%; justify-content: center; }
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--mythical-dark-bg); }
::-webkit-scrollbar-thumb { background: var(--mythical-gold); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--mythical-gold-light); }

/* Utility Classes */
.text-mythical-gold { color: var(--mythical-gold) !important; }
.text-mythical-purple { color: var(--mythical-purple-light) !important; }
.bg-mythical-dark { background: var(--mythical-dark-bg) !important; }
.bg-mythical-card { background: var(--mythical-dark-card) !important; }
.shadow-mythical { box-shadow: 0 8px 32px var(--mythical-shadow) !important; }