/**
 * SoftwareOps - Design System
 * Premium Dark Theme
 *
 * @author Secan Akbulut
 *
 * Struktur:
 * 1. CSS Variablen / Design Tokens
 * 2. Reset & Basis
 * 3. Typografie
 * 4. Layout
 * 5. Komponenten
 * 6. Hilfklassen
 * 7. Animationen
 */

/* --- 1. CSS Variablen --- */

:root {
    /* Base Colors */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Dark Neutrals */
    --color-gray-50: #18181b;
    --color-gray-100: #1f1f23;
    --color-gray-200: #27272a;
    --color-gray-300: #3f3f46;
    --color-gray-400: #52525b;
    --color-gray-500: #71717a;
    --color-gray-600: #a1a1aa;
    --color-gray-700: #d4d4d8;
    --color-gray-800: #e4e4e7;
    --color-gray-900: #fafafa;

    /* Primary - SoftwareOps Burnt Orange (Warm & Elegant) */
    --color-primary-50: rgba(204, 102, 51, 0.1);
    --color-primary-100: rgba(204, 102, 51, 0.2);
    --color-primary-200: #e8b896;
    --color-primary-300: #d9956a;
    --color-primary-400: #cc7744;
    --color-primary-500: #bf5a24;
    --color-primary-600: #a34b1e;
    --color-primary-700: #873d18;
    --color-primary-800: #6b2f12;
    --color-primary-900: #4f220d;

    /* Accent - Soft Violet/Purple */
    --color-accent-400: #a78bfa;
    --color-accent-500: #8b5cf6;
    --color-accent-600: #7c3aed;

    /* Semantic Colors */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Backgrounds - Dark Theme */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;
    --bg-elevated: #161618;
    --bg-glass: rgba(10, 10, 11, 0.85);
    --bg-card: linear-gradient(145deg, #161618 0%, #111113 100%);

    /* Text Colors */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-inverted: #0a0a0b;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.05);
    --border-color-focus: var(--color-primary-500);

    /* Shadows - Dark Theme Optimized */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);

    /* Glow Effects */
    --glow-primary: 0 0 30px rgba(191, 90, 36, 0.3), 0 0 60px rgba(191, 90, 36, 0.15);
    --glow-accent: 0 0 30px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
    --glow-primary-subtle: 0 0 20px rgba(191, 90, 36, 0.15);
    --glow-accent-subtle: 0 0 20px rgba(139, 92, 246, 0.15);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, Consolas, monospace;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.6875rem, 0.65rem + 0.1vw, 0.75rem);
    --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);
    --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
    --text-xl: clamp(1.1875rem, 1.1rem + 0.45vw, 1.25rem);
    --text-2xl: clamp(1.375rem, 1.25rem + 0.6vw, 1.5rem);
    --text-3xl: clamp(1.625rem, 1.45rem + 0.9vw, 1.875rem);
    --text-4xl: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);
    --text-5xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
    --text-6xl: clamp(3rem, 2.3rem + 3.5vw, 4.5rem);

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 1.8;

    /* Letter Spacing */
    --tracking-tighter: -0.03em;
    --tracking-tight: -0.015em;
    --tracking-normal: 0;
    --tracking-wide: 0.015em;
    --tracking-wider: 0.03em;

    /* Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;

    /* Z-Index Scale */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
}

/* --- 2. Reset & Basis --- */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Textur-Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Content Visibility */
.section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: var(--color-primary-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-300);
}

ul, ol {
    list-style: none;
}

::selection {
    background: var(--color-primary-500);
    color: var(--color-white);
}

/* --- 3. Typografie --- */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
}

.h1, h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tighter);
}

.h2, h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
}

.h3, h3 {
    font-size: var(--text-3xl);
}

.h4, h4 {
    font-size: var(--text-2xl);
}

.h5, h5 {
    font-size: var(--text-xl);
}

.h6, h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.small {
    font-size: var(--text-sm);
}

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

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

strong, .font-bold {
    font-weight: var(--font-semibold);
}

code {
    font-family: var(--font-family-mono);
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--color-primary-300);
}

/* --- 4. Layout --- */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-2xl { max-width: var(--container-2xl); }

/* Sections */
.section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

.section-sm {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.section-lg {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
    .grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .grid-cols-5,
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 { grid-template-columns: 1fr; }

    .grid[style*="max-width: 66%"] {
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
    .grid-cols-5,
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 { grid-template-columns: 1fr; }

    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --- 5. Komponenten --- */

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--bg-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
}

.navbar-brand:hover {
    color: var(--text-primary);
}

.navbar-brand svg {
    width: 32px;
    height: 32px;
}

.navbar-brand img {
    height: 50px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.navbar-link {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: var(--color-error);
    color: #fff;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: var(--space-1);
    line-height: 1;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Sprachwechsler */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: var(--space-3);
    padding-left: var(--space-3);
    border-left: 1px solid var(--border-color);
}

.lang-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    text-decoration: none;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.lang-link.active {
    color: var(--color-primary-500);
    font-weight: var(--font-semibold);
}

.lang-divider {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* Nav Dropdown (Dashboard/Logout) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    position: relative;
}

.nav-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-2);
    min-width: 140px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Mobile Menü */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    cursor: pointer;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar {
        background: var(--bg-primary);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .navbar-brand img {
        height: 48px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-6);
        background: var(--bg-primary);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        overflow-y: auto;
    }

    .navbar-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-link {
        padding: var(--space-4);
        font-size: var(--text-lg);
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }

    .navbar-actions {
        display: none;
    }

    .navbar-menu .navbar-actions {
        display: flex;
        flex-direction: column;
        margin-top: var(--space-6);
        gap: var(--space-3);
    }

    .navbar-menu .navbar-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile: Dropdown als normale Links anzeigen */
    .nav-dropdown {
        display: contents;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: none;
        box-shadow: none;
        margin: 0;
        min-width: auto;
    }

    .nav-dropdown-item {
        width: 100%;
        padding: var(--space-3) var(--space-6);
        text-align: center;
        background: var(--bg-tertiary);
        border-radius: var(--radius-md);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: 1;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: var(--color-white);
    box-shadow: var(--glow-primary-subtle);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-500));
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-elevated);
    border-color: var(--border-color-focus);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-400);
    border: 1.5px solid var(--color-primary-500);
}

.btn-outline:hover:not(:disabled) {
    background: var(--color-primary-500);
    color: var(--color-white);
    box-shadow: var(--glow-primary-subtle);
}

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

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-icon {
    padding: var(--space-3);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-body {
    padding: var(--space-8);
}

.card-sm .card-body {
    padding: var(--space-6);
}

.card-header {
    padding: var(--space-6) var(--space-8);
    border-bottom: 1px solid var(--border-color);
}

.card-footer {
    padding: var(--space-6) var(--space-8);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, var(--color-primary-50), var(--color-primary-100));
    border-radius: var(--radius-xl);
    color: var(--color-primary-400);
    box-shadow: var(--glow-primary-subtle);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Feature Card */
.card-feature {
    position: relative;
    overflow: visible;
}

/* --- Forms --- */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.form-label-optional {
    font-weight: var(--font-normal);
    color: var(--text-tertiary);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px var(--color-primary-50), var(--glow-primary-subtle);
    background: var(--bg-elevated);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--color-error);
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

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

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-12);
    text-overflow: ellipsis;
    min-width: 0;
}

.form-select option {
    white-space: normal;
    word-wrap: break-word;
}

.form-error {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-error);
}

.form-hint {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary-500);
    cursor: pointer;
}

.form-checkbox-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
}

.form-row {
    display: grid;
    gap: var(--space-6);
}

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

/* --- Feature Lists --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-6);
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--color-primary-500);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary-500), var(--color-primary-300), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-8);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-8) - 1px);
    transform: translateX(-50%);
    background: var(--color-primary-500);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 0 0 4px var(--bg-secondary), var(--shadow-md);
}

.timeline-current .timeline-marker {
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-primary-600));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 20px rgba(0, 112, 201, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 30px rgba(0, 112, 201, 0.5);
    }
}

.timeline-content {
    padding-left: var(--space-6);
}

.timeline-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.timeline-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.timeline-text strong {
    color: var(--color-primary-400);
}

@media (max-width: 640px) {
    .timeline {
        padding-left: var(--space-6);
    }

    .timeline-marker {
        left: calc(-1 * var(--space-6) - 1px);
        font-size: 0.65rem;
        padding: var(--space-1) var(--space-2);
    }

    .timeline-content {
        padding-left: var(--space-4);
    }
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: 1.4;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-primary {
    background: var(--color-primary-50);
    color: var(--color-primary-300);
    border-color: var(--color-primary-100);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
    border-color: rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-info);
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-founder {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Tech Badges */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    border-color: var(--color-primary-500);
    box-shadow: var(--glow-primary-subtle);
    transform: translateY(-2px);
}

.tech-badge svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary-400);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding-top: calc(64px + var(--space-16));
    padding-bottom: var(--space-16);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

/* Hintergrund-Effekte */
.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--color-primary-500) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    animation: floatOrb1 20s ease-in-out infinite;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--color-accent-500) 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(60px);
    animation: floatOrb2 25s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.05); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.1); }
    66% { transform: translate(30px, -20px) scale(0.9); }
}

/* Grid-Muster */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--color-success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    line-height: 1.05;
    letter-spacing: var(--tracking-tighter);
    margin-bottom: var(--space-6);
}

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

.hero-typewriter {
    display: inline-block;
    min-height: 1.1em;
    vertical-align: bottom;
}

.hero-typewriter:empty::before {
    content: '\200B';
}

.hero-typewriter::after {
    content: '|';
    display: inline-block;
    -webkit-text-fill-color: var(--color-primary-400);
    animation: blink 0.8s infinite;
    margin-left: 4px;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Hero Split Layout */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-code-window {
    display: flex;
    justify-content: flex-end;
}

/* macOS Code Window */
.code-window {
    background: rgba(30, 30, 35, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    position: relative;
}

.code-window-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(40, 40, 45, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-window-dots {
    display: flex;
    gap: 8px;
}

.code-window-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27ca40; }

.code-window-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: var(--font-family-mono);
}

.code-window-actions {
    width: 52px;
}

.code-window-body {
    padding: 20px 24px;
    overflow-x: auto;
    font-family: var(--font-family-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #e4e4e7;
}

.code-line {
    min-height: 1.7em;
}

.code-line.i1 { padding-left: 2em; }
.code-line.i2 { padding-left: 4em; }
.code-line.i3 { padding-left: 6em; }
.code-line.i4 { padding-left: 8em; }

/* Syntax Highlighting */
.code-keyword { color: #c678dd; }
.code-class { color: #e5c07b; }
.code-type { color: #61afef; }
.code-variable { color: #e06c75; }
.code-function { color: #61afef; }
.code-property { color: #98c379; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }

/* Watermark */
.code-window-watermark {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .hero-code-window {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding-top: calc(64px + var(--space-12));
    }

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

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* --- Trust Bar --- */
.trust-bar {
    padding: var(--space-10) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-bar-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
}

.trust-bar-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary-400);
}

@media (max-width: 640px) {
    .trust-bar-items {
        gap: var(--space-6);
    }

    .trust-bar-item {
        width: calc(50% - var(--space-3));
        justify-content: center;
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-16);
}

.section-eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-primary-400);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* --- Process Steps --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-4);
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-400), var(--color-primary-500), var(--color-primary-400));
    z-index: 0;
    opacity: 0.6;
}

.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.process-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    background: var(--bg-tertiary);
    border: 2px solid var(--color-primary-500);
    border-radius: var(--radius-full);
    color: var(--color-primary-400);
    transition: all var(--transition-base);
    box-shadow: var(--glow-primary-subtle);
}

.process-step:hover .process-step-number {
    background: var(--color-primary-500);
    color: var(--color-white);
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

.process-step-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.process-step-text {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    display: none;
}

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Tech Stack Section --- */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-3xl);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, var(--color-primary-500) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, var(--color-accent-500) 0%, transparent 50%);
    opacity: 0.1;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    text-align: center;
    padding: var(--space-16);
    z-index: 1;
}

.cta-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.cta-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding-top: var(--space-16);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand-name {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer-brand-name img,
.footer-logo img {
    height: 50px;
}

.footer-brand-text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-tertiary);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-social-link:hover {
    opacity: 1;
}

.footer-heading {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0;
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
    flex: 1;
    justify-content: flex-end;
}

.tech-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    max-width: 450px;
    margin: var(--space-8) auto var(--space-6);
    padding: var(--space-3) var(--space-4);
    background: rgba(191, 90, 36, 0.1);
    border: 1px solid rgba(191, 90, 36, 0.25);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: rgba(217, 149, 106, 0.95);
    letter-spacing: 0.02em;
}

.tech-banner-label {
    color: rgba(217, 149, 106, 0.95);
    font-weight: 500;
}

.tech-banner-icons {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.tech-banner-icons img {
    height: 20px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.tech-banner-icons img:hover {
    opacity: 1;
}

.tech-banner-icons img[src*="mySQL"] {
    height: 32px;
}

.tech-banner-icons img[src*="html5"] {
    height: 24px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}

@keyframes pulse-status {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

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

.footer-compact-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-compact-links {
    display: flex;
    gap: var(--space-6);
}

.footer-compact-links .footer-link {
    font-size: var(--text-sm);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .cta-content {
        padding: var(--space-8) var(--space-4);
    }

    .cta-title {
        font-size: var(--text-2xl);
    }

    .cta-description {
        font-size: var(--text-base);
    }

    .cta-content .flex {
        flex-direction: column;
        gap: var(--space-3);
    }

    .cta-content .btn {
        width: 100%;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-compact {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-compact-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }
}

/* --- Updates Timeline --- */
.updates-timeline {
    position: relative;
}

.updates-month {
    margin-bottom: var(--space-8);
}

.updates-month:last-child {
    margin-bottom: 0;
}

.updates-month-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.update-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.update-item:last-child {
    margin-bottom: 0;
}

.update-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.update-date {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.update-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.update-content {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.update-content p {
    margin: 0 0 var(--space-3) 0;
}

.update-content p:last-child {
    margin-bottom: 0;
}

.update-content h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: var(--space-4) 0 var(--space-2) 0;
}

.update-content h3:first-child {
    margin-top: 0;
}

.update-content h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: var(--space-4) 0 var(--space-2) 0;
}

.update-content h4:first-child {
    margin-top: 0;
}

.update-content > strong,
.update-content > p > strong:only-child {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: var(--space-4) 0 var(--space-2) 0;
}

.update-content ul {
    margin: var(--space-2) 0;
    padding-left: var(--space-5);
}

.update-content ul li {
    margin-bottom: var(--space-1);
}

.update-content ul li:last-child {
    margin-bottom: 0;
}

.update-image {
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.update-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.update-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-color);
}

.update-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-accent-500));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.update-author-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.update-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-6);
    z-index: 9999;
    max-width: 420px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
}

.cookie-banner-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.cookie-banner-text p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.cookie-banner-text a {
    color: var(--color-primary-500);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--color-primary-400);
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-3);
}

.cookie-banner-actions .btn {
    flex: 1;
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
    z-index: 999;
}

.cookie-settings-btn:hover {
    background: var(--bg-card);
    color: var(--color-primary-500);
    transform: rotate(45deg);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal-visible {
    opacity: 1;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal-visible .cookie-modal-content {
    transform: translateY(0);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cookie-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.cookie-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-intro {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.cookie-modal-intro a {
    color: var(--color-primary-500);
}

.cookie-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-4);
    gap: var(--space-4);
}

.cookie-category-info h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
}

.cookie-category-info p {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-toggle {
    flex-shrink: 0;
}

.cookie-toggle input {
    display: none;
}

.cookie-toggle label {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-toggle label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-toggle label:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.cookie-toggle label:hover::after {
    background: rgba(255, 255, 255, 0.6);
}

.cookie-toggle input:checked + label {
    background: var(--color-primary-500);
    border-color: var(--color-primary-500);
}

.cookie-toggle input:checked + label::after {
    left: 22px;
    background: white;
}

.cookie-toggle-disabled {
    display: flex;
    align-items: center;
}

.cookie-toggle-disabled input {
    display: none;
}

.cookie-toggle-disabled label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 4px 10px;
    background: var(--color-primary-500);
    border: none;
    border-radius: 4px;
    font-size: var(--text-xs);
    color: white;
    font-weight: 600;
    cursor: default;
}

.cookie-toggle-disabled label::after {
    display: none;
}

.cookie-category-details {
    border-top: 1px solid var(--border-color);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
}

.cookie-table {
    width: 100%;
    font-size: var(--text-xs);
}

.cookie-table td {
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table td:first-child {
    color: var(--text-primary);
    width: 120px;
}

.cookie-table td:last-child {
    text-align: right;
    color: var(--text-muted);
    width: 80px;
}

.cookie-modal-footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
}

.cookie-modal-footer .btn {
    flex: 1;
}

@media (max-width: 640px) {
    .cookie-modal-content {
        max-height: 95vh;
    }

    .cookie-category-header {
        flex-direction: column;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-settings-btn {
        bottom: var(--space-4);
        left: var(--space-4);
    }
}

/* --- Flash Messages --- */
.flash-messages {
    position: fixed;
    top: 80px;
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 400px;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    border-left: 4px solid var(--color-success);
}

.flash-error {
    border-left: 4px solid var(--color-error);
}

.flash-warning {
    border-left: 4px solid var(--color-warning);
}

.flash-info {
    border-left: 4px solid var(--color-primary-500);
}

.flash-close {
    font-size: var(--text-xl);
    line-height: 1;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1);
}

.flash-close:hover {
    color: var(--text-primary);
}

/* Flash Messages Mobile */
@media (max-width: 768px) {
    .flash-messages {
        top: auto;
        bottom: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }

    .flash {
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-4);
    }
}

/* --- Legal/Content Pages (Privacy, Imprint) --- */
.card-body ul:not(.feature-list),
.card-body ol {
    list-style: disc;
    padding-left: var(--space-6);
    margin: var(--space-3) 0;
}

.card-body ol {
    list-style: decimal;
}

.card-body ul:not(.feature-list) li,
.card-body ol li {
    margin-bottom: var(--space-2);
    padding-left: var(--space-2);
    color: var(--text-secondary);
}

.card-body ul:not(.feature-list) li::marker,
.card-body ol li::marker {
    color: var(--color-primary-400);
}

/* Lists inside colored info boxes - inherit parent styles */
.card-body [style*="background"] ul,
.card-body [style*="background"] ol {
    background: transparent;
    border: none;
    box-shadow: none;
}

.card-body [style*="background"] ul li,
.card-body [style*="background"] ol li {
    background: transparent;
}

/* Nested lists in card content */
.card-body ul ul,
.card-body ol ul {
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
}

/* Table of contents style */
.card-body nav ol {
    list-style: decimal;
    columns: 2;
    column-gap: var(--space-8);
}

@media (max-width: 640px) {
    .card-body nav ol {
        columns: 1;
    }
}

/* --- Tables --- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
}

.table th {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-color);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--bg-tertiary);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    color: var(--text-tertiary);
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.empty-state-text {
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* --- Page Header --- */
.page-header {
    padding-top: calc(64px + var(--space-12));
    padding-bottom: var(--space-12);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--color-primary-500) 0%, transparent 60%);
    opacity: 0.05;
}

.page-header-inner {
    max-width: 700px;
    position: relative;
}

.page-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.page-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* --- Auth Pages --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: var(--bg-primary);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, var(--color-primary-500) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, var(--color-accent-500) 0%, transparent 50%);
    opacity: 0.08;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.auth-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-10);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.auth-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.auth-subtitle {
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* --- Dashboard --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-4);
    padding-bottom: var(--space-6);
}

.dashboard-greeting {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-12);
    margin-top: var(--space-4);
}

.stat-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--color-primary-500);
    box-shadow: var(--glow-primary-subtle);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* --- 6. Hilfklassen --- */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- 7. Animationen --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }
.reveal-delay-6 { transition-delay: 0.9s; }

/* Hover-Effekt */
.glow-hover {
    transition: box-shadow var(--transition-base);
}

.glow-hover:hover {
    box-shadow: var(--glow-primary);
}

/* Lade-Animation */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- 8. Spezielle Komponenten --- */

/* Performance-Anzeige */
.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.performance-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
}

.performance-metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.performance-metric:first-child {
    padding-top: 0;
}

.performance-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.performance-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    text-align: center;
}

.performance-value.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.performance-value.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.performance-value.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Contact Info List */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary-50), var(--color-primary-100));
    border-radius: var(--radius-xl);
    color: var(--color-primary-400);
    box-shadow: var(--glow-primary-subtle);
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.contact-info-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.contact-info-value {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

a.contact-info-value {
    color: var(--color-primary-400);
    transition: color var(--transition-fast);
}

a.contact-info-value:hover {
    color: var(--color-primary-300);
}

/* Background Sections */
.bg-secondary {
    background: var(--bg-secondary);
}
