  :root{
    --hue: 265;
    --hue2: 320;
    --bg-deep: #07050f;
    --ink: #f3edff;
    --ink-dim: #b8aed6;
    --gold: #f0c674;
    --card-radius: 26px;
    --transition-slow: 900ms cubic-bezier(.16,.8,.24,1);
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html,body{height:100%;}
  body{
    font-family:'Quicksand', sans-serif;
    background: var(--bg-deep);
    color: var(--ink);
    min-height:100vh;
    overflow-x:hidden;
    position:relative;
    -webkit-font-smoothing:antialiased;
  }

  /* ---------- Ambient magic background ---------- */
  .aurora{
    position:fixed; inset:-10%;
    z-index:0;
    background:
      radial-gradient(circle at 20% 25%, hsla(var(--hue), 85%, 55%, 0.35), transparent 55%),
      radial-gradient(circle at 80% 20%, hsla(var(--hue2), 80%, 55%, 0.28), transparent 50%),
      radial-gradient(circle at 50% 85%, hsla(var(--hue), 70%, 35%, 0.30), transparent 55%),
      var(--bg-deep);
    transition: background var(--transition-slow);
    filter: blur(2px);
  }

  /* Ein einzelner Halbkreis-Bogen: Mittelpunkt an der Unterkante, --r ist der
     Aussenradius. Die Enden blenden nach unten weich aus, statt abzubrechen. */

  @media (max-width: 700px){
    /* schmale Bildschirme: ganzer Bogen passt in die Breite */

  }


  /* ---------- Kosmos: schwereloser Astronaut ---------- */

  #particles{ position:fixed; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
  .particle{
    position:absolute;
    bottom:-10%;
    font-size: 1.4rem;
    opacity:0;
    filter: drop-shadow(0 0 6px hsla(var(--hue),90%,70%,.8));
    animation-name: drift, fade;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    will-change: transform, opacity;
  }
  @keyframes drift{
    0%{ transform: translate(0,0) rotate(0deg); }
    50%{ transform: translate(var(--dx), -55vh) rotate(180deg); }
    100%{ transform: translate(calc(var(--dx) * 1.6), -115vh) rotate(360deg); }
  }
  @keyframes fade{
    0%{ opacity:0; }
    10%{ opacity: var(--maxop, .8); }
    85%{ opacity: var(--maxop, .8); }
    100%{ opacity:0; }
  }

  /* ---------- App-weiter Glitzer-Cursor/Touch-Trail ---------- */
  .trail-spark{
    position:fixed;
    width:5px; height:5px;
    border-radius:50%;
    pointer-events:none;
    z-index:50;
    transform:translate(-50%,-50%);
    animation: trailFade .7s ease-out forwards;
  }
  @keyframes trailFade{
    0%{ transform:translate(-50%,-50%) scale(1); opacity:.9; }
    100%{ transform:translate(-50%,-50%) scale(.2) translateY(-14px); opacity:0; }
  }

  /* ---------- Layout ---------- */
  .stage{
    position:relative; z-index:2;
    min-height:100vh;
    display:flex; align-items:center; justify-content:center;
    padding: 6vh 5vw;
  }
  .panel{
    width:100%; max-width: 640px;
    text-align:center;
  }

  .eyebrow{
    font-size:.78rem; letter-spacing:.28em; text-transform:uppercase;
    color: var(--gold); font-weight:600; margin-bottom:14px;
    opacity:.9;
  }

  h1.title{
    font-family:'Cinzel Decorative', serif;
    font-weight:700;
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height:1.15;
    margin-bottom:18px;
    text-shadow: 0 0 30px hsla(var(--hue),90%,60%,.5);
  }
  p.lede{
    color: var(--ink-dim);
    font-size:1.05rem;
    line-height:1.6;
    max-width:480px;
    margin: 0 auto 34px;
  }
  .ai-note{
    font-size:.75rem;
    color: var(--ink-dim);
    opacity:.75;
    margin-top:20px;
  }

  .btn{
    font-family:'Quicksand', sans-serif;
    font-weight:700;
    font-size:1.05rem;
    letter-spacing:.02em;
    color:#1a0e2e;
    background: linear-gradient(135deg, var(--gold), #fff2c9);
    border:none;
    padding: 16px 40px;
    border-radius: 999px;
    cursor:pointer;
    box-shadow: 0 8px 30px hsla(var(--hue),80%,55%,.35), 0 0 0 1px rgba(255,255,255,.15) inset;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .btn:hover{ transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 38px hsla(var(--hue),80%,55%,.5); }
  .btn:active{ transform: translateY(0) scale(.98); }
  .btn.ghost{
    background:transparent; color: var(--ink);
    border: 1.5px solid rgba(255,255,255,.35);
    box-shadow:none;
  }
  .btn.ghost:hover{ border-color: var(--gold); color: var(--gold); box-shadow:0 0 18px hsla(var(--hue),80%,60%,.25);}

  /* ---------- Progress constellation ---------- */
  .constellation{
    display:flex; justify-content:center; gap:10px;
    margin-bottom: 40px;
    flex-wrap:wrap;
  }
  .const-dot{
    width:9px; height:9px; border-radius:50%;
    background: rgba(255,255,255,.18);
    box-shadow: 0 0 0 rgba(255,255,255,0);
    transition: all .4s ease;
  }
  .const-dot.done{
    background: var(--gold);
    box-shadow: 0 0 10px 2px hsla(var(--hue),90%,70%,.7);
  }
  .const-dot.current{
    background: #fff;
    transform: scale(1.5);
    box-shadow: 0 0 14px 4px hsla(var(--hue),90%,70%,.9);
  }

  /* ---------- Question card ---------- */
  .qnum{
    font-family:'Cinzel Decorative', serif;
    color: var(--gold);
    font-size:.9rem;
    letter-spacing:.2em;
    text-transform:uppercase;
    margin-bottom:10px;
  }
  h2.question{
    font-family:'Cinzel Decorative', serif;
    font-size: clamp(1.4rem, 4.2vw, 2.05rem);
    line-height:1.3;
    margin-bottom: 34px;
    font-weight:700;
  }
  .options{
    display:flex; flex-direction:column; gap:14px;
    text-align:left;
  }
  .option{
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 18px 22px;
    font-size: 1rem;
    color: var(--ink);
    cursor:pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
    position:relative;
    overflow:hidden;
  }
  .option::before{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(120deg, hsla(var(--hue),90%,60%,.22), transparent 60%);
    opacity:0;
    transition: opacity .25s ease;
  }
  .option:hover{
    transform: translateX(6px);
    border-color: hsla(var(--hue),80%,65%,.6);
    box-shadow: 0 6px 24px hsla(var(--hue),70%,40%,.25);
  }
  .option:focus-visible{
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-color: var(--gold);
  }
  .option:hover::before{ opacity:1; }
  .option.chosen{
    border-color: var(--gold);
    background: rgba(240,198,116,.12);
    transform: translateX(6px) scale(1.01);
  }

  /* ---------- Fade/slide transitions between screens ---------- */
  .screen{
    transition: opacity .5s ease, transform .5s ease;
  }
  .screen.leaving{ opacity:0; transform: translateY(-14px); }
  .screen.entering{ opacity:0; transform: translateY(14px); }
  .screen.visible{ opacity:1; transform: translateY(0); }

  /* ---------- Result ---------- */
  .result-card{
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: var(--card-radius);
    padding: 46px 34px 38px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px hsla(var(--hue),70%,30%,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
    position:relative;
    animation: cardIn 900ms cubic-bezier(.2,.9,.25,1);
  }
  @keyframes cardIn{
    0%{ opacity:0; transform: scale(.85) rotateX(12deg); }
    100%{ opacity:1; transform: scale(1) rotateX(0); }
  }
  .result-symbol{
    font-size: 4.2rem;
    display:block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 22px hsla(var(--hue),90%,65%,.7));
    animation: floaty 3.5s ease-in-out infinite;
  }
  @keyframes floaty{
    0%,100%{ transform: translateY(0) rotate(-3deg); }
    50%{ transform: translateY(-10px) rotate(3deg); }
  }
  .result-eyebrow{
    font-size:.75rem; letter-spacing:.3em; text-transform:uppercase;
    color: var(--ink-dim); margin-bottom: 6px;
  }
  h2.result-title{
    font-family:'Cinzel Decorative', serif;
    font-size: clamp(1.7rem, 5.5vw, 2.5rem);
    margin-bottom: 8px;
    text-shadow: 0 0 30px hsla(var(--hue),90%,60%,.55);
  }
  p.result-tagline{
    font-style: italic;
    color: var(--gold);
    margin-bottom: 22px;
    font-size:1.05rem;
  }
  p.result-desc{
    color: var(--ink);
    line-height:1.7;
    font-size:1rem;
    max-width: 480px;
    margin: 0 auto 22px;
  }
  .traits{
    display:flex; flex-wrap:wrap; justify-content:center; gap:9px;
    margin-bottom: 24px;
  }
  .trait-chip{
    background: hsla(var(--hue), 60%, 50%, .18);
    border:1px solid hsla(var(--hue),70%,65%,.4);
    color: var(--ink);
    padding: 7px 16px;
    border-radius: 999px;
    font-size:.85rem;
    font-weight:600;
  }
  .why-box{
    text-align:left;
    background: rgba(0,0,0,.22);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 28px;
    font-size:.92rem;
    line-height:1.6;
    color: var(--ink-dim);
  }
  .why-box b{ color: var(--ink); }
  .result-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

  footer.hint{
    margin-top: 26px;
    font-size:.78rem;
    color: rgba(255,255,255,.35);
    text-align:center;
  }

  /* ---------- Sternenregen (fällt senkrecht von oben) ---------- */
  .sky-fall{
    position:fixed;
    top:-8vh; left:0;
    z-index:4;
    pointer-events:none;
    will-change: transform, opacity;
  }
  .sky-fall.glyph{
    font-size: 1.3rem;
    line-height:1;
    color:#fff;
    filter: drop-shadow(0 0 8px hsla(var(--hue),90%,75%,.85));
  }
  .sky-fall.dot{
    width:5px; height:5px;
    border-radius:50%;
    background:#fff;
    box-shadow: 0 0 10px 3px hsla(var(--hue),90%,75%,.8);
  }
  @keyframes fallDown{
    0%{ transform: translate(0, 0) rotate(0deg); opacity:0; }
    8%{ opacity: 1; }
    50%{ transform: translate(var(--sway, 20px), 55vh) rotate(160deg); }
    90%{ opacity: 1; }
    100%{ transform: translate(0, 112vh) rotate(320deg); opacity:0; }
  }
  .sky-fall.rise{ top:auto; bottom:-8vh; }
  @keyframes riseUp{
    0%{ transform: translate(0, 0) rotate(0deg); opacity:0; }
    8%{ opacity: 1; }
    50%{ transform: translate(var(--sway, 20px), -55vh) rotate(-100deg); }
    90%{ opacity: 1; }
    100%{ transform: translate(0, -112vh) rotate(-220deg); opacity:0; }
  }

  /* ---------- Theme-Switcher ---------- */
  .theme-switcher{
    position:fixed; top:16px; left:50%; transform:translateX(-50%);
    z-index:60;
    display:flex; gap:8px;
    background: rgba(10,8,20,.45);
    backdrop-filter: blur(8px);
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;
    padding:6px;
  }
  .theme-btn{
    width:38px; height:38px;
    border-radius:50%;
    border:1.5px solid transparent;
    background:transparent;
    font-size:1.05rem;
    line-height:1;
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition: all .25s ease;
    opacity:.6;
  }
  .theme-btn:hover{ opacity:1; transform:scale(1.08); }
  .theme-btn.active{
    opacity:1;
    border-color: var(--gold);
    background: rgba(255,255,255,.1);
    box-shadow:0 0 14px hsla(var(--hue),80%,60%,.5);
  }
  @media (max-width:480px){
    .theme-switcher{ top:10px; padding:5px; gap:6px; }
    .theme-btn{ width:32px; height:32px; font-size:.9rem; }
  }

  /* ---------- Himmelsreich: Wolken (eigenes Bild-Asset) ---------- */

  .heart-floater img{ animation: heartBob 2.3s ease-in-out infinite; }
  @keyframes heartBob{
    0%, 100%{ transform: translateY(0) scale(1); }
    50%{ transform: translateY(-10px) scale(1.04); }
  }

  /* ---------- Himmelsreich & Feuerreich: fliegende Kreaturen ---------- */


  /* ---------- Himmelsreich: viel Glitzer ---------- */

  /* ---------- Share button ---------- */
  .btn.share{
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
    color:#fff;
    box-shadow: 0 8px 26px rgba(193,53,132,.45);
  }
  .btn.share:hover{ box-shadow: 0 12px 34px rgba(193,53,132,.6); }
  /* Teilen-Button in den Farben der jeweiligen Welt */

  .share-hint{
    font-size:.78rem;
    color: rgba(255,255,255,.4);
    margin-top:14px;
  }

  /* ---------- Feedback ---------- */
  .feedback-box{
    margin-top: 30px;
    max-width: 480px;
    margin-left:auto; margin-right:auto;
    text-align:center;
  }
  .feedback-label{
    font-size:.95rem;
    color: var(--ink-dim);
    margin-bottom: 12px;
  }
  .fb-textarea{
    width:100%;
    resize: vertical;
    min-height: 70px;
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.16);
    border-radius: 14px;
    color: var(--ink);
    font-family:'Quicksand', sans-serif;
    font-size:.95rem;
    padding: 12px 14px;
    margin-bottom: 12px;
    transition: border-color .2s ease;
  }
  .fb-textarea:focus{
    outline:none;
    border-color: var(--gold);
  }
  .fb-textarea::placeholder{ color: rgba(255,255,255,.35); }
  .fb-send{ display:block; margin: 0 auto; }
  .fb-note{
    font-size:.72rem;
    color: rgba(255,255,255,.35);
    margin-top: 10px;
    line-height:1.5;
  }

  /* ---------- Planetenshow ---------- */

  @keyframes overlayIn{ from{opacity:0;} to{opacity:1;} }
  @keyframes overlayOut{ from{opacity:1;} to{opacity:0;} }

  .p-close{
    position:absolute; top:16px; right:18px;
    width:36px; height:36px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.08);
    color:#fff;
    font-size:1.05rem;
    line-height:1;
    cursor:pointer;
    z-index:9;
    display:flex; align-items:center; justify-content:center;
    transition: all .2s ease;
  }
  .p-close:hover{ background: rgba(255,255,255,.22); transform: scale(1.08); }

  /* Zaubereffekte bei Klick/Touch */

  /* ---------- Fabelwesen-Auftritt in der Galaxie ---------- */

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

  @media (max-width:480px){
    .result-card{ padding: 34px 20px 28px; }
    .option{ padding:15px 18px; }
  }

  /* ---------- Themen-Feinschliff ---------- */

  /* Himmelsreich ist hell -> alle auf dunklen Hintergrund ausgelegten
     transparenten Flächen brauchen mehr Deckkraft, sonst verschwinden sie. */

  /* ---------- Kodex (Sammelkarten) ---------- */
  .codex-fab{
    position:fixed; top:16px; left:16px; z-index:60;
    width:44px; height:44px; border-radius:50%;
    background: rgba(10,8,20,.45); backdrop-filter: blur(8px);
    border:1px solid rgba(255,255,255,.15); color:#fff; font-size:1.15rem;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition: all .2s ease; position:fixed;
  }
  .codex-fab:hover{ transform:scale(1.08); }
  .codex-count{
    position:absolute; bottom:-4px; right:-6px;
    background: var(--gold); color:#1a0e2e; font-size:.6rem; font-weight:700;
    border-radius:999px; padding:2px 5px; min-width:16px;
    font-family:'Quicksand', sans-serif;
  }
  @media (max-width:480px){ .codex-fab{ top:10px; left:10px; width:38px; height:38px; font-size:1rem; } }

  .sound-fab{
    position:fixed; top:16px; right:16px; z-index:60;
    width:44px; height:44px; border-radius:50%;
    background: rgba(10,8,20,.45); backdrop-filter: blur(8px);
    border:1px solid rgba(255,255,255,.15); color:#fff; font-size:1.15rem;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition: all .2s ease;
  }
  .sound-fab:hover{ transform:scale(1.08); }
  .sound-fab.muted{ opacity:.55; }
  @media (max-width:480px){ .sound-fab{ top:10px; right:10px; width:38px; height:38px; font-size:1rem; } }

  .codex-overlay{
    position:fixed; inset:0; z-index:75;
    background: rgba(5,3,12,.94); backdrop-filter: blur(6px);
    overflow-y:auto;
    padding: 76px 20px 50px;
    animation: overlayIn .4s ease;
  }
  .codex-overlay.closing{ animation: overlayOut .4s ease forwards; }
  .codex-inner{ max-width: 640px; margin:0 auto; text-align:center; }
  .codex-title{ font-family:'Cinzel Decorative', serif; font-size:1.6rem; color:#fff; margin-bottom:6px; }
  .codex-sub{ color: rgba(255,255,255,.5); font-size:.85rem; margin-bottom: 26px; }
  .codex-grid{
    display:grid; grid-template-columns: repeat(auto-fill, minmax(115px,1fr));
    gap:14px;
  }
  .codex-card{
    background: rgba(255,255,255,.05); border:1.5px solid rgba(255,255,255,.14);
    border-radius:16px; padding:16px 10px; cursor:default;
    transition: all .2s ease;
  }
  .codex-card.unlocked{ cursor:pointer; }
  .codex-card.unlocked:hover{ transform: translateY(-3px); border-color: var(--gold); }
  .codex-card .cc-symbol{ font-size:2rem; display:block; margin-bottom:6px; }
  .codex-card .cc-name{ font-size:.76rem; color:#fff; font-weight:600; }
  .codex-card.locked{ opacity:.4; }
  .codex-card.locked .cc-symbol{ filter: grayscale(1) brightness(.6); }
  .codex-detail{
    margin-top:26px; text-align:left; background: rgba(255,255,255,.06);
    border-left:3px solid var(--gold); border-radius:10px; padding:16px 18px;
    display:none; font-size:.92rem; line-height:1.6; color: var(--ink-dim);
  }
  .codex-detail.show{ display:block; }
  .codex-detail b{ color:#fff; }

  /* ---------- Freundschafts-Modus ---------- */
  .duo-btn{ display:block; margin: 16px auto 0; }
  .duo-pair{
    display:flex; align-items:center; justify-content:center;
    gap: 20px; margin-bottom: 18px;
  }
  .duo-mini .cc-symbol{ font-size: 2.6rem; display:block; filter: drop-shadow(0 0 14px hsla(var(--hue),90%,65%,.6)); }
  .duo-mini-name{ font-size:.78rem; color: var(--ink-dim); margin-top:4px; max-width:110px; }
  .duo-plus{ font-size:1.4rem; color: var(--gold); }

  /* ---------- Zwischenstand-Andeutung ---------- */
  .mid-hint{
    position:fixed; top:50%; left:50%; z-index:70;
    transform:translate(-50%,-50%) scale(.9);
    font-family:'Cinzel Decorative', serif;
    font-style:italic;
    font-size: clamp(1.05rem, 4vw, 1.5rem);
    color:#fff; text-align:center;
    text-shadow: 0 0 24px hsla(var(--hue),90%,65%,.8);
    background: rgba(10,6,20,.55);
    backdrop-filter: blur(10px);
    padding: 22px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    opacity:0;
    pointer-events:none;
    transition: opacity .5s ease, transform .5s ease;
    max-width: 80vw;
  }
  .mid-hint.show{ opacity:1; transform:translate(-50%,-50%) scale(1); }

/* ---------- Deine Welt ---------- */

/* ---------- Feedback: Sterne + Spamfalle ---------- */
.fb-sterne{ display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.fb-sterne button{ background: none; border: 0; cursor: pointer; font-size: 30px; line-height: 1; padding: 4px; color: var(--ink-dim); opacity: .45; transition: transform .15s, opacity .15s, color .15s; }
.fb-sterne button:hover{ transform: scale(1.15); opacity: .8; }
.fb-sterne button.an{ color: var(--gold); opacity: 1; text-shadow: 0 0 12px var(--gold); }
.fb-sterne button:focus-visible{ outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.fb-falle{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ================= Oktober 2026: Optimierungen ================= */
/* Inhalte liegen über allen Deko-Ebenen (Sternenregen z 4, fliegende Wesen z 3) */
.stage{ z-index:5; }

/* Kontrast: kleine Hinweise waren auf dunklem Grund zu blass */
.ai-note{ color: rgba(255,255,255,.6); }
.share-hint{ color: rgba(255,255,255,.65); }
.fb-note{ color: rgba(255,255,255,.58); }
.codex-sub{ color: rgba(255,255,255,.72); }

h2.question:focus{ outline: none; }

/* Zurück-Knopf im Quiz */
.back-btn{
  display:inline-block; margin: 18px auto 0;
  background: none; border: none; cursor: pointer;
  font: 600 .9rem 'Quicksand', sans-serif; color: var(--ink-dim);
  padding: 10px 14px; border-radius: 999px;
}
.back-btn:hover, .back-btn:focus-visible{ color: var(--ink); background: rgba(255,255,255,.08); }
.back-btn[hidden]{ display:none; }

/* Gruß über einen geteilten Link */
.link-gruss{
  margin: 0 auto 26px; max-width: 420px; padding: 18px 20px 20px;
  border-radius: 22px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 40px hsla(var(--hue),70%,50%,.25);
}
.link-gruss[hidden]{ display:none; }
.lg-kopf{ font-size:.75rem; letter-spacing:.2em; text-transform:uppercase; color: var(--gold); font-weight:700; }
.lg-symbol{ display:block; font-size: 3rem; line-height:1.2; margin: 8px 0 2px; }
.lg-name{ font-family:'Cinzel Decorative', serif; font-weight:700; font-size: 1.3rem; }
.lg-tagline{ font-style: italic; color: var(--ink-dim); margin-top: 4px; }
.lg-frage{ margin-top: 12px; font-weight: 600; }

/* Zweitwesen und Vergleich auf der Ergebniskarte */
.zweit-box, .vergleich-box{
  text-align:left; margin: 0 0 22px; padding: 14px 16px;
  border-radius: 14px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}
.zweit-box{ display:flex; align-items:center; gap: 14px; }
.zweit-symbol{ font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.zweit-kopf{ font-size:.72rem; letter-spacing:.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.zweit-name{ font-weight: 700; color: var(--ink); }
.zweit-tagline{ font-size: .88rem; font-style: italic; color: var(--ink-dim); }
.vergleich-box[hidden]{ display:none; }
.rv-paar{ font-weight: 700; margin: 6px 0 6px; color: var(--ink); }
.vergleich-box p{ margin: 0; font-size: .92rem; line-height: 1.6; color: var(--ink-dim); }

.result-actions.zweite-reihe{ margin-top: 12px; }
.result-actions .btn{ padding: 14px 26px; }

/* Kodex: alle Karten antippbar, Belohnung bei voller Sammlung */
.codex-card.locked{ cursor: pointer; }
.codex-inner.komplett .codex-title{
  background: linear-gradient(135deg, #fff, #ffd68a 40%, #c79dff 75%, #7dffcf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.codex-inner.komplett .codex-card.unlocked{ box-shadow: 0 0 18px rgba(255,214,138,.45); }

@media (prefers-reduced-motion: reduce){
  #particles, .sky-fall, .trail-spark{ display:none !important; }
}

/* ================= Design-Runde Oktober 2026 ================= */
/* Fragen in Quicksand: Cinzel Decorative kennt nur Grossbuchstaben und liest sich bei langen Saetzen muehsam */
h2.question{
  font-family:'Quicksand', sans-serif; font-weight:700;
  font-size: clamp(1.3rem, 4.4vw, 1.8rem); line-height:1.35; letter-spacing:-.005em;
}

/* Weltenwahl als Menue statt fuenf unbeschrifteter Emoji-Knoepfe */
.theme-switcher{ display:block; padding:4px; gap:0; }
.welt-toggle{
  display:flex; align-items:center; gap:7px;
  height:36px; padding:0 14px 0 12px; border:0; border-radius:999px;
  background:transparent; color:#fff; cursor:pointer;
  font: 600 .88rem 'Quicksand', sans-serif; white-space:nowrap;
}
.welt-toggle:hover{ background: rgba(255,255,255,.1); }
.welt-pfeil{ font-size:.7rem; opacity:.7; transition: transform .2s ease; }
.welt-toggle[aria-expanded="true"] .welt-pfeil{ transform: rotate(180deg); }
.welt-liste{
  position:absolute; top: calc(100% + 8px); left:50%; transform:translateX(-50%);
  min-width: 210px; padding:6px; border-radius:18px;
  background: rgba(14,10,28,.92); backdrop-filter: blur(12px);
  border:1px solid rgba(255,255,255,.16); box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.welt-liste[hidden]{ display:none; }
.welt-liste .theme-btn{
  width:100%; height:auto; justify-content:flex-start; gap:10px;
  padding: 10px 14px; border-radius: 12px; opacity:1; color:#fff;
  font: 600 .92rem 'Quicksand', sans-serif; text-align:left;
}
.welt-liste .theme-btn:hover{ transform:none; background: rgba(255,255,255,.1); }
.welt-liste .theme-btn.active{ box-shadow:none; background: rgba(255,255,255,.14); border-color: var(--gold); }
@media (max-width:480px){
  .theme-switcher{ top:10px; padding:3px; }
  .welt-toggle{ height:32px; font-size:.82rem; padding: 0 11px 0 10px; }
}

/* Ergebnisseite: Details zum Aufklappen, damit Teilen sofort sichtbar ist */
.mehr-box{ margin: 22px 0 6px; text-align:left; }
.mehr-box summary{
  list-style:none; cursor:pointer; text-align:center;
  font-weight:700; color: var(--ink); padding: 10px 14px; border-radius: 999px;
}
.mehr-box summary::-webkit-details-marker{ display:none; }
.mehr-box summary::after{ content:" ▾"; font-size:.75em; opacity:.7; }
.mehr-box[open] summary::after{ content:" ▴"; }
.mehr-box summary span{ font-weight:500; color: var(--ink-dim); }
.mehr-box summary:hover{ background: rgba(255,255,255,.06); }
.mehr-box[open] summary{ margin-bottom: 12px; }
.mehr-box .why-box{ margin-bottom: 14px; }
.mehr-box .zweit-box{ margin-bottom: 0; }

/* ================= Welt „kunstfuechsin“ ================= */
body[data-theme="fuchs"]{
  --bg-deep:#e9e7ec; --ink:#111; --ink-dim:#4d4b57; --gold:#e0109a; --accent-strong:#d1007f;
  font-family:"Inter Tight", 'Quicksand', sans-serif;
}
body[data-theme="fuchs"] .aurora{
  filter: blur(18px) saturate(1.25);
  background:
    linear-gradient(90deg,#fff 0 30%,#bfefff 42%,#ff7ce6 52%,#ff3fd0 58%,#ffb000 66%,#ffe600 70%,#e9e7ec 82%) 0 9% / 100% 70px no-repeat,
    linear-gradient(90deg,#e9e7ec 0 12%,#9cf2ff 26%,#b36bff 36%,#ff49c9 46%,#ff9d1f 56%,#fff27a 63%,#fff 72%,#e9e7ec 88%) 0 92% / 100% 110px no-repeat,
    #e9e7ec;
}

body[data-theme="fuchs"] .particle{ color:#ff3fd0; }
body[data-theme="fuchs"] .sky-fall.dot{ background:#ff3fd0; box-shadow:none; }
body[data-theme="fuchs"] .sky-fall.glyph{ color:#111; }

body[data-theme="fuchs"] h1.title,
body[data-theme="fuchs"] h2.result-title,
body[data-theme="fuchs"] .qnum,
body[data-theme="fuchs"] .eyebrow,
body[data-theme="fuchs"] .result-eyebrow,
body[data-theme="fuchs"] .lg-name,
body[data-theme="fuchs"] .mid-hint,
body[data-theme="fuchs"] h2.question{
  font-family:"Inter Tight", sans-serif; text-shadow:none; letter-spacing:-.02em;
}
body[data-theme="fuchs"] h1.title{ font-weight:700; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height:1.02; }
body[data-theme="fuchs"] h1.title::after{ content:"_"; animation: fuchsBlink 1s steps(1) infinite; }
@keyframes fuchsBlink{ 50%{ opacity:0; } }
body[data-theme="fuchs"] h2.result-title{ font-weight:700; font-size: clamp(2rem, 7vw, 2.8rem); }
body[data-theme="fuchs"] .eyebrow,
body[data-theme="fuchs"] .qnum,
body[data-theme="fuchs"] .result-eyebrow{ color:#111; letter-spacing:.06em; font-weight:700; font-size:.72rem; }
body[data-theme="fuchs"] p.result-tagline{ color: var(--accent-strong); }

body[data-theme="fuchs"] .result-symbol{ filter:none; }

body[data-theme="fuchs"] .result-card,
body[data-theme="fuchs"] .link-gruss{
  background: rgba(255,255,255,.92); border:0; border-radius:0; box-shadow:none; backdrop-filter:none;
}
body[data-theme="fuchs"] .option{
  background: rgba(255,255,255,.9); border:1.5px solid transparent; border-radius:0; backdrop-filter:none; box-shadow:none;
}
body[data-theme="fuchs"] .option:hover{ border-color:#111; transform:none; }
body[data-theme="fuchs"] .option.chosen{ background: linear-gradient(90deg,#ff3fd0,#ffb000); border-color:#111; color:#111; }
body[data-theme="fuchs"] .btn{
  background:#111; color:#fff; border-radius:0; box-shadow:none; font-family:"Inter Tight", sans-serif;
}
body[data-theme="fuchs"] .btn:hover{ background: linear-gradient(90deg,#ff3fd0,#ffb000); color:#111; box-shadow:none; }
body[data-theme="fuchs"] .btn.ghost{ background:transparent; color:#111; border:1.5px solid #111; }
body[data-theme="fuchs"] .btn.share{ background: linear-gradient(90deg,#ff3fd0,#ffb000 70%,#ffe600); color:#111; }
body[data-theme="fuchs"] .trait-chip{ background:#fff; border:1.5px solid #111; border-radius:0; color:#111; }
body[data-theme="fuchs"] .why-box,
body[data-theme="fuchs"] .zweit-box,
body[data-theme="fuchs"] .vergleich-box{ background:#f4f3f6; border:0; border-left:3px solid #ff3fd0; border-radius:0; color: var(--ink-dim); }
body[data-theme="fuchs"] .zweit-kopf,
body[data-theme="fuchs"] .lg-kopf{ color:#111; }
body[data-theme="fuchs"] .const-dot{ background: rgba(17,17,17,.16); border-radius:0; }
body[data-theme="fuchs"] .const-dot.done{ background:#111; box-shadow:none; }
body[data-theme="fuchs"] .const-dot.current{ background:#ff3fd0; box-shadow:none; }
body[data-theme="fuchs"] .fb-textarea{ background:#fff; border-color: rgba(17,17,17,.2); border-radius:0; }
body[data-theme="fuchs"] .fb-textarea::placeholder{ color: rgba(17,17,17,.45); }
body[data-theme="fuchs"] .fb-note,
body[data-theme="fuchs"] .share-hint,
body[data-theme="fuchs"] .ai-note,
body[data-theme="fuchs"] .feedback-label{ color:#4d4b57; }
body[data-theme="fuchs"] .back-btn:hover{ background:#fff; }
body[data-theme="fuchs"] .mehr-box summary:hover{ background:#fff; }
body[data-theme="fuchs"] .theme-switcher,
body[data-theme="fuchs"] .codex-fab,
body[data-theme="fuchs"] .sound-fab{ background: rgba(255,255,255,.85); border-color: rgba(17,17,17,.12); color:#111; }
body[data-theme="fuchs"] .welt-toggle{ color:#111; }
body[data-theme="fuchs"] .mid-hint{ background:#111; color:#fff; border:0; border-radius:0; font-style:normal; }

/* Link zu kunstfuechsin am Ende der Ergebnisseite */
.ende-link{ margin-top: 34px; text-align:center; }
.ende-link a{
  display:inline-block; padding: 10px 22px; border-radius:999px;
  border:1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  color: var(--gold); font-weight:600; font-size:.92rem; text-decoration:none;
  transition: background .25s ease, border-color .25s ease;
}
.ende-link a:hover, .ende-link a:focus-visible{ background: color-mix(in srgb, var(--gold) 14%, transparent); border-color: var(--gold); }

body[data-theme="fuchs"] .ende-link a{ border-radius:0; color:#111; border:1.5px solid #111; font-family:"Inter Tight", sans-serif; }
body[data-theme="fuchs"] .ende-link a:hover{ background: linear-gradient(90deg,#ff3fd0,#ffb000); }

/* ================= Welt „Geometrie“ (27.10.2026): feine weisse Linien auf Schwarz ================= */
#geo-leinwand{ position:fixed; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; display:none; }
body[data-theme="geometrie"] #geo-leinwand{ display:block; }
body[data-theme="geometrie"]{
  --bg-deep:#000; --ink:#fff; --ink-dim:#a3a3a3; --gold:#fff; --accent-strong:#fff;
  font-family:"Inter Tight", 'Quicksand', sans-serif;
}
body[data-theme="geometrie"] .aurora{ background:#000; filter:none; }

/* nur der Sternenstaub-Schwarm: keine fliegenden Symbole, kein Sternenregen */
body[data-theme="geometrie"] #particles,
body[data-theme="geometrie"] .sky-fall{ display:none !important; }
body[data-theme="geometrie"] h1.title, body[data-theme="geometrie"] h2.question, body[data-theme="geometrie"] p.lede,
body[data-theme="geometrie"] .option{ text-shadow: 0 0 12px #000, 0 0 4px #000; }

body[data-theme="geometrie"] h1.title,
body[data-theme="geometrie"] h2.result-title,
body[data-theme="geometrie"] .lg-name,
body[data-theme="geometrie"] h2.question{
  font-family:"Inter Tight", sans-serif; font-weight:400; text-shadow:none; letter-spacing:-.025em;
}
body[data-theme="geometrie"] h1.title{ font-size: clamp(2.3rem, 8.5vw, 3.8rem); line-height:1.04; }
body[data-theme="geometrie"] h2.result-title{ font-size: clamp(2rem, 7vw, 2.9rem); }
body[data-theme="geometrie"] .eyebrow,
body[data-theme="geometrie"] .qnum,
body[data-theme="geometrie"] .result-eyebrow,
body[data-theme="geometrie"] .lg-kopf,
body[data-theme="geometrie"] .zweit-kopf{
  font-family:"Inter Tight", sans-serif; color:#fff; font-weight:400; font-size:.72rem; letter-spacing:.32em; opacity:.75; text-shadow:none;
}
body[data-theme="geometrie"] p.lede,
body[data-theme="geometrie"] p.result-tagline{ color:#c9c9c9; }
body[data-theme="geometrie"] .result-symbol{ filter: grayscale(1) contrast(1.15); }

body[data-theme="geometrie"] .result-card,
body[data-theme="geometrie"] .link-gruss{
  background: rgba(0,0,0,.62); border:1px solid rgba(255,255,255,.28); box-shadow:none; backdrop-filter: blur(3px);
}
body[data-theme="geometrie"] .option{
  background: rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.26); border-radius: 999px; backdrop-filter: blur(3px); padding:16px 24px;
}
body[data-theme="geometrie"] .option::before{ display:none; }
body[data-theme="geometrie"] .option:hover{ border-color:#fff; transform:none; box-shadow:none; }
body[data-theme="geometrie"] .option.chosen{ background:#fff; border-color:#fff; color:#000; }
body[data-theme="geometrie"] .btn{
  background:#fff; color:#000; box-shadow:none; font-family:"Inter Tight", sans-serif; font-weight:600; letter-spacing:.04em;
}
body[data-theme="geometrie"] .btn:hover{ background:#000; color:#fff; box-shadow:0 0 0 1px #fff inset; transform:none; }
body[data-theme="geometrie"] .btn.ghost{ background:transparent; color:#fff; box-shadow:0 0 0 1px rgba(255,255,255,.6) inset; }
body[data-theme="geometrie"] .btn.ghost:hover{ background:#fff; color:#000; }
body[data-theme="geometrie"] .btn.share{ background:#fff; color:#000; }
body[data-theme="geometrie"] .trait-chip{ background:transparent; border:1px solid rgba(255,255,255,.6); color:#fff; box-shadow:none; }
body[data-theme="geometrie"] .why-box,
body[data-theme="geometrie"] .zweit-box,
body[data-theme="geometrie"] .vergleich-box{ background: rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.18); color:#c9c9c9; }
body[data-theme="geometrie"] .const-dot{ background: rgba(255,255,255,.18); box-shadow:none; }
body[data-theme="geometrie"] .const-dot.done{ background:#fff; box-shadow:none; }
body[data-theme="geometrie"] .const-dot.current{ background:#000; box-shadow:0 0 0 1px #fff, 0 0 10px rgba(255,255,255,.6); }
body[data-theme="geometrie"] .fb-textarea{ background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.28); color:#fff; }
body[data-theme="geometrie"] .theme-switcher,
body[data-theme="geometrie"] .codex-fab,
body[data-theme="geometrie"] .sound-fab{ background: rgba(0,0,0,.7); border-color: rgba(255,255,255,.3); color:#fff; }
body[data-theme="geometrie"] .welt-liste{ background: rgba(0,0,0,.94); border-color: rgba(255,255,255,.25); }
body[data-theme="geometrie"] .mid-hint{ background:#000; color:#fff; border:1px solid rgba(255,255,255,.4); font-style:normal; font-family:"Inter Tight", sans-serif; }
body[data-theme="geometrie"] .ende-link a{ color:#fff; border-color: rgba(255,255,255,.5); font-family:"Inter Tight", sans-serif; }
body[data-theme="geometrie"] .ende-link a:hover{ background:#fff; color:#000; }
body[data-theme="geometrie"] .ai-note svg{ fill:#fff !important; }

/* Weltenmenue auf dem Handy (27.10.2026): Safari schneidet ein Menue mit eigenem Weichzeichner innerhalb eines
   weichgezeichneten Elternteils ab, der 7. Eintrag „Geometrie“ war dann nicht antippbar. Darum ohne Weichzeichner,
   dafuer deckend, und bei wenig Hoehe scrollbar. */
.welt-liste{
  -webkit-backdrop-filter:none; backdrop-filter:none; background: rgba(14,10,28,.97);
  z-index:61; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y:auto; -webkit-overflow-scrolling: touch;
}
.welt-liste .theme-btn{ touch-action: manipulation; position:relative; }
@media (max-width:480px){ .welt-liste .theme-btn{ padding: 9px 12px; } }
body[data-theme="geometrie"] .welt-liste{ background: rgba(0,0,0,.97); }
.theme-switcher.menue-offen{ -webkit-backdrop-filter:none; backdrop-filter:none; }

/* Kodex, Duo und Link-Gruss im Geometrie- bzw. kunstfuechsin-Stil (seit die alten Welten weg sind) */
body[data-theme="geometrie"] .codex-overlay{ background: rgba(0,0,0,.95); }
body[data-theme="geometrie"] .codex-title,
body[data-theme="fuchs"] .codex-title{ font-family:"Inter Tight", sans-serif; font-weight:400; letter-spacing:-.02em; font-size:1.8rem; }
body[data-theme="geometrie"] .codex-card{ background:transparent; border:1px solid rgba(255,255,255,.22); border-radius:18px; }
body[data-theme="geometrie"] .codex-card.unlocked:hover{ border-color:#fff; }
body[data-theme="geometrie"] .codex-card .cc-symbol,
body[data-theme="geometrie"] .duo-mini .cc-symbol,
body[data-theme="geometrie"] .zweit-symbol,
body[data-theme="geometrie"] .lg-symbol{ filter: grayscale(1) contrast(1.15); }
body[data-theme="geometrie"] .codex-detail{ background: rgba(255,255,255,.04); border-left:1px solid #fff; border-radius:0; }
body[data-theme="geometrie"] .codex-inner.komplett .codex-title{ background:none; color:#fff; text-shadow: 0 0 18px rgba(255,255,255,.7); }
body[data-theme="geometrie"] .codex-inner.komplett .codex-card.unlocked{ box-shadow: 0 0 14px rgba(255,255,255,.35); }
body[data-theme="geometrie"] .lg-name,
body[data-theme="geometrie"] .codex-card .cc-name{ font-family:"Inter Tight", sans-serif; }
body[data-theme="geometrie"] .duo-plus{ color:#fff; }
body[data-theme="fuchs"] .codex-overlay{ background: rgba(233,231,236,.97); }
body[data-theme="fuchs"] .codex-title, body[data-theme="fuchs"] .codex-card .cc-name, body[data-theme="fuchs"] .codex-detail b{ color:#111; }
body[data-theme="fuchs"] .codex-sub{ color:#4d4b57; }
body[data-theme="fuchs"] .codex-card{ background:#fff; border:1.5px solid transparent; border-radius:0; }
body[data-theme="fuchs"] .codex-card.unlocked:hover{ border-color:#111; }
body[data-theme="fuchs"] .codex-detail{ background:#fff; border-left:3px solid #ff3fd0; border-radius:0; color:#4d4b57; }
body[data-theme="fuchs"] .codex-inner.komplett .codex-title{ background: linear-gradient(90deg,#ff3fd0,#ffb000); -webkit-background-clip:text; background-clip:text; color:transparent; }
body[data-theme="fuchs"] .p-close{ color:#111; border-color:#111; background:#fff; }

/* Tonknopf flach und rund wie auf den Spielinseln: hell auf dunklem Sternenhimmel, schwarz im hellen kunstfuechsin-Look */
.sound-fab{ background:#fff; color:#111; border:0; backdrop-filter:none; -webkit-backdrop-filter:none; }
.sound-fab:hover{ transform:none; opacity:.85; }
.sound-fab svg{ width:19px; height:19px; fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
body[data-theme="fuchs"] .sound-fab{ background:#111; color:#fff; border:0; }
body[data-theme="geometrie"] .sound-fab{ background:#fff; color:#111; border:0; }
