/* FREDERIX/MFE 03.10.2026 - Seite 85-it-fehler.de (Flugschreiber). Seit 04.10.2026 eigene Kopie in src-85/, 42-Teile entfernt. */

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

.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); }
.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; }
.t-note { order: 3; flex-basis: 100%; font-size: 14px; color: var(--muted); }
.t-note[hidden] { display: none; }

/* 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; }

@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; }
  /* Alle markierten Fehler drucken, auch wenn Bildschirmfilter (Kategorie, Schwere, Suche) sie gerade ausblenden */
  .list-page.print-mine .err.is-mine { display: flex !important; }
  .list-page.print-mine .cat:not(.empty-print) { display: block !important; }
  .list-page.print-mine .none, .list-page.print-mine .hits { 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; }
