[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:root {
  --bg: #f6f4ef;
  --surface: #fffefa;
  --surface-raised: #fff;
  --ink: #22252b;
  --muted: #626872;
  --line: #e3dfd6;
  --accent: #6251c9;
  --accent-soft: #eeebff;
  --teal: #087f7b;
  --teal-soft: #e6f6f2;
  --coral: #d85f4b;
  --coral-soft: #fff0ea;
  --gold: #ac7418;
  --gold-soft: #fff4da;
  --shadow: 0 14px 38px rgba(34, 37, 43, .08);
  --topic: var(--accent);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18191b;
    --surface: #232426;
    --surface-raised: #2a2b2e;
    --ink: #f5f1ea;
    --muted: #bcb7af;
    --line: #424143;
    --accent: #b8a9ff;
    --accent-soft: #363149;
    --teal: #77d7c4;
    --teal-soft: #233b38;
    --coral: #ff9b7f;
    --coral-soft: #46332e;
    --gold: #f6c97c;
    --gold-soft: #42392b;
    --shadow: 0 18px 40px rgba(0, 0, 0, .18);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: clamp(.95rem, .88rem + .18vw, 1.07rem)/1.6 "Segoe UI", Inter, system-ui, sans-serif; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.2rem, 2vw, 2rem) clamp(1rem, 3vw, 3.5rem); background: var(--surface); border-bottom: 1px solid var(--line); }
.kopf-text { min-width: 0; }
.kopf h1 { margin: 0; font-size: clamp(1.55rem, 2.2vw, 2.3rem); line-height: 1.1; letter-spacing: -.035em; }
.start-link { padding: 0; border: 0; background: none; text-align: left; font: inherit; font-weight: 760; letter-spacing: inherit; line-height: inherit; }
.start-link:hover { color: var(--accent); }
.kopf p { margin: .45rem 0 0; color: var(--muted); font-size: .98rem; }
.sprachwahl { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.sprachwahl select { border: 1px solid var(--line); border-radius: .6rem; background: var(--surface-raised); padding: .35rem .5rem; }
.nav-toggle, .seiten-kopf { display: none; }
.typbar { display: flex; align-items: center; gap: 1.2rem; padding: .72rem clamp(1rem, 3vw, 3.5rem); border-bottom: 1px solid var(--line); background: var(--surface); }
.typbar h2 { flex: none; margin: 0; font-size: .82rem; font-weight: 770; white-space: nowrap; }
.typbar .chips { min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.typbar .chip { flex: none; white-space: nowrap; }
.raster { display: grid; grid-template-columns: clamp(18rem, 23vw, 22rem) minmax(0, 1fr); min-height: calc(100dvh - 10rem); }
.seite { min-width: 0; height: 100dvh; position: sticky; top: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1rem; padding: 1.35rem 1.2rem 2rem; background: var(--surface); border-right: 1px solid var(--line); scrollbar-color: var(--line) transparent; }
.suchfeld label, .filter h2, .themen-titel { display: block; margin: 0 0 .55rem; font-size: .9rem; font-weight: 750; }
#suche { display: block; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: .85rem; padding: .75rem .9rem; background: var(--surface-raised); }
#suche:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.filter { padding: .2rem 0 0; }
.typ-chips { gap: .4rem; }
.typ-chip { border-color: color-mix(in srgb, var(--teal) 28%, var(--line)); }
.typ-chip[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-flex; gap: .3rem; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .65rem; background: var(--surface-raised); font-size: .82rem; line-height: 1.3; transition: transform .16s, border-color .16s, background .16s; }
.chip:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 720; }
.chip:disabled { opacity: .42; cursor: default; }
.zahl { font-variant-numeric: tabular-nums; }
.chip .zahl { opacity: .66; }
.hinweis { margin: .7rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.filterfuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; align-items: baseline; margin: .8rem 0 0; color: var(--muted); font-size: .79rem; }
.textknopf { padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: .18rem; }
.themen-titel { margin: .45rem 0 0; }
.liste { border-top: 1px solid var(--line); }
.leer { color: var(--muted); }
.thema { border-bottom: 1px solid var(--line); }
.thema summary { display: flex; align-items: center; gap: .65rem; padding: .7rem .25rem; font-weight: 700; cursor: pointer; list-style: none; }
.thema summary::-webkit-details-marker { display: none; }
.thema summary::before { content: "›"; color: var(--accent); font-size: 1.35rem; line-height: 1; transition: transform .16s; }
.thema[open] summary::before { transform: rotate(90deg); }
.thema summary .zahl { margin-left: auto; color: var(--muted); font-size: .77rem; font-weight: 500; }
.thema-eintraege { padding: .1rem 0 .65rem .7rem; }
.liste a { display: block; margin: .1rem 0; padding: .55rem .7rem; border-left: 3px solid transparent; border-radius: .45rem; color: var(--ink); text-decoration: none; line-height: 1.35; }
.liste a:hover { background: var(--accent-soft); }
.liste a[aria-current="page"] { background: var(--accent-soft); border-left-color: var(--accent); }
.liste .en { display: block; font-weight: 670; }
.liste .lokal { display: block; margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.liste .typ-kurz { display: inline-block; margin-top: .32rem; color: var(--teal); font-size: .67rem; font-weight: 700; }
.liste .typ-kurz + .status-kurz { margin-left: .35rem; }
.liste .status-kurz { display: inline-block; margin-top: .35rem; padding: .06rem .42rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; }
.detail { min-width: 0; width: 100%; padding: clamp(1.3rem, 3.2vw, 3.8rem) clamp(1rem, 4vw, 4.8rem) 5rem; }
.detail:focus { outline: none; }
.detail-kopf { min-width: 0; }
.detail-marken { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.kategorie-pille { display: inline-block; padding: .32rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--topic) 13%, var(--surface)); color: var(--topic); font-size: .78rem; font-weight: 760; letter-spacing: .02em; }
.typ-pille { display: inline-block; padding: .32rem .7rem; border: 1px solid color-mix(in srgb, var(--teal) 50%, var(--line)); border-radius: 999px; color: var(--teal); font-size: .78rem; font-weight: 720; }
.detail h2 { margin: .85rem 0 0; font-size: clamp(2rem, 3.8vw, 4.4rem); line-height: 1.06; letter-spacing: -.045em; overflow-wrap: anywhere; }
.detail .untertitel { margin: .65rem 0 0; font-size: clamp(1.06rem, 1.5vw, 1.4rem); color: var(--muted); }
.detail[data-category="resilienz"] { --topic: var(--coral); }
.detail[data-category="konsistenz-transaktionen"], .detail[data-category="messaging"], .detail[data-category="datenarchitektur"] { --topic: var(--teal); }
.detail[data-category="skalierung"], .detail[data-category="caching-performance"], .detail[data-category="datenplattformen"] { --topic: var(--gold); }
.detail[data-category="sicherheitsarchitektur"], .detail[data-category="deployment-betrieb"] { --topic: var(--coral); }
.leitgedanke { width: 100%; max-width: none; margin: clamp(1.4rem, 2.5vw, 2.6rem) 0 2.1rem; padding: clamp(1.1rem, 2vw, 1.8rem); border: 1px solid color-mix(in srgb, var(--topic) 32%, var(--line)); border-left: .34rem solid var(--topic); border-radius: .85rem; background: color-mix(in srgb, var(--topic) 8%, var(--surface)); }
.leitgedanke h3 { margin: 0 0 .5rem; color: var(--topic); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.leitgedanke p { margin: 0; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.6; }
.warnung { margin: 1.2rem 0; padding: .75rem 1rem; border-left: 3px solid var(--gold); border-radius: .4rem; background: var(--gold-soft); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(11rem, 16vw, 15rem); align-items: start; gap: clamp(1.2rem, 3.5vw, 4rem); }
.detail-content { min-width: 0; }
.detail-toc { display: flex; flex-direction: column; gap: .1rem; position: sticky; top: 1.5rem; max-height: calc(100dvh - 3rem); overflow-y: auto; padding: .9rem 0 .9rem 1rem; border-left: 1px solid var(--line); }
.detail-toc strong { margin: 0 0 .5rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.detail-toc button { padding: .25rem .35rem; border: 0; border-radius: .25rem; background: none; text-align: left; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.detail-toc button:hover, .detail-toc button:focus-visible { color: var(--accent); background: var(--accent-soft); }
.abschnitt { width: 100%; max-width: none; margin: 0 0 clamp(2rem, 3vw, 3rem); scroll-margin-top: 1.5rem; }
.abschnitt h3 { margin: 0 0 .7rem; font-size: clamp(1.2rem, 1.6vw, 1.65rem); letter-spacing: -.02em; line-height: 1.25; }
.abschnitt p { margin: 0 0 .95rem; }
.abschnitt ul, .abschnitt ol { margin: 0 0 .95rem; padding-left: 1.45rem; }
.abschnitt li { margin: .3rem 0; }
.abschnitt p, .abschnitt li { max-width: none; overflow-wrap: anywhere; hyphens: auto; }
.abschnitt a.verweis { text-decoration: none; border-bottom: 1px dotted currentColor; }
.abschnitt a.verweis:hover { border-bottom-style: solid; }
.abschnitt code { padding: .1rem .28rem; border-radius: .25rem; background: var(--accent-soft); font-size: .9em; }
.abschnitt.gut, .abschnitt.schlecht { padding: clamp(1rem, 1.8vw, 1.5rem); border-radius: .9rem; }
.abschnitt.gut { background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line)); }
.abschnitt.schlecht { background: var(--coral-soft); border: 1px solid color-mix(in srgb, var(--coral) 35%, var(--line)); }
.abschnitt.gut h3 { color: var(--teal); }
.abschnitt.schlecht h3 { color: var(--coral); }
.zeichnung { width: 100%; margin: 1.2rem 0 0; }
.zeichnung + .zeichnung { margin-top: 2rem; }
.zeichnung h4 { margin: 0 0 .65rem; font-size: 1rem; line-height: 1.35; }
.blatt { width: 100%; min-width: 0; padding: clamp(.55rem, 1.4vw, 1.25rem); border: 1px solid var(--line); border-radius: .9rem; overflow-x: auto; background: var(--surface-raised); }
.blatt img { display: block; width: 100%; height: auto; min-width: 0; max-width: 100%; margin: 0 auto; background: #fff; }
.zeichnung figcaption { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .7rem; margin-top: .65rem; color: var(--muted); font-size: .78rem; }
.diagramm-hinweis { display: none; }
.legendenhilfe summary { color: var(--muted); cursor: pointer; }
.legende { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin-top: .6rem; }
.legende span { display: inline-flex; gap: .4rem; align-items: center; }
.legende svg { flex: none; }
.zurueck { display: none; margin-bottom: 1rem; }
.start { width: 100%; }
.eyebrow { display: inline-block; margin: 0 0 .4rem; color: var(--coral); font-size: .77rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.start h2 { max-width: none; margin: .2rem 0 0; font-size: clamp(2.2rem, 4.2vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; }
.start-text { max-width: none; margin: 1rem 0 clamp(1.7rem, 3vw, 2.7rem); color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.start-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.7vw, 1.25rem); }
.start-karte { min-width: 0; min-height: 175px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: clamp(1rem, 2vw, 1.55rem); border: 1px solid var(--line); border-top: .28rem solid var(--card-accent, var(--accent)); border-radius: 1rem; background: var(--surface-raised); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.start-karte:nth-child(4n+1) { --card-accent: var(--coral); }
.start-karte:nth-child(4n+2) { --card-accent: var(--accent); }
.start-karte:nth-child(4n+3) { --card-accent: var(--teal); }
.start-karte:nth-child(4n+4) { --card-accent: var(--gold); }
.start-karte:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(35, 31, 47, .15); }
.start-karte strong { font-size: clamp(1.05rem, 1.25vw, 1.26rem); line-height: 1.35; }
.start-karte span { color: var(--card-accent); font-weight: 750; }
.menu-backdrop { display: none; }
body.menu-offen { overflow: hidden; }
@media (max-width: 1500px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-toc { order: -1; position: static; flex-direction: row; flex-wrap: nowrap; gap: .25rem; max-height: none; overflow-x: auto; padding: 0 0 1rem; border-left: 0; border-bottom: 1px solid var(--line); }
  .detail-toc strong { flex: none; width: auto; align-self: center; margin: 0 .45rem 0 0; }
  .detail-toc button { flex: none; white-space: nowrap; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; }
}
@media (max-width: 900px) {
  .kopf { gap: .75rem; padding: .9rem 1rem; }
  .kopf h1 { font-size: clamp(1.15rem, 4.8vw, 1.6rem); }
  .kopf p { display: none; }
  .typbar { gap: .75rem; padding: .65rem 1rem; }
  .typbar h2 { font-size: .74rem; }
  .nav-toggle { flex: none; display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface-raised); font-size: .8rem; }
  .raster { display: block; }
  .seite { position: fixed; z-index: 20; inset: 0 auto 0 0; width: min(90vw, 23rem); height: 100dvh; border-right: 1px solid var(--line); box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .22s ease; }
  .menu-offen .seite { transform: translateX(0); }
  .menu-backdrop:not([hidden]) { display: block; position: fixed; z-index: 19; inset: 0; background: rgba(0, 0, 0, .48); }
  .seiten-kopf { display: flex; align-items: center; justify-content: space-between; font-weight: 750; }
  .seiten-kopf button { border: 0; background: none; color: var(--muted); font-size: 1.2rem; }
  .detail { padding: clamp(1.2rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) 4rem; }
  .zurueck { display: inline-block; }
  .start-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .nav-toggle span { display: none; }
  .typbar { display: block; }
  .typbar h2 { margin-bottom: .4rem; }
  .typbar .chips { width: 100%; }
  .start-karten { grid-template-columns: 1fr; }
  .start-karte { min-height: 130px; }
  .detail-toc { padding-bottom: .8rem; }
  .abschnitt.gut, .abschnitt.schlecht { padding: 1rem; }
  .blatt img { min-width: 680px; max-width: none; }
  .diagramm-hinweis { display: block; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
