@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Authoritative German Tax-Tech & Corporate Palette (OnlineBilanz / DATEV / FinTech inspired) */
  --navy-950: #071324;
  --navy-900: #0b1f3a;
  --navy-800: #132d52;
  --navy-700: #1d4070;

  --brand-emerald: #0d7a5f;
  --brand-emerald-dark: #095c47;
  --brand-emerald-light: #ecfdf5;
  --brand-emerald-border: #a7f3d0;

  --brand-blue: #1d4ed8;
  --brand-blue-light: #eff6ff;
  --brand-blue-border: #bfdbfe;

  --amber-700: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  --red-700: #b91c1c;
  --red-bg: #fef2f2;
  --red-border: #fecaca;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(11, 31, 58, 0.04);
  --shadow-sm: 0 2px 6px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 44px rgba(11, 31, 58, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.55;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

svg.icon-lg {
  width: 22px;
  height: 22px;
}

svg.icon-sm {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   1. Top Institutional Trust Bar (DSGVO, StBerG, ELSTER, Trustpilot)
   ========================================================================== */
.trust-topbar {
  background: var(--navy-950);
  color: #cbd5e1;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-topbar-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 500;
}

.trust-item svg {
  color: #34d399;
}

.trust-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
}

.stars {
  color: #fbbf24;
  letter-spacing: 1px;
}

/* ==========================================================================
   2. Main Navigation Header
   ========================================================================== */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.main-header-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--brand-emerald) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.18);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-tagline {
  font-size: 11.5px;
  color: var(--slate-500);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.nav-tab-btn:hover {
  color: var(--navy-900);
}

.nav-tab-btn.active {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-xs);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.advisor-badge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.advisor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   3. Landing / Overview View (OnlineBilanz.de Inspired Trust Architecture)
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 56px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: #f1f5f9;
  font-weight: 500;
}

.hero-check-item svg {
  color: #34d399;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-seals-row {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-seal-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 11px 13px;
}

.trust-seal-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
}

.trust-seal-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Process Flow Card inside Hero (Clean Institutional Version of User's Diagram) */
.hero-process-card {
  background: var(--white);
  color: var(--slate-900);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.process-step-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  cursor: pointer;
  transition: all 0.16s ease;
}

.process-step-row:hover {
  border-color: var(--brand-emerald);
  background: var(--white);
  transform: translateX(3px);
}

.process-step-row.elster-highlight {
  background: var(--brand-emerald-light);
  border-color: var(--brand-emerald-border);
}

.process-step-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step-row.elster-highlight .process-step-icon {
  background: var(--brand-emerald);
  color: var(--white);
  border-color: var(--brand-emerald);
}

.process-connector {
  display: flex;
  justify-content: center;
  padding: 3px 0;
  color: var(--slate-400);
}

/* Section Containers */
.section-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-emerald);
  margin-bottom: 6px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 15px;
  color: var(--slate-600);
  margin-top: 8px;
}

/* Two Models Comparison (OnlineBilanz Principle: Selbstbucher vs. Mit Steuerberater) */
.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.model-card {
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.model-card.featured {
  border-color: var(--brand-emerald);
  position: relative;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   4. Portal 5-Stage Pipeline & Workspace
   ========================================================================== */
.pipeline-bar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.pipeline-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.step-tab {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
  font-family: inherit;
}

.step-tab:hover {
  border-color: var(--slate-400);
  background: var(--white);
}

.step-tab.active {
  background: var(--white);
  border-color: var(--navy-900);
  box-shadow: 0 0 0 2px rgba(11, 31, 58, 0.1);
}

.step-tab.completed {
  border-color: var(--brand-emerald-border);
  background: #f8fdfa;
}

.step-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-tab.active .step-icon-box {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.step-tab.completed .step-icon-box {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: var(--white);
}

.step-meta {
  flex: 1;
  min-width: 0;
}

.step-num-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 2px;
}

.step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-desc {
  font-size: 11.5px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Portal Grid */
.app-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 12.5px;
  color: var(--slate-500);
  margin-top: 2px;
}

/* Vertical Process Architecture Card in Sidebar */
.flow-diagram-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-xs);
}

.flow-node {
  text-align: center;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  cursor: pointer;
  transition: all 0.15s ease;
}

.flow-node:hover {
  border-color: var(--slate-400);
  background: var(--white);
}

.flow-node.active-node {
  background: var(--white);
  border-color: var(--navy-900);
  box-shadow: 0 0 0 2px rgba(11, 31, 58, 0.08);
}

.flow-node.elster-node {
  background: var(--brand-emerald-light);
  border-color: var(--brand-emerald-border);
}

.flow-node-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--navy-900);
}

.flow-node.elster-node .flow-node-icon {
  color: var(--brand-emerald);
}

.flow-node-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-900);
}

.flow-node-sub {
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 1px;
}

.flow-node-status {
  display: inline-block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
}

.flow-node.done .flow-node-status {
  background: var(--brand-emerald-light);
  border-color: var(--brand-emerald-border);
  color: var(--brand-emerald);
}

.flow-arrow {
  text-align: center;
  color: var(--slate-400);
  font-size: 12px;
  line-height: 1;
  padding: 4px 0;
}

/* KPI & Zahllast Widgets */
.kpi-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi-mini {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.kpi-mini-label {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 500;
}

.kpi-mini-val {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.zahllast-box {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zahllast-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zahllast-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* Workspace Stage Header & Substeps */
.workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stage-banner {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}

.stage-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.stage-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-emerald);
}

.stage-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 2px;
}

.stage-subtext {
  font-size: 13.5px;
  color: var(--slate-600);
  margin-top: 3px;
}

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

.substep-chip {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.substep-chip.done {
  border-color: var(--brand-emerald-border);
}

.substep-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-emerald-light);
  color: var(--brand-emerald);
  border: 1px solid var(--brand-emerald-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.substep-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-900);
}

.substep-caption {
  font-size: 11.5px;
  color: var(--slate-500);
}

/* Grids, Forms & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-hint {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-900);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(19, 45, 82, 0.12);
}

/* Entity Selector */
.entity-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.entity-card {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  background: var(--slate-50);
  transition: all 0.15s ease;
}

.entity-card:hover {
  border-color: var(--slate-400);
  background: var(--white);
}

.entity-card.selected {
  border-color: var(--navy-900);
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(11, 31, 58, 0.08);
}

.entity-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--navy-900);
}

.entity-card-desc {
  font-size: 12px;
  color: var(--slate-600);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-emerald);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-emerald-dark);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-800);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-800);
  border-color: var(--slate-300);
}

.btn-secondary:hover {
  background: var(--slate-100);
}

.btn-emerald-soft {
  background: var(--brand-emerald-light);
  color: var(--brand-emerald);
  border-color: var(--brand-emerald-border);
}

.btn-blue-soft {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: var(--brand-blue-border);
}

.btn-amber-soft {
  background: var(--amber-bg);
  color: var(--amber-700);
  border-color: var(--amber-border);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 14px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green {
  background: var(--brand-emerald-light);
  color: var(--brand-emerald);
  border: 1px solid var(--brand-emerald-border);
}

.badge-amber {
  background: var(--amber-bg);
  color: var(--amber-700);
  border: 1px solid var(--amber-border);
}

.badge-red {
  background: var(--red-bg);
  color: var(--red-700);
  border: 1px solid var(--red-border);
}

.badge-blue {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-border);
}

.badge-navy {
  background: var(--slate-100);
  color: var(--navy-900);
  border: 1px solid var(--slate-300);
}

.badge-admin {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fbcfe8;
  font-weight: 700;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 13px;
}

.data-table th {
  background: var(--slate-50);
  color: var(--slate-600);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--slate-50);
}

/* Bank Cards & Upload Dropzone */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.bank-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 15px;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.bank-card.connected {
  background: var(--white);
  border-color: var(--brand-emerald-border);
}

.upload-dropzone {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  background: var(--slate-50);
  cursor: pointer;
  transition: all 0.16s ease;
}

.upload-dropzone:hover {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald-light);
}

/* Rule Cards */
.rule-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Official ELSTER & E-Bilanz Form Sheet */
.elster-sheet {
  border: 1.5px solid var(--navy-900);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.elster-sheet-header {
  background: var(--navy-900);
  color: var(--white);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.elster-kz-row {
  display: grid;
  grid-template-columns: 1fr 90px 150px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 13px;
}

.elster-kz-row.highlight {
  background: var(--brand-emerald-light);
  font-weight: 700;
}

.kz-box {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  color: var(--navy-900);
  padding: 2px 8px;
  border-radius: 4px;
  text-align: center;
  width: 66px;
}

.protocol-box {
  border: 2px solid var(--brand-emerald);
  background: #f8fdfa;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.stage-footer-nav {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 40px 24px;
  margin-top: 48px;
  border-top: 1px solid var(--slate-200);
  font-size: 12.5px;
}

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

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 36, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #34d399;
  max-width: 410px;
}

/* ==========================================================================
   OTP Login, Mandanten-Registrierung & Profil-Management
   ========================================================================== */
.auth-layout {
  max-width: 1220px;
  margin: 28px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: start;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--slate-100);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  margin-bottom: 22px;
}

.auth-mode-tab {
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate-700);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.auth-mode-tab.active {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-xs);
}

.otp-channel-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.otp-channel-card {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--slate-50);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.15s ease;
}

.otp-channel-card:hover {
  border-color: var(--slate-400);
  background: var(--white);
}

.otp-channel-card.active {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald-light);
  box-shadow: 0 0 0 2px rgba(13, 122, 95, 0.12);
}

.otp-channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.otp-channel-card.active .otp-channel-icon {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: var(--white);
}

.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  color: var(--navy-900);
  border: 1.5px solid var(--slate-300);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.btn-google-login:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.google-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--slate-400);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--slate-200);
}

.auth-divider span {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.otp-digit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 390px;
  margin: 14px 0;
}

.otp-digit-input {
  width: 100%;
  height: 54px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
  background: var(--slate-50);
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.otp-digit-input:focus {
  outline: none;
  border-color: var(--brand-emerald);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 122, 95, 0.16);
}

.mandant-account-card {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
}

.mandant-account-card.active-mandant {
  border-color: var(--brand-emerald);
  background: #f6fef9;
}

.completeness-progress-track {
  width: 100%;
  height: 8px;
  background: var(--slate-200);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.completeness-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-800) 0%, var(--brand-emerald) 100%);
  border-radius: 99px;
  transition: width 0.25s ease;
}

@media (max-width: 1120px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .hero-inner,
  .models-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .pipeline-inner,
  .grid-2,
  .grid-3,
  .form-grid,
  .entity-selector,
  .trust-seals-row,
  .hero-check-list {
    grid-template-columns: 1fr;
  }
}

@media print {
  .trust-topbar,
  .main-header,
  .pipeline-bar,
  .sidebar,
  .stage-footer-nav,
  .site-footer,
  .no-print {
    display: none !important;
  }
  .app-container {
    display: block;
    padding: 0;
  }
}
