/* ============================================================
   NORTHLIGHTFRAME — Seiten-Layer
   Die helle Seite des Systems: Licht, Lesbarkeit, Kontur.
   Nur Tokens, kein Farb-Hardcoding.
   ============================================================ */

/* ---------- Hero (dunkel) ---------- */
.hero {
  position: relative;
  padding-top: calc(72px + clamp(90px, 14vh, 160px));
  overflow: hidden;
}
.hero .display strong { color: var(--nlf-silver); }
.hero__logo {
  position: absolute;
  top: clamp(100px, 18vh, 190px);
  right: var(--page-pad);
  width: clamp(110px, 16vw, 210px);
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  z-index: var(--z-field);
}
.hero__inner { display: grid; gap: 26px; max-width: 880px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
@media (max-width: 680px) { .hero__logo { display: none; } }

/* ---------- Helle Sektionen ---------- */
.section[data-theme="light"] { background: var(--bg-light); }

/* Text-Rollen, die tokens.css nicht kippt */
[data-theme="light"] .lead { color: var(--text-body); }
[data-theme="light"] .eyebrow { color: var(--text-body); }
[data-theme="light"] .eyebrow::before { background: var(--nc-gold); }

/* Karten auf hellem Grund */
[data-theme="light"] .card {
  background: var(--surface-light);
  border-color: var(--line-light);
}
[data-theme="light"] .card:hover {
  background: var(--surface-light-alt);
  border-color: var(--line-strong);
}

/* ---------- Stufen (Raw → Experience) ---------- */
.stufen__label { margin-bottom: 16px; }
.stufen__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.stufen__tab {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-body);
  transition: color var(--t-instant) var(--ease-light),
              background var(--t-instant) var(--ease-light),
              border-color var(--t-instant) var(--ease-light);
}
.stufen__tab:hover { color: var(--text-primary); }
.stufen__tab[aria-selected="true"] {
  background: var(--text-primary-l);
  border-color: var(--text-primary-l);
  color: var(--bg-light);
}
.stufen__no { opacity: 0.6; margin-right: 4px; }

.stage { max-width: 820px; }
.stage__panel.is-active { animation: stage-in var(--t-comp) var(--ease-light); }
@keyframes stage-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.stufen__note {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Stufe 1: Term-Optik kommt aus core.css (.term bleibt bewusst dunkel).
   Im hellen Scope kippt --line ins Dunkle → Hairlines am dunklen Block
   wieder hell stellen. */
[data-theme="light"] .term,
[data-theme="light"] .term__bar { border-color: var(--nlf-silver-dim); }
.stage__panel .term__body p { max-width: none; }

/* Stufe 2: geordnete, aber ungestaltete Liste */
.stage-plain {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.stage-plain__title { color: var(--text-primary); font-weight: 600; margin-bottom: 12px; }
.stage-plain ul { display: grid; gap: 9px; }
.stage-plain li { color: var(--text-body); font-size: 15.5px; }
.stage-plain__time {
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  margin-right: 6px;
}
.stage-plain__status { color: var(--text-muted); }

/* Stufe 3 + 4: Designsystem-Karte */
.stage-card {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(23, 26, 33, 0.07);
}
.stage-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-light);
}
.stage-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 560;
  color: var(--text-primary);
}
.stage-card__title--brand { display: inline-flex; align-items: center; gap: 10px; }
.stage-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.stage-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line-light);
}
.stage-card > .stage-row:last-of-type { border-bottom: 0; }
.stage-row__time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  min-width: 46px;
}
.stage-row__name { flex: 1; font-size: 15px; color: var(--text-primary); }
.stage-row--next { border-left: 2px solid var(--nc-gold); background: var(--surface-light-alt); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  color: var(--text-primary);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: none;
}
.badge--work::before { background: var(--state-info); }
.badge--plan::before { background: var(--state-ok); }
.badge--open::before { background: var(--state-warn); }
.badge--next { border-color: var(--nc-gold); }
.badge--next::before { background: var(--nc-gold); }

/* Markenerlebnis: Sword-Hinweis */
.stage-card--brand { border-top: 3px solid var(--nc-gold); }
.stage-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-top: 1px dashed var(--line-light);
  font-size: 14px;
  color: var(--text-primary);
  max-width: none;
}
.stage-hint img { flex: none; }
.stage-hint strong { font-weight: 600; }

/* ---------- Concept Studies ---------- */
.study {
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.study img { width: 100%; height: auto; }
.study figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Konvergenz / CTA (dunkel) ---------- */
.section--cta { text-align: center; }
.cta { display: grid; gap: 22px; justify-items: center; }
.cta .lead { margin-inline: auto; }
.cta .eyebrow { justify-content: center; }
.cta__actions { justify-content: center; margin-top: 4px; }
