:root {
    --bg-light: #f8fafc;
    --bg-lighter: #ffffff;
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --secondary: #059669;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-hover: rgba(255, 255, 255, 0.9);
}

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

html {
    scroll-behavior: smooth; /* SEO & UX enhancement */
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-5 { margin-top: 3rem; }

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Mobile-first Grid */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Default stack on mobile */
}

@media (min-width: 640px) {
    .cards-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* Glassmorphism System - Light Mode */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 15px var(--primary-glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-text {
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg_light.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, var(--bg-light) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.hero-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

@media (min-width: 640px) {
    .hero-cta { flex-direction: row; align-items: center; gap: 2rem; }
    .hero-benefits { flex-direction: row; flex-wrap: wrap; }
}

.hero-benefits li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Trust Section */
.trust-section {
    background: var(--bg-lighter);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4rem 0;
}

.trust-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Timeline / Steps */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

@media (min-width: 768px) {
    .timeline { padding-left: 0; }
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .timeline::before { left: 2rem; }
}

.timeline-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .timeline-item { padding-left: 5rem; margin-bottom: 3rem; }
}

.timeline-marker {
    position: absolute;
    left: -0.25rem;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    z-index: 1;
}

@media (min-width: 768px) {
    .timeline-marker { left: 0.5rem; width: 3rem; height: 3rem; font-size: 1.2rem; }
}

/* Pricing */
.pricing-card {
    max-width: 500px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
    background: white;
}

.price {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--bg-lighter);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a, .footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover, .footer-link:hover { color: var(--primary); }

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

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

/* Very Small Mobile Overrides */
@media (max-width: 380px) {
    .btn-large { padding: 1rem 1.5rem; font-size: 1rem; }
    .hero { padding-top: 5rem; }
    .glass-card { padding: 1.5rem; }
}

/* Modal Checkout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.modal-content {
    width: 100%;
    max-width: 600px;
    background: var(--bg-lighter);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: auto; /* Vertically and horizontally centers the modal when space permits */
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Helper to disable background page scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.modal-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-icon {
    font-size: 2rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 1rem;
    border-radius: 1rem;
}

.step-text h4 {
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.step-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.mt-4 { margin-top: 2rem; }

/* Forms & Payment Methods */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.payment-methods {
    margin-top: 1.5rem;
}

.payment-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.payment-btn:hover {
    background: var(--bg-light);
    color: var(--text-main);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    background: var(--bg-lighter);
    border-color: rgba(37, 99, 235, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
}

.faq-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    color: var(--primary);
    font-weight: 300;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Cities Modal Buttons */
.city-btn {
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .cookie-content {
        flex: 1;
    }
    
    .cookie-buttons {
        flex-direction: row;
        min-width: 300px;
        justify-content: flex-end;
    }
}

/* Responsive Design Enhancements for Header & Modal on Mobile Devices */
@media (max-width: 768px) {
    /* Header (Navbar) responsiveness to prevent overflow */
    .logo {
        font-size: 1.15rem;
        gap: 0.4rem;
    }
    .logo svg {
        width: 80px;
        height: 23px;
    }
    .nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Completely prevent header overflow on small mobile screens */
    .logo-text {
        display: none; /* Hide brand text on mobile so the SVG logo and CTA button fit comfortably */
    }
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .container {
        padding: 0 1rem; /* Slightly reduced padding for extra horizontal space */
    }

    /* Modal Height and Spacing Optimization for Mobile Screens (Prevents "Zu hoch" issue) */
    .modal-overlay {
        padding: 1rem 0.5rem; /* Maximize screen utilization */
    }
    
    .modal-content.glass-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }
    
    .modal-content h2 {
        font-size: 1.35rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }
    
    .modal-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .modal-steps {
        margin: 1rem 0;
        gap: 0.85rem;
    }
    
    .modal-step {
        gap: 0.75rem;
    }
    
    .step-icon {
        font-size: 1.5rem;
        padding: 0.6rem;
        border-radius: 0.75rem;
    }
    
    .step-text h4 {
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
    }
    
    .step-text p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .form-control {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
        height: auto;
    }
    
    .modal-close {
        top: 0.75rem;
        right: 1rem;
        font-size: 1.75rem;
    }
    
    .mt-4 {
        margin-top: 1.25rem;
    }
    
    .payment-methods p {
        margin-bottom: 0.75rem;
    }
}

