:root {
    /* Shared colors */
    --primary-color: #8c52ff;
    --primary-hover: #7440e0;
    --secondary-color: #5e17eb;
    --accent-color: #4a0bff;
    --success-color: #28a745;
    --gradient-start: #8c52ff;
    --gradient-end: #5e17eb;

    /* Additional colors for gradients and effects */
    --tertiary-color: #4a0bff;
    --quaternary-color: #7440e0;
    --accent-alt: #6d28d9;
    --accent-light: #a78bfa;

    /* Pricing variables */
    --free-color: #4ade80;
    --hobby-color: #3b82f6;
    --standard-color: #f59e0b;
    --pro-color: #ec4899;

    /* Light mode (default) */
    --text-color: #333333;
    --text-muted: #6c757d;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e9ecef;
    --header-bg: #ffffff;
    --footer-bg: #f8f9fa;
    --footer-text: #6c757d;
    --border-color: #e9ecef;
    --bg-primary: var(--card-bg);
    --close-btn-filter: none;
    --close-btn-hover-filter: none;

    /* Glassmorphism variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 12px;
    --glow-primary: rgba(140, 82, 255, 0.4);
    --glow-secondary: rgba(94, 23, 235, 0.3);
}

/* Dark mode variables */
.dark-mode {
    --text-color: #f8f9fa;
    --text-muted: #9ca3af;
    --bg-color: #151823;
    --bg-secondary: #111319;
    --card-bg: #1e2432;
    --card-border: #2a3142;
    --header-bg: #111319;
    --footer-bg: #111319;
    --footer-text: #9ca3af;
    --border-color: #2a3142;
    --bg-primary: var(--card-bg);
    --close-btn-filter: invert(1) grayscale(100%) brightness(200%);
    --close-btn-hover-filter: invert(1) grayscale(100%) brightness(250%);

    /* Glassmorphism variables - Dark Mode */
    --glass-bg: rgba(30, 36, 50, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --glow-primary: rgba(140, 82, 255, 0.5);
    --glow-secondary: rgba(94, 23, 235, 0.4);
}

/* ============================================
   MODERN BASE STYLES & CSS VARIABLES
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Heading Font */
h1,
h2,
h3,
.hero-title,
.section-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

/* ============================================
   GLASSMORPHISM UTILITY CLASSES
   ============================================ */

/* Reusable glass panel class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Glass panel with glow effect */
.glass-panel-glow {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 40px var(--glow-primary),
        inset 0 0 20px rgba(140, 82, 255, 0.05);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(12px)) {

    .glass-panel,
    .glass-panel-glow {
        background: var(--card-bg);
    }
}

/* Header Styles */
.navbar {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
    /* Sticky Navbar */
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .navbar {
        background-color: var(--header-bg);
    }
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* Dark Mode Anpassungen für Scroll-to-Top Button */
.dark-mode .scroll-to-top {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dark-mode .scroll-to-top:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.nav-link {
    color: var(--text-color);
    margin: 0 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dropdown-item {
    color: var(--text-color);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(140, 82, 255, 0.1);
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

/* Blur Effects and Gradients */
.absolute-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.blur-primary {
    top: -10%;
    right: -5%;
    width: 30vw;
    height: 30vw;
    background-color: rgba(140, 82, 255, 0.3);
    animation: float 8s ease-in-out infinite;
}

.blur-secondary {
    bottom: -15%;
    left: -10%;
    width: 25vw;
    height: 25vw;
    background-color: rgba(94, 23, 235, 0.3);
    animation: float 10s ease-in-out infinite reverse;
}

.blur-accent {
    top: 30%;
    left: 25%;
    width: 20vw;
    height: 20vw;
    background-color: rgba(74, 11, 255, 0.15);
    animation: pulse 12s ease-in-out infinite;
}

.blur-accent-alt {
    bottom: 10%;
    right: 10%;
    width: 22vw;
    height: 22vw;
    background-color: rgba(109, 40, 217, 0.2);
    animation: float 9s ease-in-out infinite;
}

.blur-primary-alt {
    top: 5%;
    left: 5%;
    width: 28vw;
    height: 28vw;
    background-color: rgba(140, 82, 255, 0.2);
    animation: pulse 11s ease-in-out infinite;
}

.blur-white {
    top: 20%;
    right: 15%;
    width: 18vw;
    height: 18vw;
    background-color: rgba(255, 255, 255, 0.15);
    animation: float 7s ease-in-out infinite;
}

.blur-white-alt {
    bottom: 15%;
    left: 10%;
    width: 15vw;
    height: 15vw;
    background-color: rgba(255, 255, 255, 0.1);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

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

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

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

/* Message pulse animation */
.message-content.pulse {
    animation: message-pulse 1s ease-in-out;
}

@keyframes message-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(140, 82, 255, 0);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(140, 82, 255, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(140, 82, 255, 0);
    }
}

/* Button shimmer effect */
.send-button.shimmer {
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--accent-color) 50%,
            var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: white;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
    transition: background 0.3s ease;
}

.dark-mode .hero-section {
    background: var(--bg-color);
    position: relative;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.15) 0%, rgba(94, 23, 235, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(140, 82, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark-mode .ai-badge {
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.25) 0%, rgba(94, 23, 235, 0.2) 100%);
    border-color: rgba(140, 82, 255, 0.3);
}

h1 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

/* Enhanced Hero h1 for landing page */
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .hero-section h1 {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode h1 {
    color: var(--text-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 2rem;
}

.dark-mode .lead {
    color: #a0aec0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(140, 82, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--tertiary-color) 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(140, 82, 255, 0.4),
        0 0 30px rgba(140, 82, 255, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: var(--text-dark);
    border-color: #d1d5db;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.dark-mode .btn-outline-secondary {
    color: var(--text-color);
    border-color: #4a5568;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;
    color: var(--text-dark);
    transform: translateY(-2px);
}

.dark-mode .btn-outline-secondary:hover {
    background-color: #2d3748;
    color: var(--text-color);
}

/* Ratings Box */
.ratings-box {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1rem;
    padding: 1rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    max-width: 400px;
    border: 1px solid var(--glass-border);
}

.dark-mode .ratings-box {
    background: var(--glass-bg);
}

.user-avatars {
    display: flex;
    margin-right: 1rem;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -10px;
    object-fit: cover;
}

.dark-mode .avatar {
    border-color: var(--bg-dark);
}

.stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.rating-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.dark-mode .rating-text {
    color: #9ca3af;
}

/* Chat Preview - App-konforme Farben (unabhängig von chatbot-design) */
.chat-preview {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 60px var(--glow-primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    transform: translateY(0);
}

.chat-preview:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 80px var(--glow-primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Fallback for chat-preview */
@supports not (backdrop-filter: blur(12px)) {
    .chat-preview {
        background-color: var(--card-bg);
    }
}

/* Preview-spezifische Styles mit App-Farben */
.chat-preview .chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    transition: background 0.3s ease;
}

.chat-preview .chat-body {
    background-color: var(--card-bg) !important;
    transition: background-color 0.3s ease;
}

.chat-preview .chat-input-container {
    background-color: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chat-preview .chat-input {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.chat-preview .chat-input::placeholder {
    color: var(--text-muted) !important;
}

.chat-preview .send-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: #ffffff !important;
    transition: opacity 0.3s ease;
}

.chat-preview .send-button:hover {
    opacity: 0.9;
}

.chat-preview .chat-controls button {
    color: rgba(255, 255, 255, 0.8);
}

.chat-preview .chat-controls button:hover {
    color: #ffffff;
}

.chat-preview .status-badge {
    color: #10b981;
}

/* Chat-Modal Header (wird weiterhin von applyDesignStyles gesteuert) */
.chat-modal .chat-header {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Allgemeine Chat-Header Styles (Fallback) */
.chat-header {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.chat-title {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.chat-icon {
    margin-right: 0.5rem;
}

.status-badge {
    color: #10b981;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.chat-controls button {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.chat-controls button:hover {
    color: white;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.chat-body.expanded {
    flex: 1;
    height: auto;
    overflow-y: auto;
    min-height: 0;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 80%;
}

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

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

.message-content {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 1rem 1rem 1rem 0;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.user-message .message-content {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border-radius: 1rem 1rem 0 1rem;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Loading Animation für Chat-Nachrichten */
.message-content.loading {
    position: relative;
    color: transparent;
    min-height: 40px;
    min-width: 60px;
}

.message-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Dark Mode Spinner */
.dark-mode .message-content.loading::after {
    border: 2px solid rgba(140, 82, 255, 0.3);
    border-top: 2px solid var(--primary-color);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Chat-Body Scrolling */
/* Entfernt - Duplikat, siehe Zeile 477-494 */

.chat-input-container {
    display: flex;
    margin-top: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    outline: none;
    transition: color 0.3s ease;
}

.chat-input::placeholder {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.send-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-button:hover {
    background-color: var(--primary-hover);
}

/* Upload Button */
.upload-file-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.upload-file-btn:hover {
    color: var(--primary-color);
}

/* File Preview Container */
.file-preview-container {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.clear-files-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.clear-files-btn:hover {
    color: #ef4444;
}

.file-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.file-name {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.remove-file-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.3s ease;
}

.remove-file-btn:hover {
    background-color: #dc2626;
}

/* Message Attachments */
.message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.message-attachment {
    max-width: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

.message-attachment img {
    width: 100%;
    height: auto;
    display: block;
}

.message-attachment .attachment-info {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 0.5rem;
}

.message-attachment .attachment-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.message-attachment .attachment-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Expanded Chat Modal */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    /* Muss höher als sticky navbar (1030) sein */
    justify-content: center;
    align-items: center;
}

.chat-modal.active {
    display: flex;
}

.chat-modal-content {
    background-color: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    height: 95vh;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.chat-modal-content .chat-header {
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.chat-modal-content .chat-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    padding-bottom: 1rem;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
}

.chat-modal-content .chat-input-container {
    padding: 1rem;
    margin: 0 !important;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.15) 0%, rgba(94, 23, 235, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(140, 82, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.dark-mode .section-title {
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

.dark-mode .section-subtitle {
    color: #9ca3af;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 50px var(--glow-primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(140, 82, 255, 0.3);
}

/* Fallback for feature-card */
@supports not (backdrop-filter: blur(12px)) {
    .feature-card {
        background: var(--card-bg);
    }
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    /*background: linear-gradient(135deg, #2d1a4a 0%, #1a2a4a 100%); */
    background: linear-gradient(135deg, #2d1a4a 0%, #1a2a4a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* CTA Section Glass overlay effect */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(140, 82, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(94, 23, 235, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-primary {
    background: #ffffff;
    color: #2d1a4a;
    border: none;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 2.25rem;
    box-shadow:
        0 4px 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(140, 82, 255, 0.2);
    letter-spacing: 0.01em;
}

.cta-section .btn-primary:hover {
    background: #f0e6ff;
    color: #1a0a3a;
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(255, 255, 255, 0.4),
        0 0 50px rgba(140, 82, 255, 0.3);
}

.cta-section .btn-primary:active {
    transform: translateY(-1px);
}

/* Features Page Styles */
.features-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #2d1a4a 0%, #1a2a4a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.features-hero h1 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.features-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.feature-categories {
    background-color: var(--card-bg);
    border-bottom: 1px solid rgba(140, 82, 255, 0.1);
    padding: 2rem 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.feature-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tab {
    background-color: transparent;
    border: 2px solid rgba(140, 82, 255, 0.2);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark-mode .feature-tab {
    color: var(--text-color);
}

.feature-tab:hover {
    background-color: rgba(140, 82, 255, 0.1);
    border-color: rgba(140, 82, 255, 0.4);
}

.feature-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.feature-section {
    padding: 4rem 0;
}

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

.feature-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(140, 82, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    border-color: rgba(140, 82, 255, 0.3);
    box-shadow: 0 10px 30px rgba(140, 82, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-item h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.dark-mode .feature-item h3 {
    color: var(--text-color);
}

.feature-item p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dark-mode .feature-item p {
    color: #9ca3af;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background-color: rgba(140, 82, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.dark-mode .feature-tag {
    background-color: rgba(140, 82, 255, 0.2);
}

.learn-more-btn {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    gap: 0.75rem;
    color: var(--secondary-color);
}

.tech-stack-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border: 1px solid rgba(140, 82, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.tech-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-item:hover {
    border-color: rgba(140, 82, 255, 0.3);
    box-shadow: 0 10px 30px rgba(140, 82, 255, 0.1);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-item h4 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.dark-mode .tech-item h4 {
    color: var(--text-color);
}

.tech-item p {
    color: #6b7280;
    font-size: 0.875rem;
}

.dark-mode .tech-item p {
    color: #9ca3af;
}

.use-cases-section {
    padding: 6rem 0;
    background-color: var(--card-bg);
}

.use-case-card {
    background-color: var(--bg-color);
    border: 1px solid rgba(140, 82, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.use-case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.use-case-card:hover {
    border-color: rgba(140, 82, 255, 0.3);
    box-shadow: 0 10px 30px rgba(140, 82, 255, 0.1);
    transform: translateY(-5px);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.use-case-card h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.dark-mode .use-case-card h3 {
    color: var(--text-color);
}

.use-case-card p {
    color: #6b7280;
    line-height: 1.6;
}

.dark-mode .use-case-card p {
    color: #9ca3af;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Chat Animation Styles */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    /* Muss höher als sticky navbar (1030) sein */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-modal.active {
    opacity: 1;
}

/* Entfernt - Duplikat, siehe Zeile 635-648 */

.chat-modal.active .chat-modal-content {
    transform: scale(1);
}

/* Mobile-specific styles for chat modal */
@media (max-width: 768px) {
    .chat-modal {
        padding: 0 !important;
        background-color: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(2px);
    }

    .chat-modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: none !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .chat-modal.active .chat-modal-content {
        transform: none !important;
    }

    .chat-modal-content .chat-header {
        flex-shrink: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--card-bg);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .chat-body.expanded,
    .chat-modal-content .chat-body {
        flex: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        padding: 1rem !important;
        padding-bottom: 160px !important;
        /* Platz für Input-Container: Input (48px) + Gap (12px) + Button (48px) + Padding (32px) + Sicherheit (20px) = ~160px */
        -webkit-overflow-scrolling: touch;
    }

    .chat-input-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 1rem !important;
        background-color: var(--card-bg) !important;
        border-top: 1px solid var(--border-color) !important;
        z-index: 20 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .chat-input-container .chat-input {
        width: 100% !important;
        margin-bottom: 0 !important;
        font-size: 16px !important;
        /* Verhindert Zoom auf iOS */
        padding: 0.75rem 1rem !important;
        border-radius: 0.75rem !important;
        border: 1px solid var(--border-color) !important;
        background-color: var(--bg-color) !important;
        color: var(--text-color) !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }

    .chat-input-container .send-button {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 0.75rem !important;
        min-height: 48px !important;
        background-color: var(--primary-color) !important;
        border: none !important;
        color: white !important;
        box-sizing: border-box !important;
    }

    /* Verbesserte Message-Darstellung auf Mobile */
    .message {
        max-width: 90% !important;
        margin-bottom: 1rem !important;
    }

    .message-content {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        padding: 0.75rem 1rem !important;
    }
}

/* Chat Bubble Styles moved to chat-bubble.css */

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }

    .chat-preview {
        margin-top: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .features-hero h1 {
        font-size: 2.5rem;
    }

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

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

@media (max-width: 767.98px) {
    .ratings-box {
        max-width: 100%;
    }

    /* Responsive Logo-Anpassung für mobile Geräte */
    .brand-logo {
        height: 32px;
    }

    .navbar-brand {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .btn-outline-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
    }

    .features-hero h1 {
        font-size: 2rem;
    }

    .features-hero p {
        font-size: 1rem;
    }

    .feature-tabs {
        flex-direction: column;
    }

    .feature-tab {
        width: 100%;
        justify-content: center;
    }

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

    .feature-categories {
        position: relative;
        top: 0;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    /* Hide chat preview on mobile by default - will be controlled by JS */
    .chat-preview {
        display: none;
    }
}

/* ============================================
   CHATBOT CARDS - MOBILE VIEW
   ============================================ */

.chatbot-card {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-mode .chatbot-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chatbot-card .card-title {
    font-weight: 600;
    color: var(--text-color);
    word-break: break-word;
}

.chatbot-card .card-text {
    word-break: break-word;
}

.chatbot-card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.chatbot-card-actions .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

/* Sehr kleine Bildschirme: 2-spaltig */
@media (max-width: 390px) {
    .chatbot-card-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Verbesserte Scrollbar & Abstände */
/* WebKit Scrollbar Styling */
.chat-body::-webkit-scrollbar,
.chat-modal-content .chat-body::-webkit-scrollbar {
    width: 10px;
}

.chat-body::-webkit-scrollbar-track,
.chat-modal-content .chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb,
.chat-modal-content .chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(140, 82, 255, 0.4);
    /* primary toned */
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.dark-mode .chat-body::-webkit-scrollbar-thumb,
.dark-mode .chat-modal-content .chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(140, 82, 255, 0.6);
}

/* Firefox scrollbar */
.chat-body,
.chat-modal-content .chat-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 82, 255, 0.6) transparent;
}

/* Feineres Spacing der Chat-Messages */
.chat-message {
    margin-bottom: 0.75rem;
}

/* Bessere Lesbarkeit: leicht größeres Line-Height für message-content */
.message-content {
    line-height: 1.5;
}

/* Dark-Mode Feinschliff: Kontrast und Ränder */
.dark-mode .chat-input-container {
    background-color: #0f1220;
    border-color: #2a3142;
}

.dark-mode .user-message .message-content {
    background-color: #0f1220;
    border-color: #2a3142;
}

.dark-mode .message-content.loading::after {
    border-color: rgba(140, 82, 255, 0.3);
    border-top-color: var(--primary-color);
}

/* Pricing Page Styles */
.pricing-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pricing-header p {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Light Mode: Dunklerer Text für besseren Kontrast */
body:not(.dark-mode) .pricing-header p {
    color: #4b5563;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    background-color: #e5e7eb;
    border-radius: 2rem;
    padding: 0.25rem;
    width: fit-content;
    margin: 2rem auto;
}

/* Dark Mode: Dunklerer Hintergrund */
.dark-mode .pricing-toggle-container {
    background-color: #1f2937;
}

.pricing-toggle-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-toggle-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.pricing-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.pricing-plan {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.pricing-plan.popular {
    position: relative;
}

.pricing-plan.popular::before {
    content: "Popular";
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--standard-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-icon {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.plan-icon i,
.plan-icon svg {
    margin-right: 0.5rem;
}

.plan-free .plan-icon {
    color: var(--free-color);
}

.plan-hobby .plan-icon {
    color: var(--hobby-color);
}

.plan-standard .plan-icon {
    color: var(--standard-color);
}

.plan-pro .plan-icon {
    color: var(--pro-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.plan-price .currency {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.plan-price .period {
    font-size: 1rem;
    color: #9ca3af;
    margin-left: 0.5rem;
    align-self: flex-end;
}

/* Light Mode: Dunklerer Text für besseren Kontrast */
body:not(.dark-mode) .plan-price .period {
    color: #6b7280;
}

.plan-features {
    margin: 2rem 0;
}

.plan-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #e2e8f0;
}

/* Light Mode: Dunkler Text für bessere Lesbarkeit */
body:not(.dark-mode) .plan-feature {
    color: #374151;
}

.plan-feature i,
.plan-feature svg {
    color: var(--free-color);
    margin-right: 0.75rem;
    font-size: 0.75rem;
}

.plan-free .plan-feature i {
    color: var(--free-color);
}

.plan-hobby .plan-feature i {
    color: var(--hobby-color);
}

.plan-standard .plan-feature i {
    color: var(--standard-color);
}

.plan-pro .plan-feature i {
    color: var(--pro-color);
}

.plan-cta {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.plan-free .plan-cta {
    background-color: transparent;
    border: 1px solid var(--free-color);
    color: var(--free-color);
}

.plan-free .plan-cta:hover {
    background-color: var(--free-color);
    color: #111319;
}

.plan-hobby .plan-cta {
    background-color: transparent;
    border: 1px solid var(--hobby-color);
    color: var(--hobby-color);
}

.plan-hobby .plan-cta:hover {
    background-color: var(--hobby-color);
    color: white;
}

.plan-standard .plan-cta {
    background-color: var(--standard-color);
    border: 1px solid var(--standard-color);
    color: white;
}

.plan-standard .plan-cta:hover {
    background-color: transparent;
    color: var(--standard-color);
}

.plan-pro .plan-cta {
    background-color: transparent;
    border: 1px solid var(--pro-color);
    color: var(--pro-color);
}

.plan-pro .plan-cta:hover {
    background-color: var(--pro-color);
    color: white;
}

/* FAQ Section Styles */
.faq-section {
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.faq-section h2 {
    color: var(--text-color);
}

/* FAQ Cards - Light Mode */
body:not(.dark-mode) .faq-section .card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

body:not(.dark-mode) .faq-section .card-title {
    color: #111827;
}

body:not(.dark-mode) .faq-section .card-text {
    color: #4b5563;
}

/* FAQ Cards - Dark Mode */
.dark-mode .faq-section .card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
}

.dark-mode .faq-section .card-title {
    color: var(--text-color);
}

.dark-mode .faq-section .card-text {
    color: var(--text-muted);
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: #1e2432;
    min-height: 100vh;
    padding: 2rem 0;
    color: white;
}

.admin-logo {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.admin-nav-item.active,
.admin-nav-item:hover {
    background-color: rgba(140, 82, 255, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.admin-nav-item i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.admin-content {
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.admin-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark-mode .admin-card {
    background-color: #1e2432;
    border: 1px solid #2a3142;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.dark-mode .stat-label {
    color: #9ca3af;
}

/* Streaming Loading Indicator */
.streaming-loader {
    display: inline-block;
    color: var(--text-muted);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

.streaming-loader .dot {
    display: inline-block;
    animation: streaming-pulse 1.4s infinite ease-in-out both;
}

.streaming-loader .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.streaming-loader .dot:nth-child(2) {
    animation-delay: -0.16s;
}

.streaming-loader .dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes streaming-pulse {

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

    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Dark Mode Support */
.dark-mode .streaming-loader {
    color: #9ca3af;
}

/* ============================================
   RESPONSIVE GLASSMORPHISM ADJUSTMENTS
   ============================================ */

/* Mobile adjustments for glass effects */
@media (max-width: 768px) {

    /* Reduce blur intensity on mobile for performance */
    :root {
        --glass-blur: 8px;
    }

    .dark-mode {
        --glass-blur: 10px;
    }

    /* Hero h1 responsive sizing */
    .hero-section h1 {
        font-size: 2.25rem;
        letter-spacing: -0.02em;
    }

    /* Reduce glow intensity on mobile */
    .chat-preview {
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.15),
            0 0 30px var(--glow-primary);
    }

    .chat-preview:hover {
        transform: translateY(-4px);
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.2),
            0 0 40px var(--glow-primary);
    }

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 15px 30px rgba(0, 0, 0, 0.1),
            0 0 30px var(--glow-primary);
    }

    /* Button adjustments */
    .btn-primary {
        padding: 0.65rem 1.25rem;
    }
}

/* Large screens - Enhanced effects */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 4rem;
    }

    .chat-preview {
        max-width: 420px;
    }

    .feature-card {
        padding: 2.5rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .chat-preview,
    .feature-card,
    .btn-primary,
    .navbar {
        transition: none;
    }

    .chat-preview:hover,
    .feature-card:hover {
        transform: none;
    }

    .btn-primary::before {
        display: none;
    }

    .blur-circle {
        animation: none;
    }
}

/* ============================================
   MODERN 2024 DESIGN ENHANCEMENTS
   ============================================ */

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }
}

/* Modern Hero Section Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(140, 82, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 82, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Enhanced Blur Effects for Dark Mode */
.dark-mode .blur-primary {
    background-color: rgba(140, 82, 255, 0.4);
    filter: blur(80px);
}

.dark-mode .blur-secondary {
    background-color: rgba(94, 23, 235, 0.35);
    filter: blur(80px);
}

.dark-mode .blur-accent {
    background-color: rgba(74, 11, 255, 0.25);
    filter: blur(100px);
}

/* Fluid Typography for Hero */
.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/* Enhanced Lead Text */
.lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 540px;
}

/* Modern Button Enhancements */
.btn-primary {
    position: relative;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px -1px rgba(140, 82, 255, 0.2),
        0 2px 4px -2px rgba(140, 82, 255, 0.1),
        0 0 0 0 rgba(140, 82, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 25px -5px rgba(140, 82, 255, 0.3),
        0 8px 10px -6px rgba(140, 82, 255, 0.2),
        0 0 30px rgba(140, 82, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Ripple Effect Container */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
            rgba(255, 255, 255, 0.3) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Bento Grid for Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

/* Enhanced Feature Cards */
.feature-card {
    position: relative;
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Featured Card (larger) */
.feature-card.featured {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 992px) {
    .feature-card.featured-large {
        grid-column: span 2;
    }
}

/* Animated Border Effect */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(140, 82, 255, 0.5),
            rgba(94, 23, 235, 0.2),
            transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.feature-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 25px 50px -12px rgba(140, 82, 255, 0.25),
        0 0 0 1px rgba(140, 82, 255, 0.1);
}

/* Enhanced Feature Icons */
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(140, 82, 255, 0.15),
            rgba(94, 23, 235, 0.1));
    border-radius: 16px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg,
            rgba(140, 82, 255, 0.25),
            rgba(94, 23, 235, 0.2));
}

/* Branchen-Karten der Startseite führen nur eine Zeile Text – deshalb kompakter */
#use-cases .feature-card {
    padding: 1.75rem;
}

#use-cases .feature-icon {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    border-radius: 14px;
    margin-bottom: 1rem;
}

/* Enhanced Chat Preview */
.chat-preview-wrapper {
    position: relative;
}

.chat-preview {
    transform: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.chat-preview:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Glow Effect Behind Chat */
.chat-preview-wrapper::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at 50% 50%,
            rgba(140, 82, 255, 0.3),
            transparent 60%);
    filter: blur(40px);
    z-index: -1;
    opacity: 0.5;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

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

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Section Header Enhancements */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.15) 0%, rgba(94, 23, 235, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(140, 82, 255, 0.2);
    backdrop-filter: blur(8px);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .section-title {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger Animation Delays */
.stagger-1 {
    transition-delay: 0ms;
}

.stagger-2 {
    transition-delay: 100ms;
}

.stagger-3 {
    transition-delay: 200ms;
}

.stagger-4 {
    transition-delay: 300ms;
}

.stagger-5 {
    transition-delay: 400ms;
}

.stagger-6 {
    transition-delay: 500ms;
}

.stagger-7 {
    transition-delay: 600ms;
}

.stagger-8 {
    transition-delay: 700ms;
}

.stagger-9 {
    transition-delay: 800ms;
}

.stagger-10 {
    transition-delay: 900ms;
}

.stagger-11 {
    transition-delay: 1000ms;
}

.stagger-12 {
    transition-delay: 1100ms;
}

/* Modern Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(140, 82, 255, 0.3) 20%,
            rgba(140, 82, 255, 0.5) 50%,
            rgba(140, 82, 255, 0.3) 80%,
            transparent 100%);
    margin: 6rem 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border-radius: 50%;
}

.section-divider-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* Enhanced CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg,
            rgba(140, 82, 255, 0.1) 0%,
            rgba(94, 23, 235, 0.05) 50%,
            rgba(140, 82, 255, 0.1) 100%);
    border-top: 1px solid rgba(140, 82, 255, 0.1);
    border-bottom: 1px solid rgba(140, 82, 255, 0.1);
}

.dark-mode .cta-section {
    background: linear-gradient(135deg,
            rgba(140, 82, 255, 0.15) 0%,
            rgba(94, 23, 235, 0.08) 50%,
            rgba(140, 82, 255, 0.15) 100%);
}

.dark-mode .cta-section .btn-primary {
    background: #ffffff;
    color: #2d1a4a;
    box-shadow:
        0 4px 20px rgba(255, 255, 255, 0.25),
        0 0 50px rgba(140, 82, 255, 0.3);
}

.dark-mode .cta-section .btn-primary:hover {
    background: #f0e6ff;
    color: #1a0a3a;
    box-shadow:
        0 8px 30px rgba(255, 255, 255, 0.35),
        0 0 60px rgba(140, 82, 255, 0.4);
}

/* Enhanced Footer */
.footer {
    position: relative;
    background: linear-gradient(180deg,
            var(--bg-secondary) 0%,
            rgba(140, 82, 255, 0.02) 100%);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(140, 82, 255, 0.2) 50%,
            transparent 100%);
}

/* Navbar Enhancement */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(140, 82, 255, 0.08);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.trust-badges .stars {
    color: #f59e0b;
    font-size: 1rem;
}

.trust-badges span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Enhanced Dark Mode */
.dark-mode {
    --bg-color: #0a0b0f;
    --bg-secondary: #0f1117;
    --card-bg: #161922;
    --card-border: #252a3a;
    --text-color: #f0f2f5;
    --text-muted: #8b92a8;
    --border-color: #252a3a;

    /* Enhanced Glassmorphism */
    --glass-bg: rgba(22, 25, 34, 0.8);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 20px;
    --glow-primary: rgba(140, 82, 255, 0.4);
    --glow-secondary: rgba(94, 23, 235, 0.3);
}

/* Dark Mode Hero Gradient */
.dark-mode .hero-section {
    background: radial-gradient(ellipse at 50% 0%,
            rgba(140, 82, 255, 0.12) 0%,
            transparent 50%);
}

/* Dark Mode Enhanced Glows */
.dark-mode .feature-card {
    box-shadow:
        0 0 0 1px rgba(140, 82, 255, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-mode .feature-card:hover {
    box-shadow:
        0 0 0 1px rgba(140, 82, 255, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(140, 82, 255, 0.15);
}

.dark-mode .chat-preview {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(140, 82, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark-mode .chat-preview:hover {
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(140, 82, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dark-mode .btn-primary {
    box-shadow:
        0 4px 20px rgba(140, 82, 255, 0.3),
        0 0 40px rgba(140, 82, 255, 0.1);
}

.dark-mode .btn-primary:hover {
    box-shadow:
        0 8px 30px rgba(140, 82, 255, 0.4),
        0 0 50px rgba(140, 82, 255, 0.2);
}

/* Learn More Link Style */
.learn-more-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.learn-more-link:hover {
    gap: 0.75rem;
    color: var(--secondary-color);
}

.learn-more-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.learn-more-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   OFF-CANVAS PANEL STYLES
   ============================================ */

/* Offcanvas Base Styles */
.offcanvas {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-left: 1px solid var(--border-color);
}

.offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.offcanvas-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offcanvas-body {
    padding: 2rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
}

/* Offcanvas Close Button */
.offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.offcanvas .btn-close:hover {
    opacity: 1;
}

/* Offcanvas Backdrop */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.offcanvas-backdrop.show {
    opacity: 1;
}

/* Enhanced Offcanvas Animation */
.offcanvas.offcanvas-end {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.offcanvas.offcanvas-end.show {
    transform: translateX(0);
}

.offcanvas.offcanvas-end.showing {
    transform: translateX(0);
}

.offcanvas.offcanvas-end.hiding {
    transform: translateX(100%);
}

/* Dark Mode Offcanvas Styles */
.dark-mode .offcanvas {
    background-color: var(--card-bg);
    border-left: 1px solid rgba(140, 82, 255, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.dark-mode .offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-bottom: 1px solid rgba(140, 82, 255, 0.3);
}

.dark-mode .offcanvas-body {
    background-color: var(--card-bg);
}

/* Mobile Offcanvas Adjustments */
@media (max-width: 767.98px) {
    .offcanvas {
        width: 100% !important;
    }

    .offcanvas-header {
        padding: 1.25rem;
    }

    .offcanvas-body {
        padding: 1.5rem;
    }

    .offcanvas-title {
        font-size: 1.125rem;
    }
}

/* Tablet Offcanvas Adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .offcanvas {
        width: 400px !important;
    }
}

/* Desktop Offcanvas Adjustments */
@media (min-width: 992px) {
    .offcanvas {
        width: 450px !important;
    }
}

/* ============================================
   MOBILE LANDING PAGE FIXES
   ============================================ */

/* Small mobile devices - must come AFTER the clamp() rules to properly override */
@media (max-width: 767.98px) {

    /* Fix: Title text clipped by overflow:hidden on hero-section */
    .hero-section h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        word-break: break-word;
        overflow-wrap: break-word;
        padding: 0 0.25rem;
    }

    /* Fix: Lead text clipped at edges */
    .hero-section .lead {
        max-width: 100%;
        padding: 0 0.25rem;
        overflow-wrap: break-word;
    }

    /* Fix: Large empty gap — hide hero-visual when chat-preview is hidden */
    .hero-visual {
        display: none;
    }

    /* Reduce hero section vertical padding */
    .hero-section {
        padding: 3rem 0;
    }

    /* Ensure container has enough horizontal padding */
    .hero-section .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Reduce features section padding on mobile */
    .features-section {
        padding: 3.5rem 0;
    }

    .features-section .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Reduce section header spacing */
    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Reduce feature card padding on small screens */
    .feature-card {
        padding: 1.5rem;
    }
}

/* Extra small devices (< 400px) */
@media (max-width: 399.98px) {
    .hero-section h1 {
        font-size: 1.625rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .ai-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark-mode .how-it-works-section {
    background: radial-gradient(ellipse at 50% 0%,
            rgba(140, 82, 255, 0.08) 0%,
            transparent 60%);
}

.how-it-works-section .container {
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.15) 0%, rgba(94, 23, 235, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(140, 82, 255, 0.2);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.dark-mode .section-label {
    background: linear-gradient(135deg, rgba(140, 82, 255, 0.2) 0%, rgba(94, 23, 235, 0.15) 100%);
    border-color: rgba(140, 82, 255, 0.35);
    color: var(--accent-light);
}

.how-it-works-section h2 {
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.dark-mode .how-it-works-section h2 {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Steps grid container */
.steps-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 1rem;
    margin-top: 3rem;
}

.step-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem 1.75rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Fallback ohne backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .step-card {
        background: var(--card-bg);
    }
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(140, 82, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 40px var(--glow-primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dark-mode .step-card {
    box-shadow:
        0 0 0 1px rgba(140, 82, 255, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-mode .step-card:hover {
    box-shadow:
        0 0 0 1px rgba(140, 82, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 50px var(--glow-primary);
}

.step-number {
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow:
        0 4px 12px rgba(140, 82, 255, 0.35),
        0 0 0 4px var(--bg-color);
    transition: box-shadow 0.3s ease;
}

.dark-mode .step-number {
    box-shadow:
        0 4px 16px rgba(140, 82, 255, 0.5),
        0 0 0 4px var(--bg-color);
}

.step-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.08);
}

.dark-mode .step-icon {
    color: var(--accent-light);
}

.step-card h3 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;
}

.step-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(140, 82, 255, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(140, 82, 255, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dark-mode .step-time {
    background: rgba(140, 82, 255, 0.15);
    border-color: rgba(140, 82, 255, 0.3);
    color: var(--accent-light);
}

.step-time i {
    font-size: 0.85rem;
}

/* Connector arrows between cards */
.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.55;
    font-size: 1.25rem;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.dark-mode .step-connector {
    color: var(--accent-light);
    opacity: 0.7;
}

/* Total time pill */
.steps-total-time {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.85rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

@supports not (backdrop-filter: blur(12px)) {
    .steps-total-time {
        background: var(--card-bg);
    }
}

.dark-mode .steps-total-time {
    box-shadow:
        0 0 0 1px rgba(140, 82, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

.steps-total-time i {
    color: var(--primary-color);
    font-size: 1rem;
}

.dark-mode .steps-total-time i {
    color: var(--accent-light);
}

.steps-total-time strong {
    color: var(--primary-color);
    font-weight: 700;
}

.dark-mode .steps-total-time strong {
    color: var(--accent-light);
}

/* Responsive: Tablet — 2 spaltig, Connector horizontal versteckt */
@media (max-width: 991.98px) {
    .steps-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
    }

    .step-connector {
        display: none;
    }
}

/* Responsive: Mobile — einspaltig, Connector als vertikaler Pfeil */
@media (max-width: 575.98px) {
    .how-it-works-section {
        padding: 3.5rem 0;
    }

    .how-it-works-section .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .steps-row {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        margin-top: 2.5rem;
    }

    .step-card {
        padding: 2.25rem 1.25rem 1.5rem;
    }

    .steps-total-time {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}