/* === Hintergrundvideo === */
#background-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

#background-video.fade-out {
    opacity: 0;
}

#background-video.fade-in {
    opacity: 1;
}

/* === Overlay für Tiefe === */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 40% 20%, rgba(0,0,0,0.35), rgba(0,0,0,0.8));
    z-index: -1;
    pointer-events: none;
}

/* === Smooth transitions === */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* === Body Setup für Footer-Platz === */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Damit Content den Footer nicht überlappt */
main {
    flex: 1 0 auto;
    animation: fadeIn 1.2s ease-out;
}

/* === Footer am unteren Rand === */
footer {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    z-index: 10;
}

/* === Headline Glow === */
h1 {
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.4), 0 0 20px rgba(0, 136, 255, 0.2);
}

/* === Buttons === */
.btn-primary, .btn-secondary {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 136, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}
.btn-primary:hover, .btn-secondary:hover {
    background-color: rgba(0, 136, 255, 0.35);
    transform: translateY(-2px);
}

/* === Glassmorphism Cards === */
.card {
    background: rgba(25, 25, 25, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.3);
}

/* === Navbar halbtransparent === */
.navbar {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Textfarbe anpassen === */
p, h4, h1, footer {
    color: rgba(255, 255, 255, 0.9);
}

/* === Navbar Farbanpassung === */
.navbar,
.navbar a,
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover,
.navbar .dropdown-item:hover {
    color: #00aaff !important;
}

.navbar-toggler {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Fix für Dropdowns */
.dropdown-menu {
    background: rgba(25, 25, 25, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-item:hover {
    background: rgba(0, 136, 255, 0.25);
}

/* === Navbar Glassmorphism Style === */
.navbar {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 20;
}

/* Wenn man scrollt: leicht dunkler */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.65) !important;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.25);
}

/* Brand & Links */
.navbar .navbar-brand {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar .navbar-brand:hover {
    color: #00aaff !important;
}

/* Hauptlinks */
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar .nav-link:hover {
    color: #00aaff !important;
    transform: translateY(-1px);
}

/* Aktiver Link */
.navbar .nav-link.active {
    color: #00aaff !important;
    font-weight: 600;
}

/* Dropdown Toggle Icon */
.navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

/* === Dropdown Style === */
.dropdown-menu {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease forwards;
    overflow: hidden;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.3s ease, color 0.3s ease;
    padding: 8px 16px;
}

.dropdown-item:hover {
    background: rgba(0, 136, 255, 0.25);
    color: #fff;
}

/* === Navbar Toggle (Mobile) === */
.navbar-toggler {
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === Icons (Video/Theme Buttons) === */
.btn-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-action:hover {
    background: rgba(0, 136, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

/* === Sprachumschalter === */
#lang-switcher {
    background: rgba(0, 0, 0, 0.35);
    color: #00aaff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: background 0.3s ease;
}

#lang-switcher:hover {
    background: rgba(0, 136, 255, 0.2);
}

/* === Responsive Anpassungen === */
@media (max-width: 992px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(12px);
        border-radius: 0 0 12px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
    }
    .dropdown-menu {
        background: rgba(20, 20, 20, 0.9);
        border-radius: 0;
    }
}


/* === Mobile Anpassungen === */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    .card {
        margin-bottom: 20px;
    }
}

/* === Subtiles Fade-in === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
