  /* ---------- Tokens ---------- */
  :root {
    --navy-1: #1c5494;
    --navy-2: #103156;
    --navy-3: #071322;
    --navy-4: #030a11;
    --orange-1: #cc4700;
    --orange-2: #e75a10;
    --orange-3: #f38b53;
    --bg-light-1: #cfe0f9;
    --bg-light-2: #f2f6fa;
    --text-on-dark: #f2f6fa;
    --text-on-dark-muted: #cfe0f9;
    --text-on-light: #071322;
    --text-on-light-muted: #103156;
    --font: 'Atkinson Hyperlegible', Arial, Helvetica, Verdana, sans-serif;
    --radius: 14px;
    --max-w: 1080px;
    --transition: 180ms ease;

    --r-s: 6px;
    --r-m: 14px;
    --r-l: 22px;
  }

  @media (prefers-reduced-motion: reduce) {
    :root { --transition: 0ms; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }

  /* ---------- Reset ---------- */
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--font);
    background: var(--navy-3);
    color: var(--text-on-dark);
    font-size: 1.125rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0 0 0.6em; }
  p { margin: 0 0 1em; }
  button, input { font-family: inherit; font-size: 1rem; }
  a { color: inherit; }

  .visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }

  .skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--orange-1); color: var(--text-on-dark);
    padding: 0.75em 1.25em; border-radius: 0 0 8px 0; z-index: 100;
  }
  .skip-link:focus { left: 0; }

  /* ---------- Focus ---------- */
  :focus-visible { outline: 3px solid var(--orange-3); outline-offset: 3px; }
  .on-light :focus-visible { outline-color: var(--navy-2); }

  /* ---------- Layout shells ---------- */
  header{
    background-color: var(--navy-3);
    padding-block:1.1rem;
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--navy-2);
  }

  #main{
    padding: 7.5rem 0 0 0;
  }

  .screen {
    display: none;
    min-height: 100vh;
    padding: 2.5rem 1.5rem 3.5rem;
  }
  .screen.is-active { display: block; animation: fade 260ms ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  .screen--on-dark { background: linear-gradient(135deg, var(--navy-4) 0%, var(--navy-3) 100%); color: var(--text-on-dark); }
  .screen--on-light { background: var(--bg-light-2); color: var(--text-on-light); }

  .wrap { max-width: var(--max-w); margin: 0 auto; }

  .wrap.hero{
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); 
    gap: clamp(2rem, 5vw, 4.5rem);
  }


  /* Anforderungsfeld */
  .field { 
    margin: 0; 
    margin-top: 2.2rem; 
    background: white; 
    border-radius: var(--r-l); 
    padding: clamp(1.25rem, 3vw, 2rem); 
    color: var(--navy-2); 
    border: 1px solid rgba(207, 224, 249, .15);
  }

  .field.animate{ margin-top: 0.5rem;}

  .wrap.hero > .field{
    background: var(--navy-3);
    color: var(--text-on-dark-muted);
  }

  .field-grid { 
    display: grid; 
    grid-template-columns: 
    repeat(auto-fill, minmax(3.4rem, 1fr)); 
    gap: .35rem; 
  }

  .cell {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 2.3rem; border-radius: 5px; font-family: var(--font-head); font-size: .8rem; font-variant-numeric: tabular-nums;
    color: #6f8cb3; background: rgba(28, 84, 148, .35); border: 2px solid rgba(207, 224, 249, .08);
  }

  .cell.more { 
    color: var(--text-on-dark-muted); 
    background: transparent; 
    border-style: dashed; 
    border-color: rgba(207, 224, 249, .3); 
  }

  .cell.lit { 
    color: var(--navy-3); 
    background: var(--orange-2); 
    border-color: var(--orange-3); 
    font-weight: 700; 
    box-shadow: 0 0 0 3px rgba(231, 90, 16, .28); 
  }

  .cell.lit::after {
    content: attr(data-rank); position: absolute; top: -.55rem; right: -.45rem;
    width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--text-on-dark); color: var(--navy-3); font-size: .75rem; font-weight: 700;
  }

  .field-caption { 
    margin-top: 1.1rem; 
    font-family: var(--font); 
    font-weight: 700; 
    font-size: 1.125rem; 
    line-height: 1.35; 
    color: var(--text-on-dark); 
  }

  @media (prefers-reduced-motion: no-preference) {
    .field.animate .cell { animation: flicker 1.8s ease both; animation-delay: calc(var(--i) * 12ms); }
    .field.animate .cell.lit { animation: lightup .5s ease both; animation-delay: calc(1.3s + var(--rank) * .35s); }
    @keyframes flicker { 0% { opacity: .2; } 40% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes lightup {
      from { color: #6f8cb3; background: rgba(28, 84, 148, .22); border-color: rgba(207, 224, 249, .08); box-shadow: none; }
      to { color: var(--navy-3); background: var(--orange-2); border-color: var(--orange-3); box-shadow: 0 0 0 3px rgba(231, 90, 16, .28); }
    }
  }


  header > .wrap{
    display: flex;
    justify-content: space-between;  
    align-items: center;
  }

  header > .wrap > a > img{
    width: 7.5%;
    border-radius: 100%;
    background: #f2f6fa;
  }

  .logo{
    font-weight:800;
    font-size:1.05rem;
    color:#fff;
    letter-spacing:-0.01em;
    text-decoration:none;
    white-space:nowrap;
  }
  .logo span{ color:var(--orange-3); }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.95em 1.4em;
    border-radius: 10px;
    border: none;
    background: var(--orange-1);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
  }
  .btn:hover { background: var(--orange-2); color: var(--navy-4); box-shadow: 0 0 0 3px rgba(243,139,83,0.35); }
  .btn:disabled { background: var(--navy-2); color: var(--text-on-dark-muted); cursor: not-allowed; box-shadow: none; }

  .btn--ghost {
    background: transparent;
    border: 2px solid var(--navy-1);
    color: var(--text-on-dark);
    width: auto;
    padding: 0.7em 1.2em;
    font-size: 0.95rem;
  }
  .btn--ghost:hover { background: rgba(28,84,148,0.25); }
  .on-light .btn--ghost { border-color: var(--navy-2); color: var(--text-on-light); }
  .on-light .btn--ghost:hover { background: rgba(16,49,86,0.08); }

  .btn-row { display: flex; gap: 1rem; align-items: center; margin-top: 1.75rem; }
  .btn-row .btn { flex: 1; }

  /* ---------- Start screen ---------- */
  .eyebrow {
    color: var(--text-on-dark-muted);
    font-size: 1rem;
    margin: 0 0 0.75rem;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 4.5vw + 1rem, 2.5rem);
    _max-width: 18ch;
  }
  .hero p.lead {
    font-size: 1.15rem;
    _max-width: 42ch;
    color: var(--text-on-dark-muted);
  }
  .benefits {
    list-style: none;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
    border-top: 1px solid var(--navy-2);
  }
  .benefits li {
    display: flex;
    gap: 0.85rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--navy-2);
  }
  .benefits li .mark {
    flex: none;
    width: 1.6rem; height: 1.6rem;
    border-radius: 50%;
    background: var(--navy-1);
    color: var(--text-on-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
  }
  .anchor-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-on-dark-muted);
    text-align: center;
  }

  /* ---------- Quiz screen ---------- */
  .progress-label {
    font-size: 0.95rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 0.5rem;
  }
  .progress-track {
    height: 8px;
    background: var(--navy-2);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 2rem;
  }
  .progress-fill {
    height: 100%;
    background: var(--orange-2);
    border-radius: 99px;
    width: 0%;
    transition: width 320ms ease;
  }
  fieldset { border: none; padding: 0; margin: 0; }
  legend.question-text {
    font-size: clamp(1.2rem, 3vw + 0.8rem, 1.6rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding: 0;
    max-width: 32ch;
  }
  .options { list-style: none; margin: 0; padding: 0; }
  .options li { margin-bottom: 0.75rem; }
  .option-label {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9em 1.1em;
    border: 2px solid var(--navy-2);
    border-radius: 10px;
    cursor: pointer;
    background: var(--navy-3);
    transition: border-color var(--transition), background var(--transition);
  }
  .option-label:hover { border-color: var(--navy-1); }
  .option-input { width: 1.15em; height: 1.15em; flex: none; accent-color: var(--orange-2); }
  .option-label:has(.option-input:checked) {
    border-color: var(--orange-2);
    background: rgba(231,90,16,0.12);
  }
  .option-input:checked + .option-text { font-weight: 700; }
  .option-text { flex: 1; }

  /* ---------- Capture screen ---------- */
  fieldset { margin-bottom: 1.25rem; }
  fieldset label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
  fieldset .hint { display: block; font-weight: 400; font-size: 0.9rem; color: var(--text-on-light-muted); margin-top: 0.3rem; }
  fieldset input {
    width: 100%;
    padding: 0.85em 1em;
    border-radius: 10px;
    border: 2px solid var(--navy-1);
    background: #ffffff;
    color: var(--text-on-light);
  }

  /* ---------- Thanks screen ---------- */
  .thanks-badge {
    width: 3.25rem; height: 3.25rem;
    border-radius: 50%;
    background: var(--orange-1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
  }
  .video-placeholder {
    border: 2px dashed var(--navy-1);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-on-dark-muted);
    margin: 2rem 0;
  }

  .video-wrap {
    margin: 2rem 0 1rem;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .video-wrap video {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    background: var(--navy-3);
  }
  .transcript {
    margin: 0 0 2rem;
    border: 2px solid var(--navy-2);
    border-radius: 10px;
    padding: 0.9em 1.1em;
  }
  .transcript summary {
    cursor: pointer;
    font-weight: 700;
    padding: 0.2em 0;
  }
  .transcript summary:focus-visible { outline-offset: 4px; }
  .transcript p { margin: 0.9em 0 0; color: var(--text-on-dark-muted); }

  #screen-start{ padding: 2.5rem 2rem 3.5rem; }

  @media (min-width: 640px) {
    .screen { padding: 4rem 2rem 4.5rem; }
  }

  /* ---------- Footer ---------- */
  footer{
    background:var(--navy-950);
    color:var(--on-dark-muted);
    padding-block:2.5rem;
    font-size:1rem;
  }
  footer > .wrap > p > span{
    font-weight: 600;
    color: var(--orange-3);
  }
  footer .wrap{
    display:flex;
    flex-wrap:wrap;
    gap:1rem 2rem;
    justify-content:space-between;
    align-items:center;
  }
  /* Haftungshinweis als eigene Zeile unter Copyright und Links, Farbe wie der übrige Footer-Text */
  footer .footer-hinweis{
    flex-basis:100%;
    margin:0;
    max-width:70ch;
  }
  footer nav ul{
    list-style-type: none;
    display:flex; 
    gap:1.5rem; 
    flex-wrap:wrap; 
  }

  @media (max-width: 1024px) {
    footer .wrap, header .wrap{
      padding-inline: 1.5rem;
    }
    
    #main{
      padding: 5.5rem 0 0 0;
    }
  }

  @media (max-width: 768px){
    footer .wrap{
      justify-content: center;
    }

    footer .wrap p{
      text-align: center;
    }

    .wrap.hero{
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }
  }

  @media (max-width: 576px){
    header .wrap > img{
      width: 17.5%;
    }
  }

  footer a{ text-decoration:none; }
  footer a:hover{ text-decoration:underline; font-weight: 600; color: var(--on-dark-strong);}

/* ---------- Schrift: lokal eingebunden (keine Verbindung zu Google) ---------- */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-700-italic.woff2') format('woff2'); }

/* ---------- Einwilligungs-Banner (kompakte Leiste unten) ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; z-index: 2000; transform: translateZ(0); max-height: 85vh; overflow-y: auto; background: var(--navy-2); color: var(--text-on-dark); border-top: 3px solid var(--orange-2); box-shadow: 0 -6px 24px rgba(3, 10, 17, 0.45); padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom)); }
.consent[hidden] { display: none; }
.consent .wrap { max-width: var(--max-w); margin: 0 auto; padding: 0; }
.consent__title { font-size: 1rem; line-height: 1.3; margin: 0 0 0.35em; color: var(--text-on-dark); }
.consent__title:focus { outline: none; }
.consent__title:focus-visible { outline: 3px solid var(--orange-3); outline-offset: 3px; }
.consent__text { margin: 0; _max-width: 90ch; font-size: 0.875rem; line-height: 1.45; color: var(--text-on-dark); }
.consent__text + .consent__text { margin-top: 0.4rem; }
.consent__text a { color: var(--text-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent__more { display: inline; background: none; border: 0; padding: 0 0.1em; margin: 0; font: inherit; font-weight: 700; color: var(--text-on-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent__more:hover { color: var(--orange-3); }
.consent__actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.consent__btn { flex: 1 1 0; max-width: 14rem; min-height: 44px; padding: 0.5em 1em; border-radius: 10px; border: 2px solid var(--text-on-dark); background: transparent; color: var(--text-on-dark); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.consent__btn:hover { background: rgba(242, 246, 250, 0.14); }
.consent-link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 480px) { .consent { padding-left: 1rem; padding-right: 1rem; } .consent__btn { max-width: none; } }
@media (forced-colors: active) { .consent { border: 3px solid CanvasText; } }

/* ---------- Einwilligung im Formular ---------- */
.consent-check { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.25rem 0 1rem; }
.consent-check input[type="checkbox"] { width: 1.5rem; height: 1.5rem; flex: none; margin: 0.2rem 0 0; accent-color: var(--orange-1); cursor: pointer; }
.consent-check label { font-weight: 400; cursor: pointer; }
.consent-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-note { font-size: 1rem; color: var(--text-on-light-muted); margin: 0 0 1.25rem; }
