/* FREDERIX/MFE 03.10.2026 - Seiten "85 IT-Fehler" (Flugschreiber) und "42 IT-Fragen" (Weltall) */

.list-page { --acc: var(--sign); }
.p85 { --acc: #FF7A1A; }
.p42 { --acc: #7CF7E4; }

.l-hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); overflow: hidden; border-bottom: 1px solid var(--line); }
.l-hero .kicker { color: var(--acc); } .l-hero .kicker::before { background: var(--acc); }
.l-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 18px; }
.l-hero h1 { font-weight: 800; font-size: clamp(44px, 6.6vw, 96px); line-height: .92; text-transform: uppercase; }
.l-hero h1 .y { color: var(--acc); }
.l-hero h1 .t { color: var(--sign); }
/* 42: "Die Antwort ist 42." immer in einer Zeile. Die Zeile ist 7,86 x Schriftgroesse breit (gemessen),
   also Schrift an der Spaltenbreite ausrichten (12,4 % der Spalte, mit Reserve) */
.p42 .l-hero-grid > div:first-child { container-type: inline-size; }
.p42 .l-hero h1 { font-size: min(clamp(44px, 6.6vw, 96px), 12.4cqi); }
.p42 .l-hero h1 .l1 { display: block; white-space: nowrap; }
.l-hero h1 .huge { display: block; font-size: 1.9em; line-height: .8; color: var(--acc); letter-spacing: -.01em; }
.l-lead { color: #C9D2DD; font-size: 19px; margin-top: 22px; max-width: 640px; }
.l-hero .btns, .quote .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Flugschreiber */
.blackbox { justify-self: center; width: min(100%, 360px); aspect-ratio: 4 / 5; border-radius: 18px; padding: 22px; background: repeating-linear-gradient(135deg, #FF7A1A 0 22px, #F06A0C 22px 44px); box-shadow: inset 0 0 0 6px rgba(0,0,0,.15), 0 40px 80px -30px rgba(255, 122, 26, .45); color: #1B0E05; display: flex; flex-direction: column; gap: 10px; transform: rotate(-3deg); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-1deg) translateY(-8px); } }
.bb-top { display: flex; justify-content: space-between; font-family: var(--cond); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; background: #1B0E05; color: #FF9A4D; padding: 8px 12px; border-radius: 6px; }
.bb-num { display: flex; align-items: baseline; gap: 12px; background: rgba(255,255,255,.88); border-radius: 8px; padding: 8px 14px; font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; }
.bb-num span { font-weight: 800; font-size: 46px; line-height: 1; min-width: 60px; }
.bb-foot { margin-top: auto; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: #1B0E05; }

.l-sec { padding: clamp(64px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.l-h2 { font-weight: 800; font-size: clamp(36px, 4.6vw, 64px); text-transform: uppercase; line-height: .95; }
.l-h2 .y { color: var(--acc); }
.l-sub { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 760px; }
.top10 { list-style: none; counter-reset: t; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 28px; }
.top10 li { counter-increment: t; }
.top10 a { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s; }
.top10 a::before { content: counter(t, decimal-leading-zero); font-family: var(--cond); font-weight: 800; font-size: 30px; color: var(--acc); }
.top10 a:hover { border-color: var(--acc); transform: translateX(4px); }

/* Werkzeuge */
.tools { position: sticky; top: 72px; z-index: 5; background: rgba(10, 12, 16, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.chips .lbl { font-family: var(--cond); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--muted); margin-right: 4px; }
.chip { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; border: 1.5px solid #3A4250; background: transparent; color: var(--text); cursor: pointer; }
.chip small { color: var(--muted); font-size: 12px; margin-left: 2px; }
.chip:hover { border-color: var(--acc); }
.chip[aria-pressed="true"], .chip.on { background: var(--acc); border-color: var(--acc); color: #111; }
.chip[aria-pressed="true"] small, .chip.on small { color: #333; }
.hits { font-size: 14px; color: var(--muted); margin-top: 8px; }
.none { color: var(--muted); padding: 24px 0; }

/* Kategorien + Fehlerkarten */
.cat { margin-top: 36px; }
.cat[hidden] { display: none; }
.cat-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--acc); }
.cat-h small { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .12em; color: var(--muted); }
.errs, .qas { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.errs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.err { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 12px; background: var(--panel); border: 1.5px solid var(--line); transition: border-color .2s, background-color .2s, transform .2s; scroll-margin-top: 220px; }
.err[hidden] { display: none; }
.err:target { border-color: var(--sign); box-shadow: 0 0 0 3px rgba(255, 204, 0, .25); }
.err.is-mine { border-color: var(--acc); background: #1E150F; }
.err-top { display: flex; justify-content: space-between; align-items: center; }
.err .nr { font-family: var(--cond); font-weight: 800; font-size: 22px; color: var(--acc); letter-spacing: .02em; }
.sev { display: inline-flex; align-items: center; gap: 3px; font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sev i { width: 6px; height: 14px; border-radius: 2px; background: #2E3541; }
.sev span { margin-left: 6px; }
.sev3 .sev i { background: var(--stop); } .sev3 .sev span { color: #FF9C9C; }
.sev2 .sev i:nth-child(-n+2) { background: var(--amber); } .sev2 .sev span { color: #FFD08A; }
.sev1 .sev i:first-child { background: var(--sign); }
.err h3 { font-family: var(--body); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -.005em; }
.err .prob { color: #C9D2DD; font-size: 15.5px; }
.err .fix { font-size: 15.5px; color: #CFFAF3; padding: 10px 12px; border-radius: 8px; background: rgba(61, 220, 132, .07); border: 1px solid rgba(61, 220, 132, .2); }
.err .fix b { color: var(--go); font-weight: 600; }
.err-act { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.mine { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 6px; border: 1.5px solid #3A4250; background: transparent; color: var(--text); cursor: pointer; }
.mine:hover { border-color: var(--acc); }
.mine[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #111; }
.mine[aria-pressed="true"]::before { content: "✓ "; }
.share { font-family: var(--cond); font-size: 14px; color: var(--muted); text-decoration: none; }
.share:hover { color: var(--sign); }

/* Bilanz-Leiste */
.tally { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #1B0E05; border-top: 2px solid var(--acc); transform: translateY(110%); transition: transform .3s ease; }
.tally.on { transform: none; }
.tally .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.t-l { font-family: var(--cond); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.t-l b { color: var(--acc); font-size: 26px; }
.t-s { color: #D8C2B0; font-size: 16px; }
.t-r { display: flex; gap: 8px; flex-wrap: wrap; }

/* Ende */
.end-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.end-links { display: grid; gap: 10px; }
.end-card { display: block; padding: 18px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.end-card:hover { border-color: var(--acc); transform: translateX(4px); }
.end-card b { display: block; font-family: var(--cond); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.end-card span { color: var(--muted); font-size: 15.5px; }

/* ---------- 42: Weltall ---------- */
.space { background: radial-gradient(70% 70% at 80% 30%, rgba(124, 247, 228, .12), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(77, 168, 240, .14), transparent 60%), #05070B; }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 70%, #cfe 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 75% 55%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 85%, #bde 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 65% 90%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 20% 85%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 85% 10%, #fff 50%, transparent 51%);
  background-size: 420px 420px; animation: drift 120s linear infinite; }
@keyframes drift { to { background-position: -420px 210px; } }
.space .wrap { position: relative; }
.orbit { position: relative; width: min(100%, 380px); aspect-ratio: 1; justify-self: center; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(124, 247, 228, .3); animation: spin 40s linear infinite; }
.orbit .r2 { inset: 14%; border-color: rgba(255, 204, 0, .3); animation-duration: 28s; animation-direction: reverse; }
.orbit .r3 { inset: 28%; border-color: rgba(77, 168, 240, .35); animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }
.core42 { position: absolute; inset: 34%; border-radius: 50%; color: #05070B; background: radial-gradient(circle at 35% 30%, #FFF6B3, #FFCC00 45%, #C98A00); box-shadow: 0 0 60px rgba(255, 204, 0, .45); }
/* Ziffern exakt mittig, unabhaengig von Browser und Schriftmetrik: SVG-Text mit fester Grundlinie.
   Barlow Condensed 800: Ziffern 0,708 der Schriftgroesse hoch, keine Unterlaenge (gemessen 04.10.2026)
   -> bei font-size 72 im 100er-Raster liegt die Grundlinie bei 50 + 0,354 * 72 = 75,5 */
.core42 svg { display: block; width: 100%; height: 100%; overflow: visible; }
.core42 text { font-family: var(--cond); font-weight: 800; font-size: 72px; fill: currentColor; }
.moon { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #7CF7E4; box-shadow: 0 0 12px #7CF7E4; top: 50%; left: 50%; margin: -7px; }
.m1 { animation: orb1 12s linear infinite; } .m2 { background: #4DA8F0; box-shadow: 0 0 12px #4DA8F0; animation: orb2 18s linear infinite; } .m3 { width: 10px; height: 10px; margin: -5px; background: #fff; animation: orb3 8s linear infinite; }
/* Bahnradien = Ringradien (Ring 1 = halbe Orbit-Breite, Ring 2 = 72 %, Ring 3 = 44 %) */
.orbit { --o1: 190px; --o2: 137px; --o3: 84px; }
@keyframes orb1 { from { transform: rotate(0) translateX(var(--o1)) rotate(0); } to { transform: rotate(360deg) translateX(var(--o1)) rotate(-360deg); } }
@keyframes orb2 { from { transform: rotate(120deg) translateX(var(--o2)); } to { transform: rotate(-240deg) translateX(var(--o2)); } }
@keyframes orb3 { from { transform: rotate(240deg) translateX(var(--o3)); } to { transform: rotate(600deg) translateX(var(--o3)); } }
.p42 .tools .hint { color: var(--muted); font-size: 15px; }
.meter { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #1A1F27; margin-top: 10px; }
.meter span { display: block; width: 0; transition: width .4s ease; }
[data-meter-ja] { background: var(--go); } [data-meter-vage] { background: var(--amber); } [data-meter-nein] { background: var(--stop); }
.qas { gap: 10px; }
.qa { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 12px; background: var(--panel); border: 1.5px solid var(--line); scroll-margin-top: 200px; transition: border-color .2s; }
.qa[data-state="ja"] { border-color: rgba(61, 220, 132, .55); }
.qa[data-state="vage"] { border-color: rgba(255, 176, 32, .55); }
.qa[data-state="nein"] { border-color: rgba(255, 90, 90, .55); }
.qn { font-family: var(--cond); font-weight: 800; font-size: 40px; line-height: 1; color: var(--acc); text-align: center; }
.qa h3 { font-family: var(--body); font-weight: 600; font-size: 19.5px; line-height: 1.3; }
.qa .good { color: #A8D9D2; font-size: 15.5px; margin-top: 8px; }
.qa .good b { color: var(--acc); font-weight: 600; }
.js .qa .good { display: none; }
.js .qa[data-state] .good, .js .qa.reveal-a .good { display: block; }
.qa-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.qa-act button { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; padding: 7px 12px; border-radius: 6px; border: 1.5px solid #3A4250; background: transparent; color: var(--text); cursor: pointer; }
.qa-act button:hover { border-color: var(--acc); }
.qa-act [data-ans="ja"][aria-pressed="true"] { background: var(--go); border-color: var(--go); color: #062A14; }
.qa-act [data-ans="vage"][aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #2A1A00; }
.qa-act [data-ans="nein"][aria-pressed="true"] { background: var(--stop); border-color: var(--stop); color: #fff; }
.quote { background: radial-gradient(60% 80% at 15% 50%, rgba(124, 247, 228, .08), transparent 70%); }
.quote-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.quote-num { font-family: var(--cond); font-weight: 800; font-size: clamp(110px, 16vw, 200px); line-height: .8; color: var(--acc); }
.quote-num small { font-size: .3em; color: var(--muted); }
.q-split { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--muted); font-size: 16px; }
.q-split b { color: var(--text); }

@media (max-width: 1100px) { .errs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .l-hero-grid, .end-grid { grid-template-columns: minmax(0, 1fr); }
  .blackbox { width: min(100%, 300px); }
  .orbit { width: min(100%, 300px); --o1: 150px; --o2: 108px; --o3: 66px; }
  .top10 { grid-template-columns: minmax(0, 1fr); }
  .tools { top: 64px; }
}
@media (max-width: 640px) {
  .errs { grid-template-columns: minmax(0, 1fr); }
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .qa { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .qn { font-size: 30px; }
  .tools { position: static; }
  .t-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { .blackbox, .stars, .orbit .ring, .moon { animation: none !important; }
  /* Monde stehen fest auf ihren Ringen statt im Mittelpunkt (auf der 42) */
  .m1 { transform: rotate(-40deg) translateX(var(--o1)); } .m2 { transform: rotate(150deg) translateX(var(--o2)); } .m3 { transform: rotate(35deg) translateX(var(--o3)); } }

/* Druck: nur markierte Fehler bzw. offene Fragen */
@media print {
  .list-page { background: #fff !important; color: #000 !important; }
  .list-page .util, .list-page .draft, .list-page .top, .list-page .foot, .list-page #xsw, .list-page .l-hero, .list-page #top10, .list-page .tools, .list-page .tally, .list-page .l-end, .list-page .quote .btns, .list-page .err-act, .list-page .qa-act { display: none !important; }
  .list-page .l-sec { padding: 0; border: 0; }
  .list-page .errs { grid-template-columns: 1fr 1fr; }
  .list-page .err, .list-page .qa { background: #fff !important; border: 1px solid #999 !important; color: #000 !important; break-inside: avoid; }
  .list-page .err h3, .list-page .err .prob, .list-page .err .fix, .list-page .qa h3, .list-page .qa .good, .list-page .cat-h, .list-page .l-h2 { color: #000 !important; }
  .list-page .err .fix { background: #fff !important; }
  .list-page.print-mine .err:not(.is-mine), .list-page.print-mine .cat.empty-print { display: none !important; }
  .list-page.print-open .qa[data-state="ja"], .list-page.print-open .cat.empty-print { display: none !important; }
  .list-page .qa .good { display: block !important; }
  .list-page .print-title { display: block !important; font-size: 18pt; font-weight: 700; margin-bottom: 6mm; }
}
.print-title { display: none; }
