/* =========================================================================
   VARIABLES & GLOBAL STYLES
   ========================================================================= */
:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-surface: #141414;
    --bg-surface-light: #1e1e1e;
    --accent-neon: #00f0ff;
    --accent-neon-glow: rgba(0, 240, 255, 0.4);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --pure-white: #ffffff;
    --border-color: #333333;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.mt-5 {
    margin-top: 5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--pure-white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .underline {
    height: 3px;
    width: 60px;
    background-color: var(--accent-neon);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--accent-neon-glow);
}

.section-title .subtitle {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-neon-glow);
}

.btn-primary:hover {
    background-color: var(--pure-white);
    box-shadow: 0 0 25px rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-neon);
    border: 1px solid var(--accent-neon);
}

.btn-outline:hover {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-neon-glow);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    background-color: transparent; /* Changed on scroll in JS */
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pure-white);
    letter-spacing: 1px;
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--accent-neon);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-neon);
    transition: width var(--transition-normal);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--accent-neon) !important;
    padding: 8px 20px;
    border: 1px solid var(--accent-neon);
    border-radius: 4px;
    transition: all var(--transition-normal);
}

.btn-nav:hover {
    background-color: var(--accent-neon);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 10px var(--accent-neon-glow);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--pure-white);
    cursor: pointer;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    min-height: 600px;
    padding: 160px 0 100px; /* Reduced vertical scrolling issues, ensures space for nav */
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/hero-bg.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark) 150%);
    z-index: 1;
}

.hero-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

.hero-3d-container {
    flex: 1;
    height: 600px;
    position: relative;
    z-index: 2;
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent;
    --poster-color: transparent;
    outline: none;
}

#button-load {
    background-color: var(--bg-surface);
    color: var(--accent-neon);
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid var(--accent-neon);
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--accent-neon-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pure-white);
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--accent-neon);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--pure-white);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-surface);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-neon);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-neon);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px var(--accent-neon-glow));
}

.feature-card h4 {
    font-size: 1.2rem;
    color: var(--pure-white);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* =========================================================================
   SERVICES SECTION
   ========================================================================= */
.services-section {
    background-color: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.service-img {
    height: 200px;
    background-color: var(--bg-surface-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-img::after {
    content: attr(data-desc);
    color: var(--text-muted);
    opacity: 0.5;
    font-family: monospace;
}

/* For actual images later */
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--pure-white);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================================================
   PRICING SECTION
   ========================================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-surface-light));
    border-color: var(--accent-neon);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-neon-glow);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--pure-white);
    margin-bottom: 20px;
}

.price {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.price span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--pure-white);
    display: block;
    line-height: 1;
}

.price-features {
    text-align: left;
    margin-bottom: 30px;
}

.price-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features i {
    color: var(--accent-neon);
    font-size: 0.9rem;
}

/* =========================================================================
   GALLERY & REVIEWS
   ========================================================================= */
.gallery-section {
    background-color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    aspect-ratio: 16/9;
}

/* Pseudo splitscreen before actual slider implementation */
.gallery-img {
    flex: 1;
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img:nth-child(2) {
    background-color: var(--bg-surface-light);
    border-left: 2px solid var(--accent-neon);
}

.gallery-img::after {
    content: attr(data-desc);
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--pure-white);
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--bg-surface);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stars {
    color: #ffd700;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.review-card h4 {
    color: var(--pure-white);
    font-size: 1rem;
}

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-section {
    background-color: var(--bg-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--pure-white);
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-neon);
    margin-top: 5px;
}

.info-item h4 {
    color: var(--pure-white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
}

.contact-whatsapp-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    transition: all var(--transition-normal);
    min-height: 400px;
}

.contact-whatsapp-3d:hover {
    transform: translateY(-5px);
}

.contact-whatsapp-3d a {
    display: block;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 5px var(--accent-neon-glow);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pure-white);
    display: block;
    margin-bottom: 10px;
}

.footer-logo a span {
    color: var(--accent-neon);
    font-weight: 300;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-surface);
    border-radius: 50%;
    color: var(--pure-white);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    border-color: var(--accent-neon);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-neon-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #888;
}

.footer-bottom a:hover {
    color: var(--accent-neon);
}

/* =========================================================================
   LEGAL PAGES (IMPRESSUM & DATENSCHUTZ)
   ========================================================================= */
.legal-section {
    padding-top: 150px; /* Space for the fixed navbar */
    padding-bottom: 80px;
    background-color: var(--bg-surface);
    min-height: 80vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    color: var(--accent-neon);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--pure-white);
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-content p, .legal-content ul {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content a {
    color: var(--accent-neon);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--pure-white);
}

/* =========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================= */
/* Initialization for intersection observer */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================= */
@media screen and (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-container-flex {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .hero-3d-container {
        display: none;
    }

    .hamburger {
        display: block;
        position: relative;
        z-index: 1100; /* Ensure icon stays on top of the mobile menu */
        transition: transform var(--transition-normal);
    }

    .nav-container {
        padding: 0 30px; /* Increased side padding to move elements inward (hamburger slightly left) */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px; /* Increased gap for larger links */
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        z-index: 1050; /* Lower than hamburger */
    }

    .nav-links a {
        font-size: 1.5rem; /* Larger font size for mobile */
        font-weight: 700; /* Bolder links */
        text-transform: uppercase;
        letter-spacing: 2px;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .contact-whatsapp-3d {
        padding: 20px;
    }

    .pricing-grid, .services-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 250px;
    }
}