/* Schale, Fragen und Fortschritt fuer Leagues und Events
   Ausgebaut aus leagues-diagnostic.html und events-diagnostic.html.
   Etappe vier der Architekturarbeit: Leagues und Events teilten sich
   diese Regeln wortgleich. Sie stehen jetzt einmal an einer Stelle. */

/* Sprint 16.1 — keep the brand's internal capitals inside uppercase labels */
  .brandcase { text-transform: none; }

  /* ───── Cibona palette (shared) ───── */
  :root {
    --ink:        #0D3D2D;
    --ink-soft:   #1E4C39;
    --gold:       #EB7033;
    --gold-soft:  #F0925E;
    --coral:      #006F8A;
    --coral-dark: #B4551D;
    --cream:      #F2EFE8;
    --sand:       #EAE8E3;
    --line:       #E1DFDB;
    --line-soft:  #EAE8E3;
    --muted:      #4A4A48;
    --paper:      #F7F5F0;
    --white:      #FFFDF9;
    --sunk:       #ECE8DF;

    /* ---- Auswahlfarbe (p33 G) ----
       Ein ausgewaehlter Auswahlknopf ist in ALLEN drei Editionen gruen.
       Gruen ist in der Palette die Farbe fuer Bestaetigtes und Erledigtes.
       Orange bleibt der Aktionsakzent und darf deshalb keine Auswahl anzeigen. */
    --auswahl:         #15661D;
    --auswahl-flaeche: rgba(21, 102, 29, 0.06);
    --auswahl-ring:    rgba(21, 102, 29, 0.14);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--paper); color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  .serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
  a { color: inherit; }
  button { font-family: inherit; }

  /* ───── PLATFORM BAR: helle Kopfleiste (Formensprache Regel Vier) ───── */
  .platform-bar {
    background: var(--cream); color: var(--ink);
    border-bottom: 1px solid var(--line, #E1DFDB);
    padding: 20px 32px;
    position: sticky; top: 0; z-index: 101;
    transition: transform 0.28s ease, opacity 0.2s ease;
    will-change: transform;
  }
  .platform-bar.pb-hidden {
    transform: translateY(-105%);
    opacity: 0;
    pointer-events: none;
  }
  .platform-bar .container {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
  }
  .platform-bar-brand {
    display: inline-flex; align-items: baseline; gap: 10px;
    color: var(--ink); text-decoration: none;
  }
  .platform-bar-brand .pb-dot { display: none; }
  .platform-bar-brand .pb-name {
    font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
    font-size: 21px; letter-spacing: 0;
  }
  .platform-bar-brand .pb-tag {
    color: var(--ink-soft); opacity: 0.75; font-weight: 400; font-style: italic;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 12px; letter-spacing: 0.01em; margin-left: 0;
  }
  .platform-bar-nav { display: flex; gap: 20px; align-items: center; font-size: 13.5px; }
  .platform-bar-nav a {
    color: var(--ink-soft); opacity: 1; text-decoration: none; font-weight: 500;
    transition: opacity 0.15s;
  }
  .platform-bar-nav a:hover { opacity: 0.7; }

  /* ───── Sprint 5: header access controls ───── */
  .pp-header-btn {
    background: var(--gold, #EB7033);
    border: none;
    /* p33 E2: Dunkelgruen auf Orange ergibt nur 4,00:1. Fast-Schwarz bringt 5,20:1. */
    color: #1A1A1A;
    font: inherit; font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: var(--r-md);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, border-color 0.15s;
  }
  .pp-header-btn:hover { background: var(--gold-soft, #F0925E); }
  .pp-header-status {
    display: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    background: rgba(34, 122, 43, 0.12);
    color: #1E4C39;
    border: 1px solid rgba(34, 122, 43, 0.4);
    letter-spacing: 0.02em;
  }
  /* Unlocked: hide Sign-in, show the Full-access pill */
  body.pp-full-unlocked #pp-header-signin { display: none !important; }
  body.pp-full-unlocked #pp-header-status { display: inline-flex; }
  /* Hide Full-Diagnostic upsell when unlocked — pilot testers see all of it already */
  body.pp-full-unlocked [data-fd-upsell="true"] { display: none !important; }
  .pp-header-more { position: relative; display: inline-flex; }
  .pp-header-more-btn {
    width: 34px; height: 34px; border-radius: var(--r-sm);
    border: 1px solid var(--line, #E1DFDB); background: transparent; color: var(--ink);
    font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  }
  .pp-header-more-btn:hover { border-color: var(--ink); }
  .pp-header-more-panel {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
    background: var(--cream); border: 1px solid var(--line, #E1DFDB); border-radius: var(--r-md);
    box-shadow: var(--shadow-overlay); padding: 10px; min-width: 200px;
    flex-direction: column; gap: 4px;
  }
  .pp-header-more.open .pp-header-more-panel { display: flex; }
  .pp-header-more-panel a { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink); text-decoration: none; }
  .pp-header-more-panel a:hover { background: var(--sand); }
  @media (max-width: 720px) {
    .platform-bar { padding: 14px 18px; }
    .platform-bar-brand .pb-tag { display: none; }
    .platform-bar-nav a:not(.pp-header-more) { display: none; }
  }

  /* ───── App shell ───── */
  /* 2026-07-23 (Konsistenz-Sweep) Content-Breite auf Clubs-Parity (1100 statt 920) */
  .app-shell { max-width: 1100px; margin: 0 auto; padding: 32px 24px 96px; }
  @media (max-width: 720px) { .app-shell { padding: 22px 16px 64px; } }

  .stage-eyebrow {
    font-size: var(--fs-eyebrow, 12px); letter-spacing: var(--ls-eyebrow, 0.18em); text-transform: uppercase;
    color: #953B0F; font-weight: 600; margin-bottom: 10px;
  }
  .stage-title {
    font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
    font-size: 38px; line-height: 1.13; margin: 0 0 14px; color: var(--ink);
    letter-spacing: -0.005em;
  }
  .stage-lead {
    font-size: 16.5px; line-height: 1.65; color: var(--ink-soft);
    max-width: 680px; margin: 0 0 32px;
  }
  @media (max-width: 720px) {
    .stage-title { font-size: 28px; }
    .stage-lead { font-size: 15.5px; }
  }

  /* ───── Buttons ───── */
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: var(--r-md);
    font-size: 15px; font-weight: 600;
    text-decoration: none; border: 1.5px solid transparent;
    transition: all 0.18s ease; cursor: pointer; font-family: inherit;
  }
  .btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
  .btn-primary:hover { background: var(--ink-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-primary:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
  .btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
  .btn-secondary:hover { background: var(--ink); color: var(--cream); }
  .btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; padding: 10px 14px; }
  .btn-ghost:hover { background: rgba(13, 61, 45, 0.06); }
  .btn-arrow { display: inline-block; transition: transform 0.18s; }
  .btn:hover .btn-arrow { transform: translateX(3px); }

  /* ───── Intro card ───── */
  .intro-card {
    background: var(--white); border: 1px solid var(--line-soft);
    border-radius: var(--r-xl); padding: 36px 40px; margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
  }
  @media (max-width: 720px) { .intro-card { padding: 24px 22px; } }
  .intro-card h2 {
    font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
    font-size: 28px; margin: 0 0 14px; color: var(--ink);
  }
  .intro-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin: 28px 0 32px; padding: 22px;
    background: var(--paper); border-radius: var(--r-lg);
    border: 1px solid var(--line-soft);
  }
  @media (max-width: 600px) { .intro-stats { grid-template-columns: 1fr; gap: 14px; } }
  .intro-stat .n {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px; color: var(--coral-dark); line-height: 1;
  }
  .intro-stat .l {
    font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--muted); margin-top: 6px;
  }
  .intro-meta {
    display: flex; flex-wrap: wrap; gap: 14px 22px;
    font-size: 13px; color: var(--muted); margin-top: 22px;
  }
  .intro-meta span { display: inline-flex; align-items: center; gap: 6px; }
  .intro-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

  /* ───── Progress ───── */
  .progress-wrap {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper); padding: 18px 0 8px;
    margin: 0 0 24px;
    border-bottom: 1px solid var(--line-soft);
  }
  .progress-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--ink-soft); margin-bottom: 10px;
    font-weight: 500;
  }
  .progress-meta .sd { color: var(--coral-dark); font-weight: 600; }

  /* Punkt 10 (2026-07-31): Kategorie-Label in der Fortschrittszeile bricht mobil um statt abgeschnitten zu werden */
  .progress-meta > div { min-width: 0; }
  .progress-meta .sd { text-align: right; overflow-wrap: anywhere; }
  @media (max-width: 480px) {
    .progress-meta { flex-wrap: wrap; row-gap: 2px; column-gap: 10px; }
    .progress-meta .sd { flex: 1 1 100%; text-align: left; }
  }

  .progress-bar {
    height: 6px; background: var(--line-soft); border-radius: 999px;
    overflow: hidden; position: relative;
  }
  .progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--gold) 0%, var(--coral-dark) 100%);
    width: 0%; transition: width 0.3s ease; border-radius: 999px;
  }

  /* ───── Question card ───── */
  /* Sprint 15 (2026-07-24): q-card / q-cat / q-title / q-desc / q-options / q-option*
     moved to app/shared/diagnostic-ui.css — Clubs is the visual reference for ALL editions.
     Option markup now uses the Clubs pattern (label.option + native radio + .option-text
     + .option-description). Old coral-selected / white-hover league styling retired. */

  /* L3 (2026-07-23) · Club-parity step rail: multi-line pills with num/name/count.
     Replaces the earlier flat chip row so League + Event match Club exactly. */
  .step-rail {
    display: flex; gap: 4px;
    margin: 24px 0 8px;
    flex-wrap: wrap;
  }
  .step-pill {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1 1 0;
    min-width: 100px;
    padding: 8px 10px;
    border-radius: var(--r-sm, 8px);
    background: var(--line-soft, #EAE8E3);
    color: var(--muted, #4A4A48);
    border-top: 3px solid transparent;
    transition: all 0.2s ease;
  }
  .step-pill.active {
    background: var(--ink, #0D3D2D); color: var(--cream, #F2EFE8);
    border-top-color: var(--gold, #EB7033);
  }
  .step-pill.done {
    background: var(--sand, #EAE8E3); color: var(--ink-soft, #1E4C39);
    border-top-color: var(--gold-soft, #F0925E);
  }
  .step-pill .step-num {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    opacity: 0.7;
  }
  .step-pill .step-name {
    font-size: 12px; font-weight: 600; line-height: 1.2;
  }
  .step-pill.active .step-num { color: #F0925E; opacity: 1; }
  .step-pill .step-count {
    display: inline-block; margin-top: 4px;
    font-size: 10px; font-weight: 700;
    color: var(--ink-soft, #1E4C39); opacity: 0.55;
    letter-spacing: 0.04em;
  }
  .step-pill.active .step-count { color: #F0925E; opacity: 0.95; }
  .step-pill.done   .step-count { opacity: 0.65; }

  /* p81 Block C: Die Etappen sind Schaltflaechen. Anklickbar, mit der Tastatur
     erreichbar, sichtbarer Fokusrahmen. Gesperrte Etappen bleiben ruhig. */
  .step-pill {
    appearance: none;
    -webkit-appearance: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .step-pill:disabled {
    cursor: default;
  }
  .step-pill:not(:disabled):not(.active):hover {
    border-top-color: var(--gold-soft, #F0925E);
  }
  .step-pill:focus-visible {
    outline: 2px solid var(--gold, #EB7033);
    outline-offset: 2px;
  }
  @media (max-width: 640px) {
    .step-pill { min-width: 80px; padding: 6px 8px; }
    .step-pill .step-name { font-size: 11.5px; }
  }

  /* Club-parity question-stage header line (replaces the old dark tier banner) */
  .quest-context {
    font-size: 13px; color: var(--muted, #4A4A48);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 8px;
  }
  .quest-context strong { color: #953B0F; font-weight: 600; }
  .quest-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 24px; flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .quest-header h2 { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; color: var(--ink, #0D3D2D); }
  .quest-header .quest-subtitle {
    font-size: 14.5px; color: var(--ink-soft, #1E4C39);
    margin-top: 4px; line-height: 1.5;
  }

  /* Sprint 15: notsure-toggle / na-toggle / qflags-row / option label+description
     moved to app/shared/diagnostic-ui.css. */
  .option-description em { color: var(--coral-dark); font-style: normal; font-weight: 500; }

  /* ───── Nav row ───── */
  .nav-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  }
  .nav-info { font-size: 13px; color: var(--muted); }
  @media (max-width: 600px) {
    .nav-row { flex-direction: column-reverse; gap: 14px; align-items: stretch; }
    .nav-row .btn { justify-content: center; }
    .nav-info { text-align: center; }
  }

  /* Tier banner deprecated 2026-07-23 (Club-parity design pass). Tier info now shown as a dezente header line above the question card. */

  /* ───── Results page ───── */
  .results-hero {
    background: var(--ink);
    color: var(--cream); border-radius: var(--r-xl);
    padding: 44px 44px; margin: 12px 0 28px;
    position: relative; overflow: hidden;
  }
  @media (max-width: 720px) { .results-hero { padding: 32px 24px; } }
  .results-hero::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(235, 112, 51, 0.15);
  }
  .results-hero-eyebrow {
    position: relative;
    font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-soft); margin-bottom: 12px; font-weight: 600;
  }
  .results-hero-title {
    position: relative;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 32px; margin: 0 0 28px; color: var(--cream); line-height: 1.2;
  }
  .results-score-row {
    position: relative;
    display: flex; gap: 36px; align-items: flex-end; flex-wrap: wrap;
  }
  .score-main {
    display: flex; align-items: baseline; gap: 6px;
  }
  .score-main .v {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 84px; line-height: 1; color: var(--cream);
  }
  .score-main .vmax {
    font-size: 22px; color: var(--gold-soft);
    font-family: 'DM Serif Display', Georgia, serif;
  }
  .score-label {
    font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gold-soft); margin-top: 6px;
  }
  .ceiling-note {
    font-size: 12.5px; color: rgba(247, 245, 240, 0.7);
    margin-top: 10px; max-width: 720px;
  }

  /* p82 Block D-2 (2026-08-04) · One result head, not two.
     The identity strip, the shared hero ring and the context block below it read as a single
     dark surface: outer radius on the first and last element, no seam in between. */
  #stage-results .results-hero {
    padding: 32px 40px 20px; margin: 12px 0 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  #stage-results .results-hero-eyebrow { margin-bottom: 0; }
  /* The decorative circle used to sit inside a tall hero. In the slim strip it is clipped into a
     visible hard edge, so it is dropped here. */
  #stage-results .results-hero::before { display: none; }
  #stage-results .event-identity-chips:not([style*="none"]) { margin-top: 12px; }
  #stage-results #pp-hero-mount .pp-hero-ring {
    margin: 0; border-radius: 0; box-shadow: none;
  }
  #stage-results .results-context {
    background: var(--ink); color: var(--cream);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    padding: 4px 40px 32px; margin: 0 0 28px;
  }
  @media (max-width: 720px) {
    #stage-results .results-hero { padding: 24px 20px 16px; }
    #stage-results .results-context { padding: 4px 20px 24px; }
  }

  /* ───── KPI strip ───── */
  .kpi-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    margin-bottom: 28px;
  }
  @media (max-width: 720px) { .kpi-row { grid-template-columns: 1fr; } }
  .kpi-card {
    background: var(--white); border: 1px solid var(--line-soft);
    border-radius: var(--r-lg); padding: 22px 22px;
  }
  .kpi-name {
    font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); font-weight: 600;
  }
  .kpi-value {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 36px; color: var(--ink); margin-top: 8px; line-height: 1;
  }
  .kpi-value .max { font-size: 16px; color: var(--muted); margin-left: 2px; }
  .kpi-bar { height: 5px; background: var(--line-soft); border-radius: 999px; margin-top: 14px; overflow: hidden; }
  .kpi-bar-fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
  .kpi-card[data-kpi="attention"]   .kpi-bar-fill { background: #006F8A; }
  .kpi-card[data-kpi="commercial"]  .kpi-bar-fill { background: var(--gold); }
  /* p82 Block D-4 (2026-08-04): the sports bar was grey while the same bar is green everywhere
     else. It now carries the sports performance colour of the palette. */
  .kpi-card[data-kpi="sports"]      .kpi-bar-fill { background: #15661D; }
  .kpi-card[data-kpi="attention"]   .kpi-value     { color: #006F8A; }
  .kpi-card[data-kpi="commercial"]  .kpi-value     { color: #953B0F; }
  .kpi-card[data-kpi="sports"]      .kpi-value     { color: var(--ink-soft); }

  /* ───── Tier persona card ───── */
  .persona-card {
    background: var(--white); border: 1px solid var(--line-soft);
    border-radius: var(--r-xl); padding: 32px 36px; margin-bottom: 28px;
  }
  @media (max-width: 720px) { .persona-card { padding: 24px 22px; } }
  .persona-card h3 {
    font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
    font-size: 24px; margin: 0 0 8px;
  }
  .persona-card .persona-range {
    font-size: 13px; letter-spacing: 0.06em; color: #953B0F;
    text-transform: uppercase; font-weight: 600; margin-bottom: 14px;
  }
  .persona-card .persona-blurb {
    font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px;
  }
  .persona-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    padding: 22px; background: var(--paper); border-radius: var(--r-lg);
    border: 1px solid var(--line-soft);
  }
  @media (max-width: 600px) { .persona-grid { grid-template-columns: 1fr; gap: 16px; } }
  .persona-block .pl {
    font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); font-weight: 600; margin-bottom: 6px;
  }
  .persona-block .pv { font-size: 14px; color: var(--ink); line-height: 1.5; }

  /* ───── Strengths / opportunities ───── */
  .swot-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 28px;
  }
  @media (max-width: 720px) { .swot-grid { grid-template-columns: 1fr; } }
  .swot-card {
    background: var(--white); border: 1px solid var(--line-soft);
    border-radius: var(--r-xl); padding: 26px 28px;
  }
  .swot-eyebrow {
    font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; margin-bottom: 12px;
  }
  .swot-card.strengths .swot-eyebrow { color: #006F8A; }
  .swot-card.opps      .swot-eyebrow { color: var(--coral-dark); }
  .swot-card h4 {
    font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
    font-size: 22px; margin: 0 0 18px;
  }
  .swot-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 0; border-top: 1px solid var(--line-soft);
  }
  .swot-item:first-of-type { border-top: 0; }
  .swot-item .sw-score {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 22px; line-height: 1; min-width: 44px;
  }
  .swot-card.strengths .sw-score { color: #006F8A; }
  .swot-card.opps      .sw-score { color: var(--coral-dark); }
  .swot-item .sw-body { flex: 1; }
  .swot-item .sw-name { font-weight: 600; font-size: 14.5px; }
  .swot-item .sw-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

  /* ───── CTA block ───── */
  .cta-block {
    background: var(--coral);
    color: var(--cream); border-radius: var(--r-xl);
    padding: 36px 40px; margin: 12px 0 32px; position: relative; overflow: hidden;
  }
  @media (max-width: 720px) { .cta-block { padding: 28px 24px; } }
  .cta-block h3 {
    font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
    font-size: 26px; margin: 0 0 10px; color: var(--cream);
  }
  .cta-block p { font-size: 15px; line-height: 1.55; color: rgba(247, 245, 240, 0.92); max-width: 540px; margin: 0 0 20px; }
  .cta-block .btn-primary {
    background: var(--cream); color: #953B0F; border-color: var(--cream);
  }
  .cta-block .btn-primary:hover { background: var(--white); }
  .cta-block .btn-secondary {
    background: transparent; color: var(--cream); border-color: var(--cream);
  }
  .cta-block .btn-secondary:hover { background: var(--cream); color: #953B0F; }
  .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

  /* ───── Email capture ───── */
  .email-form {
    display: flex; gap: 10px; max-width: 460px; margin-top: 8px;
  }
  @media (max-width: 600px) { .email-form { flex-direction: column; } }
  .email-form input {
    flex: 1; padding: 13px 16px; border-radius: var(--r-md);
    border: 1.5px solid rgba(247, 245, 240, 0.55); background: rgba(247, 245, 240, 0.08);
    color: var(--cream); font-family: inherit; font-size: 14.5px;
  }
  .email-form input::placeholder { color: rgba(247, 245, 240, 0.7); }
  .email-form input:focus { outline: none; border-color: var(--cream); background: rgba(247, 245, 240, 0.16); }
  .email-form .btn { padding: 13px 22px; white-space: nowrap; flex-shrink: 0; }
  .email-confirm {
    margin-top: 16px; padding: 14px 18px;
    background: rgba(247, 245, 240, 0.18); border-radius: var(--r-md);
    color: var(--cream); font-size: 14px; line-height: 1.55;
    display: none;
  }
  .email-confirm.visible { display: block; }

  /* ───── Footer ───── */
  footer {
    background: var(--ink); color: rgba(247, 245, 240, 0.7);
    padding: 36px 32px; text-align: center; font-size: 13px;
    line-height: 1.7;
  }
  footer a { color: var(--cream); text-decoration: none; }
  footer a:hover { color: #F0925E; }
  footer .foot-row { max-width: 1100px; margin: 0 auto; }
  footer .foot-meta { margin-top: 10px; font-size: 11.5px; opacity: 0.7; }

  /* ───── Loading state ───── */
  .loader-wrap {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 80px 20px; color: var(--muted); gap: 14px;
  }
  .loader-spin {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid var(--line-soft); border-top-color: var(--coral-dark);
    animation: spin 0.9s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ───── Identity intake form ───── */
  .identity-form {
    margin-top: 28px; margin-bottom: 8px;
    padding-top: 24px; border-top: 1px solid var(--line-soft);
  }
  .identity-form-heading {
    font-size: 13px; letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--muted); font-weight: 600; margin-bottom: 18px;
  }
  .identity-fields {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }
  @media (max-width: 620px) { .identity-fields { grid-template-columns: 1fr; } }
  .ifield {
    display: flex; flex-direction: column; gap: 6px;
  }
  .ifield.ifield-full { grid-column: 1 / -1; }
  .ifield label {
    font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em;
  }
  .ifield label .req {
    color: var(--coral-dark); margin-left: 2px; font-weight: 600;
  }
  .ifield input[type="text"],
  .ifield select {
    padding: 11px 14px; border-radius: var(--r-md);
    border: 1.5px solid var(--line); background: var(--paper);
    color: var(--ink); font-family: inherit; font-size: 14.5px;
    transition: border-color 0.15s, background 0.15s;
    appearance: none; -webkit-appearance: none;
  }
  .ifield select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5648' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
  }
  .ifield input[type="text"]::placeholder { color: var(--muted); opacity: 0.7; }
  .ifield input[type="text"]:focus,
  .ifield select:focus {
    outline: none; border-color: var(--gold); background: var(--white);
  }
  .ifield input[type="text"].filled,
  .ifield select.filled {
    border-color: var(--ink-soft); background: var(--white);
  }
  /* Radio cards for league structure */
  .format-radio-group {
    display: flex; flex-direction: column; gap: 8px; margin-top: 2px;
  }
  .format-radio-label {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--r-md);
    border: 1.5px solid var(--line-soft); background: var(--paper);
    cursor: pointer; transition: all 0.15s ease;
    font-size: 14px; color: var(--ink); line-height: 1.45;
  }
  .format-radio-label:hover { border-color: var(--auswahl); background: var(--white); }
  .format-radio-label input[type="radio"] {
    width: 16px; height: 16px; flex-shrink: 0;
    accent-color: var(--auswahl);
    cursor: pointer;
  }
  .format-radio-label.checked {
    border-color: var(--auswahl); background: var(--auswahl-flaeche);
    box-shadow: 0 0 0 2px var(--auswahl-ring);
  }
  /* 2026-07-31 — mobile fit. Grid items default to min-width:auto, so a single wide
     child (the country combobox listbox, a long option label) sets the column's
     min-content width and pushes the whole page sideways. Letting the items and their
     children shrink keeps the form inside the viewport at 375px. */
  .identity-fields { min-width: 0; }
  .ifield { min-width: 0; }
  .ifield > *, .ifield input[type="text"], .ifield select {
    min-width: 0; max-width: 100%; box-sizing: border-box;
  }
  .format-radio-label { min-width: 0; }
  .format-radio-label > span { min-width: 0; overflow-wrap: anywhere; }
  /* p86 Welle zwei, Punkt drei (2026-08-04) · Markttreiber-Hinweis. Gleiche
     Schriftgroesse wie der normale Hinweis, nur mit einer Kante in Gold, damit
     der Nutzer sieht, dass diese Angabe ins Rechenwerk geht. Keine neue Farbe.
     FUND (2026-08-04): derselbe Ton #B4551D heisst in Clubs --coral-dark und hier
     --coral-dark. Deshalb steht der Hexwert als Rueckfall dahinter, sonst fiele die
     ganze Deklaration lautlos aus — genau das war beim ersten Bau passiert. */
  .identity-hint.identity-hint-market {
    margin-top: 6px;
    padding: 8px 10px;
    background: var(--sand);
    border-left: 3px solid var(--coral-dark, #B4551D);
    border-radius: 2px;
  }
  .identity-hint.identity-hint-market strong {
    color: var(--coral-dark, #B4551D);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    display: block;
    margin-bottom: 2px;
  }

  .identity-hint {
    font-size: 12px; color: var(--muted); margin-top: 4px;
  }
  /* Disable state for btn-start */
  #btn-start[aria-disabled="true"] {
    background: var(--line); border-color: var(--line);
    color: var(--muted); cursor: not-allowed;
    opacity: 0.72; transform: none; box-shadow: none;
    pointer-events: none;
  }
  /* League identity chip row on results */
  .event-identity-chips {
    position: relative;
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 14px;
  }
  .event-identity-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 2px;
    background: rgba(235, 112, 51, 0.18);
    color: var(--gold-soft); font-size: 12.5px;
    font-weight: 600; letter-spacing: 0.04em;
    border: 1px solid rgba(235, 112, 51, 0.3);
  }
  .event-identity-chip .chip-sep {
    opacity: 0.5; margin: 0 2px;
  }
  /* Der Trenner ist selbst ein Kennzeichen-Element und sah dadurch wie eine
     eigene leere Kachel aus. Er bekommt keine Kachelanmutung mehr und
     verschwindet auf schmalen Flaechen, wo die Kennzeichen ohnehin umbrechen. */
  .event-identity-chip.chip-sep {
    background: none; border: none; padding: 0 2px;
    color: var(--gold-soft); opacity: 0.55;
  }
  @media (max-width: 640px) {
    .event-identity-chip.chip-sep { display: none; }
  }
  /* E5 · Kennzeichnung des Beispiel-Durchlaufs. Bewusst in der Warnfarbe der
     Palette gehalten, damit niemand das Beispiel fuer eine eigene Erhebung
     haelt. Farbe und Form folgen den Kennzeichen daneben. */
  .event-identity-chip.chip-example {
    background: rgba(105, 8, 8, 0.22);
    border-color: rgba(105, 8, 8, 0.45);
    color: var(--cream);
  }

  /* Textknopf. Bisher nur in der Clubs-Schale definiert, weshalb ein solcher
     Knopf in Leagues und Events unformatiert erschien. */
  .btn-link {
    background: transparent; border: none; padding: 0;
    color: var(--gold-soft);
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 500;
    cursor: pointer; text-align: left;
    text-decoration: underline; text-underline-offset: 4px;
  }
  .btn-link:hover { color: var(--white); }
  .btn-link:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 3px;
  }

  /* ───── Visibility helpers ───── */
  .hidden { display: none !important; }
  .pilot-badge {
    display: inline-block; background: rgba(235, 112, 51, 0.15);
    color: #953B0F; padding: 4px 10px; border-radius: 2px;
    font-size: 11.5px; letter-spacing: 0.10em; text-transform: uppercase;
    font-weight: 600; margin-bottom: 14px;
  }

  /* ───── Sprint 13 · Fast Lane / Full Diagnostic mode picker ───── */
  .mode-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 8px;
  }
  @media (max-width: 720px) { .mode-picker { grid-template-columns: 1fr; } }
  .mode-card {
    text-align: left;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 3px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: 'Inter', sans-serif;
  }
  .mode-card:hover { border-color: var(--gold); }
  .mode-card.active {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(235, 112, 51, 0.12);
  }
  .mode-card-h {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .mode-card-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .mode-card-meta b { color: var(--ink); font-weight: 600; }
  .mode-card-b {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--muted);
  }
  .mode-pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 2px;
    background: rgba(235, 112, 51, 0.12);
    color: #B4551D;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 4px;
  }
  .mode-pill-gold {
    background: var(--ink);
    color: #F0925E;
  }
  .mode-card-note {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 2px;
    background: rgba(235, 112, 51, 0.08);
    border-left: 3px solid var(--gold);
    font-size: 12px;
    line-height: 1.45;
    color: #953B0F;
    text-align: left;
  }
  /* Full-unlocked pilot state: hide the request-form CTA copy, show run-in-app copy */
  body.pp-full-unlocked .mode-card-note[data-mode-full] { display: none; }
  .mode-card-note-unlocked {
    display: none;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 2px;
    background: rgba(13, 61, 45, 0.06);
    border-left: 3px solid var(--ink);
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink);
    text-align: left;
  }
  body.pp-full-unlocked .mode-card-note-unlocked { display: block; }
  body.pp-full-unlocked .mode-card .mode-pill-gold { display: none !important; }

  /* Punkt 10 (2026-07-31): Platz unter der Fragenkarte, damit die Assistenz-Schaltflaeche die Checkboxen nicht verdeckt */
  @media (max-width: 640px) {
    #question-container, #q-mount { padding-bottom: 84px; }
  }

/* ══════════════════════════════════════════════════════════════════════════
   DRUCKAUSGABE · LEAGUES UND EVENTS · 2026-08-04
   Clubs hatte ein Druck-Stylesheet (clubs-06-landing-und-spaet.css), Leagues
   und Events nicht — wer dort "Drucken" oder "Als PDF speichern" waehlte, bekam
   die Bildschirmschale mit Kopfleiste, Schrittleiste, Schaltflaechen und
   zugeklappten Aufklappern aufs Papier. Dieser Block zieht die Paritaet nach.
   Grundsatz: nur die Ergebnisstufe geht aufs Papier, Bedienelemente
   verschwinden, alle Aufklapper sind offen, und die farbigen Kartenkoepfe
   behalten ihre Flaeche (sonst steht weisse Schrift auf weissem Grund).
   ══════════════════════════════════════════════════════════════════════════ */
@media print {
  /* Der Seitenrand wird als Innenabstand der Schale gesetzt, nicht als
     @page-Rand. Grund: beim Erzeugen eines PDF legt der Browser das Layout auf
     die volle Papierbreite und behandelt den @page-Rand nur als Beschnitt —
     die Karten liefen rechts in den Rand hinein und wurden angeschnitten. */
  @page { size: A4; margin: 0; }

  html, body {
    background: #FFFFFF !important;
    color: #111111 !important;
    font-size: 10.5pt;
  }
  .app-shell { max-width: 100%; margin: 0; padding: 12mm 12mm 14mm; }

  /* ── 1 · Nur die Ergebnisstufe kommt aufs Papier ── */
  #stage-intro,
  #stage-loading,
  #stage-questions,
  #stage-review { display: none !important; }
  #stage-results { display: block !important; }

  /* ── 2 · Schale, Navigation und Bedienelemente ── */
  header.platform-bar,
  .platform-bar,
  .pp-header-more,
  .pp-header-more-panel,
  footer,
  .step-rail,
  .progress-wrap,
  .quest-nav,
  .nav-info,
  .cta-block,
  .email-form,
  .cta-actions,
  .pp-apt,
  .pp-dim-why-toggle,
  .pp-caprepo-toggle,
  .cvd-toggle,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .btn-link,
  button,
  #r-method-trigger-slot,
  .method-drawer,
  .ai-drawer,
  .faq-drawer,
  .contact-modal,
  .legal-modal,
  .rfd-modal,
  .wl-modal,
  .toast,
  [data-no-print] { display: none !important; }

  /* Sprechblasen haengen an Pseudoelementen und wuerden Text ueberdecken */
  .has-tip[data-tip]::before,
  .has-tip[data-tip]::after,
  .q-info-icon { display: none !important; }
  .has-tip { border-bottom: 0 !important; cursor: auto; }

  /* ── 3 · Alle Aufklapper offen ──
     Gezielt, nicht global ueber [hidden]: das Initiativenverzeichnis
     (#pp-lib-mount) ist bewusst ausgeblendet und bleibt es. */
  .pp-dim-why-panel,
  .pp-dim-why-panel[hidden],
  .pp-why-score-panel { display: block !important; }
  details.pp-qa-wrap,
  details.pp-qa-subdim,
  details.pp-caprepo-wrap,
  details.cvd-dom,
  details.rrig-wrap { display: block !important; }
  details.pp-qa-wrap > *:not(summary),
  details.pp-qa-subdim > *:not(summary),
  details.pp-caprepo-wrap > *:not(summary),
  details.cvd-dom > *:not(summary),
  details.rrig-wrap > *:not(summary) { display: block !important; }
  /* Chromium blendet den Inhalt eines geschlossenen details ueber
     content-visibility aus, nicht ueber display. Ohne die naechste Regel
     bleibt der Antwort- und Domaenenteil auf dem Papier leer. */
  details,
  details > *:not(summary) { content-visibility: visible !important; }
  details::details-content {
    content-visibility: visible !important;
    display: block !important;
    block-size: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  /* Aufklapp-Hinweise ergeben auf Papier keinen Sinn. */
  .pp-qa-toggle,
  .qa-overview-toggle,
  .pp-caprepo-toggle,
  .cvd-toggle,
  .rrig-toggle { display: none !important; }
  #pp-lib-mount { display: none !important; }

  /* ── 4 · Farben bleiben, wie sie am Bildschirm sind ──
     Erster Versuch zwang alle Flaechen auf Weiss. Das war falsch: die dunkel
     hinterlegten Bereiche behalten ihre helle Schrift, und heller Text auf
     weissem Papier ist unlesbar. Statt Farben umzurechnen wird die exakte
     Farbwiedergabe fuer das ganze Dokument erzwungen — dunkelgruene Flaechen,
     farbige Kartenkoepfe, Ringe und Balken drucken wie am Bildschirm. */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  a { text-decoration: none !important; }
  a[href]::after { content: ""; }

  /* ── 5 · Kein Sockel und keine Schatten auf Papier ──
     Der Sockel ist ein versetzter Schatten mit passendem Innenabstand. Auf
     Null gesetzt verschwindet er, ohne dass die Kachel verrutscht. */
  :root {
    --sockel-versatz: 0px;
    --pp-sockel-versatz: 0px;
  }
  .pp-mod, .pp-dim-card, .pp-hero-card, .persona-card,
  .rr-section, .cvd-summary, .cvd-stat, .cvd-dom, .cvd-body,
  .pp-kpi-tile, .kpi-tile, .pp-dim-col, .dim-col,
  .pp-cap-card, .rr-quadrant { box-shadow: none !important; }

  /* ── 6 · Umbrueche ── */
  h1, h2, h3, h4,
  .pp-dim-head-fill,
  .pp-dim-name,
  .pp-dim-col-head,
  .dim-col-head,
  .pp-mod-eyebrow { page-break-after: avoid; break-after: avoid; }
  .pp-dim-card,
  .pp-hero-card,
  .persona-card,
  .cvd-dom,
  .cvd-summary,
  .rr-quadrant,
  table { page-break-inside: avoid; break-inside: avoid; }
  .rr-section, #pp-qa-mount { page-break-before: auto; }
}

/* 2026-08-05 · Altfundpaket: die beiden Fusstexte der Diagnoseseiten trugen
   ihre Groesse, Farbe und Laufweite als Inline-Stil im HTML. Ausgelagert,
   damit die Auslieferung ohne CSS im HTML auskommt. */
.le-kalibrierhinweis {
  font-size: 13px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.6;
}
.le-haftungssatz {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 2026-08-05 · Altfundpaket: drei weitere Bausteine der Diagnoseseiten
   trugen ihre Gestaltung inline. Werte unveraendert uebernommen. */
.le-feldlabel {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
}
.pp-consent-note.le-knopfreihe,
.le-knopfreihe {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.le-organiser-hinweis {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  /* Vorher 8px inline. Formensprache erlaubt 2-4px. */
  border-radius: 4px;
}
.results-hero-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
