/* 100serien.de: ein Stylesheet fuer alle Seiten. Keine fremden Schriften,
   keine Bilder von aussen. Der Build legt die Datei mit Inhaltskennung im
   Namen ab (site.<hash>.css), sie darf deshalb dauerhaft gecacht werden. */

:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-raised: #12151a;
  --surface: #171b21;
  --border: #262c35;
  --border-strong: #343c48;
  --text: #e9ecef;
  --text-muted: #9aa3af;
  /* #808895 statt #6b7480 (bytepotato.com): der alte Wert kam auf dem
     Hintergrund nur auf 4,1:1, WCAG verlangt 4,5:1. Jetzt 5,44 auf --bg,
     5,12 auf --bg-raised, 4,83 auf --surface (Lighthouse, 2026-09-27). */
  --text-faint: #808895;
  --accent: #f0b429;
  --accent-strong: #ffc94d;
  --accent-ink: #1a1405;
  --live: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 9rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }
html:not(.js) .needs-js { display: none !important; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: inline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* --- Kopf ------------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.kopf__innen {
  max-width: var(--container); margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marke { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.marke__logo { width: 34px; height: 34px; flex: none; border-radius: 8px; }
.marke__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1; }
.marke__zahl { color: var(--accent); }
.marke__tld { color: var(--text-faint); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  text-decoration: none; color: var(--text-muted); font-size: 0.95rem;
  font-weight: 500; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* --- Inhaltsseiten (Top 10, Startjahre) ---------------------------------- */
.textblock { margin: 2.2rem 0 0; }
.textblock h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); letter-spacing: -0.02em; margin: 0 0 0.8rem; font-weight: 750; }
.textblock p { color: var(--text-muted); margin: 0.8rem 0 0; text-wrap: pretty; }
.textblock a { color: var(--text); }
.textliste { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; color: var(--text-muted); }
.textliste strong { color: var(--text); font-weight: 650; }

/* --- Kopfbereich der Seiten ------------------------------------------- */
.seite { padding-block: 3.5rem 2rem; }
.kicker {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem;
}
.titel {
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em;
  margin: 0 0 0.6rem; font-weight: 750; line-height: 1.2;
}
.einleitung { color: var(--text-muted); margin: 0; text-wrap: pretty; }
.quelle {
  margin: 1rem 0 0; color: var(--text-faint); font-size: 0.9rem; text-wrap: pretty;
}
.quelle a { color: var(--text-muted); }
.quelle a:hover { color: var(--text); }

/* --- Fortschritt ------------------------------------------------------ */
.stand {
  margin: 2rem 0 0; padding: 1.1rem 1.25rem 1.2rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-raised); display: grid; gap: 0.8rem;
}
.stand__zeile {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.6rem 1.5rem;
}
.stand__haupt { margin: 0; font-size: 1.05rem; color: var(--text-muted); }
.stand__haupt strong {
  font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em;
  color: var(--text); font-variant-numeric: tabular-nums; margin-right: 0.15em;
}
.stand__neben { margin-left: 1.1rem; color: var(--text-muted); font-size: 0.95rem; white-space: nowrap; }
.stand__haupt .stand__neben strong {
  font-size: inherit; font-weight: 700; letter-spacing: 0; margin-right: 0;
  color: var(--accent);
}

/* Teilen */
.teilen {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 2.4rem; padding: 0 1.05rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.teilen:hover { border-color: var(--text-faint); }
.teilen svg { width: 16px; height: 16px; flex: none; }
.teilen[hidden], .teilen-feld[hidden], .geteilt[hidden], .knopf[hidden] { display: none; }
.teilen-feld { margin: 0; display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--text-muted); }
.teilen-feld input {
  width: 100%; height: 2.5rem; padding: 0 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-family: var(--font-mono); font-size: 0.85rem;
}

/* Geteilte Liste ansehen */
.geteilt {
  margin: 2rem 0 0; padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-raised));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem;
}
.geteilt:not([hidden]) + .stand { margin-top: 1rem; }
.geteilt__text { margin: 0; flex: 1 1 28rem; text-wrap: pretty; }
.geteilt__knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.knopf {
  height: 2.4rem; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.knopf:hover { border-color: var(--text-faint); }
.knopf--primaer { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.knopf--primaer:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.balken { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.balken__fill {
  height: 100%; width: 0; border-radius: inherit; background: var(--live);
  transition: width 0.35s ease;
}

/* --- Werkzeugleiste (klebt unter dem Kopf) ---------------------------- */
.bar {
  position: sticky; top: var(--kopf, 63px); z-index: 40;
  margin: 1.5rem -1.5rem 0; padding: 0.85rem 1.5rem;
  /* Hintergrund ueber die Innenabstaende, die Trennlinie nur so breit wie
     die Liste: sonst steht sie links und rechts ueber. */
  background:
    linear-gradient(var(--border), var(--border)) center bottom / calc(100% - 3rem) 1px no-repeat,
    color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
}
.suche { position: relative; flex: 1 1 16rem; }
.suche > svg {
  position: absolute; left: 0.85rem; top: 50%; translate: 0 -50%;
  width: 16px; height: 16px; color: var(--text-faint); pointer-events: none;
}
.suche input {
  width: 100%; height: 2.6rem; padding: 0 2.6rem 0 2.5rem;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 0.98rem;
}
.suche input::placeholder { color: var(--text-faint); }
.suche input::-webkit-search-cancel-button { display: none; }
.suche input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.suche__leeren {
  position: absolute; right: 0.35rem; top: 50%; translate: 0 -50%;
  width: 2rem; height: 2rem; border-radius: 999px; border: 0;
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center;
}
.suche__leeren svg { width: 14px; height: 14px; }
.suche__leeren:hover { color: var(--text); background: var(--border); }
.suche__leeren[hidden] { display: none; }
.suche__taste {
  position: absolute; right: 0.8rem; top: 50%; translate: 0 -50%;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint);
  border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 0.35rem;
  pointer-events: none;
}
.suche input:focus ~ .suche__taste, .suche.hat-text .suche__taste { display: none; }
@media (hover: none) { .suche__taste { display: none; } }

.filter {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
}
.filter button {
  height: 2.15rem; padding: 0 0.9rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-muted);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.filter button:hover { color: var(--text); }
.filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
/* Feste Farben statt opacity: halbtransparent fielen die Zahlen unter 4,5:1. */
.filter .zahl { font-variant-numeric: tabular-nums; font-weight: 500; margin-left: 0.3em; color: var(--text-faint); }
.filter button[aria-pressed="true"] .zahl { color: #4b525c; }

.hinweis { margin: 1.1rem 0 0.4rem; color: var(--text-faint); font-size: 0.85rem; text-wrap: pretty; }

/* --- Liste ------------------------------------------------------------ */
.tv-list { list-style: none; margin: 0; padding: 0; }
.tv {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center; gap: 0.4rem 1.1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
}
.tv[hidden] { display: none; }
.tv__rank {
  font-variant-numeric: tabular-nums; font-weight: 750; font-size: 1.3rem;
  letter-spacing: -0.02em; color: var(--text-faint); text-align: right;
  transition: color 0.2s ease;
}
.tv__title { margin: 0; font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }
.tv__meta { margin: 0.1rem 0 0; color: var(--text-muted); font-size: 0.9rem; }
.tv__years { font-variant-numeric: tabular-nums; }
.tv__de::before { content: "·"; margin: 0 0.5em; color: var(--text-faint); }
.tv__zusatz { margin: 0.3rem 0 0; color: var(--text-muted); font-size: 0.85rem; text-wrap: pretty; }
.tv--ergaenzt .tv__rank { color: var(--accent); }
.tv__actions { display: flex; align-items: center; gap: 0.5rem; }

.tgl, .tv__buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 2.4rem; padding: 0 0.95rem; border-radius: 999px;
  font: inherit; font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tgl svg, .tv__buy svg { flex: none; width: 16px; height: 16px; }
.tv__buy svg { width: 14px; height: 14px; }
.tgl { border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); cursor: pointer; }
.tgl:hover { color: var(--text); border-color: var(--text-faint); }
.tgl svg { opacity: 0.6; }
.tgl--seen[aria-pressed="true"] {
  background: color-mix(in srgb, var(--live) 15%, transparent);
  border-color: color-mix(in srgb, var(--live) 60%, transparent);
  color: var(--live);
}
.tgl--want[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent);
}
.tgl[aria-pressed="true"] svg { opacity: 1; }
/* Geteilte Liste: nur ansehen, nichts aendern. */
.tgl:disabled { cursor: default; }
.tgl:disabled:not([aria-pressed="true"]):hover { color: var(--text-muted); border-color: var(--border-strong); }
/* Der Pfad steckt im Sprite (<use>); eine CSS-Variable erbt dort hinein. */
.tgl--want[aria-pressed="true"] svg { --fuellung: currentColor; }
.fuellbar { fill: var(--fuellung, none); }

.tv__buy {
  width: 9.6rem; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent);
}
.tv__buy:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tv__buy--none { border: 1px dashed var(--border-strong); color: var(--text-faint); font-weight: 500; }
.tv__buy--none:hover { background: transparent; border-color: var(--border-strong); color: var(--text-faint); }
.tv.is-seen .tv__rank { color: var(--live); }

.tgl:focus-visible, .tv__buy:focus-visible, .filter button:focus-visible,
.suche__leeren:focus-visible, .leer button:focus-visible, .zuruecksetzen:focus-visible,
.nav a:focus-visible, .marke:focus-visible, .fuss a:focus-visible,
.teilen:focus-visible, .knopf:focus-visible, .teilen-feld input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.leer { padding: 3rem 1rem; text-align: center; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.leer p { margin: 0 0 1rem; }
.leer button, .zuruecksetzen {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  height: 2.4rem; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
}
.leer button:hover, .zuruecksetzen:hover { border-color: var(--text-faint); }

/* --- Fragen und Antworten -------------------------------------------- */
.faq { margin: 3.5rem 0 0; }
.faq h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; margin: 0 0 1.2rem; font-weight: 750; }
.faq__raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); }
.faq__eintrag { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); padding: 1.1rem 1.25rem 1.2rem; }
/* Ungerade Anzahl: die letzte Karte nimmt die ganze Zeile, sonst bliebe
   rechts ein leeres Feld und die Unterkanten fluchteten nicht. */
.faq__eintrag:last-child:nth-child(odd) { grid-column: 1 / -1; }
.faq__eintrag h3 { margin: 0 0 0.45rem; font-size: 1.02rem; font-weight: 650; }
.faq__eintrag p { margin: 0; color: var(--text-muted); font-size: 0.95rem; text-wrap: pretty; }

.abschluss { margin: 2rem 0 0; display: grid; gap: 0.6rem; color: var(--text-faint); font-size: 0.88rem; }
.abschluss p { margin: 0; text-wrap: pretty; }
.zuruecksetzen { justify-self: start; margin-bottom: 0.6rem; color: var(--text-muted); }

/* --- Rechtsseiten ------------------------------------------------------ */
.recht h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 2rem; }
.recht h2 { font-size: 1.2rem; margin: 2.2rem 0 0.8rem; letter-spacing: -0.01em; }
.recht p, .recht li, .recht address { color: var(--text-muted); }
.recht p { margin: 0 0 1rem; text-wrap: pretty; }
.recht address { font-style: normal; margin: 0 0 1rem; }
.recht ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.recht a { color: var(--accent); text-decoration: none; }
.recht a:hover { text-decoration: underline; }

.fehlerseite { padding-block: 6rem 4rem; }
.fehlerseite a { color: var(--accent); }

/* --- Fuss -------------------------------------------------------------- */
.fuss { border-top: 1px solid var(--border); padding: 2.2rem 0 2.6rem; margin-top: 2rem; }
.fuss__innen {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.9rem; color: var(--text-faint); font-size: 0.88rem;
}
.fuss__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.fuss a { color: var(--text-muted); text-decoration: none; }
.fuss a:hover { color: var(--text); }

/* --- Schmale Bildschirme ---------------------------------------------- */
@media (max-width: 760px) {
  .tv {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    grid-template-areas: "rang haupt" "aktionen aktionen";
    padding: 0.95rem 0; gap: 0.2rem 0.75rem;
  }
  .tv__rank { grid-area: rang; align-self: start; font-size: 1.15rem; line-height: 1.45; text-align: left; }
  .tv__main { grid-area: haupt; }
  .tv__actions { grid-area: aktionen; margin-top: 0.55rem; gap: 0.45rem; }
  .tv__actions > * { flex: 1 1 0; min-width: 0; padding: 0 0.5rem; }
  .tv__buy { width: auto; min-width: 0; flex-grow: 1.25; }
  .tv__buy--none { white-space: normal; line-height: 1.15; text-align: center; font-size: 0.8rem; }
  .bar { padding-block: 0.65rem; gap: 0.55rem; }
  .filter { width: 100%; }
  .filter button { flex: 1 1 0; padding: 0 0.3rem; }
}
@media (max-width: 400px) {
  .filter button { font-size: 0.84rem; }
  .tgl, .tv__buy { font-size: 0.86rem; gap: 0.3rem; }
  .tv__buy svg { display: none; }
  .nav { gap: 1rem; }
  .marke__tld { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .balken__fill, .tv__rank, .tgl, .tv__buy { transition: none; }
}
