/* ==========================================================================
   SummitPeak „Höhenlinie Navy“ – Unterseiten:
   Zeitfresser-Finder (Formular in vier Etappen mit Route) und die Leseseiten
   Impressum und Datenschutz. Werte aus theme.css, Bausteine aus base.css.
   ========================================================================== */

/* ---------- Seitenkopf ---------- */
.page-hero {
  position: relative; overflow: clip;
  padding: calc(var(--hh-top) + clamp(32px, 5vw, 72px)) 0 clamp(48px, 6vw, 88px);
  background: radial-gradient(120% 80% at 50% 0%, var(--navy) 0%, var(--navy-deep) 70%);
}
/* weiches Lichtfeld rechts, Höhenlinien des Signets darunter */
.page-hero::before {
  content: ""; position: absolute; right: -12%; top: -40%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, rgba(42, 82, 134, .5), rgba(42, 82, 134, 0));
  pointer-events: none;
}
.page-hero__topo {
  position: absolute; right: -6%; bottom: -8%; width: min(72%, 920px); height: auto; max-width: none;
  color: #FFFFFF; opacity: .07; pointer-events: none;
}
.page-hero__inner { position: relative; display: grid; gap: var(--s3); justify-items: start; max-width: 46rem; }
.page-hero__meta { color: var(--muted); }
.page-hero .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s1); }
.btn__icon--down { transform: rotate(90deg); }
.btn__icon--back { order: -1; transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__icon--down { transform: rotate(90deg) translateX(3px); }
  .btn:hover .btn__icon--back { transform: scaleX(-1) translateX(3px); }
}

/* ---------- Leseseiten: Impressum, Datenschutz ---------- */
.legal { padding: var(--s8) 0 var(--section-y); }
/* Lesebreite etwa 68 Zeichen */
.legal__body { display: grid; gap: var(--s6); max-width: 38rem; }
.legal__block { display: grid; gap: var(--s2); }
.legal h2 {
  font-weight: var(--heading-weight); font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); line-height: 1.2;
  letter-spacing: var(--heading-tracking); color: var(--heading); text-wrap: balance;
}
.legal h3 { margin-top: var(--s1); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; color: var(--heading); }
.legal p, .legal li { color: var(--text); }
.legal .lead { color: var(--heading); }
.legal a { color: #FFFFFF; overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.legal a:hover { text-decoration-color: #FFFFFF; }
.legal ul { display: grid; gap: var(--s1); }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 1px; background: rgba(255, 255, 255, .5); }
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-strong); }
.info-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--heading); }
.info-table td:first-child { width: 36%; padding-right: var(--s3); font-size: var(--fs-small); font-weight: 500; color: var(--muted); padding-top: 16px; }
.info-table em { color: var(--text); }
.placeholder-mark { padding: 1px 8px; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: var(--fs-small); white-space: nowrap; }
.notice {
  padding: var(--s3); border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-border);
  color: var(--text-glass);
}
.notice strong { color: var(--heading); }

/* ---------- Zeitfresser-Finder ---------- */
.finder { position: relative; padding: var(--s8) 0 var(--section-y); background: linear-gradient(180deg, var(--navy-deep), var(--navy) 60%, var(--navy-deep)); }
.finder__inner { max-width: 46rem; margin-inline: auto; }

/* Schrittanzeige als Route: vier Wegpunkte auf einer Linie. Die Klassen active/done setzt site.js wie bisher;
   „Etappe n / 4“ über dem aktiven Punkt entsteht rein im Stylesheet. */
.route {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: var(--s5); padding-top: 34px;
}
.route::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 47px; height: 2px; border-radius: 1px;
  background: rgba(255, 255, 255, .18);
}
.progress-step {
  position: relative;
  display: grid; justify-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.3; color: var(--muted); text-align: center;
  transition: color var(--dur-ui) ease;
}
/* zurückgelegte Strecke bis zum nächsten Wegpunkt */
.progress-step.done::after {
  content: ""; position: absolute; left: 50%; top: 13px; width: 100%; height: 2px; background: #FFFFFF;
}
.step-circle {
  position: relative; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-deep); border: 2px solid rgba(255, 255, 255, .4);
  font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text);
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.step-circle svg { display: none; width: 14px; height: 14px; }
.progress-step.done, .progress-step.active { color: #FFFFFF; }
.progress-step.done .step-circle { background: #FFFFFF; border-color: #FFFFFF; color: var(--navy-deep); }
.progress-step.done .step-circle .num { display: none; }
.progress-step.done .step-circle svg { display: block; }
/* aktiver Wegpunkt: weiß mit Kupfer-Ring (der eine Kupfer-Akzent dieses Bildschirms) */
.progress-step.active .step-circle { background: #FFFFFF; border-color: #FFFFFF; color: var(--navy-deep); box-shadow: 0 0 0 4px var(--copper); }
.progress-step.active::before {
  content: "Etappe " attr(data-step) " / 4";
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #FFFFFF;
}

.form-step { display: none; }
.form-step.is-active { display: block; animation: step-in 240ms var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
.form-card { display: grid; gap: var(--s3); padding: clamp(24px, 3.4vw, 48px); }
.form-card h2 {
  font-weight: var(--heading-weight); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15;
  letter-spacing: var(--heading-tracking); color: var(--heading); text-wrap: balance;
}
.form-card h2:focus { outline: none; }
.step-hint { margin-top: calc(var(--s2) * -1); font-size: var(--fs-small); color: var(--text-glass); }
.field select {
  width: 100%; min-height: 50px; padding: 12px 44px 12px 14px;
  border-radius: 12px;
  background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--field-line);
  color: #FFFFFF; font-size: 1rem; line-height: 1.5;
  -webkit-appearance: none; appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.field select:focus-visible { outline: none; border-color: #FFFFFF; background-color: rgba(7, 26, 56, .7); box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
.field select option { background: var(--navy-deep); color: #FFFFFF; }
.field input::placeholder, .field textarea::placeholder { color: #A9B8CC; opacity: 1; }

.radio-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.radio-card {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 16px; border-radius: 12px;
  background: var(--field-bg); border: 1px solid rgba(255, 255, 255, .24);
  cursor: pointer;
  transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease;
}
.radio-card input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #FFFFFF; }
.radio-card input:focus-visible { outline: none; }
.radio-card:has(input:focus-visible) { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.radio-card:has(input:checked) { background: rgba(255, 255, 255, .13); border-color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .radio-card:hover { border-color: rgba(255, 255, 255, .5); } }
.radio-label, .radio-desc { display: block; }
.radio-label { font-weight: 600; line-height: 1.35; color: #FFFFFF; }
.radio-desc { margin-top: 4px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-glass); }
.radio-group.is-invalid .radio-card { border-color: var(--error-line); }

.summary-block { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--s3); border-top: 1px solid var(--line-strong); }
.summary-block dt, .summary-block dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-block dt { padding-top: 14px; font-size: var(--fs-small); font-weight: 500; color: var(--text-glass); }
.summary-block dd { color: #FFFFFF; white-space: pre-line; overflow-wrap: anywhere; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--s1); }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 600px) {
  .legal, .finder { padding-top: var(--s6); }
  .info-table td { display: block; width: 100% !important; padding: 4px 0 14px; }
  .info-table td:first-child { padding: 14px 0 0; border-bottom: 0; }
  .radio-group { grid-template-columns: 1fr; }
  .summary-block { grid-template-columns: 1fr; }
  .summary-block dt { border-bottom: 0; padding-bottom: 0; }
  .form-actions .btn { flex: 1 1 auto; }
  /* „Etappe n / 4“ am ersten und letzten Wegpunkt bündig zum Rand, damit die Zeile nie aus dem Fenster läuft */
  .progress-step:first-child.active::before { left: 0; transform: none; }
  .progress-step:last-child.active::before { left: auto; right: 0; transform: none; }
}
