/* undertekst — „Nordisk Nat · Liquid Glass" (Design System v0.2)
   Nachtblaue Flächen statt Schwarz, warmes Papierweiß statt sterilem Weiß,
   EIN Akzent: Rav (Bernstein). Bedienelemente schweben als Glasschicht.
   Bewegung: weich landen, Zustände morphen, Controls reagieren gel-artig. */

:root {
  /* Flächen */
  --nat:   #14161C;
  --kort:  #1B1F27;
  --svaev: #232834;
  --linje: #2E3442;
  --dyb:   #0E1015;

  /* Tinte (warm) */
  --papir: #F2EFE9;
  --stoev: #B9B6AD;
  --aske:  #83817B;
  --blaek: #241A08;

  /* Akzent + Status (Status nie ohne Label) */
  --rav:       #F5B84C;
  --rav-hover: #FFC96A;
  --rav-dim:   rgba(245, 184, 76, .13);
  --soegroen:  #3EB8A2;
  --rosen:     #DF5A6A;
  --syren:     #9D89E8;

  /* Mastery-Ramp (eine Hue, monoton, validiert) + Grau für Stufe 0 */
  --trin0: #3A4050; --trin1: #6B5330; --trin2: #9C742E;
  --trin3: #CE9733; --trin4: #E4A93D; --trin5: #F5B84C;

  /* Liquid Glass */
  --glass:        rgba(27, 31, 39, .38);
  --glass-strong: rgba(27, 31, 39, .58);
  --glass-edge:   rgba(242, 239, 233, .14);
  --glass-hi:     rgba(242, 239, 233, .22);
  --sheen: linear-gradient(118deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 34%, transparent 60%);

  /* Form & Schatten */
  --r-s: 7px; --r-m: 11px; --r-l: 14px; --pill: 999px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-2: 0 2px 4px rgba(0,0,0,.45), 0 16px 48px rgba(0,0,0,.5);
  --glow: 0 0 0 1px rgba(245,184,76,.25), 0 4px 24px rgba(245,184,76,.18);

  /* Motion — „Blødt & Glas" */
  --t-micro: 140ms; --t-std: 240ms; --t-scene: 420ms;
  --ease-soft:  cubic-bezier(.22, 1, .36, 1);
  --ease-play:  cubic-bezier(.34, 1.56, .64, 1);
  --ease-glass: cubic-bezier(.28, 1.25, .36, 1);

  --display: 'Fraunces', Georgia, 'Iowan Old Style', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --gap: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* das Attribut gewinnt gegen display: grid/flex (Profil-Formular war sonst immer offen) */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--nat);
  background-image:
    radial-gradient(1100px 520px at 82% -8%, rgba(157,137,232,.09), transparent 60%),
    radial-gradient(900px 460px at 8% 0%, rgba(245,184,76,.07), transparent 55%),
    radial-gradient(1000px 700px at 50% 60%, rgba(62,184,162,.05), transparent 60%);
  background-attachment: fixed;
  color: var(--papir);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--rav-dim); color: var(--rav-hover); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rav); outline-offset: 2px; border-radius: 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rise { animation: rise var(--t-scene) var(--ease-soft) backwards; }

/* ---------- Kopf ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px clamp(16px, 3vw, 36px);
  background-color: var(--glass);
  background-image: var(--sheen);
  backdrop-filter: blur(28px) saturate(1.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.55);
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.brand { text-decoration: none; }
.brand__name {
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.2px;
  position: relative; display: inline-block; padding-bottom: 2px;
}
.brand__name i {
  font-style: normal; color: var(--rav); font-weight: 500; margin: 0 1px;
  display: inline-block; animation: rise 500ms var(--ease-soft) 150ms backwards;
}
.nav { display: flex; gap: 4px; }
.nav button {
  background: none; border: 0; color: var(--aske);
  font: 500 13.5px/1 var(--body); padding: 9px 13px; border-radius: var(--pill);
  transition: color var(--t-std) var(--ease-soft), background var(--t-std) var(--ease-soft);
}
.nav button:hover { color: var(--papir); background: var(--svaev); }
.nav button.is-active { color: var(--rav); background: var(--rav-dim); }

.top__left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.pnav { display: flex; gap: 4px; }
.pnav button {
  background: none; border: 0; color: var(--aske);
  font: 600 13px/1 var(--body); padding: 8px 13px; border-radius: 9px;
  cursor: pointer;
  transition: color var(--t-std) var(--ease-soft), background var(--t-std) var(--ease-soft);
}
.pnav button:hover { color: var(--papir); background: var(--svaev); }
.pnav button.is-active { color: var(--rav); background: var(--rav-dim); }
.top__right { display: flex; align-items: center; gap: 16px; }
.streak {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 11.5px; color: var(--aske);
  border: 1px solid var(--linje); border-radius: var(--pill); padding: 5px 11px;
}
.streak b { font-size: 13px; color: var(--rav); font-variant-numeric: tabular-nums; }
.tally { display: flex; gap: 18px; margin: 0; }
.tally div { text-align: right; }
.tally dt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--aske); }
.tally dd { margin: 0; font: 600 16px/1.2 var(--body); font-variant-numeric: tabular-nums; }
.tally div:nth-child(3) dd { color: var(--rav); }  /* Fällig leuchtet */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 1px solid var(--linje); color: var(--aske);
  transition: all var(--t-std) var(--ease-glass);
}
.icon-btn:hover { color: var(--papir); border-color: var(--aske); transform: rotate(24deg); }
.icon-btn.is-active { color: var(--rav); border-color: var(--rav); }

/* ---------- Aufbau ---------- */
main { padding: 26px clamp(16px, 3vw, 36px) 44px; flex: 1; }

.sect { margin-bottom: 44px; }
.sect__head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 1px solid var(--linje);
}
.sect__title { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .1px; margin: 0; }
.sect__meta { font-size: 12px; color: var(--aske); }

.season__title {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--aske); margin: 20px 0 10px;
}
.sect__head + .season__title { margin-top: 0; }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.tab {
  background: none; border: 1px solid var(--linje); color: var(--stoev);
  font: 600 13px/1 var(--body); letter-spacing: .01em;
  padding: 9px 16px; border-radius: var(--pill);
  display: inline-flex; gap: 8px; align-items: baseline;
  transition: all var(--t-std) var(--ease-glass);
}
.tab span { font-size: 11px; color: var(--aske); font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--papir); border-color: var(--aske); transform: translateY(-1px); }
.tab:active { transform: scale(.96); }
.tab.is-active { background: var(--rav); border-color: var(--rav); color: var(--blaek); }
.tab.is-active span { color: var(--blaek); opacity: .65; }

/* ---------- Videokarte ---------- */
.card {
  position: relative;
  background: var(--kort);
  border: 1px solid var(--linje); border-radius: var(--r-m);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-std) var(--ease-glass),
              box-shadow var(--t-std) var(--ease-soft),
              border-color var(--t-std) var(--ease-soft);
  animation: rise var(--t-scene) var(--ease-soft) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #3A4152; }
.card__open {
  display: flex; flex-direction: column; flex: 1;
  background: none; border: 0; padding: 0; text-align: left; color: inherit;
}
.card__open:focus-visible { outline: 2px solid var(--rav); outline-offset: -2px; border-radius: var(--r-m); }

.card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--linje); }
.card__img img, .poster img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-scene) var(--ease-soft);
}
.card:hover .card__img img { transform: scale(1.04); }

.thumb__fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(242,239,233,.03) 8px 16px),
    radial-gradient(120% 100% at 30% 0%, #232A3A 0%, var(--dyb) 100%);
  color: var(--aske);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5;
}

/* Sehfortschritt — dünner roter Streifen am unteren Bildrand */
.seen {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 3px; background: rgba(14, 16, 21, .55);
}
.seen span {
  display: block; height: 100%;
  background: var(--rosen);
  border-radius: 0 2px 2px 0;
  transition: width var(--t-scene) var(--ease-soft);
}

.card__body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__ep {
  font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rav); margin-bottom: 3px; font-variant-numeric: tabular-nums;
}
.card__title {
  font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
.card__count { font-size: 11.5px; color: var(--aske); font-variant-numeric: tabular-nums; }

/* ---------- Wortstreifen: ein Strich pro Wort, Bernstein = Beherrschung ---------- */
.strip { display: flex; gap: 2px; height: 20px; align-items: flex-end; }
.strip i { flex: 1; min-width: 1px; border-radius: 1.5px 1.5px 0 0; background: var(--trin0); }
.strip i[data-l="0"] { height: 26%; opacity: .8; }
.strip i[data-l="1"] { height: 40%; background: var(--trin1); }
.strip i[data-l="2"] { height: 54%; background: var(--trin2); }
.strip i[data-l="3"] { height: 68%; background: var(--trin3); }
.strip i[data-l="4"] { height: 84%; background: var(--trin4); }
.strip i[data-l="5"] { height: 100%; background: var(--trin5); }

/* ---------- Sterne ---------- */
.stars { position: relative; display: inline-block; font-size: 14px; line-height: 1; letter-spacing: 1.5px; }
.stars b, .stars i { font-style: normal; font-weight: 400; }
.stars b { color: var(--linje); }
.stars i {
  position: absolute; inset: 0;
  color: var(--rav);
  width: var(--fill, 0%);
  overflow: hidden; white-space: nowrap;
  transition: width var(--t-scene) var(--ease-play);
  text-shadow: 0 0 12px rgba(245, 184, 76, .35);
}

/* ---------- Detailansicht ---------- */
.back {
  background: none; border: 0; padding: 0; margin-bottom: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--aske); transition: color var(--t-micro) var(--ease-soft);
}
.back:hover { color: var(--rav); }

.detail { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 36px; align-items: start; }
@media (max-width: 780px) { .detail { grid-template-columns: 1fr; } }

.poster {
  display: block; width: 100%; position: relative;
  border: 1px solid var(--linje); border-radius: var(--r-m);
  aspect-ratio: 16 / 9; overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-std) var(--ease-glass), box-shadow var(--t-std) var(--ease-soft);
}
.poster:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.poster::after {
  content: 'Auf DRTV ansehen';
  position: absolute; inset: auto 0 0 0; z-index: 3;
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  color: var(--papir);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 12px;
  transition: color var(--t-micro) var(--ease-soft);
}
.poster:hover::after { color: var(--rav); }

.detail h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 18px 0 4px; line-height: 1.25; }
.detail__series { font-size: 12.5px; color: var(--aske); }
.detail__seen { font-size: 12.5px; color: var(--stoev); margin-top: 6px; font-variant-numeric: tabular-nums; }

.act {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 11px 20px;
  background: var(--rav); color: var(--blaek); border: 0; border-radius: 10px;
  font: 600 13.5px/1 var(--body);
  position: relative; overflow: hidden;
  transition: all var(--t-std) var(--ease-glass);
}
.act::after {
  content: ''; position: absolute; top: 0; left: -70%; width: 44%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left 640ms var(--ease-soft);
}
.act:hover:not(:disabled) { background: var(--rav-hover); box-shadow: var(--glow); transform: translateY(-1px); }
.act:hover:not(:disabled)::after { left: 130%; }
.act:active:not(:disabled) { transform: scale(.95); transition-duration: var(--t-micro); }
.act:disabled { background: var(--svaev); color: var(--aske); cursor: default; }
.act--danger { margin-left: 8px; background: none; color: var(--rosen); box-shadow: inset 0 0 0 1px var(--rosen); }
.act--danger:hover:not(:disabled) { background: var(--rosen); color: var(--papir); box-shadow: none; }
.act--danger.is-armed, .card__del.is-armed { background: var(--rosen); color: #fff; }

/* ---------- Wortliste ---------- */
.words__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; }
.words__count { font-size: 12px; color: var(--aske); }
.linky {
  background: none; border: 0; padding: 0;
  font-size: 12px; font-weight: 500; color: var(--aske);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--t-micro) var(--ease-soft);
}
.linky:hover { color: var(--rav); }

.words { border-top: 1px solid var(--linje); }
.word {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px;
  padding: 12px 2px; border-bottom: 1px solid var(--linje);
  transition: background var(--t-micro) var(--ease-soft);
}
.word:hover { background: rgba(35, 40, 52, .35); }
.word__lemma { font-weight: 600; }
.word__pos { font-size: 11px; color: var(--aske); margin-left: 7px; }
.word__tr { color: var(--rav); display: inline-block; }
.word__ctx { grid-column: 1 / -1; font-size: 12.5px; color: var(--aske); }
.word__ctx .word__tr { font-style: italic; }

/* Verdeckt, bis man draufklickt */
.word__tr.is-masked {
  color: transparent; background: var(--svaev); border-radius: 4px;
  cursor: pointer; user-select: none;
  transition: background var(--t-micro) var(--ease-soft);
}
.word__tr.is-masked:hover { background: var(--linje); }

.word__side { display: flex; align-items: center; gap: 8px; }
.word__lvl {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--aske); white-space: nowrap;
}
.word__lvl.is-known { color: var(--soegroen); }
.word__del {
  background: none; border: 1px solid var(--linje); border-radius: 6px;
  color: var(--aske); line-height: 1; padding: 2px 7px 4px;
  transition: all var(--t-micro) var(--ease-soft);
}
.word__del:hover { color: var(--rosen); border-color: var(--rosen); }

.card.is-editing { border-color: var(--rosen); }
.card__del {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-edge); border-radius: 8px; color: var(--papir);
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 6px 11px;
  transition: all var(--t-micro) var(--ease-soft);
}
.card__del:hover { background: var(--rosen); }

/* ---------- Karteikarten: echter 3D-Flip ---------- */
.learn { max-width: 620px; margin: 0 auto; }
.learn__meter {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--aske); margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.learn__bar { height: 2px; background: var(--linje); border-radius: 1px; margin-bottom: 32px; }
.learn__bar span { display: block; height: 100%; background: var(--rav); border-radius: 1px; transition: width var(--t-std) var(--ease-soft); }

.flip { perspective: 1200px; cursor: pointer; animation: rise var(--t-scene) var(--ease-soft) backwards; }
.flip__inner {
  position: relative; width: 100%; min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 640ms var(--ease-glass);
  display: grid;
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg) rotateZ(.6deg); }
.face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  border-radius: var(--r-l);
  background: linear-gradient(160deg, #1E232E 0%, #191D26 100%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 30px; gap: 13px;
  position: relative;
}
.face--back { transform: rotateY(180deg); background: linear-gradient(160deg, #20242C 0%, #1B1E25 100%); }
.face__label {
  position: absolute; top: 16px; left: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--aske);
}
.face__hint { position: absolute; bottom: 14px; font-size: 11px; color: var(--aske); letter-spacing: .04em; }

.flash__word { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 6vw, 46px); line-height: 1.1; margin: 0; letter-spacing: -.3px; }
.flash__ctx { font-size: 14px; color: var(--stoev); font-style: italic; max-width: 420px; }
.flash__tr { font-size: 24px; color: var(--papir); font-weight: 700; }
.flash__infl { font-size: 12.5px; color: var(--aske); }
.flash__sent { font-size: 14.5px; color: var(--stoev); max-width: 420px; }
.flash__note { font-size: 12.5px; color: var(--syren); max-width: 420px; }

.rate {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px;
  opacity: 0; translate: 0 6px; pointer-events: none;
  transition: opacity var(--t-std) var(--ease-soft), translate var(--t-std) var(--ease-soft);
}
.rate.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.rate button {
  padding: 12px 6px;
  background: var(--svaev); border: 1px solid transparent; border-radius: var(--r-s);
  color: var(--papir); font: 600 13px/1.2 var(--body);
  transition: all var(--t-std) var(--ease-glass);
}
.rate button:hover { transform: translateY(-2px); }
.rate button:active { transform: scale(.95); }
.rate button small { display: block; font-size: 10.5px; font-weight: 500; color: var(--aske); margin-top: 4px; }
.rate button[data-r="again"]:hover { background: rgba(223, 90, 106, .16); border-color: var(--rosen); color: #F1A9B2; }
.rate button[data-r="hard"]:hover  { background: rgba(206, 151, 51, .14); border-color: var(--trin3); color: #EBC57F; }
.rate button[data-r="good"]:hover  { background: var(--rav-dim); border-color: var(--rav); color: var(--rav-hover); }
.rate button[data-r="easy"]:hover  { background: rgba(62, 184, 162, .14); border-color: var(--soegroen); color: #8FDCCB; }

/* ---------- Seiten: Profil, Statistik, Einstellungen ---------- */
.page { max-width: 860px; }
.page__title { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 4px; }
.page__sub { font-size: 13px; color: var(--stoev); }

.profil__head { display: flex; align-items: center; gap: 18px; margin-bottom: 38px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--rav);
  background: radial-gradient(120% 120% at 30% 20%, #2A2416 0%, #1B1F27 70%);
  border: 1px solid var(--linje);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 24px rgba(245, 184, 76, .12);
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat {
  background-color: var(--glass); background-image: var(--sheen);
  border: 1px solid var(--glass-edge); border-radius: var(--r-m); padding: 18px 20px;
  backdrop-filter: blur(20px) saturate(1.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: transform var(--t-std) var(--ease-glass), box-shadow var(--t-std) var(--ease-soft);
  animation: rise var(--t-scene) var(--ease-soft) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.stat:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-1); }
.stat b { display: block; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.stat b em { font-style: normal; color: var(--rav); }
.stat span { font-size: 11.5px; color: var(--aske); }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.badge {
  background: var(--kort); border: 1px solid var(--linje); border-radius: var(--r-m);
  padding: 18px 16px 16px; text-align: center;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  transition: transform var(--t-std) var(--ease-glass), box-shadow var(--t-std) var(--ease-soft);
  animation: rise var(--t-scene) var(--ease-soft) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.badge__glyph {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--rav); margin-bottom: 6px;
  background: var(--rav-dim);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.badge b { font-family: var(--display); font-weight: 600; font-size: 15px; }
.badge span { font-size: 11.5px; color: var(--aske); line-height: 1.45; }
.badge.is-locked { opacity: .5; border-style: dashed; filter: saturate(.3); }
.badge.is-locked:hover { opacity: .75; filter: saturate(.7); }

.placeholder {
  border: 1px dashed var(--linje); border-radius: var(--r-m);
  padding: 30px 26px; color: var(--stoev); font-size: 13.5px; line-height: 1.7;
  background: rgba(27, 31, 39, .35);
}
.placeholder strong { display: block; font-family: var(--display); font-size: 16px; color: var(--papir); margin-bottom: 6px; }
.placeholder .act { margin-top: 14px; }

/* ---------- So geht's ---------- */
.steps__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 20px 22px; border: 1px solid var(--glass-edge); border-radius: var(--r-l);
  background: var(--glass); background-image: var(--sheen); backdrop-filter: blur(14px);
  animation: rise var(--t-scene) var(--ease-soft) backwards;
}
.step:nth-child(2) { animation-delay: 60ms; } .step:nth-child(3) { animation-delay: 120ms; }
.step__n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 19px; color: var(--blaek); background: var(--rav);
}
.step h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 6px 0 6px; }
.step p { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: var(--stoev); }
.step p:last-child { margin-bottom: 0; }
.step a { color: var(--rav); }
.step code { font-family: var(--mono); font-size: 12.5px; background: var(--svaev); padding: 1px 6px; border-radius: var(--r-s); color: var(--papir); }
.step__hint { font-size: 13px; color: var(--aske); }
.step__rule { padding: 10px 12px; border-left: 3px solid var(--rav); background: var(--rav-dim); border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--papir); }
.steps__after { margin: 18px 0 0; font-size: 13.5px; color: var(--stoev); }
.steps__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.steps__actions .act { margin-top: 0; }

/* Einwilligung in Forschungsdaten (NIK-14): aktives Häkchen, sofort gespeichert */
.consent {
  margin-top: 22px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  border: 1px solid var(--glass-edge); border-radius: var(--r-l);
  background: var(--glass); background-image: var(--sheen);
}
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--rav); cursor: pointer; }
.consent__title { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0 0 6px; cursor: pointer; color: var(--papir); }
.consent p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--stoev); }
.consent a { color: var(--rav); }
.consent__state { display: block; margin-top: 8px; font-size: 12px; color: var(--aske); }

/* Schalter (Einstellungen) — gel-artig wie im Popup */
.sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: var(--aske); }
.sw input {
  appearance: none; -webkit-appearance: none; width: 36px; height: 21px; margin: 0; cursor: pointer;
  border-radius: 999px; background: var(--linje); position: relative; transition: background var(--t-std) var(--ease-soft);
}
.sw input::after {
  content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 999px;
  background: var(--stoev); box-shadow: 0 1px 3px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35);
  transition: all var(--t-std) var(--ease-glass);
}
.sw input:checked { background: var(--rav); }
.sw input:checked::after { left: 17.5px; background: #fff; }
.sw input:disabled { opacity: .4; cursor: default; }
.sw.is-soon { opacity: .45; cursor: default; }
.empty .act { margin-top: 16px; }

/* ---------- Toast (Extension verbunden u. ä.) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  padding: 10px 16px; border-radius: var(--r-m); font-size: 13px; color: var(--papir);
  background: var(--glass-strong); background-image: var(--sheen); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-1);
  opacity: 0; pointer-events: none; transition: opacity var(--t-std) var(--ease-soft), transform var(--t-std) var(--ease-glass);
  z-index: 50;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Zustände & Fuß ---------- */
.empty {
  border: 1px dashed var(--linje); border-radius: var(--r-m);
  padding: 48px 24px; text-align: center; color: var(--stoev);
  animation: rise var(--t-scene) var(--ease-soft) backwards;
}
.empty strong { display: block; font-family: var(--display); font-size: 17px; color: var(--papir); margin-bottom: 6px; }

.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 26px;
  padding: 24px clamp(16px, 3vw, 36px) 32px;
  border-top: 1px solid var(--linje);
  font-size: 12px; color: var(--aske);
}
.foot__brand b { color: var(--stoev); font-weight: 600; }
.foot__links { display: flex; gap: 20px; }
.foot__links a {
  color: var(--aske); text-decoration: none;
  transition: color var(--t-micro) var(--ease-soft);
}
.foot__links a:hover { color: var(--rav); }


/* ---------- Suche ---------- */
.search { position: relative; display: flex; align-items: center; }
.search__ic { position: absolute; left: 12px; pointer-events: none; color: var(--aske); }
.search input {
  width: 170px; padding: 8px 12px 8px 33px; border-radius: 10px;
  background-color: var(--glass); background-image: var(--sheen);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: var(--papir); font: 500 13px var(--body);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: width var(--t-scene) var(--ease-glass),
              border-color var(--t-std) var(--ease-soft),
              box-shadow var(--t-std) var(--ease-soft);
}
.search input::placeholder { color: var(--aske); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus {
  outline: none; width: 250px; border-color: var(--rav);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 3px var(--rav-dim);
}
.sresults {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 40;
  width: 300px; max-height: 330px; overflow: auto; padding: 6px;
  border-radius: var(--r-m);
  background-color: var(--glass-strong); background-image: var(--sheen);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-2);
}
.sresults button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; color: var(--papir);
  padding: 9px 10px; border-radius: var(--r-s);
  font: 500 13px/1.4 var(--body);
  transition: background var(--t-micro) var(--ease-soft);
}
.sresults button:hover { background: var(--svaev); }
.sresults small { display: block; color: var(--aske); font-size: 11px; }
.sresults .none { padding: 12px; color: var(--aske); font-size: 12.5px; }

/* ---------- Profil + Liquid-Morph-Menü ---------- */
.profile { position: relative; }
.avatar--sm {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 20%, #2A2416 0%, #1B1F27 70%);
  border: 1px solid var(--linje); color: var(--rav); cursor: pointer;
  box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: all var(--t-std) var(--ease-glass);
}
.avatar--sm:hover { border-color: var(--rav); transform: scale(1.06); }
.avatar--sm.is-open { border-color: var(--rav); box-shadow: var(--glow); }
.pmenu {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 40;
  min-width: 226px; padding: 8px; border-radius: var(--r-l);
  background-color: var(--glass-strong); background-image: var(--sheen);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-2);
  transform-origin: top right;
  opacity: 0; translate: 0 -6px; scale: .92; filter: blur(6px); visibility: hidden;
  transition: opacity var(--t-std) var(--ease-soft),
              translate var(--t-scene) var(--ease-glass),
              scale var(--t-scene) var(--ease-glass),
              filter var(--t-std) var(--ease-soft),
              visibility 0s linear var(--t-std);
}
.pmenu.open { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); visibility: visible; transition-delay: 0s; }
.pmenu button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: none; border: 0; color: var(--stoev);
  font: 500 13.5px/1 var(--body); padding: 11px 12px; border-radius: var(--r-s);
  text-align: left;
  transition: all var(--t-micro) var(--ease-soft);
}
.pmenu button:hover { background: var(--svaev); color: var(--papir); }
.pmenu button svg { color: var(--aske); flex: none; transition: color var(--t-micro) var(--ease-soft); }
.pmenu button:hover svg { color: var(--rav); }

/* ---------- Spotlight: zuletzt geschaut ---------- */
.spot {
  position: relative; min-height: clamp(300px, 36vw, 420px);
  border-radius: var(--r-l); overflow: hidden;
  display: flex; align-items: flex-end;
  margin-bottom: 26px;
  border: 1px solid var(--linje);
  background:
    radial-gradient(340px 130px at 72% 30%, rgba(245,184,76,.1), transparent 70%),
    radial-gradient(130% 110% at 70% 0%, #232A3A 0%, var(--dyb) 100%);
  box-shadow: var(--shadow-2);
  animation: rise var(--t-scene) var(--ease-soft) backwards;
}
.spot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(78deg, rgba(14,16,21,.94) 0%, rgba(14,16,21,.6) 45%, rgba(14,16,21,.08) 78%),
    linear-gradient(transparent 50%, rgba(14,16,21,.92));
}
.spot__body {
  position: relative; z-index: 2; max-width: 660px;
  padding: 36px clamp(22px, 4vw, 44px) 32px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.spot__kicker {
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rav);
}
.spot__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.5px; margin: 0;
}
.spot__meta { font-size: 13px; color: var(--stoev); font-variant-numeric: tabular-nums; }
.spot__acts { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.spot .act { margin-top: 0; text-decoration: none; }
.act--glass {
  background-color: var(--glass); background-image: var(--sheen); color: var(--papir);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.act--glass:hover:not(:disabled) {
  background-color: rgba(35, 40, 52, .7); color: var(--papir);
  box-shadow: inset 0 1px 0 var(--glass-hi); transform: translateY(-1px);
}
.stats--home { margin-bottom: 36px; }

/* ---------- Staffel-Reihen: eine Reihe pro Serie, horizontal scrollbar ---------- */
.sect__nav { margin-left: auto; display: flex; gap: 8px; }
.row-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--glass-edge);
  background-color: var(--glass); background-image: var(--sheen);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  color: var(--stoev); font-size: 15px; line-height: 1;
  box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: all var(--t-std) var(--ease-glass);
}
.row-btn:hover { color: var(--papir); transform: scale(1.08); }
.row-btn:active { transform: scale(.92); }

.srow { position: relative; }
.scroller {
  overflow-x: auto; scrollbar-width: none;
  cursor: grab; padding: 4px 2px 8px; scroll-behavior: smooth;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.scards { display: flex; gap: var(--gap); width: max-content; }
.scards .card { width: 238px; flex: none; }

.fade {
  position: absolute; top: 0; bottom: 8px; width: 64px;
  pointer-events: none; z-index: 3; opacity: 0;
  transition: opacity var(--t-std) var(--ease-soft);
}
.fade--r { right: 0; background: linear-gradient(to left, var(--nat), transparent); }
.fade--l { left: 0; background: linear-gradient(to right, var(--nat), transparent); }
.sect.can-r .fade--r { opacity: 1; }
.sect.can-l .fade--l { opacity: 1; }

/* ---------- Karteikarten: Bogen-Karussell ---------- */
.learn { max-width: 760px; margin: 0 auto; }
.lc { position: relative; }
.lc-track { position: relative; height: 410px; perspective: 1400px; }
.lc-card {
  position: absolute; left: 50%; top: 40%;
  width: 360px; height: 232px; margin: -116px 0 0 -180px;
  cursor: pointer; border-radius: var(--r-l);
  background: var(--sheen), linear-gradient(165deg, rgba(42,48,62,.5), rgba(27,31,39,.44));
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-1);
  transition: transform 620ms var(--ease-soft), opacity 620ms var(--ease-soft),
              box-shadow var(--t-std) var(--ease-soft);
  will-change: transform;
}
.lc-card.is-active { box-shadow: inset 0 1px 0 var(--glass-hi), var(--glow), var(--shadow-2); }
.lc-flip {
  position: absolute; inset: 0; border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 640ms var(--ease-glass);
}
.lc-card.is-flipped .lc-flip { transform: rotateY(180deg); }
.lc-f, .lc-b {
  position: absolute; inset: 0; border-radius: inherit;
  backface-visibility: hidden;
  padding: 22px 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; text-align: center;
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
}
.lc-b { transform: rotateY(180deg); background: var(--sheen), linear-gradient(165deg, rgba(48,54,70,.92), rgba(29,33,41,.9)); }
.lc-label {
  position: absolute; top: 12px; left: 16px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--aske);
}
.lc-word { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -.3px; }
.lc-ctx, .lc-sent {
  font-size: 13px; color: var(--stoev); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lc-ctx { font-style: italic; }
.lc-tr { font-size: 24px; font-weight: 700; }
.lc-boej { font-size: 13px; color: var(--papir); opacity: .85; font-variant-numeric: tabular-nums; }
.lc-infl { font-size: 11.5px; color: var(--aske); }
.lc-note {
  font-size: 12px; color: var(--syren);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lc-note--aske { color: var(--aske); -webkit-line-clamp: 1; }

/* Eben bewertete Karten färben sich leicht: Nochmal = Rosen, Leicht = Søgrøn */
.lc-card.was-again {
  background: var(--sheen), linear-gradient(165deg, rgba(94,42,52,.55), rgba(43,26,31,.5));
  border-color: rgba(223, 90, 106, .4);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 4px 20px rgba(223, 90, 106, .12);
}
.lc-card.was-easy {
  background: var(--sheen), linear-gradient(165deg, rgba(35,74,66,.55), rgba(23,42,38,.5));
  border-color: rgba(62, 184, 162, .4);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 4px 20px rgba(62, 184, 162, .12);
}
.lc-count {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  text-align: center; pointer-events: none;
}
.lc-count b { font-family: var(--display); font-size: 34px; font-weight: 600; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.lc-count span { font-size: 10.5px; color: var(--aske); }
.lc-hint { text-align: center; font-size: 11.5px; color: var(--aske); margin-top: 14px; }

/* ---------- Tooltip (global, Glas) ---------- */
.tip {
  position: fixed; z-index: 90; max-width: 260px; pointer-events: none;
  background-color: var(--glass-strong); background-image: var(--sheen);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-edge); border-radius: var(--r-s);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-1);
  padding: 8px 11px; font-size: 12px; color: var(--stoev); line-height: 1.5;
}
.tip b { color: var(--papir); font-variant-numeric: tabular-nums; }

/* ---------- Statistik ---------- */
.page--wide { max-width: none; }
.charts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); margin-top: 22px; }
.chart--full { grid-column: 1 / -1; }
.chart {
  background: var(--kort); border: 1px solid var(--linje); border-radius: var(--r-m);
  padding: 16px 18px 12px;
  animation: rise var(--t-scene) var(--ease-soft) backwards;
}
.chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.chart__title { font-family: var(--display); font-weight: 600; font-size: 16.5px; margin: 0; }
.chart__sub { font-size: 11.5px; color: var(--aske); }
.chart svg { display: block; width: 100%; height: auto; }
.chart svg text { font-family: var(--body); }
.chart .ax { fill: var(--aske); font-size: 10.5px; }
.chart .val { fill: var(--stoev); font-size: 11px; font-weight: 600; }
.chart .lbl { fill: var(--stoev); font-size: 11.5px; }
.chart .gridline { stroke: var(--linje); stroke-width: 1; }
/* Admin-Blick (NIK-26): Tabellen und Pillen auf Glas */
.stats--kpi { margin: 4px 0 6px; }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--aske); padding: 8px 10px; border-bottom: 1px solid var(--linje); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--linje); font-variant-numeric: tabular-nums; vertical-align: top; color: var(--stoev); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--papir); }
.tbl th.num, .tbl td.num { text-align: right; white-space: nowrap; }
.tbl td small { color: var(--aske); font-size: 11px; }
.tbl td.msg { max-width: 460px; }
.tbl td.msg code { font-size: 11.5px; color: var(--papir); word-break: break-word; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--linje); color: var(--aske); white-space: nowrap; }
.pill--on { color: var(--rav); border-color: var(--rav); background: var(--rav-dim); }
.admin select { background: var(--dyb); border: 1px solid var(--linje); border-radius: 8px; color: var(--papir); font: 12.5px var(--body); padding: 5px 9px; }
.admin__tabs { margin-top: 14px; }
.admin .budgetbar { display: block; width: 100%; height: auto; }
/* Kosten-Regler (NIK-62): Formular auf der Kartenfläche, Overrides in der Tabelle */
.frm h4 { font-family: var(--display); font-weight: 600; font-size: 14px; margin: 18px 0 8px; color: var(--papir); }
.frm__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 16px; }
.frm__grid label, .frm__sw { display: grid; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--aske); }
.frm__sw span { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--stoev); font-size: 12.5px; min-height: 36px; }
.frm__sw input { accent-color: var(--rav); width: 16px; height: 16px; }
.frm input[type=number], .frm input[type=text], .frm input[type=url], .frm input[type=date], .ovr input {
  background: var(--dyb); border: 1px solid var(--linje); border-radius: 8px; color: var(--papir);
  font: 13.5px/1.4 var(--body); padding: 7px 10px; text-transform: none; letter-spacing: 0; font-weight: 400; width: 100%;
}
.frm input:focus, .ovr input:focus { outline: none; border-color: var(--rav); box-shadow: 0 0 0 3px var(--rav-dim); }
.frm input[type=date] { color-scheme: dark; }   /* der Kalender-Knopf von Chrome soll zur Nacht passen */
.frm .tbl input[type=number] { width: 96px; padding: 4px 8px; font-size: 12.5px; }
.frm__add { display: flex; gap: 8px; margin-top: 10px; max-width: 460px; }
.frm__add input { flex: 1; min-width: 0; }
.frm__add .act { flex: none; margin: 0; padding: 7px 12px; white-space: nowrap; }
.frm .tbl .act, .ovr .act { margin: 0; padding: 4px 9px; font-size: 12px; }
.ovr { white-space: nowrap; }
/* Nutzer-Dashboard (NIK-63): Ampel-Kacheln und Kohorten-Heatmap */
.kpi b { display: flex; align-items: center; gap: 10px; }
.kpi__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--aske); flex: none; box-shadow: 0 0 0 3px var(--dyb); }
.kpi--green .kpi__dot { background: var(--soegroen); } .kpi--amber .kpi__dot { background: var(--rav); } .kpi--red .kpi__dot { background: var(--rosen); }
.cohorts td.cell { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--papir); background: var(--c, var(--dyb)); border: 2px solid var(--kort); border-radius: 6px; min-width: 40px; }
.cohorts td.cell--partial { outline: 1px dashed var(--aske); outline-offset: -3px; }
.cohorts td.cell--none { background: transparent; }
.ovr input { width: 110px; padding: 4px 8px; font-size: 12.5px; margin-right: 6px; }
/* Glasblatt über der Seite (Feedback, NIK-18) — dieselbe Form wie das Anmeldeblatt der Landing Page */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(8, 9, 13, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet[hidden] { display: none; }
.sheet__box {
  width: min(440px, 100%); padding: 22px;
  background-color: rgba(27, 31, 39, .86); background-image: var(--sheen);
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid var(--glass-edge); border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 24px 70px rgba(0, 0, 0, .6);
  animation: sheet-in .42s var(--ease-glass) both;
}
@keyframes sheet-in { from { opacity: 0; translate: 0 14px; scale: .95; filter: blur(6px); } to { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__head h2 { font: 600 20px/1 var(--display); margin: 0; letter-spacing: -.3px; }
.sheet .x { background: none; border: 0; color: var(--aske); font-size: 20px; line-height: 1; padding: 3px 7px; border-radius: var(--r-s); cursor: pointer; }
.sheet .x:hover { color: var(--papir); background: var(--svaev); }
.sheet__hint { margin: 10px 0 8px; font-size: 12.5px; color: var(--stoev); line-height: 1.5; }
.sheet .field { margin-bottom: 10px; }
.sheet textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; min-height: 110px;
  color: var(--papir); background: var(--dyb); border: 1px solid var(--linje); border-radius: var(--r-s);
  transition: border-color var(--t-std) var(--ease-soft), box-shadow var(--t-std) var(--ease-soft);
}
.sheet textarea:focus { outline: none; border-color: var(--rav); box-shadow: 0 0 0 3px var(--rav-dim); }
.field--row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--stoev); }
.fb__file { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--stoev); }
.fb__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fb__file span { border: 1px solid var(--linje); border-radius: var(--r-s); padding: 6px 10px; transition: border-color var(--t-micro) var(--ease-soft), color var(--t-micro) var(--ease-soft); }
.fb__file:hover span, .fb__file:focus-within span { border-color: var(--rav); color: var(--papir); }
.fb__filename { font-size: 12px; color: var(--aske); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.fb__reply { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--stoev); margin: 4px 0 6px; cursor: pointer; }
.fb__reply input { accent-color: var(--rav); width: 15px; height: 15px; }
.sheet__terms { margin: 12px 0 0; font-size: 11.5px; color: var(--aske); line-height: 1.5; }
.sheet__terms a { color: var(--stoev); text-decoration: underline; text-decoration-color: var(--linje); }
.sheet__terms a:hover { color: var(--rav); }
.foot__links a[data-feedback] { color: var(--rav); }

/* Umfrage-Banner (NIK-29): eine Zeile über der Seite, Glas mit Bernstein-Kante */
.survey { display: flex; align-items: center; gap: 14px; margin: 14px clamp(16px, 3vw, 36px) 0; padding: 10px 14px; background-color: var(--glass-strong); background-image: var(--sheen); border: 1px solid var(--glass-edge); border-left: 3px solid var(--rav); border-radius: var(--r-m); font-size: 13.5px; color: var(--stoev); animation: rise var(--t-scene) var(--ease-soft) backwards; }
.survey__text { flex: 1; min-width: 0; }
.survey__text b { color: var(--papir); }
.survey .act { margin: 0; padding: 7px 14px; font-size: 13px; text-decoration: none; }
.survey .x { background: none; border: 0; color: var(--aske); font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: var(--r-s); cursor: pointer; }
.survey .x:hover { color: var(--papir); background: var(--svaev); }

/* Feedback-Liste im Überblick (NIK-18): Logauszug einklappbar */
.ad-log { margin-top: 6px; font-size: 11.5px; color: var(--aske); }
.ad-log summary { cursor: pointer; color: var(--stoev); }
.ad-log code { display: block; margin-top: 4px; font-size: 11px; color: var(--stoev); white-space: pre-wrap; }

/* Schalter (NIK-27): Kill-Switch je Adapter — „aus“ in Rosen, Hinweis im Überblick, Notiz-Feld in der Tabelle */
.pill--off { color: var(--rosen); border-color: var(--rosen); background: rgba(223, 90, 106, .12); }
.admin__paused { margin: 12px 0 0; font-size: 13px; color: var(--stoev); }
.admin__paused a { color: var(--rav); }
.frm .tbl .sw-note { width: 100%; min-width: 220px; margin: 0; }
.frm .tbl .frm__sw span { min-height: 0; }
.frm__grid label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--aske); font-size: 11.5px; }

.cbtns { display: flex; gap: 6px; }
.cbtn {
  background: none; border: 1px solid var(--linje); border-radius: 7px; color: var(--aske);
  font: 600 11px/1 var(--body); padding: 5px 10px; cursor: pointer;
  transition: all var(--t-micro) var(--ease-soft);
}
.cbtn:hover { color: var(--papir); border-color: var(--aske); }
.cbtn.is-active { color: var(--rav); border-color: var(--rav); background: var(--rav-dim); }
[data-tip] { cursor: default; }

/* ---------- Auszeichnungen ---------- */
.badge__medal { width: 52px; height: 52px; margin-bottom: 4px; }
.badge.is-locked .badge__medal { filter: grayscale(1) brightness(.75); opacity: .7; }
.badge__bar { width: 100%; height: 3px; background: var(--linje); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.badge__bar span { display: block; height: 100%; background: var(--rav); border-radius: 2px; }
.badge.is-locked .badge__bar span { background: var(--aske); }
.badge__prog { font-size: 10.5px; color: var(--aske); margin-top: 4px; font-variant-numeric: tabular-nums; }
.badges__head { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 14px; }
.badges__count { font-size: 12.5px; color: var(--aske); }
.badges__count b { color: var(--rav); }

/* ---------- Profil ---------- */
.pf-learn { margin-top: 8px; font-size: 13px; color: var(--stoev); }
.pf-learn b { color: var(--rav); }
.pf-head-act { margin-left: auto; align-self: flex-start; }
.pf-form { display: grid; gap: 10px; max-width: 460px; margin: 6px 0 26px; }
.pf-form label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--aske); }
.pf-form input, .pf-form textarea {
  background: var(--dyb); border: 1px solid var(--linje); border-radius: 8px;
  color: var(--papir); font: 14px/1.5 var(--body); padding: 9px 12px; resize: vertical;
  transition: border-color var(--t-std) var(--ease-soft), box-shadow var(--t-std) var(--ease-soft);
}
.pf-form input:focus, .pf-form textarea:focus { outline: none; border-color: var(--rav); box-shadow: 0 0 0 3px var(--rav-dim); }
.pf-facts { margin-top: 26px; }

/* Self-Report „Dein Dänisch“ (NIK-20): vier Felder, zweispaltig, Glasfläche wie der Einwilligungsblock */
.sr { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--glass-edge); border-radius: var(--r-l); background: var(--glass); background-image: var(--sheen); }
.sr h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0 0 4px; color: var(--papir); }
.sr > p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--stoev); }
.sr > p a { color: var(--rav); }
.sr__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.sr__grid label { display: grid; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--aske); }
.sr__grid select, .sr__grid input {
  background: var(--dyb); border: 1px solid var(--linje); border-radius: 8px; color: var(--papir);
  font: 14px/1.4 var(--body); padding: 8px 11px; text-transform: none; letter-spacing: 0; font-weight: 400;
  transition: border-color var(--t-std) var(--ease-soft), box-shadow var(--t-std) var(--ease-soft);
}
.sr__grid select:focus, .sr__grid input:focus { outline: none; border-color: var(--rav); box-shadow: 0 0 0 3px var(--rav-dim); }
.sr__foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.sr__foot .act { margin: 0; padding: 8px 16px; }
.sr__state { font-size: 12px; color: var(--aske); }
@media (max-width: 560px) { .sr__grid { grid-template-columns: 1fr; } }

/* ---------- Einstellungen ---------- */
.set { max-width: 720px; }
.set__group {
  background: var(--kort); border: 1px solid var(--linje); border-radius: var(--r-m);
  padding: 16px 18px; margin-bottom: 14px;
  animation: rise var(--t-scene) var(--ease-soft) backwards;
}
.set__group h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0 0 4px; }
.set__group > p { font-size: 12.5px; color: var(--aske); margin: 0 0 12px; }
.set__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--linje);
}
.set__row > span { font-size: 13px; color: var(--stoev); }
.set__row > b { font-size: 13px; color: var(--papir); font-weight: 600; word-break: break-all; text-align: right; }
.set__row a.act { text-decoration: none; }
.set__row small { display: block; font-size: 11px; color: var(--aske); margin-top: 1px; }
.soon {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--syren); background: rgba(157, 137, 232, .13);
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.is-soon { opacity: .45; pointer-events: none; }
.set select, .set input[type=text] {
  background: var(--dyb); border: 1px solid var(--linje); border-radius: 8px;
  color: var(--papir); font: 13px var(--body); padding: 7px 10px; min-width: 200px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
