/* ============================================================
   taskforce.innovius.ai — Konfigurator
   Mobile-first, Design-Token aus ../styles.css
   ============================================================ */

:root {
    --tf-navy: #0a0f2e;
    --tf-navy-2: #111a4a;
    --tf-card: #ffffff;
    --tf-panel: #ffffff;
    --tf-panel-soft: #f8fafc;
    --tf-accent-solid: #0a0f2e;
    --tf-on-accent: #ffffff;
    --tf-on: #0f172a;
    --tf-muted: #64748b;
    --tf-line: #e2e8f0;
    --tf-green: #16a34a;
    --tf-amber: #b45309;
    --tf-warn-bg: #fef3c7;
    --tf-cta: var(--primary, #1f5eff);
    --tf-cta-dark: var(--primary-dark, #1647c5);
    --tf-radius: 1rem;
    --tf-bottombar-h: 4.5rem;
}

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

body {
    background: var(--background-alt, #f7f9fc);
    /* Platz für die Sticky Bottom Bar auf Mobile */
    padding-bottom: calc(var(--tf-bottombar-h) + env(safe-area-inset-bottom, 0px));
}

.tf-hidden { display: none !important; }

/* ---------- Header ---------- */
.tf-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--tf-header-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tf-line);
}
.tf-nav {
    max-width: 1200px; margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.tf-logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.tf-logo img { height: 30px; width: auto; }
.tf-logo-sep { width: 1px; height: 22px; background: var(--tf-line); flex: none; }
.tf-logo-product {
    font-weight: 800; letter-spacing: 0.08em; font-size: 0.95rem;
    color: var(--tf-on); text-transform: lowercase; white-space: nowrap;
}
@media (max-width: 560px) {
    .tf-logo img { height: 24px; }
    .tf-logo-sep { height: 18px; }
    .tf-logo-product { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    /* Platz für Theme + Sprache: das Wort "taskforce" steht ohnehin im Hero darunter */
    .tf-logo-product, .tf-logo-sep { display: none; }
    .tf-brand-vitac img { height: 26px; }
    .tf-logo img { height: 20px; }
    .tf-theme-btn { width: 36px; height: 36px; font-size: 0.95rem; }
    .tf-lang-btn { padding: 0.3rem 0.55rem; min-height: 36px; font-size: 0.75rem; }
}
.tf-lang { display: flex; gap: 0.25rem; }
.tf-lang-btn {
    border: 1px solid var(--tf-line); background: var(--tf-panel); color: var(--tf-muted);
    font: inherit; font-size: 0.8rem; font-weight: 700;
    padding: 0.4rem 0.7rem; border-radius: 999px; cursor: pointer;
    min-height: 40px;
}
.tf-lang-btn[aria-pressed="true"] {
    background: var(--tf-accent-solid); border-color: var(--tf-accent-solid); color: var(--tf-on-accent);
}

/* ---------- Hero ---------- */
.tf-hero {
    background: linear-gradient(160deg, var(--tf-navy) 0%, var(--tf-navy-2) 60%, #1b2a6b 100%);
    color: #fff;
    padding: 2.75rem 1.25rem 2.5rem;
    text-align: center;
}
.tf-kicker {
    text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem;
    font-weight: 700; color: #93a4ff; margin-bottom: 0.9rem;
}
.tf-hero h1 {
    font-size: clamp(1.9rem, 6.5vw, 3.4rem);
    line-height: 1.08; font-weight: 800; margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.tf-accent {
    background: linear-gradient(90deg, #6ea0ff, #00e5ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tf-sub {
    max-width: 42rem; margin: 0 auto 1.4rem;
    color: #c7d0e8; font-size: clamp(0.95rem, 2.6vw, 1.1rem); line-height: 1.55;
}
.tf-usps {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    list-style: none; margin: 0; padding: 0;
}
.tf-usps li {
    font-size: 0.78rem; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
    padding: 0.42rem 0.85rem; color: #e4e9f7;
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Layout ---------- */
.tf-layout {
    max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 2rem;
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 960px) {
    .tf-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; padding: 2rem 1.5rem 3rem; }
}

/* ---------- Schritte ---------- */
.tf-step {
    background: var(--tf-card); border: 1px solid var(--tf-line);
    border-radius: var(--tf-radius); padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.tf-step h2 {
    font-size: 1.12rem; font-weight: 800; color: var(--tf-on);
    display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.4rem;
}
.tf-step-nr {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.7rem; height: 1.7rem; border-radius: 50%;
    background: var(--tf-accent-solid); color: var(--tf-on-accent);
    font-size: 0.85rem; font-weight: 700; flex: none;
}
.tf-hint { color: var(--tf-muted); font-size: 0.86rem; margin: 0 0 1rem; line-height: 1.5; }
.tf-mt { margin-top: 1.25rem; }

/* ---------- Auswahl-Karten ---------- */
.tf-cards-2, .tf-cards-3 {
    display: grid; gap: 0.75rem; grid-template-columns: 1fr;
}
@media (min-width: 560px) {
    .tf-cards-2 { grid-template-columns: repeat(2, 1fr); }
    .tf-cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.tf-choice { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tf-choice input {
    position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden;
}
.tf-choice-body {
    display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
    border: 2px solid var(--tf-line); border-radius: 0.85rem;
    padding: 0.9rem 1rem; background: var(--tf-panel);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.tf-choice-body strong { font-size: 0.95rem; color: var(--tf-on); }
.tf-choice-body span { font-size: 0.8rem; color: var(--tf-muted); line-height: 1.45; }
.tf-choice input:checked + .tf-choice-body {
    border-color: var(--tf-cta);
    background: var(--tf-choice-on, #f4f7ff);
    box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.12);
}
.tf-choice input:focus-visible + .tf-choice-body {
    outline: 2px solid var(--tf-cta); outline-offset: 2px;
}
.tf-price-tag {
    font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--tf-cta);
    margin-top: 0.15rem; display: inline-block;
}
.tf-price-tag.tf-included { color: var(--tf-green); }
.tf-choice-body strong .tf-price-tag, .tf-toggle-body strong .tf-price-tag { margin-left: 0.35rem; }

/* ---------- Stepper & Chips ---------- */
.tf-stepper-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.tf-step-btn {
    flex: none; width: 52px; height: 52px; border-radius: 14px;
    border: 1px solid var(--tf-line); background: var(--tf-panel); color: var(--tf-on);
    font-size: 1.5rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.tf-step-btn:active { background: var(--tf-choice-on, #eef2ff); }
.tf-number-wrap {
    flex: 1; display: flex; align-items: baseline; gap: 0.5rem;
    border: 1px solid var(--tf-line); border-radius: 14px; background: var(--tf-panel);
    padding: 0.55rem 1rem;
}
.tf-number-wrap input {
    width: 100%; border: 0; outline: none; font: inherit;
    font-size: 1.5rem; font-weight: 800; color: var(--tf-on);
    text-align: right; background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.tf-number-wrap input::-webkit-outer-spin-button,
.tf-number-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tf-unit { color: var(--tf-muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tf-chips button {
    border: 1px solid var(--tf-line); background: var(--tf-panel); color: var(--tf-muted);
    border-radius: 999px; padding: 0.5rem 0.95rem; font: inherit;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; min-height: 44px;
}
.tf-chips button.active {
    background: var(--tf-accent-solid); border-color: var(--tf-accent-solid); color: var(--tf-on-accent);
}

/* ---------- Team-Typen (Chips) ---------- */
.tf-teamtypes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tf-teamtype {
    border: 1.5px solid var(--tf-line); background: var(--tf-panel); color: var(--tf-muted);
    border-radius: 999px; padding: 0.55rem 1rem; font: inherit;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}
.tf-teamtype.active { background: var(--tf-accent-solid); border-color: var(--tf-accent-solid); color: var(--tf-on-accent); }
.tf-teamtype:focus-visible { outline: 2px solid var(--tf-cta); outline-offset: 2px; }

/* ---------- Toggles ---------- */
.tf-toggle {
    display: flex; gap: 0.85rem; align-items: flex-start;
    border: 1px solid var(--tf-line); border-radius: 0.85rem;
    padding: 0.9rem 1rem; margin-bottom: 0.6rem; background: var(--tf-panel);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tf-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tf-toggle-ui {
    flex: none; width: 46px; height: 27px; border-radius: 999px;
    background: #cbd5e1; position: relative; transition: background 0.15s;
    margin-top: 0.15rem;
}
.tf-toggle-ui::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 21px; height: 21px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.tf-toggle input:checked ~ .tf-toggle-ui { background: var(--tf-green); }
.tf-toggle input:checked ~ .tf-toggle-ui::after { transform: translateX(19px); }
.tf-toggle input:focus-visible ~ .tf-toggle-ui { outline: 2px solid var(--tf-cta); outline-offset: 2px; }
.tf-toggle input:disabled ~ .tf-toggle-ui { background: var(--tf-green); opacity: 0.7; }
.tf-toggle-off { background: var(--tf-panel-soft); cursor: default; }
.tf-toggle-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.tf-toggle-body > strong { font-size: 0.92rem; color: var(--tf-on); display: flex; flex-wrap: wrap; align-items: baseline; }
.tf-toggle-body > span { font-size: 0.8rem; color: var(--tf-muted); line-height: 1.5; }
.tf-reco {
    display: inline-block; margin-top: 0.3rem; align-self: flex-start;
    background: var(--tf-warn-bg); color: var(--tf-amber);
    font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.6rem;
}

.tf-warning {
    margin: 0.75rem 0 0; padding: 0.6rem 0.85rem;
    background: var(--tf-warn-bg); color: var(--tf-amber);
    border-radius: 0.7rem; font-size: 0.82rem; font-weight: 600;
}

.tf-fineprint { font-size: 0.75rem; color: var(--tf-muted); line-height: 1.5; margin: 0.25rem 0 0; }
.tf-fineprint a { text-decoration: underline; }

/* ---------- Zusammenfassung ---------- */
.tf-summary {
    display: none; /* Mobile: nur Bottom Bar + Modal */
}
@media (min-width: 960px) {
    .tf-summary {
        display: block; position: sticky; top: 5rem;
        background: var(--tf-card); border: 1px solid var(--tf-line);
        border-radius: var(--tf-radius); padding: 1.4rem;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    }
}
.tf-summary h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.9rem; }
.tf-summary-list { margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.tf-summary-list > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.84rem; }
.tf-summary-list dt { color: var(--tf-muted); }
.tf-summary-list dd { margin: 0; font-weight: 600; color: var(--tf-on); text-align: right; }
.tf-summary-list .tf-sum-section {
    margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--tf-line);
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--tf-muted); font-weight: 700;
}
.tf-totals { border-top: 1px solid var(--tf-line); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tf-total-main { display: flex; justify-content: space-between; align-items: baseline; }
.tf-total-main span { font-size: 0.85rem; color: var(--tf-muted); }
.tf-total-main strong { font-size: 1.9rem; font-weight: 800; color: var(--tf-on); letter-spacing: -0.02em; }
.tf-total-row { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--tf-muted); }
.tf-total-row strong { color: var(--tf-on); }
.tf-total-year1 { border-top: 1px dashed var(--tf-line); padding-top: 0.45rem; margin-top: 0.2rem; }

/* ---------- CTA ---------- */
.tf-cta {
    display: block; width: 100%; margin-top: 1rem;
    background: linear-gradient(135deg, var(--tf-cta), var(--secondary, #5d5fef));
    color: #fff; border: 0; border-radius: 0.9rem;
    font: inherit; font-size: 1rem; font-weight: 700;
    padding: 1rem 1.25rem; cursor: pointer; text-align: center;
    min-height: 52px; box-shadow: 0 6px 16px rgba(31, 94, 255, 0.3);
}
.tf-cta:active { transform: translateY(1px); }
.tf-cta:disabled { opacity: 0.6; cursor: wait; }
.tf-cta-secondary {
    background: var(--tf-panel); color: var(--tf-cta); border: 2px solid var(--tf-cta);
    box-shadow: none; text-decoration: none;
}
.tf-summary-note { font-size: 0.75rem; color: var(--tf-muted); text-align: center; margin: 0.6rem 0 0; }

/* ---------- Bottom Bar (Mobile) ---------- */
.tf-bottombar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; gap: 0.9rem;
    background: var(--tf-bar-bg, rgba(255, 255, 255, 0.97)); backdrop-filter: blur(10px);
    border-top: 1px solid var(--tf-line);
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
}
.tf-bottombar-total { display: flex; flex-direction: column; line-height: 1.1; flex: none; }
.tf-bottombar-total span { font-size: 0.68rem; color: var(--tf-muted); }
.tf-bottombar-total strong { font-size: 1.25rem; font-weight: 800; color: var(--tf-on); }
.tf-bottombar .tf-cta { margin: 0; flex: 1; }
@media (min-width: 960px) {
    .tf-bottombar { display: none; }
    body { padding-bottom: 0; }
}

/* ---------- Modal ---------- */
.tf-modal {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(10, 15, 46, 0.55);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
}
@media (min-width: 640px) {
    .tf-modal { align-items: center; padding: 1.5rem; }
}
.tf-modal-card {
    background: var(--tf-card); width: 100%; max-width: 34rem;
    max-height: 92dvh; overflow-y: auto;
    border-radius: 1.25rem 1.25rem 0 0; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    position: relative;
}
@media (min-width: 640px) {
    .tf-modal-card { border-radius: 1.25rem; padding: 1.75rem; }
}
.tf-modal-card h2 { font-size: 1.3rem; font-weight: 800; margin: 0 2rem 0.35rem 0; }
.tf-modal-close {
    position: absolute; top: 0.75rem; right: 0.75rem;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--tf-line); background: var(--tf-panel);
    font-size: 1.5rem; line-height: 1; color: var(--tf-muted); cursor: pointer;
}

/* ---------- Formular ---------- */
.tf-field { display: block; margin-bottom: 0.85rem; }
.tf-field span { display: block; font-size: 0.8rem; font-weight: 700; color: var(--tf-on); margin-bottom: 0.3rem; }
.tf-field input, .tf-field textarea {
    width: 100%; border: 1.5px solid var(--tf-line); border-radius: 0.7rem;
    font: inherit; font-size: 1rem; padding: 0.75rem 0.9rem; color: var(--tf-on);
    background: var(--tf-panel);
}
.tf-field input:focus, .tf-field textarea:focus {
    outline: none; border-color: var(--tf-cta);
    box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.14);
}
.tf-field input.tf-invalid { border-color: #dc2626; }

.tf-modal-totals {
    background: var(--tf-panel-soft); border: 1px dashed var(--tf-line); border-radius: 0.8rem;
    padding: 0.85rem 1rem; margin: 0.4rem 0 0.25rem;
    font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.tf-modal-totals div { display: flex; justify-content: space-between; }
.tf-modal-totals .tf-mt-main { font-weight: 800; color: var(--tf-on); font-size: 1rem; }

.tf-form-status { font-size: 0.85rem; margin: 0.6rem 0 0; min-height: 1.2em; }
.tf-form-status.error { color: #dc2626; }
.tf-form-status.ok { color: var(--tf-green); }

/* ---------- Erfolg ---------- */
.tf-success { text-align: center; padding: 1rem 0 0.5rem; }
.tf-success-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--tf-green); color: #fff; font-size: 2rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.tf-success h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.tf-success p { color: var(--tf-muted); font-size: 0.9rem; margin: 0 0 0.5rem; }

/* ---------- Footer ---------- */
.tf-footer {
    border-top: 1px solid var(--tf-line); background: var(--tf-card);
    padding: 1.75rem 1rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
    text-align: center; font-size: 0.82rem; color: var(--tf-muted);
}
.tf-footer a { text-decoration: underline; }
.tf-footer-note { margin-top: 0.4rem; font-size: 0.74rem; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ---------- Co-Branding ---------- */
.tf-brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.tf-brand a { display: flex; align-items: center; }
.tf-brand-vitac img { height: 38px; width: auto; display: block; }
.tf-brand-x { color: var(--tf-muted); font-weight: 300; font-size: 1.05rem; }
.tf-controls { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.tf-theme-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--tf-line); background: var(--tf-panel); color: var(--tf-muted);
    font-size: 1.05rem; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.tf-theme-btn:focus-visible { outline: 2px solid var(--tf-cta); outline-offset: 2px; }
.tf-footer-brand {
    display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    margin-bottom: 0.5rem; color: var(--tf-muted);
}
.tf-footer-brand img { height: 26px; width: auto; display: inline-block; }
@media (max-width: 560px) {
    .tf-brand-vitac img { height: 26px; }
    .tf-brand { gap: 0.4rem; }
    .tf-controls { gap: 0.35rem; }
}

/* ---------- Dark Mode ----------
   Auto: folgt prefers-color-scheme, solange kein data-theme gesetzt ist.
   Manuell: html[data-theme="dark"|"light"] (Button im Header, persistiert). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --tf-card: #131b3a;
        --tf-panel: #18224a;
        --tf-panel-soft: #101736;
        --tf-on: #e8ecf9;
        --tf-muted: #9aa7cb;
        --tf-line: #2b3660;
        --tf-accent-solid: #6ea0ff;
        --tf-on-accent: #0a0f2e;
        --tf-choice-on: rgba(110, 160, 255, 0.16);
        --tf-header-bg: rgba(11, 16, 38, 0.92);
        --tf-bar-bg: rgba(11, 16, 38, 0.95);
        --tf-warn-bg: rgba(251, 191, 36, 0.12);
        --tf-amber: #fbbf24;
        --background-alt: #0b1026;
    }
}
:root[data-theme="dark"] {
    --tf-card: #131b3a;
    --tf-panel: #18224a;
    --tf-panel-soft: #101736;
    --tf-on: #e8ecf9;
    --tf-muted: #9aa7cb;
    --tf-line: #2b3660;
    --tf-accent-solid: #6ea0ff;
    --tf-on-accent: #0a0f2e;
    --tf-choice-on: rgba(110, 160, 255, 0.16);
    --tf-header-bg: rgba(11, 16, 38, 0.92);
    --tf-bar-bg: rgba(11, 16, 38, 0.95);
    --tf-warn-bg: rgba(251, 191, 36, 0.12);
    --tf-amber: #fbbf24;
    --background-alt: #0b1026;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body { background: #0b1026; }
}
:root[data-theme="dark"] body { background: #0b1026; }

/* Hero bleibt in beiden Themes dunkel-navy — Absicht (Rollup-Look) */
