/* ===========================================
   SQUT Design System – Dark Theme
   Shared Tokens, Reset & Utility Classes
   =========================================== */

:root {
    /* -- Background -- */
    --bg-dark: #0a0b0f;
    --bg-darker: #060709;
    --bg-card: #1e2028;
    --bg-card-alt: #262830;

    /* -- Farben: Cyan (Primaer / Classic) -- */
    --teal-50: rgba(8, 145, 178, 0.08);
    --teal-100: rgba(8, 145, 178, 0.15);
    --teal-200: rgba(8, 145, 178, 0.25);
    --teal-300: #22d3ee;
    --teal-400: #06b6d4;
    --teal-500: #0891b2;
    --teal-600: #0891b2;
    --teal-700: #0e7490;
    --teal-800: #155e75;
    --teal-900: #164e63;

    /* -- Farben: Slate (Neutral) -- */
    --slate-50: #151720;
    --slate-100: #1e2028;
    --slate-200: #353840;
    --slate-300: #4b5060;
    --slate-400: #6b7280;
    --slate-500: #9ca3af;
    --slate-600: #d1d5db;
    --slate-700: #e5e7eb;
    --slate-800: #f3f4f6;
    --slate-900: #ffffff;

    /* -- Farben: Semantisch -- */
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --red-400: #f87171;
    --red-500: #ef4444;
    --green-400: #4ade80;
    --green-500: #22c55e;

    /* -- Accent Colors -- */
    --classic: #0891b2;
    --voicebot: #ea580c;
    --hybrid: #8b5cf6;

    /* -- Typografie -- */
    --font-display: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'DM Mono', 'Monaco', 'Courier New', monospace;

    /* -- Schatten (dark theme) -- */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.2);

    /* -- Radien -- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    /* -- Spacing -- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* -- Layout -- */
    --max-width: 1200px;
    --nav-height: 100px;

    /* -- Transitions -- */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* -- Reset & Base -- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: #ffffff;
    background: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

/* -- Layout -- */
.container        { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl); }
.section          { padding: var(--space-4xl) var(--space-xl); }
.section--muted   { background: var(--bg-darker); }
.section--dark    { background: var(--bg-card); }
.section--teal    { background: linear-gradient(135deg, #0891b2, #0e7490); color: #fff; }

/* -- Typografie -- */
.text-display     { font-family: var(--font-display); letter-spacing: -0.02em; }
.text-eyebrow     { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--teal-300); }
.text-muted       { color: var(--slate-500); }
.text-sm          { font-size: 0.88rem; }
.text-center      { text-align: center; }

/* -- Card -- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.card:hover           { box-shadow: var(--shadow-md); border-color: var(--teal-500); }
.card--elevated       { box-shadow: var(--shadow-lg); border-color: transparent; }
.card--flat           { border: none; box-shadow: none; padding: 0; }
.card--interactive    { cursor: pointer; }
.card--interactive:hover { transform: translateY(-3px); }

/* -- Buttons -- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    padding: 0.9rem 2rem; border-radius: var(--radius-md);
    border: none; cursor: pointer; transition: all 0.25s ease;
    text-decoration: none; line-height: 1;
}
.btn--primary         { background: var(--teal-600); color: #fff; box-shadow: 0 4px 14px rgba(8,145,178,0.3); }
.btn--primary:hover   { background: var(--teal-700); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(8,145,178,0.35); }
.btn--ghost           { background: transparent; color: var(--slate-600); border: 1.5px solid var(--slate-300); }
.btn--ghost:hover     { border-color: var(--teal-400); color: var(--teal-300); background: var(--teal-50); }
.btn--white           { background: #fff; color: var(--teal-700); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.btn--white:hover     { background: #f0fdfa; transform: translateY(-2px); }
.btn--danger          { background: var(--red-500); color: #fff; }
.btn--sm              { font-size: 0.88rem; padding: 0.6rem 1.25rem; }
.btn:disabled         { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* -- Form Elements -- */
.form-label     { display: block; margin-bottom: var(--space-sm); font-weight: 600; color: #fff; font-size: 0.95rem; }
.form-hint      { font-size: 0.85rem; color: var(--slate-500); margin-top: var(--space-xs); }
.form-input {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--bg-card); border: 1.5px solid var(--slate-200); border-radius: var(--radius-md);
    font-family: var(--font-body); font-size: 1rem; color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:hover       { border-color: var(--slate-300); }
.form-input:focus       { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(8,145,178,0.15); }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}

/* -- Toggle -- */
.toggle              { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.toggle input        { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle__track {
    position: absolute; inset: 0; background: var(--slate-200);
    border-radius: var(--radius-full); transition: background 0.3s; cursor: pointer;
}
.toggle__track::before {
    content: ''; position: absolute; width: 20px; height: 20px; left: 4px; top: 4px;
    background: #fff; border-radius: 50%; transition: transform 0.3s; box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle__track { background: var(--teal-600); }
.toggle input:checked + .toggle__track::before { transform: translateX(24px); }

/* -- Selectable Items (Radio/Checkbox) -- */
.selectable {
    background: var(--bg-card); border: 1.5px solid var(--slate-200); border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg); cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; gap: var(--space-md);
}
.selectable:hover             { border-color: var(--teal-400); background: var(--teal-50); }
.selectable.is-selected       { border-color: var(--teal-500); background: var(--teal-50); box-shadow: 0 0 0 3px rgba(8,145,178,0.1); }

/* -- Alerts -- */
.alert {
    padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md);
    font-size: 0.92rem; line-height: 1.5; display: flex; align-items: flex-start; gap: var(--space-sm);
}
.alert--info    { background: var(--teal-50); border: 1px solid rgba(8,145,178,0.3); color: var(--teal-300); }
.alert--warning { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: var(--amber-400); }
.alert--danger  { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red-400); }
.alert--success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green-400); }

/* -- Wizard Progress -- */
.wizard-progress          { display: flex; justify-content: space-between; position: relative; max-width: 900px; margin: 0 auto; }
.wizard-progress::before  { content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: var(--slate-200); z-index: 0; }
.step                     { position: relative; z-index: 1; text-align: center; flex: 1; }
.step__number {
    width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card);
    border: 2px solid var(--slate-200); display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--space-sm); font-weight: 600; font-size: 0.9rem; color: var(--slate-500);
    transition: all 0.3s ease;
}
.step.is-active .step__number     { background: var(--teal-600); border-color: var(--teal-600); color: #fff; box-shadow: 0 4px 12px rgba(8,145,178,0.25); }
.step.is-completed .step__number  { background: var(--teal-100); border-color: var(--teal-400); color: var(--teal-300); }
.step__label                      { font-size: 0.82rem; color: var(--slate-500); font-weight: 500; }
.step.is-active .step__label      { color: #fff; font-weight: 600; }

/* -- Range Slider -- */
.range-slider {
    width: 100%; height: 6px; border-radius: 3px; background: var(--slate-200);
    outline: none; -webkit-appearance: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--teal-600); cursor: pointer; box-shadow: 0 2px 8px rgba(8,145,178,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-slider::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%; background: var(--teal-600);
    cursor: pointer; border: none; box-shadow: 0 2px 8px rgba(8,145,178,0.3);
}

/* -- Tabs -- */
.tabs { display: flex; background: var(--bg-card); border-bottom: 2px solid var(--slate-200); overflow-x: auto; }
.tab {
    flex: 1; padding: var(--space-md); text-align: center; cursor: pointer;
    background: transparent; border: none; font-family: var(--font-body); font-size: 0.92rem;
    color: var(--slate-500); font-weight: 500; transition: all 0.2s; white-space: nowrap;
}
.tab:hover     { background: var(--teal-50); color: var(--teal-300); }
.tab.is-active { background: var(--bg-card-alt); color: var(--teal-300); font-weight: 600; border-bottom: 3px solid var(--teal-600); margin-bottom: -2px; }

/* -- Data Table -- */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--slate-200); }
.data-table th { padding: var(--space-md) var(--space-lg); text-align: left; font-weight: 600; font-size: 0.88rem; color: var(--slate-600); background: var(--bg-card-alt); border-bottom: 2px solid var(--slate-200); }
.data-table td { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--slate-200); font-size: 0.92rem; }
.data-table tr:last-child td { border-bottom: none; }

/* -- Shared Nav -- */
.shared-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-height); display: flex; align-items: center;
    background: rgba(10,11,15,0.85); backdrop-filter: blur(12px);
    transition: background 0.3s, box-shadow 0.3s;
}
.shared-nav--scrolled { background: rgba(10,11,15,0.97); box-shadow: var(--shadow-md); }
.shared-nav__inner {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.shared-nav__brand { display: flex; align-items: center; text-decoration: none; }
.shared-nav__logo { height: 36px; }
.shared-nav__links {
    display: flex; align-items: center; gap: var(--space-lg); list-style: none; margin: 0; padding: 0;
}
.shared-nav__links a {
    text-decoration: none; color: var(--slate-500); font-weight: 500; font-size: 0.95rem;
    transition: color 0.2s;
}
.shared-nav__links a:hover,
.shared-nav__links a.is-active { color: var(--teal-300); font-weight: 600; }
.shared-nav__mobile-toggle {
    display: none; background: none; border: none; cursor: pointer; color: var(--slate-600); padding: var(--space-sm);
}

/* -- Shared Nav Mobile -- */
.shared-nav__mobile-overlay {
    position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,0.6);
}
.shared-nav__mobile-menu {
    position: absolute; top: 0; right: 0; width: 300px; max-width: 85vw; height: 100vh;
    background: var(--bg-card); padding: var(--space-xl); box-shadow: var(--shadow-xl);
}
.shared-nav__mobile-close {
    position: absolute; top: var(--space-lg); right: var(--space-lg);
    background: none; border: none; cursor: pointer; color: var(--slate-500);
}
.shared-nav__mobile-links {
    display: flex; flex-direction: column; gap: var(--space-lg); margin-top: var(--space-3xl);
}
.shared-nav__mobile-links a {
    text-decoration: none; color: var(--slate-600); font-size: 1.1rem; font-weight: 500;
}
.shared-nav__mobile-links a.is-active { color: var(--teal-300); font-weight: 600; }

/* -- Shared Footer -- */
.shared-footer {
    background: var(--bg-darker); color: #fff; padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--slate-200);
}
.shared-footer__inner {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); text-align: center;
}
.shared-footer__brand { display: flex; align-items: center; gap: var(--space-sm); }
.shared-footer__logo { height: 28px; filter: brightness(0) invert(1); }
.shared-footer__links { display: flex; gap: var(--space-lg); flex-wrap: wrap; justify-content: center; }
.shared-footer__links a { color: var(--slate-500); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.shared-footer__links a:hover { color: #fff; }
.shared-footer__legal { display: flex; gap: var(--space-md); flex-wrap: wrap; justify-content: center; }
.shared-footer__legal a { color: var(--slate-400); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.shared-footer__legal a:hover { color: var(--slate-600); }
.shared-footer__copyright { color: var(--slate-400); margin-top: var(--space-sm); }

/* -- Animations -- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in   { opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.delay-1      { animation-delay: 0.1s; }
.delay-2      { animation-delay: 0.2s; }
.delay-3      { animation-delay: 0.3s; }

/* -- Responsive -- */
@media (max-width: 768px) {
    .section  { padding: var(--space-2xl) var(--space-lg); }
    .tabs     { flex-wrap: wrap; }
    .tab      { flex: 1 1 50%; }
    .shared-nav__links { display: none; }
    .shared-nav__mobile-toggle { display: block; }
    .shared-footer__links { gap: var(--space-md); }
}
