:root {
  color-scheme: light;
  --font-base: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  /* ── Farben ─────────────────────────────────────────────────────── */
  --bg:           #F8FAFC;
  --surface:      #FFFFFF;
  --surface-2:    #F1F5F9;
  --ink:          #0F172A;
  --muted:        #64748B;
  --subtle:       #94A3B8;
  --accent:       #10B981;
  --accent-dark:  #059669;
  --border:       #E2E8F0;
  --border-strong:#CBD5E1;
  --error:        #DC2626;
  --error-bg:     #FEF2F2;

  /* ── Shadows ────────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 12px rgba(15,23,42,.10);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);

  /* ── Radius ─────────────────────────────────────────────────────── */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 16px;

  /* ── Transitions ────────────────────────────────────────────────── */
  --transition: 150ms ease;
}

body {
  margin: 0;
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv01","cv02","cv03","cv04";
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}


a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

*, *::before, *::after {
  box-sizing: border-box;
  transition: color var(--transition),
              background-color var(--transition),
              border-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition),
              opacity var(--transition);
}

/* ── Focus rings (WCAG 2.1 AA) ──────────────────────────────────── */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Inputs: inset ring, no offset */
#gross:focus-visible,
input[type="number"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  border-color: var(--accent);
}

/* ── Site Topbar (Auch von uns) ─────────────────────────────────── */
.gk-site-topbar {
  background: #1a1f2e;
  color: #94a3b8;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
  position: relative;
  z-index: 101;
}
.gk-site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gk-site-topbar-label { color: #64748b; }
.gk-site-topbar-sep   { color: #475569; }
.gk-site-topbar-link  { color: #94a3b8; text-decoration: none; transition: color .15s; }
.gk-site-topbar-link:hover { color: #34d399; }

/* ── Topbar Landing Nav ─────────────────────────────────────────── */
.topbar-landing-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.topbar-landing-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.topbar-landing-link:hover {
  color: var(--ink);
  background: var(--surface);
}

/* ── Footer Family Links ────────────────────────────────────────── */
.footer-family {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
}

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.topbar.scrolled {
  box-shadow: var(--shadow-md);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ── Logo ───────────────────────────────────────────────────────── */
.logo-area { display: flex; align-items: center; flex-shrink: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
  min-height: 44px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.logo-wordmark {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}

.logo-accent { color: var(--accent); }

.logo-service {
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
  margin-top: 1px;
}

.logo-service-link {
  color: var(--accent);
  text-decoration: none;
}

.logo-service-link:hover { text-decoration: underline; }

.logo-svg { display: none; }

/* ── Landing-page topbar nav (arbeitgeber/hr/kanzlei/berater) ── */
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-text strong { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.logo-text span   { font-size: 11px; color: var(--muted); line-height: 1; }

.header-nav { display: flex; align-items: center; gap: 4px; }

.header-nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.header-nav-link:hover  { color: var(--ink); background: var(--surface-2); }
.header-nav-link.active { color: var(--ink); font-weight: 600; }

/* ── Topbar Actions ─────────────────────────────────────────────── */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-cta {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.topbar-cta:hover { background: var(--accent-dark); }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-switch button {
  padding: 10px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-base);
  min-height: 44px;
  min-width: 44px;
}

.lang-switch button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary, .btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover, .btn-primary:hover {
  background: var(--accent-dark);
}

.btn.secondary {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn.secondary:hover {
  background: rgba(16,185,129,.06);
}

.ghost, .btn.ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.ghost:hover, .btn.ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.btn.danger {
  background: var(--error);
  color: #fff;
}
.btn.danger:hover { background: #b91c1c; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
}
.cta:hover { background: var(--accent-dark); }

.topbar-badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
}

.print-header {
  display: none;
}

/* ── Page Layout ─────────────────────────────────────────────────── */
.app {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 64px; /* topbar height */
}

.app-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Section spacing ─────────────────────────────────────────────── */
.section-gap { margin-top: 32px; }
.section-gap-sm { margin-top: 16px; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 64px;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 24px 28px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
}

.hero-highlight { color: var(--accent); }

.hero .subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ── Trust Bar ──────────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.trust-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

.trust-item span {
  color: var(--muted);
  font-size: 11px;
}

/* ── Panels & Cards ─────────────────────────────────────────────── */

/* ── Panels ─────────────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel + .panel { margin-top: 12px; }

.panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

/* ── Result Card ────────────────────────────────────────────────── */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.result-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.result-body { padding: 24px; }

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

.result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.result-value.accent { color: var(--accent); }

.result-note {
  font-size: 11px;
  color: var(--subtle);
  margin-top: 2px;
}

/* ── Package Options (Benefit Packages) ─────────────────────────── */
.package-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  background: var(--surface);
}

.package-option:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.package-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}

.package-option .package-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.package-option .package-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.module-card:hover,
.keycard:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.note {
  color: var(--muted);
  font-size: 12px;
}

/* ── Lohnklar Sidebar Nudge ─────────────────────────────────────────── */
.lk-nudge {
  background: linear-gradient(135deg, #064e3b, #065f46);
  border: 1px solid #10b981;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  display: none;
}
.lk-nudge-badge {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lk-nudge-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.lk-nudge-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  padding-left: 20px;
  position: relative;
}
.lk-nudge-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
}
.lk-nudge-price {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.lk-nudge-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: #10b981;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.lk-nudge-btn:hover { background: #059669; }
@media (max-width: 768px) { .lk-nudge { display: none !important; } }

.live-card {
  background: linear-gradient(160deg, #0f172a, #111f38);
  color: #fff;
  border-radius: 18px;
  padding: 16px 14px;
  display: grid;
  gap: 12px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.3);
  animation: liveCardFloat 7s ease-in-out infinite;
}

@keyframes liveCardFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

.live-title {
  font-weight: 700;
  font-size: 13px;
  color: #cbd5f5;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 10px;
}

.live-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.live-kpi {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 8px;
  background: rgba(30, 41, 59, 0.45);
  display: grid;
  gap: 4px;
}

.live-kpi span {
  font-size: 10px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live-kpi strong {
  font-size: 12px;
  color: #fff;
}

.live-kpi.kpi-good {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.16);
}

.live-kpi.kpi-warn {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.16);
}

.live-kpi.kpi-bad {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.18);
}

.live-section {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.live-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.live-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #93c5fd;
  margin-bottom: 4px;
}

.live-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #dbe6f6;
}

.live-row strong {
  color: #fff;
  text-align: right;
  font-size: 12px;
}

.live-note {
  background: rgba(248, 250, 252, 0.12);
  border-radius: 10px;
  padding: 8px;
  font-size: 11px;
  color: #fbbf24;
}

.hidden { display: none !important; }

/* ── Page Layout ────────────────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.section-subtitle {
  margin-bottom: 16px;
}

.section-subtitle h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}

.section-subtitle p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.section-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.section-block-benefits {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.section-intro {
  margin: 8px 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Help Tooltip ───────────────────────────────────────────────── */
.help {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  position: relative;
  flex-shrink: 0;
  text-align: center;
}

.help .tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  max-width: 240px;
  white-space: normal;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}

.help:hover .tooltip,
.help:focus .tooltip { display: block; }

.tooltip-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.tooltip-row {
  margin-top: 6px;
  color: #cbd5e1;
}

.tooltip-row strong {
  color: #93c5fd;
}

.tooltip-law {
  margin-top: 9px;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  padding-top: 8px;
}


.seo-content {
  display: grid;
  gap: 14px;
}

.seo-content h2 {
  margin: 0;
  font-size: 24px;
  color: var(--ink);
}

.seo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.seo-grid article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-2);
}

.seo-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.seo-grid p,
.seo-faq p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.seo-faq {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}


/* ── Field Grid ──────────────────────────────────────────────────── */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.field-grid.two { grid-template-columns: repeat(2, 1fr); }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
.field-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-grid .full-width { grid-column: 1 / -1; }

/* ── Forms ──────────────────────────────────────────────────────── */
label > span:first-child {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

input[type="number"],
input[type="text"],
input[type="email"],
select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

/* ── Toggle ─────────────────────────────────────────────────────── */
.toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.toggle button {
  flex: 1;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  min-height: 32px;
}

.toggle button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.preset-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-group button {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.preset-group button.active {
  background: rgba(16,185,129,.06);
  color: var(--accent);
  border-color: var(--accent);
}

.primary {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary:hover {
  background: var(--accent-dark);
}

/* ── Module Grid (Benefits) ─────────────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.module-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.module-card.active {
  border-color: var(--accent);
  background: rgba(16,185,129,.04);
}

.module-card:hover {
  transform: translateY(-4px);
  z-index: 30;
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
}

.module-card:focus-within {
  z-index: 35;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: visible;
}

.module-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.module-toggle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  background: rgba(16,185,129,.08);
  color: var(--accent-dark);
  border: 1px solid rgba(16,185,129,.25);
  animation: moduleTogglePulse 1.8s ease-in-out infinite;
  position: relative;
}

/* ── Benefit Category Headers ──────────────────────────── */
.benefit-category-header {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.module-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--muted);
}

.module-card.active .module-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-dark);
}

.module-card.active .module-toggle {
  background: #10b981;
  color: #fff;
  border-color: #059669;
  font-size: 14px;
  animation: none;
}

.module-card.active .module-toggle::before {
  content: "-";
  color: #fff;
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.module-card.active .module-toggle {
  color: transparent;
}

@keyframes moduleTogglePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.35);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

.module-body h4 {
  margin: 0;
  font-size: 16px;
}

.module-body p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.module-controls {
  display: none;
  gap: 8px;
}

.module-card.active .module-controls {
  display: grid;
}

.module-controls input {
  text-align: right;
}

.module-warning {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(249,115,22,.08);
  border: 1px solid rgba(249,115,22,.25);
  color: #c2410c;
  font-size: 12px;
  display: none;
}

.module-warning.show {
  display: block;
}

.package-block {
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.package-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

/* ── Package Options ────────────────────────────────────────────── */
.package-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.package-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* ── Result Section ─────────────────────────────────────────────── */
.result { display: flex; flex-direction: column; gap: 16px; }

.summary-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}

.summary-card span { font-size: 13px; color: rgba(255,255,255,.6); }
.summary-card strong {
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin: 4px 0;
}
.summary-card .note { font-size: 12px; color: rgba(255,255,255,.5); }

.result-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.result-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.keycards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.keycard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: default;
}

.keycard > span { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.keycard strong {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: block;
}
.keycard .note { font-size: 11px; color: var(--subtle); }

.keycard.dark {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.value-pop {
  animation: valuePop 0.34s ease;
}

@keyframes valuePop {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.05);
    filter: brightness(1.12);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.breakdown .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.breakdown .line:last-child { border-bottom: none; }
.breakdown .line span { color: var(--muted); }
.breakdown .line strong { font-variant-numeric: tabular-nums; font-weight: 600; }

.line.highlight {
  color: #10b981;
  font-weight: 600;
}

.market-chart {
  display: grid;
  gap: 8px;
}

.market-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

#marketMarker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #2563eb;
  border-radius: 50%;
  border: 2px solid #fff;
}

.market-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.hourly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.hourly-card {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.hourly-card.highlight {
  background: #e0ecff;
  border-color: #c7dcff;
  color: #1e3a8a;
}

.chart .progress {
  height: 10px;
}

.stacked-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
}

.stacked-bar span {
  height: 100%;
}

#barEmployer {
  background: #0f172a;
}

#barEmployee {
  background: #2563eb;
}

#barBenefit {
  background: #10b981;
}

.share {
  display: grid;
  gap: 10px;
}

.share input {
  width: 100%;
}

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
}

.share-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px;
  border-radius: 12px;
}

.share-error.hidden {
  display: none;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  z-index: 9;
}

.bottom-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.linkish {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-simple {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-copy a {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-md);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content-wide { max-width: 700px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .logo-service { display: none; }
  .live-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero { padding: 44px 16px 20px; }
  .hero h1 { font-size: clamp(22px, 6vw, 36px); }
  .hero .subtitle { font-size: 15px; }

  .trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
    padding: 20px 16px;
    justify-items: center;
  }
  .trust-item { font-size: 12px; }

  .app-inner { padding: 28px 16px 60px; }
  .page { padding: 72px 16px 48px; }

  .field-grid { grid-template-columns: 1fr; }
  .field-grid.two { grid-template-columns: 1fr; }
  .field-grid.three { grid-template-columns: 1fr; }
  .field-grid.cols-3 { grid-template-columns: 1fr; }

  .result-grid { grid-template-columns: 1fr; }
  .result-value { font-size: 22px; }

  .keycards { grid-template-columns: 1fr 1fr; }

  .topbar-cta { display: none; }
  .lang-switch { display: none; }
  .header-nav  { display: none; }
}

@media (max-width: 480px) {
  .topbar-inner { padding: 0 16px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-wordmark { font-size: 15px; }

  .step-header { padding: 14px 16px; }
  .step-body { padding: 0 16px 16px; }
  .panel { padding: 14px; }

  .gross-hero-input { font-size: 22px; height: 48px; }
  .result-value { font-size: 20px; }

  .keycards { grid-template-columns: 1fr; }
  .step span:last-child { display: none; }
}

/* ── Accessibility ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Print / PDF ────────────────────────────────────────────────── */
/* ── PDF-Report: screen hidden, print only ─────────────────────────────── */
#pdf-report { display: none; }

/* ── PDF-Report Screen-Styles (Layout-Referenz für Print) ─────────────── */
.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pdf-brand { display: flex; align-items: center; gap: 12pt; }
.pdf-logo-mark {
  width: 40pt;
  height: 40pt;
  background: #0f172a;
  color: #fff;
  border-radius: 8pt;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14pt;
  flex-shrink: 0;
}
.pdf-brand-name { font-weight: 800; font-size: 16pt; color: #0f172a; }
.pdf-brand-sub  { font-size: 9pt; color: #64748b; }
.pdf-meta { text-align: right; }
.pdf-date { font-size: 10pt; font-weight: 600; color: #0f172a; }
.pdf-url  { font-size: 9pt; color: #64748b; }

.pdf-title-row { margin: 20pt 0 14pt; }
.pdf-report-title { font-size: 20pt; font-weight: 800; color: #0f172a; margin: 0 0 4pt; }
.pdf-params { font-size: 10pt; color: #64748b; }

.pdf-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8pt;
  margin-bottom: 18pt;
}
.pdf-kpi {
  border: 1pt solid #e2e8f0;
  border-radius: 8pt;
  padding: 12pt;
  background: #f8fafc;
}
.pdf-kpi--accent {
  background: #f0fdf4;
  border-color: #10b981;
}
.pdf-kpi--green .pdf-kpi-value { color: #10b981 !important; }
.pdf-kpi-label { font-size: 8pt; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4pt; }
.pdf-kpi-value { font-size: 18pt; font-weight: 800; color: #0f172a; line-height: 1; }
.pdf-kpi--accent .pdf-kpi-value { color: #059669; }
.pdf-kpi-sub { font-size: 8pt; color: #94a3b8; margin-top: 2pt; }

.pdf-section { margin-bottom: 16pt; }
.pdf-section-title {
  font-size: 10pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #0f172a;
  border-bottom: 1.5pt solid #0f172a;
  padding-bottom: 4pt;
  margin-bottom: 10pt;
}

.pdf-benefits { display: flex; flex-wrap: wrap; gap: 6pt; }
.pdf-benefit-chip {
  display: flex;
  align-items: center;
  gap: 6pt;
  background: #f0fdf4;
  border: 1pt solid #10b981;
  border-radius: 20pt;
  padding: 4pt 10pt;
}
.pdf-benefit-name { font-size: 9pt; font-weight: 600; color: #064e3b; }
.pdf-benefit-amount { font-size: 8pt; color: #059669; font-weight: 700; }
.pdf-no-benefits { font-size: 9pt; color: #94a3b8; }

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10pt;
}
.pdf-table td {
  padding: 5pt 6pt;
  border-bottom: .5pt solid #e2e8f0;
  color: #374151;
}
.pdf-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdf-table-sum td { font-weight: 700; color: #0f172a; border-top: 1.5pt solid #0f172a; border-bottom: 1.5pt solid #0f172a; background: #f8fafc; }
.pdf-table-spacer td { padding: 4pt 0; border-bottom: none; }

.pdf-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20pt;
  border-top: 1pt solid #e2e8f0;
  padding-top: 10pt;
  font-size: 8.5pt;
  color: #64748b;
  line-height: 1.5;
}
.pdf-footer strong { color: #0f172a; }
.pdf-footer-right { text-align: right; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────────── */
.print-header { display: none; }

@media print {
  /* ── Page setup ── */
  @page { size: A4 portrait; margin: 14mm 16mm 16mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* ── Alles ausblenden – nur PDF-Report anzeigen ── */
  body > *:not(#pdf-report) { display: none !important; }
  #pdf-report {
    display: block !important;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 10pt;
    color: #0f172a;
    background: #fff;
    line-height: 1.4;
  }

  /* Header-Trennlinie */
  #pdf-report .pdf-header {
    border-bottom: 2.5pt solid #0f172a;
    padding-bottom: 10pt;
    margin-bottom: 0;
  }

  /* Kein Seitenumbruch innerhalb KPI-Zeile */
  .pdf-kpi-row { break-inside: avoid; }
  .pdf-section { break-inside: avoid; }
  .pdf-footer { break-inside: avoid; margin-top: auto; }

  /* Links ohne Farbe */
  a { color: #0f172a !important; text-decoration: none !important; }

  /* Seitenumbrüche */
  h2, h3 { break-after: avoid; }
}

/* ══════════════════════════════════════════════════════════════════════════
   GEHALTSKLAR — DESIGN REFRESH 2026
   Brand-Farbsystem: Navy #0f172a ("Gehalt") + Emerald #10b981/#34d399 ("sklar")
   Die Farben des Logo-Schriftzugs ziehen sich konsequent durch das gesamte UI.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Eyebrow Badge: Emerald-Tinted ────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Emerald-Pill — "sklar"-Farbe als Badge-Hintergrund */
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
}


/* ── Keycards: Navy dark-Variant mit Emerald ───────────────────────────── */
.keycard.dark {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: rgba(52, 211, 153, 0.25);
}
.keycard.dark strong {
  color: #34d399;
}
.keycard.dark span:first-child {
  color: #94a3b8;
}

/* ── Highlight-Zeilen: Emerald ──────────────────────────────────────────── */
.line.highlight {
  color: #059669;
  font-weight: 700;
}

/* ── Preset-Gruppe: Emerald Active ──────────────────────────────────────── */
.preset-group button.active {
  background: rgba(16,185,129,.06);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Module-Toggle Pulse: Emerald ───────────────────────────────────────── */
@keyframes moduleTogglePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── Live-Card: Navy + Emerald-Akzente ─────────────────────────────────── */
.live-card {
  background: linear-gradient(160deg, #0f172a 0%, #0d1f3c 100%);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.live-head {
  color: #34d399;  /* Emerald statt Blau für Abschnitts-Labels im Dark-Panel */
}

.live-kpi.kpi-good {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.14);
}

/* ── Stacked Bar: Navy + Blau + Emerald ─────────────────────────────────── */
#barEmployer { background: #0f172a; }   /* Navy — "Gehalt" */
#barEmployee { background: #2563eb; }   /* Blau  — sekundär */
#barBenefit  { background: #10b981; }   /* Emerald — "sklar" */

/* ── Market-Marker: Emerald ─────────────────────────────────────────────── */
#marketMarker {
  background: #10b981;
  border-color: #fff;
}

/* ── Chart-Bar: Emerald ─────────────────────────────────────────────────── */
#chartBar {
  background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

/* ── Ghost-Button hover (defined with .btn.ghost above) ─────────────────── */

/* ── by-Lohnklar Badge ──────────────────────────────────────────────────── */
.by-lohnklar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 3px 10px 3px 6px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  text-decoration: none;
}
.by-lohnklar:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #e2e8f0;
}
.by-lohnklar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;  /* Emerald-Dot — "sklar"-Farbe */
}

/* ── Feedback-Button: Emerald-Akzent ───────────────────────────────────── */
/* (Inline-Stile im HTML behalten, hier nur Override für Konsistenz) */

/* ── Verbesserte Typographie global ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-base);
  letter-spacing: -0.015em;
}

strong {
  font-weight: 700;
}


/* ── Section-Block-Benefits: Emerald Border ─────────────────────────────── */
.section-block-benefits {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(145deg, #f8fffe, #ffffff 40%);
}

/* ── Hourly-Card Highlight: Emerald ─────────────────────────────────────── */
.hourly-card.highlight {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5 80%);
  border-color: #a7f3d0;
  color: #065f46;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCHNELLSTART — Brutto-Eingabe & Salary-Presets
   Ziel: Schnell, klar, direkter Einstieg — Eingabe in unter 5 Sekunden
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Gross Hero Input ───────────────────────────────────────────── */
.gross-hero-wrap { margin-bottom: 16px; }

.gross-hero-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

/* Label-Zeile: "Monatsbrutto €" inline nebeneinander */
.gross-hero-label > span:first-child {
  display: inline;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.gross-unit {
  display: inline;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.gross-hero-input {
  font-size: 28px;
  font-weight: 700;
  height: 56px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--surface);
  appearance: none;
  -webkit-appearance: none;
}

.gross-hero-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
  outline: none;
}

/* ── Schnellwahl-Chips ──────────────────────────────────────────────────── */
.salary-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.presets-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.salary-chip {
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  background: #fff;
  color: #059669;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-base);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.salary-chip:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  transform: translateY(-1px);
}

.salary-chip.active {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

/* ── Responsive: Mobile Schnellwahl ────────────────────────────────────── */
@media (max-width: 600px) {
  .salary-presets {
    gap: 6px;
  }
  .salary-chip {
    font-size: 12px;
    padding: 4px 10px;
  }
  .gross-hero-input {
    font-size: 22px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   RECHNER-INNENDESIGN — Formfelder, Personaldaten, Ergebnisabschnitte
   Ziel: Jedes Feld und jeder Abschnitt wirkt sauber, modern, professionell.
   ══════════════════════════════════════════════════════════════════════════ */


/* ── section-subtitle: Emerald-Dot + cleanere Trennlinie ──────────────── */
.section-subtitle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

/* Emerald-Dot als Abschnitts-Indikator (analog zum Farb-System) */
.section-subtitle h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-subtitle h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.section-subtitle p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ── Field-Grid Labels: Modern SaaS Typography ────────────────────────── */
/* Uppercase, klein, klares Tracking — professionelles Form-Label-System */
.field-grid label > span[data-i18n],
.field-grid label > span:not(.help):not(.note):not(.gross-unit) {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.field-note {
  display: block;
  font-size: 11px;
  color: var(--subtle);
  margin-top: 4px;
}

/* ── Inputs & Selects: cleaner & branded ──────────────────────────────── */
.field-grid input:not([type="range"]):not([type="checkbox"]),
.field-grid select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font-base);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-grid input:not([type="range"]):not([type="checkbox"]):focus,
.field-grid select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  outline: none;
}

/* ── Selects: Emerald Custom-Pfeil (global für alle selects im Tool) ──── */
.field-grid select,
.left-field-row select,
.left-fields select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding-left: 12px;
  height: 44px;
  font-size: 14px;
  font-family: var(--font-base);
  color: var(--ink);
  background-color: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-grid select:focus,
.left-field-row select:focus,
.left-fields select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  outline: none;
}

/* ── Toggle: Cleaner Segmented Control ──────────────────────────────────── */
.toggle {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
}

.toggle button {
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s ease;
  min-height: 44px;
}

.toggle button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ── Preset-Group: Segmented Control ────────────────────────────────────── */
.preset-group {
  display: inline-flex;
  gap: 2px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
}

.preset-group button {
  border: none;
  background: transparent;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-base);
  transition: all 0.18s ease;
}

.preset-group button.active {
  background: rgba(16,185,129,.06);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Advanced Details-Section (Umlagen & BG-Sätze) ─────────────────────── */
.footer-section {
  margin-top: 18px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  padding: 12px 14px;
}

.footer-section > summary {
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.footer-section > summary::-webkit-details-marker { display: none; }

.footer-section > summary::before {
  content: "▶";
  font-size: 8px;
  color: #10b981;
  transition: transform 0.2s ease;
  display: inline-block;
  line-height: 1;
}

.footer-section[open] > summary::before {
  transform: rotate(90deg);
}

.footer-section .field-grid {
  margin-top: 14px;
}

/* Advanced field labels inside details */
.footer-section label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer-section input {
  margin-top: 4px;
  font-size: 13px;
}


/* ── section-title h2: klare Hierarchie ─────────────────────────────────── */
.section-title {
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

/* ── Result-Section h3: Uppercase Label-Stil ────────────────────────────── */
.result-section h3 {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-2);
}

/* ── Summary-Card: Impact-Zahlen ────────────────────────────────────────── */
.summary-card {
  padding: 28px;
}

/* Efficiency-Zahl XXL */
#summaryEfficiency {
  display: block !important;
  font-size: 48px !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1 !important;
  margin: 8px 0 6px !important;
}

.summary-card > div > span:first-child {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--subtle);
}

.summary-card .line > span:first-child {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.summary-card .line > strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ── Keycards: Starke Zahlen ─────────────────────────────────────────────── */
.keycard > span[data-i18n],
.keycard > span:first-child {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.keycard > strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: block;
}

/* ── Breakdown lines: klarer Kontrast ───────────────────────────────────── */
.line {
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-2);
}

.line:last-child {
  border-bottom: none;
}

.line > span:first-child {
  font-size: 12.5px;
  color: var(--muted);
}

.line > strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.line.highlight > span:first-child {
  font-size: 12.5px;
  color: #059669;
}

.line.highlight > strong {
  font-size: 14px;
  color: #059669;
}

/* ── Hourly Cards: bessere Typographie ──────────────────────────────────── */
.hourly-card > span:first-child,
.hourly-card > span[data-i18n] {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
}

.hourly-card > strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
  margin: 8px 0 4px;
}

.hourly-card.highlight > strong {
  color: #059669;
}


/* ── Module Card: Benefit-Bausteine ─────────────────────────────────────── */
.module-body h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.module-body p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

.module-card {
  border-radius: 16px;
}

/* ── Section-block-benefits: Emerald-Akzent ─────────────────────────────── */
.section-block-benefits .section-title h2 {
  font-size: 18px;
}

/* ── Share Buttons: mehr Luft ───────────────────────────────────────────── */
.share {
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Callout: Informations-Box ──────────────────────────────────────────── */
.callout {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf9);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  color: #065f46;
  font-size: 12px;
}

/* ── Live-Card Typography: schlanker ────────────────────────────────────── */
.live-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 2px;
}

.live-row {
  font-size: 11px;
  padding: 3px 0;
}

.live-row strong {
  font-size: 11.5px;
  font-weight: 700;
}

/* ── Responsive: Component overrides ────────────────────────────────────── */
@media (max-width: 768px) {
  .panel-muted {
    padding: 16px 18px;
  }
  .package-grid {
    grid-template-columns: 1fr 1fr;
  }
  #summaryEfficiency {
    font-size: 36px !important;
  }
}

/* ── Lohnklar Result CTA 2-Step ─────────────────────────────────────── */
.lk-result-cta {
  background: linear-gradient(135deg, #0f172a 0%, #111f38 100%);
  border: 1px solid #1e3a5f;
  border-radius: 20px;
  padding: 48px 40px;
  margin-top: 32px;
}
.lk-result-cta-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .lk-result-cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .lk-result-cta { padding: 32px 20px; }
}
.lk-result-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lk-result-headline {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}
.lk-result-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 20px;
}
.lk-result-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lk-result-bullets li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding-left: 22px;
  position: relative;
}
.lk-result-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
}
.lk-form-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
}
.lk-form { display: grid; gap: 14px; }
.lk-form-row { display: grid; gap: 6px; }
.lk-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lk-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.lk-input::placeholder { color: rgba(255,255,255,0.3); }
.lk-input:focus { outline: none; border-color: #10b981; background: rgba(255,255,255,0.09); }
.lk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lk-submit-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
  font-family: inherit;
}
.lk-submit-btn:hover { background: #059669; transform: translateY(-1px); }
.lk-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.lk-form-privacy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin: 4px 0 0;
  line-height: 1.5;
}
.lk-form-error {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-size: 13px;
  margin-top: 8px;
}
.lk-success-msg { text-align: center; padding: 20px 0; }
.lk-success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(16,185,129,0.2);
  border: 2px solid #10b981;
  color: #34d399;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.lk-success-msg h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.lk-success-msg p { color: rgba(255,255,255,0.6); font-size: 14px; margin: 0; }
.lk-calendly-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid #10b981;
  color: #34d399;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.lk-calendly-btn:hover { background: rgba(16,185,129,0.1); }

/* ─── Calc Shell ─── */
/* ─── Calc Shell: Desktop Zweispalten-Layout ─── */
.calc-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 64px;
}

@media (min-width: 960px) {
  .calc-shell {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
  }
  .calc-input-block {
    position: sticky;
    top: 88px;
    margin-bottom: 0;
  }
  .calc-right-col {
    min-width: 0; /* prevent grid blowout */
  }
}

@media (max-width: 959px) {
  .calc-shell {
    padding: 0 0 48px;
  }
}

.calc-input-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  margin-bottom: 24px;
}

.gross-field {
  position: relative;
  margin-bottom: 16px;
}

.gross-field .currency-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

#gross {
  width: 100%;
  padding: 18px 16px 18px 44px;
  font-size: 28px;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

#gross:focus {
  border-color: var(--accent);
}

.salary-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.salary-chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.salary-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.salary-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.field-row label {
  font-size: 13px;
  color: var(--muted);
  min-width: 120px;
  flex-shrink: 0;
}

.field-row select,
.field-row input[type="number"] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.field-row select:focus,
.field-row input[type="number"]:focus {
  border-color: var(--accent);
}

/* ─── Compare Panel ─── */
.compare-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
}

.compare-panel-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-col {
  padding: 28px 24px;
}

.compare-col + .compare-col {
  border-left: 1px solid var(--border);
}

.compare-col-opt {
  background: #f0fdf9;
}

.compare-col-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.compare-col-opt .compare-col-label {
  color: var(--accent);
  background: #d1fae5;
  border-color: #6ee7b7;
}

.compare-main-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.compare-col-opt .compare-main-value {
  color: var(--accent);
}

.compare-main-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 6px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.compare-row span:last-child,
.compare-row strong {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.compare-divider {
  height: 1px;
  background: var(--border);
  margin: 0 20px;
}

.compare-diff-row {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg);
}

.compare-diff-value {
  font-size: 16px;
  font-weight: 700;
}

.compare-diff-value.positive { color: var(--accent); }
.compare-diff-value.neutral  { color: var(--muted); }
.compare-diff-value.negative { color: var(--error); }

/* ─── Calc Details (collapsible) ─── */
.calc-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.calc-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  user-select: none;
}

.calc-details summary::-webkit-details-marker { display: none; }

.calc-details summary::after {
  content: '▸';
  color: var(--muted);
  font-size: 12px;
  transition: transform var(--transition);
}

.calc-details[open] summary::after {
  content: '▾';
}

.calc-details summary:hover {
  background: var(--bg);
}

.calc-details-body {
  padding: 8px 24px 24px;
  border-top: 1px solid var(--border);
}

.calc-details-body .field-row {
  margin-bottom: 10px;
}

/* Raise input section */
.raise-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.raise-input-row input[type="number"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.raise-input-row input[type="number"]:focus {
  border-color: var(--accent);
}

/* ─── Breakdown Table ─── */
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.breakdown-table td {
  padding: 7px 0;
  color: var(--muted);
}

.breakdown-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--ink);
}

.breakdown-table .bd-section-header td {
  padding-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.breakdown-table .bd-total td {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.breakdown-table .bd-total td:last-child {
  color: var(--accent);
}

/* ─── Benchmark Widget ─── */
.details-body {
  padding: 8px 24px 24px;
  border-top: 1px solid var(--border);
}

/* Loading-Zustand */
.bench-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.bench-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: bench-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes bench-spin {
  to { transform: rotate(360deg); }
}

/* Category-Row: Label + AI-Badge nebeneinander */
.bench-category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.bench-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0;  /* überschrieben durch .bench-category-row */
}

/* „KI-Daten"-Badge */
.bench-source-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #d1fae5;
  color: #065f46;
  border-radius: 99px;
  padding: 2px 7px;
  line-height: 1.6;
  white-space: nowrap;
}

.bench-band-wrap {
  margin-bottom: 14px;
}

.bench-band {
  width: 100%;
}

.bench-bar-track {
  position: relative;
  height: 10px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: 6px;
}

.bench-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #6ee7b7, #10b981);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.bench-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
  transform: translate(-50%, -50%);
  transition: left 0.3s ease;
  display: none;
}

.bench-marker.visible {
  display: block;
}

.bench-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.bench-avg-label {
  font-weight: 600;
  color: var(--ink);
}

.bench-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.bench-empty {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  text-align: center;
  padding: 8px 0 4px;
}

/* ─── Calc Actions ─── */
.calc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 24px 0 0;
}

.share-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.share-link-display {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.share-error {
  font-size: 12px;
  color: var(--error);
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .calc-shell {
    padding: 0 12px 32px;
  }

  .calc-input-block {
    padding: 20px 16px 16px;
  }

  #gross {
    font-size: 22px;
    padding: 14px 12px 14px 38px;
  }

  .compare-panel-cols {
    grid-template-columns: 1fr;
  }

  .compare-col + .compare-col {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .compare-main-value {
    font-size: 22px;
  }

  .field-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .field-row label {
    min-width: unset;
  }

  .field-row select,
  .field-row input[type="number"] {
    width: 100%;
  }

  .calc-actions {
    flex-direction: column;
  }

  .calc-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Trust-Block (Lohnklar Credibility) ─────────────────────────── */
.gk-trust-block {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}
.gk-trust-inner {
  max-width: 860px;
  margin: 0 auto;
}
.gk-trust-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.gk-trust-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
.gk-trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}
.gk-trust-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.gk-trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 28px;
}
.gk-trust-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
.gk-trust-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.gk-trust-desc {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .gk-trust-stats { gap: 12px 0; }
  .gk-trust-sep { display: none; }
  .gk-trust-stat { padding: 4px 16px; }
}

/* ─── Compare Panel Header (Ergebnis + Period Toggle) ─── */
.compare-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 0;
}
.compare-panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.period-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}
.period-btn {
  padding: 4px 14px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.period-btn.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ─── Optimierungs-Banner ─── */
.opt-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 16px;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}
.opt-banner svg {
  flex-shrink: 0;
  color: #16a34a;
}
.opt-banner[hidden] { display: none; }

/* ─── Calc Input Block: Stacked field layout ─── */
.calc-input-block .field-row {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 16px;
}
.calc-input-block .field-row > label {
  min-width: unset;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-input-block .field-row > label select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.calc-input-block .field-row > label select:focus {
  border-color: var(--accent);
}

/* ── Left column field groups ─────────────────────────────────────── */
.left-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.left-field-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.left-field-row {
  margin-bottom: 14px;
}
.left-field-row:last-child {
  margin-bottom: 0;
}
.left-field-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.left-field-row label select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  font-weight: 500;
}
.left-field-row label select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.left-field-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.left-field-inline {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px !important;
}
.left-field-inline .toggle {
  flex-shrink: 0;
}
@media (max-width: 959px) {
  .left-field-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── PKV input row ──────────────────────────────────────────────────── */
#pkvInputRow label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
#pkvInputRow input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  font-weight: 500;
  box-sizing: border-box;
}
#pkvInputRow input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
#pkvInputRow .field-note {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Fünftelregelung section ─────────────────────────────────────────── */
.section-block-fuenftel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.fuenftel-heading {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.fuenftel-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 12px;
}
.fuenftel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink);
}
.fuenftel-row:last-of-type {
  border-bottom: none;
}
.fuenftel-saving-row {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 2px solid var(--border) !important;
  border-bottom: none !important;
}
.fuenftel-saving-row strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.fuenftel-net-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   NEW FEATURES v3 – Rückwärtsrechnung, Traffic Light, Waterfall,
   Inline Hints, Team Sim, Mobile Floating Bar, Copy
   ══════════════════════════════════════════════════════════════════════ */

/* ── Calc Mode Switch (Brutto → Netto / Ziel-Netto → Brutto) ─────────── */
.calc-mode-switch {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.mode-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.mode-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,23,42,.1);
}
.mode-btn:hover:not(.active) { color: var(--ink); }

/* ── Reverse Mode Result ─────────────────────────────────────────────── */
.reverse-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  flex-wrap: wrap;
}
.reverse-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.reverse-gross-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.reverse-note {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

/* ── Benchmark Traffic Light ─────────────────────────────────────────── */
.bench-traffic-light {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.bench-traffic-light--green  { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.bench-traffic-light--yellow { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.bench-traffic-light--red    { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.2);  }

/* ── Waterfall Chart ─────────────────────────────────────────────────── */
.waterfall-chart {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.wf-legend {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.wf-row {
  display: grid;
  grid-template-columns: 80px 1fr 64px;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.wf-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.wf-track {
  height: 10px;
  background: var(--surface-2);
  border-radius: 5px;
  overflow: hidden;
}
.wf-bar {
  height: 100%;
  border-radius: 5px;
  transition: width .4s ease;
}
.wf-bar--netto  { background: var(--accent); }
.wf-bar--tax    { background: #f59e0b; }
.wf-bar--sv     { background: #94a3b8; }
.wf-val {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Inline Hints ────────────────────────────────────────────────────── */
.inline-hints {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
}
.inline-hints-title {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inline-hints-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.inline-hints-list li {
  font-size: 12.5px;
  color: #064e3b;
  line-height: 1.5;
}

/* ── Gehaltsrunden-Simulator ─────────────────────────────────────────── */
.sim-result {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
}
.sim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.sim-row:last-child { border-bottom: none; }
.sim-row span { color: var(--muted); }
.sim-row strong {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sim-row--highlight {
  background: #ecfdf5;
}
.sim-row--highlight strong { color: var(--accent); }

/* ── Mobile Floating Summary Bar ─────────────────────────────────────── */
.mobile-float-bar {
  display: none; /* hidden on desktop; shown on mobile via media query */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: #0f172a;
  color: #fff;
  padding: 10px 16px env(safe-area-inset-bottom, 0px);
  gap: 12px;
  align-items: center;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.mobile-float-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}
.mobile-float-label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mobile-float-value {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.mobile-float-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.mobile-float-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-float-cta:hover { background: var(--accent-dark); }

@media (max-width: 768px) {
  .mobile-float-bar:not([hidden]) {
    display: flex;
  }
  /* Ensure content doesn't hide behind floating bar */
  body.has-float-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Animation: Enhanced value-pop ──────────────────────────────────── */
@keyframes valuePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); color: var(--accent); }
  100% { transform: scale(1); }
}
.value-pop {
  animation: valuePop 300ms ease-out forwards;
}

/* ── Number transition animation ─────────────────────────────────────── */
@keyframes numSlideIn {
  from { opacity: .4; transform: translateY(-4px); }
  to   { opacity: 1;  transform: translateY(0); }
}
.compare-main-value,
.reverse-gross-value {
  animation: numSlideIn 200ms ease-out;
}

/* ══════════════════════════════════════════════════════════════════════════
   DESIGN REFINEMENTS — Round 2
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Schnellwahl: Label auf eigener Zeile ─────────────────────────── */
.presets-label {
  flex-basis: 100%;
  margin-bottom: -4px;
}

/* ── 2. Accordion Summary Icons ──────────────────────────────────────── */
.calc-details summary {
  gap: 10px;
  justify-content: flex-start;
}
.calc-details summary::after {
  margin-left: auto;
}
.summary-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.summary-icon--people { background: #eff6ff; color: #2563eb; }
.summary-icon--trend  { background: #f0fdf4; color: #059669; }
.summary-icon--chart  { background: #f5f3ff; color: #7c3aed; }
.summary-icon--sim    { background: #fff7ed; color: #c2410c; }
.summary-icon--target { background: #fef2f2; color: #dc2626; }

/* ── 3. Benchmark Traffic Light Badge ────────────────────────────────── */
.bench-traffic-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  transition: background var(--transition), color var(--transition);
  background: var(--surface-2);
  color: var(--muted);
}
.btb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--border);
  transition: background var(--transition);
}
.bench-traffic-badge--green  { background: rgba(16,185,129,.1); color: #059669; }
.bench-traffic-badge--green .btb-dot  { background: #10b981; }
.bench-traffic-badge--yellow { background: rgba(245,158,11,.1); color: #b45309; }
.bench-traffic-badge--yellow .btb-dot { background: #f59e0b; }
.bench-traffic-badge--red    { background: rgba(239,68,68,.1); color: #b91c1c; }
.bench-traffic-badge--red .btb-dot    { background: #ef4444; }

/* ── 4. Action Buttons (Teilen / Kopieren / PDF + Beratung buchen) ───── */
.calc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.calc-actions-util {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  min-height: 40px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16,185,129,.05);
}
.action-btn--cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important;
  border-color: transparent;
  padding: 9px 20px;
  box-shadow: 0 2px 8px rgba(16,185,129,.3);
}
.action-btn--cta:hover {
  opacity: .92;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
}
@media (max-width: 640px) {
  .calc-actions { flex-direction: column; align-items: stretch; }
  .calc-actions-util { width: 100%; }
  .calc-actions-util .action-btn { flex: 1; justify-content: center; }
  .action-btn--cta { text-align: center; justify-content: center; }
}

