/* assets/css/style.css */

/* 1. Globaler Reset & Variablen */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #0f0f12;
    --bg-card: #1a1a20;
    --accent-magic: #9b59b6;
    --accent-nature: #2ecc71;
    --text-main: #ecf0f1;
    --nav-height: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 2. Navigation (Fixiert & Transparent) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(155, 89, 182, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-nature);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-magic);
}

/* 3. Hauptinhalt & Korrektur für Video-Startseite */
main.container {
    padding-top: calc(var(--nav-height) + 50px); 
    padding-bottom: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Spezieller Reset: Wenn das Video da ist, darf kein Padding den Header verschieben */
body:has(.hero-video-container) main.container {
    padding-top: 0 !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 4. Hero Video Sektion */
.hero-video-container {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.video-background iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Ratio */
    min-height: 100vh;
    min-width: 177.77vh; 
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,18,0.3) 0%, rgba(15,15,18,0.8) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text-box {
    z-index: 3;
}

.hero-text-box h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(155, 89, 182, 0.8);
    letter-spacing: 5px;
    margin-bottom: 10px;
}

/* 5. Feature Cards */
.features-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: -80px auto 60px auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(155, 89, 182, 0.3);
    padding: 40px 30px;
    border-radius: 15px;
    flex: 1;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-magic);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    color: var(--accent-magic);
    margin-bottom: 10px;
}

/* 6. Formulare & Buttons */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 20px;
    background-color: #0b0b0d;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    outline: none;
}

input:focus { border-color: var(--accent-magic); }

.btn-special, button, input[type="submit"] {
    background: linear-gradient(135deg, #8e44ad, #2980b9) !important;
    color: #fff !important;
    border-radius: 50px !important;
    border: none !important;
    padding: 15px 30px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-special:hover, button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.6) !important;
}

/* Spezialfall: Buttons in Formularen volle Breite */
.card button, .card input[type="submit"] {
    width: 100% !important;
}

/* Mobile */
@media (max-width: 900px) {
    .features-container { flex-direction: column; align-items: center; margin-top: -40px; }
    .feature-card { width: 100%; max-width: 400px; }
    .hero-video-container { height: 60vh; }
    nav { padding: 0 20px; }
}