/* 1. VARIABLEN & SETTINGS */
:root {
    /* Light Mode (Standard) */
    --bg: #ffffff;
    --text: #121212;
    --text-muted: #666666;
    --accent-violet: #7d5fff;
    --accent-green: #2ecc71;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --card-bg: #f9f9f9;
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg: #121212;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --nav-bg: rgba(18, 18, 18, 0.8);
    --card-bg: #1e1e1e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* 2. NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* 3. THEME TOGGLE BUTTON */
#theme-toggle {
    background: var(--text);
    width: 44px;
    height: 22px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.mode-icon {
    width: 14px;
    height: 14px;
    background: var(--bg);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .mode-icon {
    transform: translateX(22px);
}

/* 4. HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
}

.label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-violet);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 40px;
}

.video-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-container video {
    width: 100%;
    display: block;
}

/* 5. PORTFOLIO SECTION */
.portfolio-section {
    padding: 120px 8%;
}

.filter-bar {
    margin-bottom: 60px;
    display: flex;
    gap: 30px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
}

.filter-btn.active {
    color: var(--text);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-green);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 40px;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
    aspect-ratio: 16/10;
}

.media-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-container img, 
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-item:hover .media-container img,
.portfolio-item:hover .media-container video {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.overlay p {
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 500;
}

/* 6. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hier müsste später ein Burger-Menü hin */
    .hero h1 { font-size: 3.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-section { padding: 80px 5%; }
}
/* Ergänzung: Services & Buttons */
.section-header {
    margin-bottom: 60px;
}

.services {
    padding: 120px 8%;
    background: var(--card-bg);
}

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

.service-card {
    padding: 40px;
    background: var(--bg);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.service-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-violet);
    margin-bottom: 20px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-main {
    padding: 16px 35px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary {
    padding: 16px 35px;
    border: 2px solid var(--text);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-main:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.final-cta {
    padding: 150px 8%;
    text-align: center;
    background: var(--bg);
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

/* Spezielles für das Highlight-Projekt (geht über 2 Spalten im Grid) */
@media (min-width: 1000px) {
    .highlight-project {
        grid-column: span 2;
    }
}

footer {
    padding: 50px 8%;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.socials a {
    margin-left: 20px;
    color: var(--text);
    text-decoration: none;
}

:root {
    --bg: #ffffff;
    --text: #121212;
    --text-muted: #666;
    --accent-violet: #7d5fff;
    --accent-green: #2ecc71;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --card-bg: #f9f9f9;
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #ffffff;
    --text-muted: #aaa;
    --nav-bg: rgba(18, 18, 18, 0.8);
    --card-bg: #1e1e1e;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    transition: background-color 0.4s, color 0.4s;
    line-height: 1.6;
}

/* UI Elements */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 8%; position: fixed; width: 100%; top: 0;
    background: var(--nav-bg); backdrop-filter: blur(10px); z-index: 1000;
}

.logo span { color: var(--accent-violet); font-weight: 800; }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; }

#theme-toggle {
    background: var(--text); width: 40px; height: 20px;
    border-radius: 20px; border: none; cursor: pointer; position: relative;
}

.mode-icon {
    position: absolute; top: 3px; left: 3px; width: 14px; height: 14px;
    background: var(--bg); border-radius: 50%; transition: 0.3s;
}

[data-theme="dark"] .mode-icon { transform: translateX(20px); }

/* Layout */
.hero { min-height: 100vh; padding: 150px 8% 50px; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 800; line-height: 1.1; margin: 20px 0; }
.label { color: var(--accent-violet); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 600; }

.video-container { width: 100%; border-radius: 20px; overflow: hidden; margin-top: 40px; }
video { width: 100%; display: block; }

.services, .portfolio-section { padding: 100px 8%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { padding: 40px; background: var(--card-bg); border-radius: 15px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.portfolio-item { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 16/10; background: #eee; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; opacity: 0; transition: 0.4s; color: white; }
.portfolio-item:hover .overlay { opacity: 1; }

/* Forms */
.contact-main { padding: 150px 8%; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .form-group textarea { padding: 15px; background: var(--card-bg); border: 1px solid rgba(0,0,0,0.1); color: var(--text); width: 100%; border-radius: 8px; }

.btn-main { background: var(--text); color: var(--bg); padding: 15px 30px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-secondary { border: 2px solid var(--text); color: var(--text); padding: 13px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; }

footer { padding: 50px 8%; text-align: center; color: var(--text-muted); font-size: 0.8rem; }
/* FULL WIDTH IMMERSIVE HERO */
.hero {
    position: relative;
    height: 100vh; /* Volle Bildschirmhöhe */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
    overflow: hidden;
    color: #fff; /* Im Hero erzwingen wir Weiß für Kontrast auf Video */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Video hinter den Text */
    border-radius: 0; /* Box-Look entfernen */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Video füllt den Raum ohne Verzerrung */
    filter: brightness(0.6); /* Macht das Video dunkler, damit Text lesbar ist */
}

.hero-text {
    text-align: center;
    max-width: 1000px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem); /* Noch massiver auf Desktop */
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Anpassung der Navbar für den Full-Hero */
[data-theme="light"] .hero .label, 
[data-theme="light"] .hero h1 {
    color: #ffffff; /* Auch im Lightmode ist der Hero-Text weiß auf dem Video */
}
/* MOBILE OPTIMIERUNG */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }

    .nav-links {
        display: none; /* Hier sollte später ein Mobile-Menü hin */
    }

    .hero {
        padding: 0 5%;
    }

    .hero h1 {
        font-size: 3.2rem; /* Große Headline auch auf Handy */
        line-height: 1.0;
    }

    .hero-btns {
        flex-direction: column; /* Buttons untereinander auf Handy */
        gap: 15px;
    }

    .services, .portfolio-section {
        padding: 80px 5%;
    }

    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr; /* Nur eine Spalte auf dem Handy */
        gap: 20px;
    }

    .contact-main {
        grid-template-columns: 1fr;
        padding-top: 120px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }
}
/* Burger Button Styling */
.burger-menu {
    display: none; /* Standardmäßig weg */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    margin-left: 20px;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

/* Mobile Overlay Style */
.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Startet außerhalb des Sichtfelds */
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-overlay.active {
    transform: translateX(-100%); /* Slidet rein */
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 30px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 800;
}

/* Burger Animation zum "X" */
.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Logik */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .burger-menu { display: flex; }
    
    /* Hero Text auf Mobile etwas nach oben, damit Video wirkt */
    .hero h1 { font-size: 3.5rem; margin-top: -50px; }
}
/* SUCCESS PAGE STYLES */
.success-main {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8%;
}

.success-content {
    max-width: 600px;
}

.success-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: var(--accent-green);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    margin-bottom: 30px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-text {
    margin: 20px 0 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .success-actions {
        flex-direction: column;
    }
}
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg); 
}

::-webkit-scrollbar-thumb {
    background: var(--accent-violet);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a4ee0; /* Etwas dunklerer Violett-Ton */
}