/* ========================================
   BENSE.AI - GLOBALE CSS-DATEI
   ========================================
   
   Dunkles Blau-Grün Design für bense.ai Website
   Responsive, mehrsprachig, Darkmodus-Unterstützung
   
   Version: 1.0.0
   Erstellt: 18.09.2025
   ======================================== */

/* ========================================
   CSS-VARIABLEN (DARK MODE SUPPORT)
   ======================================== */

:root {
    /* Primärfarben - Dunkles Blau-Grün */
    --primary-color: #1e3a5f;
    --primary-light: #2d5a8a;
    --primary-dark: #0f1f2e;
    --accent-color: #2d5a8a;
    --accent-light: #4a7ba7;
    --accent-dark: #1a3d5c;
    
    /* Sekundärfarben */
    --secondary-color: #3d6b5a;
    --secondary-light: #5a8a7a;
    --secondary-dark: #2a4a3a;
    
    /* Neutralfarben */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6c757d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --border-color: #dee2e6;
    
    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Übergänge */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Dark Mode Variablen */
[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --border-color: #404040;
    
    --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.5);
}

/* ========================================
   RESET & BASIS-STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ========================================
   LAYOUT-KOMPONENTEN
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-12 { flex: 0 0 100%; }
.col-11 { flex: 0 0 91.666667%; }
.col-10 { flex: 0 0 83.333333%; }
.col-9 { flex: 0 0 75%; }
.col-8 { flex: 0 0 66.666667%; }
.col-7 { flex: 0 0 58.333333%; }
.col-6 { flex: 0 0 50%; }
.col-5 { flex: 0 0 41.666667%; }
.col-4 { flex: 0 0 33.333333%; }
.col-3 { flex: 0 0 25%; }
.col-2 { flex: 0 0 16.666667%; }
.col-1 { flex: 0 0 8.333333%; }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 2rem;
    width: 2rem;
    margin-right: 0.5rem;
}

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

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

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

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

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

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    color: white;
    text-decoration: none;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* ========================================
   CARDS & PANELS
   ======================================== */

.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.card-body {
    padding: 1.5rem;
}

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ========================================
   FEATURES GRID
   ======================================== */

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

.feature-card {
    text-align: center;
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.demo-assistant {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all var(--transition-normal);
}

.demo-assistant:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-assistant h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.demo-assistant p {
    font-weight: 500;
    color: var(--primary-color);
}

.demo-assistant small {
    font-style: italic;
    line-height: 1.4;
}

.demo-assistant-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.demo-assistant-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.demo-assistant-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.demo-assistant-card p {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.demo-assistant-card small {
    font-style: italic;
    line-height: 1.4;
    color: var(--text-muted);
    flex-grow: 1;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.info-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-card .info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.info-card p {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-card small {
    font-style: italic;
    line-height: 1.4;
    color: var(--text-muted);
    flex-grow: 1;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    transition: background-color var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
}

.footer h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer p, .footer a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

/* ========================================
   UTILITY-KLASSEN
   ======================================== */

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

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

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--bg-secondary); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* ========================================
   TECHNOLOGY GRID
   ======================================== */

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-grid .card {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-grid .card {
        margin-bottom: 1rem;
    }
    
    /* Video responsive */
    .video-hero {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .video-wrapper {
        max-width: 100%;
    }
}

/* ========================================
   VIDEO CONTAINER
   ======================================== */

.video-hero {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block !important;
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    min-height: 300px;
}

.video-info {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.video-wrapper p {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-primary);
    margin: 0;
}

.video-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
}

.video-wrapper a:hover {
    text-decoration: underline;
}

/* ========================================
   MOBILE MENU / HAMBURGER
   ======================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 2px 0;
    transition: all var(--transition-normal);
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .nav-menu li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .nav-controls {
        position: static;
        order: 2;
        margin-left: auto;
    }
    
    /* Dark mode adjustments for mobile */
    [data-theme="dark"] .nav-menu {
        background: var(--bg-primary);
        border-left-color: var(--border-color);
    }
    
    [data-theme="dark"] .hamburger-line {
        background-color: var(--text-primary);
    }
    
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .logo {
        flex: 1;
        text-align: left;
    }
    
    .mobile-menu-toggle {
        order: 3;
        margin-left: 10px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* ========================================
   DARK MODE TOGGLE
   ======================================== */

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.language-switcher select:hover {
    border-color: var(--primary-color);
}

/* ========================================
   ANIMATIONEN
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .header, .footer, .nav-controls {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
