/* ==========================================================================
   AI-ZY - PREMIUM UI SYSTEM
   ========================================================================== */

:root {
    /* Base Colors - Pure Black */
    --bg-base: #000000;
    --bg-surface: #080808;
    --bg-elevated: #0f0f0f;
    --bg-panel: rgba(10, 10, 10, 0.8);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #525252;

    /* Brand Accent Colors (Glowing Coral/Purple/Blue) */
    --brand-primary: #6366f1;
    /* Indigo */
    --brand-secondary: #a855f7;
    /* Purple */
    --brand-accent: #22d3ee;
    /* Cyan */

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    --gradient-text: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    --gradient-glow: conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #a853ba 180deg, #e92a67 360deg);

    /* Borders & UI Elements */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing & Layout */
    --max-width: 1280px;
    --section-padding: clamp(5rem, 10vw, 10rem);

    /* Animation Easing (Apple/Stripe style) */
    --ease-out-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.15s var(--ease-out-spring);
    --transition-normal: 0.3s var(--ease-out-spring);
    --transition-slow: 0.6s var(--ease-out-spring);
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    /* Pure Dot Grid System */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* --- Desktop-Only: Hide Mobile Menu Elements --- */
.mobile-menu-toggle,
.mobile-nav-menu {
    display: none !important;
}

/* Dynamic Background Canvas */
#bg-canvas {
    display: none !important;
}

/* Ambient Accents - Disabled for AI-ZY */
.ambient-glow {
    display: none !important;
}

/* Glass Shell Interaction - Disabled for AI-ZY */
.glass-bubble {
    display: none !important;
}

/* Visual Code Bricks Popup (Scratch-style stack) */
.brick-stack-popup {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 1px; /* seamless connection of puzzle blocks */
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: brick-stack-float 3.5s forwards cubic-bezier(0.25, 1, 0.3, 1);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
}

.visual-brick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-display);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 280px;
}

/* Puzzle block notches for that real Scratch feeling */
.visual-brick::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 28px;
    width: 20px;
    height: 6px;
    background: inherit;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    z-index: 2;
}

/* Event Brick (Top Block - curves top edges, has no notch on top but notch on bottom) */
.visual-brick.event-brick {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    border-left: 5px solid #ef4444; /* Event red */
    color: #fca5a5;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Control Brick (Middle Block - notches top and bottom) */
.visual-brick.control-brick {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    border-left: 5px solid #f59e0b; /* Orange */
    color: #fcd34d;
}

/* Action Brick (Middle Block - Indigo) */
.visual-brick.action-brick {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
    border-left: 5px solid #6366f1; /* Indigo */
    color: #c7d2fe;
}

/* Response Brick (Bottom Block - curves bottom edges, no notch on bottom) */
.visual-brick.response-brick {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border-left: 5px solid #10b981; /* Green */
    color: #a7f3d0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.visual-brick.response-brick::after {
    display: none; /* Last block has no notch at bottom */
}

/* Inline rounded input fields resembling scratch inputs */
.brick-input {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 500;
    margin: 0 4px;
}

@keyframes brick-stack-float {
    0% {
        transform: translate(-50%, -20%) scale(0.7);
        opacity: 0;
    }
    12% {
        transform: translate(-50%, -95%) scale(1.03);
        opacity: 1;
    }
    18% {
        transform: translate(-50%, -100%) scale(1);
        opacity: 1;
    }
    82% {
        transform: translate(-50%, -105%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -170%) scale(0.85);
        opacity: 0;
    }
}

/* Texture Overlay - Removed for flat black look */
.noise-overlay {
    display: none;
}

/* Ambient Glow - Removed per user request for pure black */
.glow-bg {
    display: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
.brand-text {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.mono {
    font-family: var(--font-mono);
    font-size: 0.85em;
    letter-spacing: -0.05em;
}

/* --- Utilities --- */
.mb-4 {
    margin-bottom: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    /* Pill shape */
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-xl {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 8px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.icon-sm {
    width: 16px;
    height: 16px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- Panels & Glows --- */
.panel-glow {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.panel-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* --- Hero Section --- */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: 2rem;
}

.hero-inner {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-accent);
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    overflow: visible;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 5rem;
}

/* App Showcase */
.hero-app-showcase {
    width: 100%;
    max-width: 1000px;
    perspective: 2000px;
}

.app-window {
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.8s var(--ease-out-spring);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.app-window:hover {
    transform: rotateX(0deg) scale(1);
}

.app-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.traffic-lights {
    display: flex;
    gap: 6px;
    margin-right: 2rem;
}

.traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.traffic-lights span:nth-child(1) {
    background: #ff5f56;
}

.traffic-lights span:nth-child(2) {
    background: #ffbd2e;
}

.traffic-lights span:nth-child(3) {
    background: #27c93f;
}

.app-tabs {
    display: flex;
    gap: 1.5rem;
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.tab.active {
    color: var(--text-primary);
}

.app-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    height: 100%;
}

.sidebar {
    border-right: 1px solid var(--border-subtle);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.block-palette {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.palette-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
}

.input-block {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.action-block {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
}

.response-block {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.canvas {
    padding: 2rem;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logic-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logic-node {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    border-radius: 12px;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.node-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.node-content {
    display: flex;
    flex-direction: column;
}

.node-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.node-value {
    font-size: 0.9375rem;
    font-weight: 500;
}

.trait-tag {
    color: var(--brand-accent);
    background: rgba(34, 211, 238, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.flow-arrow {
    color: var(--text-tertiary);
}

/* --- Social Proof --- */
.social-proof {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.proof-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.logo-track {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-item {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-secondary);
    filter: grayscale(100%);
}

/* --- Bento Grid Section --- */
.bento-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-padding) 2rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.bento-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.span-2 {
    grid-column: span 2;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.card-dark {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}

.training-bucket {
    background: #000;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
}

.bucket-header {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.data-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.data-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-tag button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* --- Value Prop Grid (three-column layout used in components/value_prop.php) --- */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    /* ÄNDERUNG: 'start' zu 'stretch' geändert, damit alle Items die volle Zeilenhöhe einnehmen */
    align-items: stretch; 
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: 2rem;
}

.column-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
    text-align: left;
    /* min-height kann bleiben, aber die Karte wird nun automatisch höher, wenn nötig */
    min-height: 220px; 
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Stellt sicher, dass die Karte innerhalb des Grids die volle verfügbare Höhe nutzt */
    height: 100%; 
}

.column-card h3 {
    font-size: 1.125rem;
    margin: 0.25rem 0 0.5rem 0;
    color: var(--text-primary);
}

.column-card p {
    color: var(--text-secondary);
    line-height: 1.45;
    font-size: 0.975rem;
    /* Dieser Teil sorgt dafür, dass der Text den Platz nach oben auffüllt 
       und der Footer/Rest unten bleibt */
    margin-top: 0; 
    flex-grow: 1; 
}

/* Make panel-glow cards slightly more padded when used inside column-card */
.column-card.panel-glow {
    padding: 1.75rem;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .three-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-inline: 1rem;
    }
}

.input-mock {
    display: flex;
    gap: 0.5rem;
}

.input-mock input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
}

/* --- Playground Section --- */
.playground-section {
    padding: var(--section-padding) 0;
    background: transparent;
}

.playground-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.parameter-controls {
    margin-top: 3rem;
}

.control-group {
    margin-bottom: 2rem;
}

.control-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.segmented-control {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 4px;
}

.segment {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.segment.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    .model-select {
        width: 100%;
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        color: var(--text-primary);
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        outline: none;
        transition: var(--transition-fast);
    }

    .model-select:focus {
        border-color: var(--brand-primary);
    }

    .bot-state {
        font-size: 0.8125rem;
        color: #22c55e;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .bot-state.model-updated {
        animation: pop-glow 0.5s ease;
        color: var(--brand-accent);
    }

    @keyframes pop-glow {
        0% {
            transform: scale(1);
            opacity: 0.9;
            text-shadow: 0 0 0 rgba(34, 211, 238, 0);
        }
        50% {
            transform: scale(1.05);
            opacity: 1;
            text-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
        }
        100% {
            transform: scale(1);
            opacity: 0.95;
            text-shadow: 0 0 0 rgba(34, 211, 238, 0);
        }
    }


.metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.metric-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.metric-row:last-child {
    margin-bottom: 0;
}

.chat-interface {
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bot-status {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: normal;
}

.bot-state {
    font-size: 0.8125rem;
    color: #22c55e;
}

.chat-history {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 85%;
}

.msg-content {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.bot-message {
    align-self: flex-start;
}

.bot-message .msg-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px 16px 16px 4px;
}

.user-message {
    align-self: flex-end;
}

.user-message .msg-content {
    background: var(--text-primary);
    color: var(--bg-base);
    border-radius: 16px 16px 4px 16px;
    font-weight: 500;
}

.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.75rem;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    padding: 0 1.5rem;
    color: white;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition-fast);
}

.chat-input-area input:focus {
    border-color: var(--brand-primary);
}

/* --- Value Prop Section --- */
.value-prop {
    padding: var(--section-padding) 2rem;
    border-top: none;
}

.value-prop-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.value-prop h2 {
    margin-bottom: 4rem;
    text-align: center;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.value-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: var(--border-subtle);
    margin-bottom: 1rem;
    line-height: 1;
}

/* --- Bottom CTA --- */
.bottom-cta {
    padding: var(--section-padding) 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cta-panel {
    padding: 5rem;
    text-align: center;
    background: var(--bg-surface);
}

.cta-panel p {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.guarantee {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Footer --- */
.site-footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6rem 2rem 3rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    max-width: 250px;
    font-size: 0.875rem;
}

.footer-links h4 {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-primary);
}

/* --- Testimonials --- */
.testimonials-section {
    padding: var(--section-padding) 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.testimonial-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-surface);
}

.quote-icon {
    color: var(--brand-primary);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.0625rem;
    color: var(--text-primary);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.bg-gradient-1 {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* --- Modern Clean Pricing --- */
.pricing-section {
    padding: 80px 2rem;
    color: #ffffff;
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: #0f0f0f; /* Tiefschwarz */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover Effekt für alle Karten */
.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Highlight Karte (Pro) */
.pricing-card.featured {
    border: 1px solid #6366f1; /* Indigo Border */
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Bereich */
.pricing-header {
    margin-bottom: 32px;
}

.plan-tag {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.pricing-header h3 {
    font-size: 24px;
    margin: 0;
}

/* Preis Bereich */
.price-box {
    margin-bottom: 32px;
    min-height: 80px; /* Hält die Höhe gleich */
}

.price-main {
    font-size: 48px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-sub {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

/* Beschreibung */
.pricing-description {
    font-size: 15px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 32px;
    min-height: 72px; /* Gleicht Textlängen aus */
}

/* Feature Liste */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1; /* Drückt den Button nach unten */
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #e0e0e0;
}

.feature-list li i {
    color: #6366f1; /* Icon Farbe */
    font-size: 16px;
    flex-shrink: 0;
}

/* Buttons */
.pricing-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: white;
}

.pricing-btn.primary {
    background: white;
    color: black;
    border: none;
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pricing-btn.primary:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; }
}

/* --- FAQ --- */
.faq-section {
    padding: var(--section-padding) 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

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

.faq-icon {
    color: var(--text-secondary);
    transition: transform 0.3s var(--ease-out-spring);
}

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

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease-out-spring);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer-inner {
    padding-bottom: 1.5rem;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-spring), transform 0.8s var(--ease-out-spring);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {

    .bento-grid,
    .value-grid {
        grid-template-columns: 1fr 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .playground-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .nav-actions .btn-ghost {
        display: none;
    }

    .bento-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .cta-panel {
        padding: 3rem 1.5rem;
    }

    .hero-app-showcase {
        display: none;
        /* Simplify on mobile */
    }

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

    .sidebar {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: stretch;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
}

.form-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 0.875rem 1.25rem;
    border-radius: 14px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: all 0.2s var(--ease-out-spring);
    outline: none;
}

.form-input:focus {
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

        /* ═══════════════════════════════════════════════════════════════════
           Blog Premium Component — Premium & Clean Design
           ═══════════════════════════════════════════════════════════════════ */

        .blog-article { max-width: 900px; margin: 0 auto; }

        /* Hero Section */
        .blog-hero {
            padding: 4rem 2rem;
            background: linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(34,211,238,0.02) 100%);
            border-radius: 24px;
            margin-bottom: 3rem;
            border: 1px solid var(--border-subtle);
            position: relative;
            overflow: hidden;
        }

        .blog-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .blog-hero-inner {
            position: relative;
            z-index: 1;
        }

        .blog-category-badge {
            display: inline-block;
            padding: 0.5rem 1rem;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.7rem;
            letter-spacing: 0.05em;
            color: var(--brand-primary);
            background: rgba(99,102,241,0.12);
            border: 1px solid rgba(99,102,241,0.2);
            margin-bottom: 1rem;
            text-transform: uppercase;
        }

        .blog-title {
            font-family: var(--font-display);
            font-size: clamp(1.8rem, 5vw, 2.8rem);
            font-weight: 800;
            margin: 0 0 0.75rem;
            color: var(--text-primary);
            line-height: 1.15;
            letter-spacing: -0.02em;
        }

        .blog-subtitle {
            color: var(--text-secondary);
            font-size: 1.125rem;
            margin-bottom: 1.5rem;
            font-weight: 500;
            letter-spacing: -0.005em;
        }

        .blog-meta {
            display: flex;
            gap: 1.5rem;
            align-items: center;
            color: var(--text-tertiary);
            font-size: 0.95rem;
            flex-wrap: wrap;
        }

        .blog-meta-item {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .blog-meta-dot {
            width: 3px;
            height: 3px;
            background: var(--border-subtle);
            border-radius: 50%;
        }

        /* Hero Accent (animated background element) */
        .blog-hero-accent {
            position: absolute;
            bottom: -100px;
            left: 50%;
            transform: translateX(-50%);
            width: 600px;
            height: 400px;
            background: radial-gradient(ellipse at center, rgba(34,211,238,0.03) 0%, transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        /* Body Wrapper */
        .blog-body-wrapper {
            display: flex;
            gap: 3rem;
            align-items: flex-start;
            position: relative;
        }

        /* Prose Content (Main Article Text) */
        .blog-prose {
            flex: 1 1 0;
            color: var(--text-primary);
            line-height: 1.85;
            font-size: 1.0625rem;
        }

        .blog-prose p {
            margin: 0 0 1.5rem;
            color: var(--text-primary);
        }

        .blog-prose p:first-child {
            font-size: 1.125rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .blog-prose h2 {
            font-family: var(--font-display);
            font-size: 1.75rem;
            font-weight: 700;
            margin-top: 2rem;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .blog-prose h3 {
            font-family: var(--font-display);
            font-size: 1.35rem;
            font-weight: 600;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
        }

        .blog-prose ul, .blog-prose ol {
            margin: 0 0 1.5rem 1.75rem;
            color: var(--text-primary);
        }

        .blog-prose li {
            margin-bottom: 0.5rem;
        }

        .blog-prose strong {
            font-weight: 700;
            color: var(--text-primary);
        }

        .blog-prose em {
            font-style: italic;
            color: var(--text-secondary);
        }

        .blog-prose blockquote {
            border-left: 4px solid var(--brand-primary);
            padding-left: 1.5rem;
            margin: 1.5rem 0;
            color: var(--text-secondary);
            font-style: italic;
        }

        .blog-prose a {
            color: var(--brand-primary);
            text-decoration: none;
            border-bottom: 1px solid rgba(99,102,241,0.3);
            transition: var(--transition-fast);
        }

        .blog-prose a:hover {
            border-bottom-color: var(--brand-primary);
        }

        /* Share Bar (Sticky sidebar) */
        .blog-share-bar {
            width: 60px;
            position: sticky;
            top: 120px;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            align-items: center;
            height: fit-content;
        }

        .blog-share-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            writing-mode: vertical-rl;
            transform: rotate(180deg);
            margin-bottom: 0.5rem;
        }

        .blog-share-btn {
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            padding: 0.65rem;
            border-radius: 10px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .blog-share-btn:hover {
            background: var(--bg-elevated);
            border-color: var(--border-hover);
            color: var(--brand-primary);
        }

        /* Footer / Author Section */
        .blog-footer {
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-subtle);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .blog-author-card {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .blog-author-avatar {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(34,211,238,0.05));
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-subtle);
            flex-shrink: 0;
        }

        .blog-author-name {
            font-family: var(--font-display);
            font-weight: 700;
            color: var(--text-primary);
            margin: 0;
        }

        .blog-author-role {
            font-size: 0.875rem;
            color: var(--text-tertiary);
            margin: 0;
        }

        .blog-back-link {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            color: var(--brand-primary);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition-fast);
        }

        .blog-back-link:hover {
            gap: 0.75rem;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .blog-body-wrapper {
                gap: 1.5rem;
            }
            .blog-share-bar {
                position: relative;
                top: auto;
                width: auto;
                flex-direction: row;
                justify-content: flex-start;
                margin-bottom: 1.5rem;
            }
            .blog-share-label {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .blog-hero {
                padding: 2.5rem 1.5rem;
                margin-bottom: 2rem;
            }
            .blog-title {
                font-size: clamp(1.5rem, 4vw, 2rem);
            }
            .blog-prose {
                font-size: 1rem;
            }
            .blog-prose h2 {
                font-size: 1.5rem;
                margin-top: 1.5rem;
            }
            .blog-prose h3 {
                font-size: 1.2rem;
            }
            .blog-footer {
                flex-direction: column;
                gap: 1.5rem;
                align-items: flex-start;
            }
            .blog-prose blockquote {
                padding-left: 1rem;
            }
        }

        /* Bento Grid Responsive */
        @media (max-width: 900px) {
            .bento-grid {
                grid-template-columns: 1fr;
            }
        }