:root {
    --primary: #cfff04; /* Neon Yellow/Green */
    --dark: #0a0a0a;
    --gray: #151515;
    --text: #ffffff;
}

/* bebas-neue-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/bebas-neue-v16-latin-regular.woff2') format('woff2'); 
}  

/* inter-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2'); 
}
  
/* inter-700 - latin */
@font-face {
    font-display: swap; 
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/inter-v20-latin-700.woff2') format('woff2'); 
}

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

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Utility Class for Mobile Scroll Lock */
body.no-scroll {
    overflow: hidden;
}

/* SCROLL FIX */
section {
    scroll-margin-top: 100px; 
}

/* NAVIGATION */
#navbar {
    position: fixed;
    top: 0; 
    width: 100%;
    padding: 25px;
    z-index: 1000;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-bottom: 1px solid rgba(207, 255, 4, 0.2);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-decoration: none;
    color: white;
    letter-spacing: 2px;
    position: relative;
    z-index: 1001; /* Keeps logo above mobile menu overlay */
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    padding: 10px 0; /* Better touch target */
}

.nav-links a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    color: black;
    padding: 10px 22px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: 0.3s;
}

.btn-nav:hover {
    box-shadow: 0 4px 15px rgba(207, 255, 4, 0.3);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    height: 100dvh; /* Mobile viewport height fix */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), 
                url('media/tours/DSC00783.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 15vw, 12rem);
    line-height: 0.85;
}

.hero p {
    font-weight: bold;
    letter-spacing: clamp(2px, 2vw, 5px);
    margin-top: 15px;
    color: var(--primary);
    font-size: clamp(0.8rem, 3vw, 1.2rem);
}

.hero-btns {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Helps smaller screens */
}

.btn-primary, .btn-outline {
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    border-radius: 2px;
    display: inline-block;
}

.btn-primary { background: var(--primary); color: black; border: 2px solid var(--primary); }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(207, 255, 4, 0.3); }
.btn-outline:hover { background: white; color: black; transform: translateY(-3px); }

/* GRID SYSTEM */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 20px;
}

.media-section { margin-bottom: 120px; }

.outline-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.media-item {
    background: var(--gray);
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
}

.media-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(20%);
}

@media (hover: hover) {
    .media-item:hover img {
        transform: scale(1.08);
        filter: grayscale(0%);
    }
}

/* PLACEHOLDERS */
.media-item.placeholder {
    background: #111;
    border: 1px dashed #333;
}

.no-media-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
}

.no-media-box i { font-size: 2.5rem; margin-bottom: 15px; color: var(--primary); }

/* TRAINING CARDS */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    margin-bottom: 120px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.train-card {
    padding: 60px 40px;
    background: var(--gray);
}

.train-card.highlight {
    background: var(--primary);
    color: black;
}

.train-card h3 { 
    font-family: 'Bebas Neue', sans-serif; 
    font-size: 2.5rem; 
    margin-bottom: 15px;
}

/* GLITCH EFFECT */
.glitch { position: relative; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch::before { left: 3px; text-shadow: -3px 0 #ff00c1; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim 5s infinite linear alternate-reverse; }
.glitch::after { left: -3px; text-shadow: -3px 0 #00fff9; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim2 5s infinite linear alternate-reverse; }

@keyframes glitch-anim { 0% { clip: rect(10px, 9999px, 20px, 0); } 100% { clip: rect(80px, 9999px, 100px, 0); } }
@keyframes glitch-anim2 { 0% { clip: rect(60px, 9999px, 70px, 0); } 100% { clip: rect(10px, 9999px, 40px, 0); } }

/* CONTACT SECTION CLASSES */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.contact-input {
    padding: 15px;
    background: var(--gray);
    border: 1px solid #333;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* SCROLL FIX: Needs to be >=16px to prevent iOS auto-zoom */
    width: 100%;
    resize: vertical;
    border-radius: 4px;
    transition: 0.3s;
}

.contact-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(207, 255, 4, 0.1);
}

.contact-btn {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-top: auto;
    border-radius: 4px;
}

/* MODERN FOOTER */
.main-footer {
    background: #050505;
    padding: 80px 20px 30px;
    border-top: 1px solid rgba(207, 255, 4, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #888;
    max-width: 300px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 44px; /* Mobile touch target min size */
    height: 44px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    padding: 5px 0;
    display: inline-block; /* Improves touch target area */
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MOBILE MENU UTILITIES --- */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001; /* Keeps toggle above menu */
    width: 44px; height: 44px;
    align-items: center;
    justify-content: flex-end;
}

.mobile-only { display: none; }

/* --- COMPREHENSIVE MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    
    .menu-toggle { display: flex; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    /* Fullscreen Mobile Menu Overlay Fixes */
    .nav-links {
        position: fixed;
        top: 0; 
        left: -100%; 
        width: 100%;
        height: 100dvh; /* Dynamic Viewport for iOS */
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        padding-top: 60px; /* Offset for logo/hamburger */
    }

    .nav-links.active { left: 0; }

    .nav-links a {
        font-size: 1.8rem; /* Larger for touch */
        font-family: 'Bebas Neue', sans-serif; /* Stylistic choice for big mobile menus */
        letter-spacing: 2px;
    }

    /* Hero Section Mobile Fixes */
    .hero { background-attachment: scroll; } /* Mobile browsers often struggle with fixed bg */
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns a { width: 100%; text-align: center; }

    /* Layout Spacing Adjustments */
    .container { padding: 60px 20px 20px; }
    .media-section { margin-bottom: 70px; }
    .training-grid { margin-bottom: 70px; }
    
    .outline-title { text-align: center; }

    /* Grid Adjustments */
    .media-grid { grid-template-columns: 1fr; } /* 1 column is best for mobile content viewing */
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }

    /* Touch-friendly padding */
    .train-card { padding: 40px 20px; text-align: center; }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-brand p { margin: 0 auto 25px; }
    .social-icons { justify-content: center; }
}

/* =========================================
   LEGAL PAGES STYLING (Impressum / Datenschutz)
   ========================================= */

   .legal-container {
    max-width: 800px;
    margin: 140px auto 80px; /* Top margin accounts for the fixed navbar */
    padding: 0 20px;
    line-height: 1.8;
}

/* Fluid Typography: Scales down beautifully on smaller screens */
.legal-container h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 4.5rem); 
    color: var(--primary);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.legal-section {
    margin-bottom: 45px;
}

.legal-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
    color: white;
    letter-spacing: 1px;
}

.legal-section p {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 15px;
}

.legal-section strong {
    color: white;
}

/* Link Fix: Prevents long URLs from overflowing off the screen on mobile */
.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
    word-break: break-all; /* Critical for mobile layout protection */
    font-weight: bold;
}

.legal-section a:hover {
    color: white;
    text-decoration: underline;
}

/* Short Page Fix: Pushes the footer to the bottom on short screens */
.legal-container {
    min-height: 60vh;
}