/* ================================================
   noosmedia.de – Premium Design System
   ================================================ */

/* === Variables === */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-pad: 100px;
    --container-max: 1200px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Dark Theme === */
[data-theme="dark"] {
    --gray-50: #1e293b;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #94a3b8;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    --gray-950: #0f172a;

    --primary-50: rgba(37, 99, 235, 0.15);
    --primary-100: rgba(37, 99, 235, 0.2);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] body {
    background: #0f172a;
    color: #cbd5e1;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f1f5f9;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .nav-logo {
    color: #f1f5f9;
}

[data-theme="dark"] .nav-logo:hover {
    color: #f1f5f9;
}

[data-theme="dark"] .nav-link {
    color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .nav-toggle span {
    background: #e2e8f0;
}

[data-theme="dark"] .btn-outline {
    color: #60a5fa;
    border-color: #60a5fa;
}

[data-theme="dark"] .btn-outline:hover {
    background: #3b82f6;
    color: #fff;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #0f172a 70%, #1a1a2e 100%);
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .hero-badge {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .hero-stats {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .download-card,
[data-theme="dark"] .dash-card,
[data-theme="dark"] .admin-stat-card,
[data-theme="dark"] .admin-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .pricing-card:hover,
[data-theme="dark"] .download-card:hover {
    border-color: transparent;
}

[data-theme="dark"] .feature-icon svg {
    stroke: #60a5fa;
}

[data-theme="dark"] .pricing-card.popular {
    border-color: #3b82f6;
}

[data-theme="dark"] .pricing-price {
    color: #f1f5f9;
}

[data-theme="dark"] .section-alt {
    background: #1a2332;
}

[data-theme="dark"] .section-dark {
    background: #020617;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus,
[data-theme="dark"] .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .alert-info {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .dash-sidebar {
    background: #1e293b;
    border-right-color: #334155;
}

[data-theme="dark"] .admin-sidebar {
    background: #0f172a;
    border-right-color: #1e293b;
}

[data-theme="dark"] .admin-sidebar-header {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .admin-nav-item {
    color: #94a3b8;
}

[data-theme="dark"] .admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

[data-theme="dark"] .admin-nav-item.active {
    background: var(--primary);
    color: #fff;
}

[data-theme="dark"] .faq-item {
    border-bottom-color: #334155;
}

[data-theme="dark"] .faq-question {
    color: #e2e8f0;
}

[data-theme="dark"] .btn-white {
    background: #1e293b;
    color: #60a5fa;
}

[data-theme="dark"] .legal-content {
    color: #cbd5e1;
}

/* === Product Showcase === */
.product-showcase {
    background: linear-gradient(135deg, var(--primary-50), #f5f3ff);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 32px;
    border: 1px solid var(--primary-100);
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.product-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    padding: 6px 0;
    color: var(--gray-600);
    font-size: 15px;
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-preview-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.product-preview-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 20px;
    margin-bottom: 4px;
}

.product-preview-price {
    font-size: 14px;
    color: var(--gray-500);
}

.product-preview-tags {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-tag {
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 11px;
    color: var(--gray-600);
}

.product-soon-badge {
    display: inline-block;
    padding: 3px 12px;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .product-showcase {
        padding: 28px 20px;
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Dark Mode: Product Showcase */
[data-theme="dark"] .product-showcase {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.08));
    border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .product-desc,
[data-theme="dark"] .product-features li {
    color: #94a3b8;
}

[data-theme="dark"] .product-preview-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .product-preview-name {
    color: #f1f5f9;
}

[data-theme="dark"] .product-preview-price {
    color: #94a3b8;
}

[data-theme="dark"] .product-tag {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .product-soon-badge {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .admin-main {
    background: #0f172a;
}

[data-theme="dark"] .admin-table th {
    background: #1a2332;
    border-bottom-color: #334155;
}

[data-theme="dark"] .admin-table td {
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .admin-table tr:hover td {
    background: #1a2332;
}

[data-theme="dark"] .admin-stat-number {
    color: #f1f5f9;
}

[data-theme="dark"] .nav-menu {
    background: rgba(15, 23, 42, 0.98);
}

@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu {
        background: #0f172a;
    }
}

/* === Theme Toggle Button === */
.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle svg {
    stroke: #e2e8f0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: var(--gray-900);
    font-weight: 400;
}

.nav-logo:hover {
    color: var(--gray-900);
}

.logo-icon {
    font-size: 28px;
}

.logo-icon-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text strong {
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
    line-height: 25.5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.nav-dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
}

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

.nav-dropdown-item {
    display: block;
    padding: 10px 14px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}

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

.nav-dropdown-item.active {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 600;
}

.nav-dropdown-item small {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 400;
    margin-top: 2px;
}

[data-theme="dark"] .nav-dropdown-toggle {
    color: #94a3b8;
}

[data-theme="dark"] .nav-dropdown:hover .nav-dropdown-toggle,
[data-theme="dark"] .nav-dropdown-toggle.active {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .nav-dropdown-menu {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .nav-dropdown-item {
    color: #94a3b8;
}

[data-theme="dark"] .nav-dropdown-item:hover,
[data-theme="dark"] .nav-dropdown-item.active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .nav-dropdown-item small {
    color: #64748b;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: #fff;
}

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

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

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: #fff;
}

/* === Hero Section === */
.hero {
    padding: calc(var(--section-pad) + 72px) 0 var(--section-pad);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 30%, #f5f3ff 70%, #fef3f2 100%);
    position: relative;
    overflow: hidden;
}

.hero-screenshots {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-screenshot {
    position: absolute;
    width: 400px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.hero-screenshot-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-screenshot-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-52%);
    }
}

@keyframes heroFloatRight {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-52%);
    }
}

.hero-screenshot-left {
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-screenshot-right {
    animation: heroFloatRight 6s ease-in-out infinite 3s;
}

@media (max-width: 1200px) {
    .hero-screenshot {
        width: 320px;
        opacity: 0.6;
    }
}

@media (max-width: 900px) {
    .hero-screenshots {
        display: none;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-100);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

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

.hero p {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--gray-500);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
    animation: fadeInUp 1.4s ease;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* === Sections === */
.section {
    padding: var(--section-pad) 0;
}

.section-dark {
    background: var(--gray-900);
    color: var(--gray-200);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 17px;
    color: var(--gray-500);
}

/* === Feature Cards === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-icon svg {
    stroke: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* === Pricing === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 4px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 16px 0 4px;
}

.pricing-price span {
    font-size: 18px;
    font-weight: 500;
    color: var(--gray-400);
}

.pricing-period {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--gray-300);
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✕';
    color: var(--gray-300);
}

/* === Trust / Social Proof === */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--gray-600);
    font-weight: 500;
}

.trust-item span:first-child {
    font-size: 28px;
}

/* === FAQ === */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--gray-400);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === Footer === */
.footer {
    background: var(--gray-950);
    color: var(--gray-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo:hover {
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.badge-item {
    font-size: 12px;
    color: var(--gray-500);
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--gray-800);
    background: #fff;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}

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

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
}

/* === Alert Messages === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: var(--primary-50);
    color: var(--primary-dark);
    border: 1px solid var(--primary-100);
}

/* === Dashboard === */
.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    min-height: calc(100vh - 72px);
    padding-top: 72px;
}

.dash-sidebar {
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    padding: 32px 20px;
}

.dash-nav {
    list-style: none;
}

.dash-nav li {
    margin-bottom: 4px;
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dash-nav a:hover,
.dash-nav a.active {
    background: var(--primary-50);
    color: var(--primary);
}

.dash-content {
    padding: 32px;
}

.dash-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.license-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.license-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-pro {
    background: var(--primary-100);
    color: var(--primary-dark);
}

.badge-business {
    background: #d1fae5;
    color: #065f46;
}

.badge-expired {
    background: #fee2e2;
    color: #991b1b;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === Grid Variants === */
.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .features-grid-3 {
        grid-template-columns: 1fr;
    }

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

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

    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero-stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
    }

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

    .nav-dropdown-toggle::after {
        display: none;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .dash-sidebar {
        display: none;
    }
}

/* === Page-specific: Contact === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

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

/* === Page-specific: Download === */
.download-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.download-card {
    background: var(--bg-card, #fff);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 14px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.download-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    color: var(--primary-light, #3b82f6);
    transition: var(--transition);
}

.download-icon svg {
    width: 36px;
    height: 36px;
}

.download-card:hover .download-icon {
    color: var(--accent, #06b6d4);
    transform: scale(1.1);
}

.download-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.download-card p {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 0;
}

.download-card .btn {
    font-size: 12px;
    padding: 10px 12px;
    margin-top: auto;
    width: 100%;
}

.download-meta {
    font-size: 10px !important;
    color: var(--gray-400) !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
    flex-grow: 0;
}

/* OS-Erkennung Banner */
.os-detect-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    font-weight: 600;
    font-size: 15px;
}

.os-detect-banner .btn-sm {
    padding: 8px 20px;
    font-size: 13px;
    background: white;
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.os-detect-banner .btn-sm:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Installations-Tabs */
.install-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 0;
}

.install-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.install-tab:hover {
    color: var(--primary);
}

.install-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.install-content .dash-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.install-steps {
    padding-left: 20px;
    font-size: 14px;
    line-height: 2;
}

.install-steps code {
    background: var(--gray-50);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.code-block {
    display: block;
    background: var(--gray-900, #1a1a2e) !important;
    color: #e2e8f0 !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    margin: 8px 0;
    font-family: 'Fira Code', monospace;
    font-size: 13px !important;
    user-select: all;
}

.install-note {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 16px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--warning, #f59e0b);
}

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

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

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

    .install-tabs {
        flex-wrap: wrap;
    }

    .os-detect-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* === Legal pages === */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px var(--section-pad);
}

.legal-content h1 {
    margin-bottom: 24px;
}

.legal-content h2 {
    font-size: 22px;
    margin: 32px 0 12px;
}

.legal-content h3 {
    font-size: 18px;
    margin: 24px 0 8px;
}

.legal-content p {
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 8px 0 16px 24px;
}

.legal-content li {
    margin-bottom: 4px;
    font-size: 15px;
}

/* ================================================
   Admin Panel Styles
   ================================================ */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
    margin-top: 72px;
}

.admin-sidebar {
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    padding: 24px 0;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    color: var(--gray-900);
    font-size: 18px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 12px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.admin-nav-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.admin-nav-item.active {
    background: var(--primary);
    color: #fff;
}

.admin-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.admin-main {
    padding: 32px 40px;
    background: var(--gray-50);
}

.finance-export-card {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-200);
}

[data-theme="dark"] .finance-export-card {
    background: #1e293b;
    border-color: #334155;
}

.admin-main h1 {
    font-size: 28px;
    margin-bottom: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.admin-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
}

.admin-stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
}

.admin-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.admin-table tr:hover td {
    background: var(--gray-50);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-active,
.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-expired,
.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-revoked,
.status-refunded {
    background: var(--gray-100);
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-main {
        padding: 20px 16px;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 6px 8px;
    }
}

/* ================================================
   Cookie Consent Banner
   ================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #e2e8f0;
    padding: 24px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.cookie-btn-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 8px 20px;
}

.cookie-btn-reject:hover {
    background: #334155;
    color: #fff;
}

.cookie-btn-settings {
    background: transparent;
    color: #60a5fa;
    border: 1px solid #3b82f6;
    padding: 8px 20px;
}

.cookie-btn-settings:hover {
    background: rgba(59, 130, 246, 0.15);
}

.cookie-btn-accept {
    padding: 8px 24px;
}

.cookie-details {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    gap: 16px;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category strong {
    font-size: 13px;
    color: #f1f5f9;
}

.cookie-category p {
    font-size: 11px;
    color: #94a3b8;
    margin: 2px 0 0;
}

.cookie-check-label {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-check-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    background: #334155;
    border-radius: 11px;
    flex-shrink: 0;
    transition: background 0.3s;
    cursor: pointer;
}

.cookie-check-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #94a3b8;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-checkbox:checked+.cookie-check-toggle {
    background: #3b82f6;
}

.cookie-checkbox:checked+.cookie-check-toggle::after {
    left: 21px;
    background: #fff;
}

.cookie-checkbox {
    display: none;
}

.cookie-settings-link {
    cursor: pointer;
    font-size: 13px;
}

/* ================================================
   Barrierefreiheit Widget (BFSG/EAA)
   ================================================ */
.a11y-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.a11y-panel {
    position: fixed;
    bottom: 84px;
    left: 24px;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}

[data-theme="dark"] .a11y-panel {
    background: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 15px;
}

[data-theme="dark"] .a11y-panel-header {
    background: #0f172a;
    border-bottom-color: #334155;
}

.a11y-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px;
    border-radius: 4px;
}

.a11y-close:hover {
    background: var(--gray-100);
}

.a11y-panel-body {
    padding: 16px 20px;
}

.a11y-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.a11y-option:last-child {
    border-bottom: none;
}

.a11y-size-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.a11y-btn {
    padding: 4px 10px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-700);
}

.a11y-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

.a11y-btn-toggle {
    min-width: 40px;
    text-align: center;
}

.a11y-btn-toggle[data-active="true"] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* High Contrast Mode */
[data-a11y-contrast="true"] body {
    filter: contrast(1.4);
}

/* Reduced Motion Mode */
[data-a11y-motion="true"] *,
[data-a11y-motion="true"] *::before,
[data-a11y-motion="true"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Underline Links Mode */
[data-a11y-links="true"] a {
    text-decoration: underline !important;
}

/* ================================================
   Chatbot Widget
   ================================================ */
.chat-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

.chat-panel {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 370px;
    max-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}

[data-theme="dark"] .chat-panel {
    background: #1e293b;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.chat-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.chat-msg-user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 80%;
}

.chat-msg-bot .chat-bubble {
    background: var(--gray-100);
    color: var(--gray-700);
    border-bottom-left-radius: 4px;
}

.chat-msg-user .chat-bubble {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border-bottom-right-radius: 4px;
}

[data-theme="dark"] .chat-msg-bot .chat-bubble {
    background: #0f172a;
    color: #cbd5e1;
}

.chat-quick-replies {
    padding: 8px 16px 4px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chat-quick-btn {
    padding: 5px 12px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 50px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-600);
    white-space: nowrap;
}

.chat-quick-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .chat-quick-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
}

[data-theme="dark"] .chat-input-area {
    border-top-color: #334155;
}

.chat-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 13px;
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.2s;
}

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

[data-theme="dark"] .chat-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.1);
}

/* Chat & A11y responsive */
@media (max-width: 480px) {
    .chat-panel {
        right: 8px;
        left: 8px;
        width: auto;
        bottom: 84px;
    }

    .a11y-panel {
        left: 8px;
        right: 8px;
        width: auto;
    }

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

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

/* ============================================================
   DOKUMENTATION
   ============================================================ */

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 72px);
    margin-top: 72px;
}

.docs-sidebar {
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    padding: 24px 0;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.docs-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 16px;
}

.docs-sidebar-header svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.docs-product-selector {
    display: flex;
    gap: 4px;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 12px;
}

.docs-product-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

.docs-product-tab:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.docs-product-tab.active {
    background: var(--primary);
    color: #fff;
}

.docs-product-tab.active svg {
    stroke: #fff;
}

.docs-product-single {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 12px;
}

.docs-product-single svg {
    stroke: var(--primary);
}

.docs-nav {
    padding: 0 12px;
}

.docs-nav-group {
    margin-bottom: 16px;
}

.docs-nav-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    padding: 4px 12px 8px;
}

.docs-nav-link {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.docs-nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.docs-nav-link.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* Mobile Sidebar Toggle */
.docs-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 16px;
    z-index: 50;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.docs-sidebar-toggle svg {
    stroke: #fff;
}

/* Content Area */
.docs-content {
    padding: 32px 48px 64px;
    max-width: 860px;
    min-width: 0;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.docs-breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: var(--primary);
}

.docs-breadcrumb-sep {
    color: var(--gray-300);
}

/* Article Typography */
.docs-article h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.docs-article h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.docs-article h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 28px;
    margin-bottom: 12px;
}

.docs-article p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.docs-article ul,
.docs-article ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-article li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.docs-article a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.docs-article a:hover {
    text-decoration: underline;
}

.docs-article code {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.docs-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 28px;
}

/* Info Box */
.docs-info-box {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 28px;
}

.docs-info-box a {
    color: var(--primary);
    font-weight: 600;
}

/* Feature Grid */
.docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0 32px;
}

.docs-feature-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
}

.docs-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.docs-feature-icon svg {
    stroke: var(--primary);
}

.docs-feature-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.docs-feature-item p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-500);
    margin: 0;
}

/* Tables */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 14px;
}

.docs-table th {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
}

.docs-table td {
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    color: var(--gray-700);
}

.docs-table tbody tr:hover {
    background: var(--gray-50);
}

/* Steps (ordered list) */
.docs-steps {
    counter-reset: docs-step;
    list-style: none;
    padding-left: 0;
    margin: 16px 0 24px;
}

.docs-steps li {
    counter-increment: docs-step;
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    min-height: 28px;
}

.docs-steps li::before {
    content: counter(docs-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

/* Code blocks */
.docs-code {
    background: var(--gray-900);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 10px 0 16px;
    overflow-x: auto;
}

.docs-code code {
    background: none;
    color: #e2e8f0;
    padding: 0;
    font-size: 13px;
}

/* Callouts */
.docs-callout {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 16px 0 24px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid;
}

.docs-callout strong {
    display: block;
    margin-bottom: 4px;
}

.docs-callout-info {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--primary);
    color: var(--gray-700);
}

.docs-callout-tip {
    background: rgba(16, 185, 129, 0.06);
    border-color: #10b981;
    color: var(--gray-700);
}

.docs-callout-warning {
    background: rgba(245, 158, 11, 0.06);
    border-color: #f59e0b;
    color: var(--gray-700);
}

/* Placeholder */
.docs-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    padding: 48px;
    text-align: center;
    color: var(--gray-400);
}

/* Pagination */
.docs-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.docs-pagination-link {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.docs-pagination-link:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
}

.docs-pagination-prev {
    text-align: left;
}

.docs-pagination-next {
    text-align: right;
}

.docs-pagination-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.docs-pagination-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

/* ---- Dark Mode ---- */

[data-theme="dark"] .docs-sidebar {
    background: #0f172a;
    border-right-color: #1e293b;
}

[data-theme="dark"] .docs-sidebar-header {
    color: #e2e8f0;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .docs-product-selector {
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .docs-product-tab {
    color: #94a3b8;
}

[data-theme="dark"] .docs-product-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

[data-theme="dark"] .docs-product-single {
    color: #cbd5e1;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .docs-nav-group-title {
    color: #64748b;
}

[data-theme="dark"] .docs-nav-link {
    color: #94a3b8;
}

[data-theme="dark"] .docs-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

[data-theme="dark"] .docs-nav-link.active {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-left-color: #60a5fa;
}

[data-theme="dark"] .docs-breadcrumb a {
    color: #64748b;
}

[data-theme="dark"] .docs-breadcrumb-sep {
    color: #334155;
}

[data-theme="dark"] .docs-article h1,
[data-theme="dark"] .docs-article h2,
[data-theme="dark"] .docs-article h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .docs-article h2 {
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .docs-article p,
[data-theme="dark"] .docs-article li {
    color: #94a3b8;
}

[data-theme="dark"] .docs-lead {
    color: #94a3b8;
}

[data-theme="dark"] .docs-article code {
    background: #1e293b;
    color: #e2e8f0;
}

[data-theme="dark"] .docs-info-box {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    color: #94a3b8;
}

[data-theme="dark"] .docs-feature-item {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .docs-feature-item h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .docs-feature-item p {
    color: #64748b;
}

[data-theme="dark"] .docs-feature-icon {
    background: rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .docs-feature-icon svg {
    stroke: #60a5fa;
}

[data-theme="dark"] .docs-table th {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .docs-table td {
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .docs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .docs-callout-info {
    background: rgba(37, 99, 235, 0.1);
    color: #94a3b8;
}

[data-theme="dark"] .docs-callout-tip {
    background: rgba(16, 185, 129, 0.1);
    color: #94a3b8;
}

[data-theme="dark"] .docs-callout-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #94a3b8;
}

[data-theme="dark"] .docs-code {
    background: #020617;
}

[data-theme="dark"] .docs-placeholder {
    background: #1e293b;
    border-color: #334155;
    color: #64748b;
}

[data-theme="dark"] .docs-pagination {
    border-top-color: #1e293b;
}

[data-theme="dark"] .docs-pagination-link {
    border-color: #334155;
}

[data-theme="dark"] .docs-pagination-link:hover {
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.05);
}

[data-theme="dark"] .docs-pagination-label {
    color: #64748b;
}

[data-theme="dark"] .docs-pagination-title {
    color: #60a5fa;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        width: 280px;
        z-index: 100;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .docs-sidebar.open {
        display: block;
    }

    .docs-sidebar-toggle {
        display: flex;
    }

    .docs-content {
        padding: 24px 20px 64px;
    }

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

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

    .docs-table {
        display: block;
        overflow-x: auto;
    }
}