/* UNBOND · Klarheit · Testauswahl als Kacheln · 16.11.2026
   Nur für klarheit.html. Flach nach dem Website-Design: Schwarz, Flächen #0d0d0d, Linien #343434.
   Akzent ist die Bereichsfarbe von Klarheit (Mauve, --ub-c). */
html body.nt-skin #tests {
  --k-surface: #0d0d0d;
  --k-surface-2: #161616;
  --k-line: #343434;
  --k-text: #e8e8e8;
  --k-text-2: #a3a3a3;
  --k-text-3: #8a8a8a;
  --k-accent: var(--ub-c, #b4869f);
  --k-bordeaux: #7d263f;
  --k-bordeaux-h: #96334f;
}

/* Abschnitt und Anweisung */
html body.nt-skin #tests .k-wahl { margin: 8px 0 32px; scroll-margin-top: 210px; }
html body.nt-skin #tests .k-label { display: block; margin: 0; color: var(--k-accent); font-size: .75rem; font-weight: 700; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; }
html body.nt-skin #tests .k-wahl > h2 { margin: 12px 0 16px; color: var(--k-text); font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 500; line-height: 1.15; text-transform: none; }
html body.nt-skin #tests .k-wahl-anw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 20px; padding: 12px 16px; border: 1px solid #5e9590; border-radius: 8px; background: rgba(94,149,144,.12); color: var(--k-text); font-size: .95rem; line-height: 1.5; }
html body.nt-skin #tests .k-wahl-anw b { color: #d2a63b; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* Kacheln */
html body.nt-skin #tests .k-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html body.nt-skin #tests .k-kachel { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 136px; padding: 16px; border: 1px solid var(--k-line); border-radius: 8px; background: var(--k-surface); color: var(--k-text); text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
html body.nt-skin #tests .k-number { color: var(--k-accent); font-size: .84rem; font-weight: 600; letter-spacing: .065em; }
html body.nt-skin #tests .k-kachel-name { font-size: 1.15rem; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; }
html body.nt-skin #tests .k-kachel-sub { color: var(--k-text-2); font-size: .9rem; line-height: 1.4; }
html body.nt-skin #tests .k-kachel-meta { margin-top: auto; padding-top: 6px; color: var(--k-text-3); font-size: .75rem; line-height: 1.5; }
html body.nt-skin #tests .k-kachel:hover { border-color: rgba(232,232,232,.6); background: var(--k-surface-2); }
html body.nt-skin #tests .k-kachel[aria-selected="true"] { border-color: #b05a76; background: var(--k-bordeaux); }
html body.nt-skin #tests .k-kachel[aria-selected="true"] :is(.k-number, .k-kachel-sub, .k-kachel-meta) { color: #f1e4ea; }
html body.nt-skin #tests .k-kachel[aria-selected="true"] .k-number::after { content: " · ausgewählt"; letter-spacing: .04em; }
html body.nt-skin #tests .k-kachel[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 0; height: 0; margin-left: -10px; border: 10px solid transparent; border-top-color: #b05a76; border-bottom-width: 0; }
html body.nt-skin #tests :is(.k-kachel, .k-start, .k-buch a):focus-visible { outline: 2px solid #fff !important; outline-offset: 4px !important; }

/* Beschreibung: alle vier liegen übereinander, nur die gewählte ist sichtbar. So bleibt die Höhe gleich. */
html body.nt-skin #tests .k-panels { margin-top: 16px; }
html body.nt-skin #tests .k-panel { scroll-margin-top: 210px; }
html body.nt-skin #tests .k-panel + .k-panel { margin-top: 16px; }
html body.nt-skin #tests .k-wahl.is-tabs .k-panels { display: grid; }
html body.nt-skin #tests .k-wahl.is-tabs .k-panel { grid-area: 1 / 1; margin-top: 0; transition: opacity .4s ease, transform .4s ease; }
html body.nt-skin #tests .k-wahl.is-tabs .k-panel[inert] { opacity: 0; visibility: hidden; transform: translateY(10px); transition: none; }

html body.nt-skin #tests .k-card { position: relative; isolation: isolate; overflow: hidden; min-height: 360px; border: 1px solid var(--k-bordeaux); border-radius: 8px; background: var(--k-surface); }
html body.nt-skin #tests .k-card::before { content: ""; position: absolute; inset: 0 0 0 54%; z-index: -2; background: var(--tile-img) center / cover no-repeat; opacity: .4; filter: grayscale(1); }
html body.nt-skin #tests .k-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0d0d0d 0%, #0d0d0d 54%, rgba(13,13,13,.75) 70%, rgba(13,13,13,.15) 100%); }
html body.nt-skin #tests .k-card-body { max-width: 66%; padding: 24px; }
html body.nt-skin #tests .k-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
html body.nt-skin #tests .k-flag { display: inline-block; padding: 3px 8px; border: 1px solid var(--k-line); border-radius: 4px; background: var(--k-surface-2); color: var(--k-text); font-size: .75rem; font-weight: 700; letter-spacing: .065em; line-height: 1.6; text-transform: uppercase; }
html body.nt-skin #tests .k-panel-frage { margin: 0 0 8px; color: var(--k-accent); font-size: .95rem; line-height: 1.4; }
html body.nt-skin #tests .k-test-title { margin: 0 0 12px; color: var(--k-text); font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
html body.nt-skin #tests .k-meta { display: block; margin-bottom: 16px; color: var(--k-text-3); font-size: .75rem; line-height: 1.6; }
html body.nt-skin #tests .k-description { margin: 0; color: var(--k-text-2); font-size: 17px; line-height: 1.6; }
html body.nt-skin #tests .k-topics { margin: 12px 0 0; color: var(--k-text-3); font-size: .75rem; line-height: 1.6; }
html body.nt-skin #tests .k-after { margin: 20px 0 0; color: var(--k-text); font-size: .92rem; line-height: 1.6; }
html body.nt-skin #tests .k-after .k-label { margin-bottom: 4px; color: var(--k-text-3); }
html body.nt-skin #tests .k-start { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; margin-top: 24px; padding: 12px 18px; border: 1px solid var(--k-bordeaux); border-radius: 4px; background: var(--k-bordeaux); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .065em; line-height: 1.5; text-decoration: none; text-transform: uppercase; transition: background-color .18s ease, border-color .18s ease; }
html body.nt-skin #tests .k-start:is(:hover, :focus-visible) { background: var(--k-bordeaux-h); border-color: var(--k-bordeaux-h); color: #fff; }
html body.nt-skin #tests .k-start svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html body.nt-skin #tests .k-announcement { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hinweis zum Buch am Seitenende */
html body.nt-skin #tests .k-buch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; margin: 48px 0 0; padding: 24px; border: 1px solid var(--k-bordeaux); border-radius: 8px; background: var(--k-surface); }
html body.nt-skin #tests .k-buch h2 { margin: 8px 0; color: var(--k-text); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.2; text-transform: none; }
html body.nt-skin #tests .k-buch p { max-width: 60ch; margin: 0; color: var(--k-text-2); font-size: .98rem; line-height: 1.6; }
html body.nt-skin #tests .k-buch-wege { display: grid; gap: 4px; justify-items: start; }
html body.nt-skin #tests .k-buch-wege .k-start { margin-top: 0; }
html body.nt-skin #tests .k-buch-lese { display: inline-flex; align-items: center; min-height: 44px; color: var(--k-text-2); font-size: .88rem; text-decoration: underline; text-underline-offset: 5px; }
html body.nt-skin #tests .k-buch-lese:hover { color: #fff; }

@media (max-width: 900px) {
  html body.nt-skin #tests .k-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.nt-skin #tests .k-kachel[aria-selected="true"]::after { content: none; }
  html body.nt-skin #tests .k-card-body { max-width: 72%; }
  html body.nt-skin #tests .k-buch { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  html body.nt-skin #tests .k-wahl-anw { margin-bottom: 14px; padding: 10px 14px; }
  html body.nt-skin #tests .k-kacheln { gap: 8px; }
  html body.nt-skin #tests .k-kachel { min-height: 104px; padding: 12px; gap: 4px; }
  html body.nt-skin #tests .k-kachel-name { font-size: 1.02rem; }
  html body.nt-skin #tests .k-kachel-sub { font-size: .84rem; line-height: 1.3; }
  html body.nt-skin #tests .k-card { min-height: 0; }
  html body.nt-skin #tests .k-card::before { inset: 0; opacity: .22; }
  html body.nt-skin #tests .k-card::after { background: linear-gradient(180deg, rgba(13,13,13,.82), rgba(13,13,13,.98)); }
  html body.nt-skin #tests .k-card-body { max-width: none; }
  html body.nt-skin #tests .k-start { width: 100%; }
  html body.nt-skin #tests .k-buch { padding: 20px 16px; }
  html body.nt-skin #tests .k-buch-wege { justify-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html body.nt-skin #tests :is(.k-kachel, .k-panel, .k-start) { transition: none !important; }
}
