/* WICHTIGER HINWEIS: KEINE UNTERORDNER! Alles im Root. */

/* Google Fonts removed, using system fonts */
:root {
    --primary-color: #1A365D; /* Dark Blue */
    --primary-hover: #2B6CB0; /* Medium Blue */
    --accent-color: #3182CE; /* Lighter Blue, no orange */
    --bg-color: #F7FAFC;
    --text-main: #2D3748;
    --text-light: #718096;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
}

body.has-banner {
    padding-top: 20px; /* Space for the fixed timer banner */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 16px;
}

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

header {
    padding: 10px 0 0 0;
    position: relative;
    z-index: 100;
}

.desktop-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    font-size: 1.05rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

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

.nav-link:hover::after {
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

.logo {
    font-family: Impact, "Arial Narrow", "Arial Black", sans-serif;
    letter-spacing: 1px;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-bold {
    font-weight: 800;
}

.logo-thin {
    font-weight: 300;
}

.logo-gradient {
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    animation: pulse 2s infinite;
}

/* Modern Selection Buttons (Dashboard) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.selection-btn {
    background: var(--white);
    border: 2px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow);
}

.selection-btn:hover, .selection-btn.active {
    border-color: var(--primary-color);
    background: #f0f7ff;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Glitch Timer */
.timer-banner {
    background-color: #1A365D;
    color: white;
    text-align: center;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 1.08rem; /* 20% größer als 0.9rem */
    line-height: 1.2;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: block;
    transition: background-color 0.2s ease;
}

.timer-banner:hover {
    background-color: #2B6CB0;
}

.glitch-timer.glitch {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #e74c3c;
}

/* Reviews Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    background-color: var(--white);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.review-card {
    width: 300px;
    flex-shrink: 0;
    padding: 20px;
    margin: 0 15px;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.review-card .stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.review-card .author {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-card .author span {
    font-size: 0.8rem;
    color: #777;
    font-weight: normal;
}

.review-card .text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-330px * 6)); } /* 6 Karten * 330px (300 Breite + 30 Margin) */
}

/* Before/After Slider */
.slider-wrapper {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.slider-title {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.image-slider-container {
    position: relative;
    width: 100%;
    /* aspect-ratio entfernt, damit Originalbild-Höhe gilt */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #ccc;
    --slider-pos: 50%;
}

.image-layer {
    width: 100%;
}

.image-layer img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Bild wird nie beschnitten */
    display: block;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.before-image img {
    height: 100%;
    object-fit: cover;
}

.after-image {
    position: relative;
    width: 100%;
    clip-path: polygon(0 0, var(--slider-pos) 0, var(--slider-pos) 100%, 0 100%);
}

.slider-label {
    position: absolute;
    top: 15px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 5;
    font-family: 'Inter', sans-serif;
}

.label-before {
    right: 15px;
}

.label-after {
    left: 15px;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--slider-pos);
    width: 44px; /* Breite passend zum Button */
    z-index: 10;
    pointer-events: none;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: -1;
}

.slider-handle-button {
    width: 44px;
    height: 44px;
    flex-shrink: 0; /* Verhindert Pille-Form */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.slider-range-input:active + .slider-handle-button {
    transform: scale(0.95);
}

.slider-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
    margin: 0;
}

/* Sanfte Wobble Animation durch separate Keyframes statt custom property,
   da custom properties ohne @property nicht flüssig interpoliert werden. */
.image-slider-container.wobble .after-image {
    animation: wobbleClip 4s infinite ease-in-out;
}
.image-slider-container.wobble .slider-handle {
    animation: wobbleHandle 4s infinite ease-in-out;
}

@keyframes wobbleClip {
    0%, 100% { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
    25% { clip-path: polygon(0 0, 70% 0, 70% 100%, 0 100%); }
    75% { clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%); }
}

@keyframes wobbleHandle {
    0%, 100% { left: 50%; }
    25% { left: 70%; }
    75% { left: 30%; }
}

.glitch-timer {
    font-family: monospace;
    font-size: 1.5rem;
    color: #e74c3c;
    position: relative;
    display: inline-block;
}

.glitch-active {
    animation: glitch-anim 0.2s linear infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* Pricing Section */
.pricing {
    padding: 60px 20px;
}
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}
.price-card {
    flex: 1 1 220px;
    max-width: 280px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card .btn {
    margin-top: auto !important;
}
.price-card:hover {
    transform: translateY(-10px);
}
.price-card.highlight {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}
.price-card.highlight:hover {
    transform: scale(1.05) translateY(-10px);
}
.price-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.price-card .price { font-size: 2.5rem; font-weight: bold; margin-bottom: 20px; color: var(--primary-color); }

/* Wheel of Fortune Popup */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer & Badges */
.badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}
.badge {
    background: #eee;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}
footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}
footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
}

/* Specific Section Layouts */
.benefits-section { padding: 60px 20px; }
.benefits-headline { text-align: center; margin-bottom: 40px; }
.sliders-section { padding: 40px 20px; }
.sliders-flex-container { display: flex; flex-wrap: wrap; gap: 40px; }

@media (max-width: 768px) {
    header { padding-top: 30px; } /* +20px distance from the top banner */
    .timer-banner { font-size: 0.9rem; } /* Mobile: zurück auf Ausgangsgröße */
    .hero h1 {
        font-size: 1.8rem !important;
        hyphens: auto;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.2;
    }
    .header-inner { flex-direction: column; gap: 15px; }
    .price-card.highlight { transform: none; }
    .price-card.highlight:hover { transform: translateY(-5px); }
    
    .benefits-section { padding: 20px 20px; }
    .benefits-headline { margin-bottom: 15px; }
    .sliders-section { padding: 10px 20px; }
    .sliders-flex-container { gap: 10px; }
    .slider-wrapper { margin: 15px auto; }

    /* Dashboard Reordering */
    .dashboard-layout { flex-direction: column; }
    .dashboard-main { order: 1; }
    .dashboard-sidebar { order: 2; }

    /* Vision Box Mobile */
    .vision-section { margin: 30px auto; }
    .vision-features-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}
.cookie-banner .cookie-content {
    flex: 1;
    margin-right: 20px;
}
.cookie-banner p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.95rem;
}
.cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .cookie-banner .cookie-content {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .cookie-banner .btn {
        width: 100%;
    }
}

/* Modern Toggle Switch (Dashboard) */
.toggle-switch {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid #eaeaea;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.prompt-box {
    border: 2px solid #eaeaea;
    transition: all 0.2s ease;
}
.toggle-switch:hover, .prompt-box:hover {
    border-color: var(--primary-color);
}
.toggle-switch input[type="checkbox"] {
    display: none;
}
.toggle-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.05rem;
    flex: 1;
    transition: color 0.3s;
}
.toggle-slider {
    position: relative;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border-radius: 30px;
    transition: 0.3s;
    margin-left: 15px;
    flex-shrink: 0;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked ~ .toggle-slider {
    background-color: var(--accent-color);
}
.toggle-switch input:checked ~ .toggle-slider::before {
    transform: translateX(22px);
}
.toggle-switch input:checked ~ .toggle-label {
    color: var(--accent-color);
}

/* Legal Pages Content Formatting */
.legal-content {
    line-height: 1.8;
}
.legal-content p {
    margin-bottom: 20px;
}
.legal-content h1, .legal-content h2, .legal-content h3, .legal-content h4, .legal-content h5, .legal-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.legal-content ul, .legal-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}
.legal-content li {
    margin-bottom: 10px;
}

/* Modern Radio Buttons (Dashboard) */
.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.radio-group input[type="radio"] {
    display: none;
}
.radio-btn {
    padding: 8px 16px;
    border: 2px solid #eaeaea;
    border-radius: 20px;
    cursor: pointer;
    background: var(--white);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}
.radio-group input[type="radio"]:checked + .radio-btn {
    border-color: var(--primary-color);
    background: #f0f7ff;
    color: var(--primary-color);
}
.radio-group label:hover .radio-btn {
    border-color: var(--primary-color);
}

/* AI Scanning Animation */
.scanner-line {
    width: 100%;
    height: 4px;
    background: #00d2ff;
    box-shadow: 0 0 15px #00d2ff;
    position: absolute;
    top: 0;
    animation: scan 1.5s linear infinite;
    z-index: 1;
}
@keyframes scan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

@media (max-width: 768px) {
    .desktop-menu { display: none !important; }
}

/* Vision / All-in-One Section */
.vision-section {
    padding: 60px 20px;
    margin: 40px auto;
}

.vision-card {
    background: linear-gradient(135deg, #1A365D 0%, #2B6CB0 60%, #3182CE 100%);
    border-radius: 20px;
    padding: 50px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 54, 93, 0.35);
    color: white;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.vision-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.vision-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.vision-headline {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    line-height: 1.2;
}

.vision-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.7;
}

.vision-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.vision-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 16px 18px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.vision-feature-item:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.vision-feature-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 1px;
}

.vision-feature-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .vision-card { padding: 30px 25px; }
    .vision-headline { font-size: 1.6rem; }
}
