/* ============ AREVOS Look – weiß, gold, dezentes Blau ============ */
:root {
  /* Goldtöne abgeleitet vom AREVOS-Logo (#C5AA72) */
  --gold: #ab8f52;
  --gold-dark: #8f763b;
  --gold-deep: #77622f;
  --gold-light: #c5aa72;
  --gold-faint: #ebe2cd;
  --gold-pale: #faf7ef;
  --blue: #2c4a6e;          /* nur dezent, nie als Fläche */
  --ink: #33302a;
  --muted: #8d857a;
  --line: #e9e2d2;
  --error: #b3462e;
  --success: #4a7c59;
  /* Überschriften-Schrift: Cooper Hewitt (Logo-Schrift), Variable heißt historisch --serif */
  --serif: "Cooper Hewitt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Cooper Hewitt – offizielle Logo-Schrift (SIL OFL, selbst gehostet) */
@font-face {
  font-family: "Cooper Hewitt";
  src: url("../assets/fonts/CooperHewitt-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cooper Hewitt";
  src: url("../assets/fonts/CooperHewitt-Semibold.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cooper Hewitt";
  src: url("../assets/fonts/CooperHewitt-Heavy.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--gold-faint);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark {
  font-family: "Cooper Hewitt", var(--sans);
  font-size: 26px;
  font-weight: 800; /* Heavy – wie im offiziellen Logo-Lockup */
  letter-spacing: 0.06em;
  color: var(--ink);
  transform: translateY(0.15cm); /* Wortmarke leicht tiefer ggü. Logo (max. 0,25cm) */
}
.brand-sub { align-self: center; }
.brand-sub {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-note {
  font-size: 12.5px;
  color: var(--blue);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.site-footer {
  border-top: 1px solid var(--gold-faint);
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-hint { margin-top: 4px; font-size: 11.5px; }
.footer-links { margin-top: 10px; }
.footer-links a { color: var(--gold-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal-page h3.section-heading { margin-top: 26px; }
.legal-page p { font-size: 14.5px; }

/* ---------- Progress ---------- */
.progress-wrap { margin-bottom: 26px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.progress-step {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.progress-label {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-dark);
}
.progress-track {
  height: 4px;
  background: var(--gold-faint);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 2px;
  transition: width 0.45s ease;
}

/* ---------- Cards & Steps ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 38px;
  box-shadow: 0 10px 34px rgba(140, 115, 55, 0.07);
}
.card + .card { margin-top: 22px; }

.welcome-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 4px auto 22px;
}
.welcome-center { text-align: center; }
p.welcome-center { max-width: 640px; margin-left: auto; margin-right: auto; }
.step-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.step-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 26px;
}
.section-heading {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-faint);
  padding-bottom: 8px;
  margin: 30px 0 18px;
}
.section-heading:first-of-type { margin-top: 4px; }

/* ---------- Form Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}
.grid .full { grid-column: 1 / -1; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 22px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.field label .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 15.5px;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b4903e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 144, 62, 0.16);
}
.field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 70, 46, 0.12);
}
.field .hint { font-size: 12px; color: var(--muted); }
textarea { resize: vertical; min-height: 80px; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); width: 18px; height: 18px; }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  cursor: pointer;
}

/* Radio-Karten (Start) */
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.choice-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  background: #fff;
}
.choice-card:hover { border-color: var(--gold-light); }
.choice-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 144, 62, 0.15);
  background: var(--gold-pale);
}
.choice-card .ico { font-size: 30px; color: var(--gold); font-family: var(--serif); }
.choice-card h3 { margin: 10px 0 6px; font-size: 17px; color: var(--ink); }
.choice-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Startseite: Aaron als transparenter Hintergrund */
.card { position: relative; }
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.2; /* helleres Bild braucht etwas mehr Deckkraft */
}
.hero-bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 30%, rgba(255,255,255,0.92) 88%);
}
.hero-content { position: relative; z-index: 1; }

/* Ansprechpartner (Aaron) */
.advisor-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.advisor-inline.center { justify-content: center; margin: 20px auto 4px; max-width: 460px; text-align: left; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
  flex-shrink: 0;
}
/* Segment ja/nein */
.segment { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.segment button {
  border: none;
  background: #fff;
  padding: 10px 22px;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--sans);
}
.segment button + button { border-left: 1px solid var(--line); }
.segment button.active { background: var(--gold); color: #fff; font-weight: 600; }

/* ---------- Money table ---------- */
.money-table { width: 100%; border-collapse: collapse; }
.money-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 600;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--gold-faint);
}
.money-table th.num, .money-table td.num { text-align: right; }
.money-table td {
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid #f3efe4;
  font-size: 14.5px;
  vertical-align: middle;
}
.money-table td.rowlabel { width: 38%; color: var(--ink); }
.money-table input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.money-table input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,144,62,0.14); }
.money-table tr.sum-row td {
  font-weight: 700;
  color: var(--gold-dark);
  border-top: 2px solid var(--gold-light);
  border-bottom: none;
  padding-top: 12px;
  font-variant-numeric: tabular-nums;
}
.money-table tr.free-row td { font-weight: 700; color: var(--blue); border-bottom: none; font-variant-numeric: tabular-nums; }

/* ---------- Repeat blocks ---------- */
.repeat-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
  position: relative;
  background: #fffdf8;
}
.repeat-block .block-nr {
  position: absolute;
  top: -11px;
  left: 18px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 12px;
  letter-spacing: 0.06em;
}
.repeat-block .block-remove {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.repeat-block .block-remove:hover { color: var(--error); }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px dashed var(--gold-light);
  color: var(--gold-dark);
  background: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14.5px;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-add:hover { background: var(--gold-pale); }

/* ---------- Buttons ---------- */
.nav-buttons {
  max-width: 980px;
  margin: 26px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.btn {
  border: none;
  border-radius: 999px;
  padding: 13px 34px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  transition: transform 0.08s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(143, 118, 59, 0.28);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(143, 118, 59, 0.38); }
.btn-primary:disabled {
  background: #d9d2c2;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-secondary {
  background: #fff;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-light);
}
.btn-secondary:hover { background: var(--gold-pale); }
.btn-large { padding: 16px 44px; font-size: 17px; }

/* ---------- Errors ---------- */
.error-box {
  border: 1px solid rgba(179, 70, 46, 0.4);
  background: #fdf3f0;
  color: var(--error);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.error-box ul { margin: 4px 0 0; padding-left: 20px; }

/* ---------- PDF Preview & Signature ---------- */
.pdf-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f4ee;
  max-height: 58vh;
  overflow-y: auto;
  padding: 18px;
  text-align: center;
}
.pdf-preview canvas {
  display: block;
  margin: 0 auto 16px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.13);
  background: #fff;
  max-width: 100%;
  height: auto;
}
.preview-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--blue);
  margin: 10px 0 0;
}

.sign-card { margin-top: 22px; }
.sign-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  margin: 0 0 4px;
}
.sig-pads { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 18px 0; }
.sig-pads.two { grid-template-columns: 1fr 1fr; }
.sig-box label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.sig-canvas-wrap {
  position: relative;
  border: 1.5px solid var(--gold-light);
  border-radius: 12px;
  background: #fffdf6;
  overflow: hidden;
}
.sig-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 160px;
  touch-action: none;
  cursor: crosshair;
}
.sig-line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 34px;
  border-bottom: 1px dashed var(--gold-light);
  pointer-events: none;
}
.sig-x {
  position: absolute;
  left: 8%;
  bottom: 38px;
  color: var(--gold-light);
  font-size: 18px;
  font-family: var(--serif);
  pointer-events: none;
}
.sig-clear {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 10px;
}
.sig-clear:hover { color: var(--error); }

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-pale);
  border: 1px solid var(--gold-faint);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.consent-row input { margin-top: 2px; flex-shrink: 0; }

.sign-actions { display: flex; justify-content: center; margin-top: 8px; }
.finish-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin: 12px auto 0;
  max-width: 420px;
}

/* ---------- Success ---------- */
.success-wrap { text-align: center; padding: 30px 10px; }
.success-icon {
  width: 76px; height: 76px;
  border: 2.5px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 34px;
  color: var(--success);
}
.success-wrap h2 { font-family: var(--serif); color: var(--gold); font-size: 28px; margin: 0 0 10px; }
.success-wrap p { color: var(--muted); max-width: 520px; margin: 0 auto 8px; }
.success-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Loading ---------- */
.loading-wrap { text-align: center; padding: 50px 0; color: var(--muted); }
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--gold-faint);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Info note (dezentes Blau) ---------- */
.info-note {
  border-left: 3px solid var(--blue);
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--blue);
  background: #fff;
  margin: 16px 0;
}

/* ---------- Responsive ---------- */
.mobile-only { display: none; }
@media (max-width: 720px) {
  .mobile-only { display: block; margin: 0 0 10px; color: var(--blue); font-size: 12.5px; }
  .card { padding: 24px 20px; border-radius: 12px; }
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .choice-cards { grid-template-columns: 1fr; }
  .sig-pads.two { grid-template-columns: 1fr; }
  .step-title { font-size: 24px; }
  .header-note { display: none; }
  .money-table td.rowlabel { width: 30%; font-size: 13px; }
  .money-table input { padding: 7px 6px; font-size: 13.5px; }
}

/* ============================================================
   v3 – Gamifizierter Quiz-Flow (Meilenstein-Balken, Klick-Karten,
   Aufleuchten, Flieg-Chip, Gold-Konfetti)
   ============================================================ */

/* ---------- P1: Meilenstein-Balken ---------- */
.p1-wrap { margin: 2px 0 46px; }
.p1-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.p1-pct {
  color: var(--gold-dark);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.p1-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gold-faint);
}
.p1-fill {
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  transition: width 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
}
.p1-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-100%);
  animation: p1sheen 2.6s ease-in-out infinite;
}
@keyframes p1sheen { 55% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
.p1-miles { position: absolute; inset: 0; pointer-events: none; }
.p1-m {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: transparent;
}
.p1-m .p1-mcheck { color: inherit; line-height: 1; }
.p1-m.done {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
  animation: p1pop 0.55s cubic-bezier(0.3, 1.8, 0.5, 1);
}
@keyframes p1pop { 0% { transform: translate(-50%, -50%) scale(0.4); } 60% { transform: translate(-50%, -50%) scale(1.45); } 100% { transform: translate(-50%, -50%) scale(1); } }
.p1-m.done::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: p1ring 0.7s ease-out;
}
@keyframes p1ring { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.p1-m.done.noanim { animation: none; }
.p1-m.done.noanim::after { animation: none; opacity: 0; }
.p1-mlbl {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.p1-m.done .p1-mlbl { color: var(--gold-dark); }
.p1-eta {
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ---------- Klick-Karten (Quiz) ---------- */
.quiz-cards { display: grid; gap: 14px; margin-top: 6px; grid-auto-rows: 1fr; }
.quiz-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quiz-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quiz-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 20px 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.12s, background 0.2s;
}
.quiz-card:hover { border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(160, 130, 60, 0.12); }
.quiz-card .q-ico { font-size: 30px; line-height: 1.2; }
.quiz-card .q-title { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.quiz-card .q-desc { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.quiz-card.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: 0 0 0 3px rgba(180, 144, 62, 0.15);
}
.quiz-card.selected .q-title { color: var(--gold-dark); }
.quiz-card.glow {
  animation: b3breathe 1s ease-out;
  box-shadow: 0 0 0 4px rgba(171, 143, 82, 0.16), 0 10px 28px rgba(160, 130, 60, 0.28);
}
@keyframes b3breathe { 0% { transform: scale(1); } 30% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* ---------- Erreichbarkeits-Chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--gold-light); }
.chip.active {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* ---------- Flieg-Chip (+X %) ---------- */
.fly-chip {
  position: fixed;
  z-index: 60;
  font-weight: 800;
  font-size: 15px;
  color: var(--gold-dark);
  background: #fff;
  border: 1.5px solid var(--gold-light);
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: 0 6px 18px rgba(160, 130, 60, 0.25);
  pointer-events: none;
  opacity: 1;
  transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.85s ease-in;
}

/* ---------- Gold-Konfetti ---------- */
.conf {
  position: fixed;
  z-index: 70;
  width: 9px;
  height: 13px;
  pointer-events: none;
}

/* ---------- Start & Danke ---------- */
.start-benefits {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px auto 26px;
  font-size: 13.5px;
  color: var(--muted);
}
.start-benefits span {
  background: var(--gold-pale);
  border: 1px solid var(--gold-faint);
  border-radius: 999px;
  padding: 7px 16px;
}
.done-status { font-size: 14.5px; }
.seg-center { display: flex; justify-content: center; margin: 4px 0 18px; }
.sum-details { margin: 22px auto 0; max-width: 560px; text-align: left; }
.sum-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.sum-details pre {
  background: var(--gold-pale);
  border: 1px solid var(--gold-faint);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--ink);
  font-family: var(--sans);
}

/* ---------- Schritt-Einblendung ---------- */
.step-anim { animation: stepIn 0.35s ease-out; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .quiz-cards.cols-3, .quiz-cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-card .q-ico { font-size: 26px; }
  .quiz-card .q-title { font-size: 14px; }
  .p1-mlbl { font-size: 9.5px; }
  .p1-eta { margin-top: 26px; }
  .start-benefits { gap: 10px; }
}
@media (max-width: 420px) {
  .quiz-cards.cols-2, .quiz-cards.cols-3, .quiz-cards.cols-4 { grid-template-columns: 1fr 1fr; }
  .quiz-card { padding: 14px 8px 12px; }
  .quiz-card .q-desc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p1-fill::after, .p1-m.done, .quiz-card.glow, .step-anim { animation: none !important; }
  .fly-chip { display: none; }
}

/* ---------- Teil-2-Einstieg ---------- */
.phase2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef5ef;
  border: 1px solid rgba(74, 124, 89, 0.35);
  color: var(--success);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 16px;
  animation: stepIn 0.5s ease-out;
}

/* ---------- Startseiten-Chips: feine goldene Line-Icons (Privatbank-Ton) ---------- */
.benefits-fine span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.benefits-fine svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Spannen-Karten ohne Icon (symmetrisch, einzeilig) ---------- */
.quiz-card.q-plain { padding: 18px 10px; justify-content: center; min-height: 62px; }
.q-plain .q-title { white-space: nowrap; font-size: 15px; }
@media (max-width: 720px) { .q-plain .q-title { font-size: 13.5px; } }
@media (max-width: 420px) { .q-plain .q-title { font-size: 12.5px; } }

/* ---------- Doppel-Umschalter (Veranlagung + Jahr/Monat) ---------- */
.seg-row {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}
.seg-group { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.seg-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Partner-Reihe im Beruf-Screen ---------- */
.partner-block { margin-top: 24px; }
.mini-heading {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold-dark);
  margin: 0 0 10px;
}
.quiz-cards.mini { gap: 10px; }
.quiz-cards.mini .quiz-card { padding: 12px 8px 10px; }
.quiz-cards.mini .q-ico { font-size: 20px; }
.quiz-cards.mini .q-title { font-size: 12.5px; font-weight: 600; }
.quiz-cards.mini .q-desc { display: none; }
@media (max-width: 720px) {
  .quiz-cards.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Breite iOS-Options-Schalter (Beschriftung im Schalter, Feder-Knob) ---------- */
.ioseg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-radius: 999px;
  background: #ece5d4;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12);
  padding: 3px;
}
.ioseg button {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
  font-family: var(--sans);
  white-space: nowrap;
}
.ioseg button.active {
  color: var(--gold-dark);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
@supports selector(.x:has(a)) {
  .ioseg button.active { background: transparent; box-shadow: none; }
  .ioseg::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transform: translateX(0);
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
    z-index: 0;
  }
  .ioseg:has(button:last-child.active)::before { transform: translateX(100%); }
  .ioseg:not(:has(button.active))::before { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ioseg::before { transition: opacity 0.25s !important; }
}
.seg-row { max-width: 100%; }
.ioseg { max-width: 100%; }
@media (max-width: 720px) {
  .ioseg button { padding: 8px 13px; font-size: 13px; }
}
@media (max-width: 420px) {
  .ioseg button { padding: 8px 9px; font-size: 12px; }
}

/* ---------- Genauer-Betrag-Karte im Einkommens-Screen ---------- */
.q-custom { cursor: text; }
.q-input-row { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 4px; flex-wrap: wrap; }
.q-custom input {
  width: min(110px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 14.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--sans);
  color: var(--ink);
}
.q-custom input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 144, 62, 0.16);
}
.q-custom .q-unit { font-size: 12.5px; color: var(--muted); white-space: nowrap; }


/* ===== Erfassungsbogen-Abschnitt: Überspringen, Belege ===== */
.skip-link {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.skip-link:hover { color: var(--gold-dark); }

.field input[type="file"] {
  font: inherit;
  font-size: 14px;
  padding: 10px 0;
  color: var(--ink);
  width: 100%;
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--gold-faint, #ebe2cd);
  background: var(--gold-pale, #faf7ef);
  color: var(--gold-dark, #8f763b);
  border-radius: 999px;
  padding: 8px 15px;
  margin-right: 12px;
  cursor: pointer;
}
.belege-liste { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.beleg-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  background: var(--gold-pale, #faf7ef);
  border: 1px solid var(--gold-faint, #ebe2cd);
  border-radius: 999px;
  padding: 5px 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.beleg-chip small { color: var(--muted); font-size: 11.5px; }
.beleg-chip.zu-gross { border-color: var(--error); color: var(--error); }
.belege-liste .hint { flex-basis: 100%; }
