/* ─── Kalkulator-spezifische Komponenten ─────────────────────────────────
   Baut auf base.css (Design von dynservices.dev) auf.                      */

[hidden] { display: none !important; }

.btn svg { width: 16px; height: 16px; }
.btn-icon { padding: 10px 12px; }
.btn-ghost:hover { background: var(--surface-2); }

/* ─── Übersicht ─────────────────────────────────────────────────────────── */
.steps-section { padding: 0 0 32px; }
.steps-grid .stat { padding: 32px 28px; }
.steps-grid .stat-value { font-size: 2rem; margin-bottom: 12px; }
.step-title { font-weight: 600; margin-bottom: 4px; }

.compare-card { display: flex; flex-direction: column; color: inherit; }
.compare-card p { flex: 1; }
.compare-card .category-badge { align-self: flex-start; }
.compare-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: #4d9bff;
}
.compare-card-foot svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--transition); }
.compare-card:hover .compare-card-foot svg { transform: translateX(4px); }
.compare-card.is-soon .compare-card-foot { color: var(--muted-2); font-weight: 500; }
.compare-card.is-soon { opacity: 0.55; }
.compare-card.is-soon:hover { transform: none; border-color: var(--border); }
.all-product-icon svg { width: 22px; height: 22px; color: #4d9bff; }

.soon-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--muted-2);
}

/* ─── Vergleichs-Hero ───────────────────────────────────────────────────── */
.hero-compact { padding: 72px 0 56px; }
.hero-compact .hero-sub { margin-bottom: 32px; max-width: 620px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 14px; height: 14px; transform: rotate(180deg); }
.hero-content .back-link { display: flex; justify-content: center; }

.vs-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.vs-picker-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
/* Anbieter-Logos */
.vs-logos {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: calc(var(--n, 4) * 172px);
}
.vs-logo {
  --brand: var(--accent-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  padding: 16px 12px 14px;
  font: inherit;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
}
.vs-logo:hover { color: var(--text); border-color: #2c3a50; transform: translateY(-2px); }
.vs-logo.active {
  color: var(--text);
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  box-shadow: 0 10px 32px -14px var(--brand);
}
.vs-logo-mark { display: flex; align-items: center; justify-content: center; height: 30px; color: #c9d1dc; transition: color var(--transition); }
.vs-logo.active .vs-logo-mark { color: var(--brand); }
.vs-logo-mark svg { height: 28px; width: auto; }
.vs-logo-mark.logo-zoom svg { height: 16px; }
.vs-logo-name { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.vs-logo-tag { font-size: 0.68rem; color: var(--muted-2); line-height: 1.2; margin-top: -6px; }

/* Logo-Varianten: Produkt-Icons als <img>, Buchstaben-Logo als Ersatz */
.vs-logo-mark img, .price-box-logo img, .th-logo img, .card-logo img {
  height: 100%; width: auto; filter: brightness(0) invert(1); opacity: 0.85;
}
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 28%;
  border: 1.5px solid currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.vs-logo-mark .monogram { height: 28px; font-size: 0.75rem; }

/* Produkt-Icon im Hero-Badge */
.hero-product-icon { display: inline-flex; width: 16px; height: 16px; color: #a5b4fc; }
.hero-product-icon img { width: 16px; height: 16px; filter: brightness(0) invert(1); opacity: 0.85; }
.hero-product-icon svg { width: 16px; height: 16px; }

/* ─── Kalkulator ────────────────────────────────────────────────────────── */
.calc-section { padding: 0 0 96px; }

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: stretch;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.calc-card-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}
.calc-card-head .service-icon { margin: 0; flex-shrink: 0; color: #4d9bff; background: rgba(0, 98, 204, 0.14); }
.calc-card-head p { font-size: 0.85rem; }

.field { margin-bottom: 26px; }
.field:last-child { margin-bottom: 0; }

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.field-head label { font-size: 0.9rem; font-weight: 600; }

.field-value {
  min-width: 64px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
}

/* Stufen-Beschriftung unter dem Regler (Thumb = 20px → 10px Einzug) */
.ticks { position: relative; height: 20px; margin-top: 8px; }
.tick {
  position: absolute;
  top: 0;
  left: calc(10px + (100% - 20px) * var(--pos));
  transform: translateX(-50%);
  font: inherit;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted-2);
  background: none;
  border: none;
  padding: 2px 3px;
  cursor: pointer;
  transition: color var(--transition);
}
.tick:hover { color: var(--text); }
.tick.active { color: #4d9bff; font-weight: 600; }

/* Betrieb: Cloud / On-Premise */
.deploy-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deploy-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.deploy-option:hover { color: var(--text); border-color: #2c3a50; }
.deploy-option.active {
  color: var(--text);
  border-color: transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--gradient) border-box;
}
.deploy-option-icon { flex-shrink: 0; color: var(--muted-2); margin-top: 1px; }
.deploy-option.active .deploy-option-icon { color: #4d9bff; }
.deploy-option-icon svg { width: 20px; height: 20px; }
.deploy-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.deploy-option-text strong { font-size: 0.875rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.deploy-option-text small { font-size: 0.75rem; color: var(--muted-2); line-height: 1.4; }

.field-number {
  width: 92px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  outline: none;
  transition: border-color var(--transition);
  -moz-appearance: textfield;
}
.field-number::-webkit-outer-spin-button,
.field-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-number:focus { border-color: var(--accent-2); }

.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* Range-Slider mit Verlaufsfüllung */
.range {
  --pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2)) 0 / var(--pct) 100% no-repeat, var(--surface-2);
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0, 98, 204, 0.2);
  transition: box-shadow var(--transition);
}
.range::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0, 98, 204, 0.2);
}
.range:focus-visible::-webkit-slider-thumb,
.range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(0, 98, 204, 0.28); }

/* Segment-Umschalter */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.seg {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 9px 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.seg:hover { color: var(--text); }
.seg.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.seg-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  margin-left: 4px;
}

/* Ergebnis */
.calc-result { display: flex; flex-direction: column; gap: 24px; }

.result-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price-box {
  position: relative;
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 0;
}
.price-box-ds {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 10px 40px -12px rgba(0, 98, 204, 0.45);
}
.price-box-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ds-tag {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--gradient);
  color: #fff;
}
.price-box-plan {
  font-size: 0.82rem;
  color: var(--muted-2);
  margin: 6px 0 14px;
  min-height: 2.6em;
  overflow-wrap: anywhere;
}
.price-box-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price-box-value small {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}
.price-box-comp .price-box-value { color: var(--muted); }
.price-box-sub { font-size: 0.82rem; color: var(--muted-2); margin-top: 6px; }

.savings {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label pct" "value pct";
  align-items: center;
  gap: 2px 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.savings-label { grid-area: label; font-size: 0.8rem; font-weight: 600; color: #86efac; text-transform: uppercase; letter-spacing: 0.06em; }
.savings-value { grid-area: value; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: #4ade80; font-variant-numeric: tabular-nums; }
.savings-value small { font-size: 0.85rem; font-weight: 500; color: #86efac; }
.savings-pct {
  grid-area: pct;
  font-size: 1rem;
  font-weight: 700;
  color: #052e16;
  background: #4ade80;
  padding: 8px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
.savings[data-state="neutral"],
.savings[data-state="na"] {
  background: var(--surface-2);
  border-color: var(--border);
}
.savings[data-state="neutral"] .savings-label,
.savings[data-state="na"] .savings-label { color: var(--muted); }
.savings[data-state="neutral"] .savings-value,
.savings[data-state="na"] .savings-value { color: var(--text); font-size: 1.25rem; }
.savings[data-state="neutral"] .savings-value small,
.savings[data-state="na"] .savings-value small { display: none; }
.savings[data-state="neutral"] .savings-pct,
.savings[data-state="na"] .savings-pct { background: transparent; color: var(--muted); border: 1px solid var(--border); font-size: 0.8rem; font-weight: 500; white-space: normal; text-align: right; }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bars-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.bar-row { display: grid; grid-template-columns: 96px 1fr 92px; align-items: center; gap: 12px; }
.bar-value { font-size: 0.82rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-label { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar { height: 100%; width: 0; border-radius: 99px; transition: width 400ms cubic-bezier(.2, .8, .2, 1); }
.bar-comp { background: var(--muted-2); }
.bar-ds { background: var(--gradient); }

.reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.reasons li { position: relative; padding-left: 16px; line-height: 1.55; }
.reasons li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}
.reasons li:last-child::before { background: var(--accent-2); }

.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.result-actions .btn-primary { flex: 1; justify-content: center; }

.fine-print { font-size: 0.75rem; color: var(--muted-2); margin-top: 16px; text-align: center; }

/* Ergebnis-Kennzahlen: Geld + Zeit */
.result-kpis { display: grid; gap: 12px; }
.time-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.time-box .savings-label { color: #d8b4fe; }
.time-icon { color: #c084fc; padding-top: 2px; }
.time-icon svg { width: 24px; height: 24px; }
.time-hours { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: #e9d5ff; font-variant-numeric: tabular-nums; }
.time-text { font-size: 0.82rem; margin-top: 2px; }
.time-value { font-size: 0.82rem; color: #d8b4fe; margin-top: 4px; font-weight: 500; }

/* Schalter "Arbeitszeit einrechnen" */
.switch-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  position: relative;
  flex-shrink: 0;
  width: 38px; height: 22px;
  margin-top: 1px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background var(--transition);
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: all var(--transition);
}
.switch-field input:checked + .switch { background: var(--gradient); border-color: transparent; }
.switch-field input:checked + .switch::after { left: 18px; background: #fff; }
.switch-field input:focus-visible + .switch { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-text strong { font-size: 0.875rem; font-weight: 600; }
.switch-text small { font-size: 0.75rem; color: var(--muted-2); }
.bars-title span { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.feat-none { color: var(--muted-2); }

/* Logos der Wettbewerber auf den Übersichtskarten */
.card-logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; color: var(--muted-2); }
.card-logo { display: inline-flex; height: 18px; transition: color var(--transition); }
.card-logo svg { height: 18px; width: auto; }
.card-logo.logo-zoom svg { height: 10px; margin-top: 4px; }
.card-logo .monogram { font-size: 0.5rem; }
.card-logo img { opacity: 0.5; }
.compare-card:hover .card-logos { color: var(--muted); }
.card-badge { margin-left: auto; }

/* Empfehlung Cloud (bei On-Premise-Auswahl) */
.cloud-hint {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(0, 98, 204, 0.1);
  border: 1px solid rgba(0, 98, 204, 0.4);
}
.cloud-hint-icon { color: #4d9bff; }
.cloud-hint-icon svg { width: 24px; height: 24px; }
.cloud-hint strong { font-size: 0.9rem; }
.cloud-hint p { font-size: 0.82rem; margin-top: 2px; }

.price-box-logo { display: inline-flex; align-items: center; height: 16px; }
.price-box-logo svg { height: 16px; width: auto; }
.price-box-logo .monogram { font-size: 0.55rem; }
.price-box-logo.logo-zoom svg { height: 10px; }

/* ─── Vergleichstabelle ─────────────────────────────────────────────────── */
.compare-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.compare-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}
.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  overflow-wrap: break-word;
  hyphens: auto;
}
.compare-table thead th:first-child { width: 30%; }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
.compare-table tbody th { font-weight: 500; color: var(--muted); }
.compare-table td { color: var(--text); }

.compare-table .col-ds {
  background: rgba(0, 98, 204, 0.08);
  border-left: 1px solid rgba(0, 98, 204, 0.35);
  font-weight: 600;
}
.th-logo { display: flex; height: 20px; margin-bottom: 8px; }
.th-logo .monogram { font-size: 0.6rem; }
.th-logo svg { height: 20px; width: auto; }
.th-logo.logo-zoom svg { height: 12px; }
.compare-table thead .col-ds {
  background: var(--gradient);
  color: #fff;
}

.compare-table .row-price td,
.compare-table .row-price th { font-size: 1rem; font-weight: 700; color: var(--text); }
.compare-table .row-price small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted-2); margin-top: 2px; }
.compare-table .row-price .col-ds { color: #4d9bff; }

.feat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
}
.feat svg { width: 15px; height: 15px; stroke-width: 2.6; }
.feat-yes { background: rgba(34, 197, 94, 0.14); color: #4ade80; }
.feat-no  { background: rgba(239, 68, 68, 0.12); color: #f87171; }

/* ─── Pakete ────────────────────────────────────────────────────────────── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(min(var(--cols, 5), 5), minmax(0, 1fr));
  gap: 16px;
}
.package-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.package-card h3 { margin-bottom: 12px; }
.package-price { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.package-price small { font-size: 0.8rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.package-from { font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.package-specs { font-size: 0.8rem; color: var(--muted-2); margin: 6px 0 20px; }
.package-list { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 20px; }
.package-list li { display: flex; gap: 10px; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.package-list svg { width: 16px; height: 16px; flex-shrink: 0; color: #4d9bff; margin-top: 2px; }
.package-list { flex: 1; }
.package-onprem {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.45;
}
.package-onprem svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

/* ─── Betrieb: Cloud vs. On-Premise ─────────────────────────────────────── */
.deploy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.deploy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.deploy-card.is-recommended {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 16px 48px -20px rgba(0, 98, 204, 0.55);
}
.deploy-flag {
  position: absolute;
  top: -11px; left: 32px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--gradient);
  color: #fff;
}
.deploy-card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.deploy-card-head .service-icon { margin: 0; flex-shrink: 0; color: #4d9bff; background: rgba(0, 98, 204, 0.14); }
.deploy-card-head p { font-size: 0.875rem; }
.deploy-card .package-list { padding-top: 20px; }
.deploy-note { font-size: 0.8rem; color: var(--muted-2); margin-top: 16px; }
.deploy-card .btn { align-self: flex-start; margin-top: 24px; }

.package-match {
  position: absolute;
  top: -11px; left: 24px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--gradient);
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}
.package-card.is-match {
  border-color: transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--gradient) border-box;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -16px rgba(0, 98, 204, 0.5);
}
.package-card.is-match .package-match { opacity: 1; transform: none; }

/* ─── Vorteile ──────────────────────────────────────────────────────────── */
.benefits-grid { grid-template-columns: repeat(4, 1fr); }
.benefits-grid .service-icon { color: #4d9bff; background: rgba(0, 98, 204, 0.14); }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq-section { padding-top: 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: rgba(0, 98, 204, 0.5); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; font-size: 0.9rem; line-height: 1.7; }

/* ─── CTA ───────────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0, 98, 204, 0.25), transparent 60%),
    var(--surface);
}
.cta-banner h3 { font-size: 1.4rem; margin: 4px 0 8px; }
.cta-banner .section-label { margin-bottom: 0; }

/* ─── Toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 200;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .calc-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: repeat(min(var(--cols, 3), 3), minmax(0, 1fr)); }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .cta-banner .btn { display: inline-flex; justify-self: start; }
}

@media (max-width: 640px) {
  .hero-compact { padding: 48px 0 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 22px 18px; }
  .result-cols { grid-template-columns: 1fr; }
  .price-box-plan { min-height: 0; }
  .packages-grid, .benefits-grid, .deploy-cards { grid-template-columns: 1fr; }
  .deploy-card { padding: 26px 22px; }
  .vs-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .deploy-options { grid-template-columns: 1fr; }
  .cloud-hint { grid-template-columns: auto 1fr; }
  .cloud-hint .btn { grid-column: 1 / -1; justify-content: center; }
  .bar-row { grid-template-columns: 76px 1fr 78px; gap: 8px; }
  /* Stufen als Punkte – der aktuelle Wert steht im Badge */
  .tick { font-size: 0; width: 5px; height: 5px; padding: 0; top: 4px; border-radius: 50%; background: var(--muted-2); }
  .tick.active { background: #4d9bff; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 12px 12px; }
  .compare-table thead th { font-size: 0.68rem; }
  .compare-table thead th:first-child { width: 36%; }
  .cta-banner { padding: 28px 22px; }
}

/* ─── Druck / PDF ───────────────────────────────────────────────────────── */
@media print {
  :root {
    --bg: #fff; --surface: #fff; --surface-2: #f3f6fa; --border: #d8dee8;
    --text: #0B0F1A; --muted: #4B5563; --muted-2: #6B7280;
  }
  body { background: #fff; color: var(--text); font-size: 12px; }
  nav, footer, .hero-grid-bg, .hero-glow, .back-link, .vs-picker, .result-actions,
  .calc-inputs .range, .faq-section, .support-section, .toast, .benefits-grid { display: none !important; }
  section { padding: 16px 0 !important; break-inside: avoid; }
  .hero-compact { padding: 0 !important; }
  .gradient-text, .stat-value { -webkit-text-fill-color: #004994; color: #004994; }
  .calc-grid { grid-template-columns: 1fr 1.4fr; }
  .calc-card, .price-box, .compare-table-wrap, .package-card { box-shadow: none !important; }
  .field-value {
  min-width: 64px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
}

/* Stufen-Beschriftung unter dem Regler (Thumb = 20px → 10px Einzug) */
.ticks { position: relative; height: 20px; margin-top: 8px; }
.tick {
  position: absolute;
  top: 0;
  left: calc(10px + (100% - 20px) * var(--pos));
  transform: translateX(-50%);
  font: inherit;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted-2);
  background: none;
  border: none;
  padding: 2px 3px;
  cursor: pointer;
  transition: color var(--transition);
}
.tick:hover { color: var(--text); }
.tick.active { color: #4d9bff; font-weight: 600; }

/* Betrieb: Cloud / On-Premise */
.deploy-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deploy-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.deploy-option:hover { color: var(--text); border-color: #2c3a50; }
.deploy-option.active {
  color: var(--text);
  border-color: transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--gradient) border-box;
}
.deploy-option-icon { flex-shrink: 0; color: var(--muted-2); margin-top: 1px; }
.deploy-option.active .deploy-option-icon { color: #4d9bff; }
.deploy-option-icon svg { width: 20px; height: 20px; }
.deploy-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.deploy-option-text strong { font-size: 0.875rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.deploy-option-text small { font-size: 0.75rem; color: var(--muted-2); line-height: 1.4; }

.field-number { border: none; }
  .savings { border-color: #22c55e; }
  .savings-value { color: #15803d; }
  .package-card.is-match { transform: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
