/* XCOMBO Codes – Stylesheet. Schrift: Atkinson Hyperlegible Next (SIL OFL), lokal eingebunden. */
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --mist: #edf1f2;
  --surface: #ffffff;
  --ink: #14262e;
  --muted: #53646c;
  --line: #ccd6da;
  --petrol: #0e5c68;
  --petrol-soft: #dcebed;
  --amber: #8a520c;
  --amber-soft: #f8ecd7;
  --danger: #a3231d;
  --danger-soft: #fbe7e4;
  --font: "Atkinson Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #0f191d;
    --surface: #15232a;
    --ink: #e2ebee;
    --muted: #97a8af;
    --line: #2a3d45;
    --petrol: #79c4ce;
    --petrol-soft: #18343a;
    --amber: #e3a95e;
    --amber-soft: #2e2416;
    --danger: #ff8f84;
    --danger-soft: #3a1c1a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  font-variant-numeric: lining-nums;
}
:lang(zh) body, body:lang(zh) { line-height: 1.75; }
a { color: var(--petrol); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.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; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.prose { max-width: 44rem; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--petrol); color: var(--surface); padding: .6rem 1rem; border-radius: 6px; z-index: 20; }
.skip:focus { top: 1rem; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 10; background: var(--mist); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; flex-wrap: wrap; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; margin-right: auto; padding-block: .25rem; text-decoration: none; }
.brand .logo { display: block; height: 1.375rem; width: auto; }
.logo-tile { fill: var(--petrol); }
.logo-x { stroke: var(--mist); }
.logo-word { fill: var(--ink); }
.logo-sub { fill: var(--petrol); }
.menu { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.menu a { color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--petrol); text-decoration: underline; }
.langs { display: flex; flex-wrap: wrap; gap: .25rem; }
.langs a { padding: .2rem .5rem; border-radius: 5px; text-decoration: none; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.langs a[aria-current="true"] { background: var(--petrol); color: var(--surface); }
.langs a:not([aria-current]):hover { color: var(--ink); background: var(--petrol-soft); }

/* Einstieg */
.hero { padding-block: 3.5rem 2rem; }
.hero h1 { font-size: clamp(2rem, 4.2vw + 1rem, 3.4rem); letter-spacing: -0.015em; max-width: 18ch; }
.lead { margin-top: 1rem; font-size: 1.2rem; max-width: 40rem; color: var(--ink); }
.search { margin-top: 2rem; max-width: 40rem; }
.search input {
  width: 100%; font: inherit; font-size: 1.3rem; color: var(--ink);
  padding: .85rem 1rem; background: var(--surface);
  border: 2px solid var(--line); border-bottom: 4px solid var(--petrol); border-radius: 8px 8px 4px 4px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: none; border-color: var(--petrol); }
.stats { margin-top: .75rem; color: var(--muted); }

/* Haftungsausschluss */
.disclaimer {
  margin-top: 1.75rem; max-width: 46rem; background: var(--danger-soft);
  border: 2px solid var(--danger); border-radius: 10px; padding: 1.1rem 1.3rem 1.2rem;
}
.disclaimer h2, .disclaimer-full h2 { display: flex; align-items: center; gap: .6rem; color: var(--danger); }
.disclaimer h2 { font-size: 1.2rem; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
.icon .ic-bg { fill: currentColor; }
.icon .ic-fg { stroke: var(--danger-soft); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.icon .ic-dot { fill: var(--danger-soft); }
.disclaimer ul { margin: .7rem 0 0; padding-left: 1.25rem; }
.disclaimer li { margin-bottom: .35rem; }
.disc-links { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; font-weight: 700; }
.disc-links a { color: var(--danger); }
.disclaimer-full { border-left: 4px solid var(--danger); padding-left: 1.25rem; }
.warn-note { margin-top: .9rem; padding: .65rem .95rem; max-width: 46rem; background: var(--danger-soft); border-left: 4px solid var(--danger); border-radius: 0 6px 6px 0; }

/* Filter und Sortierung */
.filterbar { display: none; padding-top: 1rem; }
.js .filterbar { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button {
  font: inherit; font-size: .95rem; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
}
.chips button:hover { border-color: var(--petrol); }
.chips button[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--surface); }
.chips .n { opacity: .7; margin-left: .3em; }
.more { margin-top: .9rem; }
.more summary { cursor: pointer; color: var(--petrol); font-weight: 700; width: max-content; max-width: 100%; padding: .25rem 0; }
.more-grid {
  margin-top: .6rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem 1.1rem;
}
.field label, .opts legend { display: block; font-size: .92rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; padding: 0; }
.field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--mist);
  border: 1px solid var(--line); border-radius: 6px; padding: .45rem .6rem;
}
.opts { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .15rem 1.5rem; }
.checks label { display: flex; align-items: flex-start; gap: .55rem; padding: .3rem 0; cursor: pointer; }
.checks input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: var(--petrol); flex: none; }
.resultbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; padding: 1rem 0 1.5rem; color: var(--muted); }
#f-reset { font: inherit; background: none; border: 0; padding: 0; color: var(--petrol); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
#f-reset[hidden] { display: none; }
.empty { padding: .5rem 0 3rem; font-size: 1.1rem; }
.catname { display: none; }
.flat .catname { display: inline; color: var(--ink); font-weight: 700; }
.flat { margin-bottom: 3rem; border-top: 2px solid var(--ink); }

/* Code-Liste */
.cat { margin-bottom: 2.75rem; }
.cat h2 { font-size: 1.5rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); display: flex; align-items: baseline; gap: .6rem; }
.cat h2 .n { font-size: 1rem; font-weight: 400; color: var(--muted); }
.combos { list-style: none; margin: 0; padding: 0; }
.combo {
  display: grid; grid-template-columns: 13rem 1fr; gap: .5rem 2rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.code { display: flex; align-items: center; gap: .75rem; align-self: start; }
.digits {
  font-size: 1.7rem; font-weight: 700; color: var(--petrol); line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; white-space: nowrap;
}
.digits span + span { margin-left: .32em; }
.copy {
  font: inherit; font-size: .85rem; cursor: pointer; color: var(--petrol);
  background: transparent; border: 1px solid currentColor; border-radius: 6px; padding: .2rem .55rem;
}
.copy:hover { background: var(--petrol); color: var(--surface); border-color: var(--petrol); }
.fn { font-size: 1.08rem; max-width: 46rem; }
.hints { margin-top: .3rem; color: var(--muted); max-width: 46rem; }
.meta { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .92rem; color: var(--muted); }
.meta a { color: inherit; }
.grp { color: var(--amber); }
.grp a { color: var(--amber); font-weight: 700; }

/* Konfliktgruppen */
.groups { padding-block: 1rem 3rem; }
.groups h2, .guide h2 { font-size: 1.9rem; margin-bottom: .75rem; }
.groups > p { max-width: 44rem; margin-bottom: 1.25rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 40rem; background: var(--surface); border-radius: 8px; }
th, td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
th { font-size: .92rem; color: var(--muted); font-weight: 700; }
td:first-child { font-weight: 700; color: var(--amber); white-space: nowrap; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:target td { background: var(--amber-soft); }

/* Anleitung */
.guide { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.guide h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.steps { margin: 0; padding-left: 1.6rem; }
.steps li { padding-left: .4rem; margin-bottom: .7rem; }
.steps li::marker { font-weight: 700; color: var(--petrol); }
dl { margin: 0; }
dt { font-weight: 700; margin-top: 1.25rem; }
dd { margin: .25rem 0 0; }
.guide p + p { margin-top: .75rem; }
.links { margin: 0; padding-left: 1.2rem; }
.links li { margin-bottom: .35rem; }

/* Fußzeile und Hinweis */
.foot { border-top: 1px solid var(--line); padding-block: 1.5rem 2.5rem; color: var(--muted); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot a { color: var(--muted); }
.consent-settings { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--mist); padding: .7rem 1.1rem; border-radius: 8px; font-weight: 700;
  transition: opacity .18s ease, transform .18s ease; z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Datenschutzerklärung */
.legal { padding-block: 3rem 3.5rem; }
.legal h1 { font-size: clamp(1.9rem, 2.5vw + 1rem, 2.6rem); letter-spacing: -0.01em; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 .6rem; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: .75rem; }
.legal ul { margin: 0; padding-left: 1.2rem; }
.legal li { margin-bottom: .3rem; }
.legal .updated { margin-top: 2.5rem; color: var(--muted); font-size: .95rem; }
.foot a[aria-current="page"] { color: var(--ink); text-decoration: none; }

/* Sprachauswahl (Startseite) */
.chooser { padding-block: 4rem; }
.chooser h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.chooser ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; max-width: 24rem; }
.chooser a { display: block; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.chooser a:hover { border-color: var(--petrol); color: var(--petrol); }

@media (max-width: 720px) {
  .top { position: static; }
  .top-in { gap: .25rem 1rem; }
  html { scroll-padding-top: 1rem; }
  .search input { font-size: 1.1rem; }
  .menu { display: none; }
  .hero { padding-block: 2rem 1.5rem; }
  .combo { grid-template-columns: 1fr; gap: .4rem; }
  .digits { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .top, .filterbar, .search, .copy, .toast { display: none; }
  body { background: #fff; color: #000; }
}
