/* IT-Bachmann brand layer. Presentation only; shared by DE and EN. */
:root {
    --itb-ink: #202329;
    --itb-muted: #60656d;
    --itb-line: #e3e5eb;
    --itb-accent: #743fc0;
    --itb-soft: #f0e7fb;
    --itb-surface: #fff;
    --itb-secondary: #4d2c76;
    --itb-outline: #bca9d2;
    --itb-primary: linear-gradient(180deg, #814bd0, #6932b3);
    --itb-primary-hover: linear-gradient(180deg, #7540c2, #5e2a9f);
    --itb-primary-text: #fff;
    --itb-page: linear-gradient(125deg, #f0e7fc 0%, #f8f5ff 42%, #eef3ff 76%, #fff 100%);
    --bs-primary: #743fc0;
    --bs-primary-rgb: 116, 63, 192;
    --bs-link-color: #743fc0;
    --bs-link-hover-color: #5e2a9f;
}
html[data-theme="dark"] {
    --itb-ink: #f5f5f7;
    --itb-muted: #b4b4bf;
    --itb-line: #3b3b43;
    --itb-accent: #c3a0ff;
    --itb-soft: #302a3b;
    --itb-surface: #262629;
    --itb-secondary: #f0e5ff;
    --itb-outline: #78638f;
    --itb-primary: linear-gradient(180deg, #d2b5ff, #b78aee);
    --itb-primary-hover: linear-gradient(180deg, #dfcaff, #c6a0f5);
    --itb-primary-text: #251338;
    --itb-page: linear-gradient(125deg, #30213f 0%, #231e30 42%, #1e2739 76%, #1c1c1e 100%);
    --bs-primary-rgb: 195, 160, 255;
    --bs-link-color: #c3a0ff;
    --bs-link-hover-color: #dfcaff;
}
html:root body {
    background: var(--itb-page) fixed !important;
    color: var(--itb-ink) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
html:root body :is(.main-header, .top-bar) {
    background: var(--itb-surface) !important;
    border-bottom: 1px solid var(--itb-line);
    box-shadow: 0 1px 12px #30204008 !important;
}
html:root body :is(.hero, .features-section, .angebote, .kontakt-section) {
    background: transparent !important;
    color: var(--itb-ink) !important;
}
html:root body :is(.hero h1, .logo h1, .feature-card h3, .section-title h2) {
    background: none !important;
    color: var(--itb-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}
html:root body :is(.hero p, .section-title p, .feature-card p, .logo small, .hero-metric span) {
    color: var(--itb-muted) !important;
}
html:root body :is(.dashboard-card, .table-card, .chart-card, .detail-card, .card, .login-card, .register-card, .modal-content, .modal-content-custom, .cart-sidebar, .feature-card, .product-card, .stat-card, .hero-panel, .hero-metric) {
    background: var(--itb-surface) !important;
    color: var(--itb-ink) !important;
    border: 1px solid var(--itb-line) !important;
    border-radius: 24px;
    box-shadow: 0 4px 20px #1d1d1f06 !important;
}
html:root body :is(.card-body, .card-body-custom, .card-header-custom) {
    background: var(--itb-surface) !important;
    color: var(--itb-ink) !important;
    border-color: var(--itb-line) !important;
}
html:root body :is(.hero-kicker, .offer-tile.active, .offer-submenu button.active, .language-switch a.active) {
    color: var(--itb-accent) !important;
    border-color: var(--itb-outline) !important;
    background: var(--itb-soft) !important;
}
html:root body :is(.logo i, .logo span, .feature-card > i, .offer-tile i, .sidebar-header i, .text-primary, .hero-metric strong) {
    color: var(--itb-accent) !important;
}
html:root body :is(.offer-tile, .offer-submenu button) {
    background: var(--itb-surface);
    border-color: var(--itb-line);
    color: var(--itb-ink);
    border-radius: 14px;
}
html:root body :is(.offer-tile:hover, .offer-submenu button:hover) { border-color: var(--itb-accent); }
html:root body .main-nav a:hover, html:root body .main-nav a.active { color: var(--itb-accent) !important; }
html:root body .sidebar { background: linear-gradient(155deg, #30213f, #231e30 55%, #1e2739) !important; }
html:root body .sidebar .nav-link { color: #e3dbe9; }
html:root body .sidebar .nav-link:is(:hover, .active) {
    background: #743fc0 !important;
    color: #fff !important;
    box-shadow: 0 3px 8px #0002;
}
/* Keep semantic success/warning/danger colors and existing button dimensions. */
html:root body :is(.btn, .btn-select, .btn-checkout, .btn-submit, .vm-action-btn, .action-btn, .logout-btn, .cart-button, .cart-button-mobile) {
    border-radius: 14px;
    font-weight: 600;
    transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    touch-action: manipulation;
}
html:root body :is(.btn-primary, .btn-register, .btn-dashboard, .btn-select, .btn-checkout, .btn-submit, .btn-console, .cart-button, .cart-button-mobile, .action-btn.edit),
html:root body .btn:not([class*="btn-"]) {
    color: var(--itb-primary-text) !important;
    background: var(--itb-primary) !important;
    border: 1px solid #713abd !important;
    box-shadow: inset 0 1px 0 #ffffff26, 0 3px 8px #54228e20 !important;
}
html:root body :is(.btn-primary, .btn-register, .btn-dashboard, .btn-select, .btn-checkout, .btn-submit, .btn-console, .cart-button, .cart-button-mobile, .action-btn.edit):hover,
html:root body .btn:not([class*="btn-"]):hover {
    background: var(--itb-primary-hover) !important;
    box-shadow: inset 0 1px 0 #ffffff26, 0 5px 12px #54228e30 !important;
}
html:root body :is(.btn-secondary, .btn-outline-primary, .btn-outline-secondary, .btn-login, .btn-admin) {
    background: var(--itb-surface) !important;
    color: var(--itb-secondary) !important;
    border: 1px solid var(--itb-outline) !important;
    box-shadow: 0 2px 5px #30204008 !important;
}
html:root body :is(.btn-secondary, .btn-outline-primary, .btn-outline-secondary, .btn-login, .btn-admin):hover {
    background: var(--itb-soft) !important;
    border-color: var(--itb-accent) !important;
}
html:root body .btn-check:checked + .btn-outline-primary,
html:root body .btn-outline-primary.active {
    background: var(--itb-primary) !important;
    color: var(--itb-primary-text) !important;
}
html:root body :is(.btn, .btn-select, .btn-checkout, .btn-submit):focus-visible {
    outline: 3px solid var(--itb-accent) !important;
    outline-offset: 4px;
}
html:root body :is(.btn, .btn-select, .btn-checkout, .btn-submit):is(:disabled, .disabled) {
    opacity: .6;
    box-shadow: none !important;
}
html:root body :is(.form-control, .form-select, .domain-check input):focus {
    border-color: var(--itb-accent) !important;
    box-shadow: 0 0 0 3px #743fc026 !important;
}
html:root body :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--itb-accent); }
html:root body .form-check-input:checked { background-color: var(--itb-accent); border-color: var(--itb-accent); }
html:root body .theme-toggle {
    color: var(--itb-accent) !important;
    background: var(--itb-surface) !important;
    border-color: var(--itb-outline) !important;
}
html:root[data-theme="dark"] body :is(.form-control, .form-select, .domain-check input) {
    background: var(--itb-surface) !important;
    color: var(--itb-ink) !important;
    border-color: var(--itb-line) !important;
}
html:root[data-theme="dark"] body .btn-primary { border-color: #d7beff !important; }
@media (prefers-reduced-motion: reduce) {
    html:root body :is(.btn, .btn-select, .btn-checkout, .btn-submit, .vm-action-btn, .action-btn, .offer-tile) { transition: none; }
}
html:root body .sidebar .menu-item:is(:hover, .active) {
    background: #743fc0 !important;
    color: #fff !important;
}
html:root body :is(.user-avatar, .vm-header, .progress-fill, .primary-btn) {
    background: linear-gradient(180deg, #814bd0, #6932b3) !important;
    color: #fff;
}
html:root body .vm-card {
    background: var(--itb-surface) !important;
    color: var(--itb-ink) !important;
    border: 1px solid var(--itb-line);
}
html:root body .primary-btn { border-radius: 14px; }
html:root body .btn-group > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
html:root body .btn-group > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html:root body .nav-pills .nav-link { color: var(--itb-accent); border-radius: 14px; }
html:root body .nav-pills .nav-link.active {
    background: var(--itb-primary) !important;
    color: var(--itb-primary-text) !important;
}
html:root body .nav-tabs .nav-link { color: var(--itb-accent); }
html:root body .nav-tabs .nav-link.active {
    color: var(--itb-ink) !important;
    background: var(--itb-surface) !important;
    border-color: var(--itb-line) !important;
}
html:root body .sidebar .nav-menu { scrollbar-color: #9472bd #30213f; }
html:root body .sidebar .nav-menu::-webkit-scrollbar-thumb { background: #9472bd; }
html:root body :is(.mobile-menu-btn-inline, .mobile-menu-btn) {
    color: var(--itb-primary-text) !important;
    background: var(--itb-primary) !important;
    border-radius: 12px;
}
