/* CSS Variablen angelehnt an das Produkt-Design */
:root {
    --bg-color: #F8FAFC;          
    --surface-color: #FFFFFF;     
    --text-primary: #0F172A;      
    --text-secondary: #64748B;    
    --border-color: #E2E8F0;      
    --accent-blue: #2563EB;       
    --accent-blue-hover: #1D4ED8; 
    --accent-mint: #00C4A3;       
    --icon-bg: #F1F5F9;           
    --status-green-bg: #D1FAE5;   
    --status-green-text: #059669; 
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); 
    --border-radius-card: 12px;
    --glass-bg: rgba(255, 255, 255, 0.85); /* Neuer Glass-Hintergrund für Light Mode */
}

[data-theme="dark"] {
    --bg-color: #0F172A;
    --surface-color: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: #334155;
    --accent-blue: #3B82F6;
    --accent-blue-hover: #60A5FA;
    --accent-mint: #00E5C0;
    --icon-bg: #0F172A;
    --status-green-bg: rgba(5, 150, 105, 0.2);
    --status-green-text: #34D399;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(30, 41, 59, 0.85); /* Neuer Glass-Hintergrund für Dark Mode */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Header Navigation */
header {
    padding: 1rem 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

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

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.theme-toggle {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Sektionen */
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
    position: relative;
}

.bg-surface {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Hero Sektion */
.hero {
    text-align: center;
    overflow: hidden;
    border-top: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .hero-blob {
    opacity: 0.25;
}

.blob-1 {
    background-color: var(--accent-blue);
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.blob-2 {
    background-color: var(--accent-mint);
    width: 300px;
    height: 300px;
    bottom: 0;
    right: 10%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--status-green-bg);
    color: var(--status-green-text);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--status-green-text);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--status-green-text);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-inline: auto;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Section Header */
.section-header {
    margin-bottom: 3.5rem;
    max-width: 800px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

/* Grid Layout (Standard) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Neues Layout für die Innovation-Sektion (Sticky Sidebar + Scroll Cards) */
.sticky-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.sticky-sidebar {
    position: sticky;
    top: 61px; /* Entspricht exakt der Höhe der Navigation */
    z-index: 90;
    background-color: var(--glass-bg); /* Glass Effekt für die Sidebar */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 0 1rem 0;
    margin: -1.5rem -2rem 0 -2rem; /* Erweitert den Sticky-Header auf die volle Handy-Breite */
    padding-left: 2rem;
    padding-right: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sticky-sidebar .section-header {
    margin-bottom: 0;
}

.scroll-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Kacheln (Tiles) Design */
.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-card);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    border-color: var(--accent-blue); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px); /* Sanfter, subtiler Hover-Effekt statt 3D-Tilt */
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--icon-bg);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.card:hover .icon-box {
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--surface-color);
    padding: 4rem 0 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

/* ANIMATIONEN (JS Reveal Classes) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Desktop Höhen & Layouts */
@media (min-width: 769px) {
    .hero {
        min-height: 100vh;
    }
    section:not(.hero) {
        min-height: 70vh; 
    }
}

/* Aktiviert das Sticky-Layout für die 5 Boxen auf Desktop */
@media (min-width: 992px) {
    .sticky-layout {
        grid-template-columns: 1fr 1.2fr;
        /* Links Text, Rechts Boxen */
        gap: 5rem;
        align-items: flex-start;
        /* Erlaubt Sticky */
    }

    .sticky-sidebar {
        position: sticky;
        top: 150px;
        /* Bleibt beim Scrollen 150px unter dem Bildschirmrand kleben */
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        margin: 0;
        border-bottom: none;
    }

    .sticky-sidebar .section-header {
        margin-bottom: 1rem;
    }

    .big-devices {
        display: block;
    }

    .small-devices {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 0 4rem 0;
        min-height: auto !important;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    .big-devices {
        display: none;
    }

    .small-devices {
        display: block;
    }
}

/* Modal / Pop-up Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-card);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

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

.btn-outline:hover {
    background-color: var(--bg-color);
    border-color: var(--text-secondary);
}

body.modal-open {
    overflow: hidden;
}