/* clusterwerft palette by role, one block per mode; the header uses main roles, code blocks the dark ones, the search field the light ones, the help band the opposite mode */
:root {
  --main: #0D2A47;
  --on-main: #F7F9FB;
  --main-hover: #203B55;
  --accent: #F46B68;
  --on-accent: #0D2A47;

  --display: 'Syne', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 14px;
  --w: 1200px;                  /* Inhaltsbreite: Startseite 1200 px, Lernpfad- und Artikelseite 1040 px */
  --gutter: 24px;
}

:root, .hero-search, :root[data-theme="dark"] .help-cta {
  --page: #EEF1F4;
  --card: #F7F9FB;
  --hover: #E7EBEE;
  --selected: #E0E4E9;
  --line: #D2D8DE;
  --muted: #4F6479;
  --text: #0D2A47;
  --indicator: #0D2A47;

  --strong: var(--main);
  --on-strong: var(--on-main);
  --badge: var(--main);
  --on-badge: var(--on-main);
  --icon: var(--on-main);
  --ja: #1F7A3D;
  --nein: #A3341F;
  --shadow: 0 10px 28px color-mix(in srgb, var(--main) 8%, transparent);
  --shadow-sm: 0 4px 14px color-mix(in srgb, var(--main) 6%, transparent);
  --lift: 0 18px 36px color-mix(in srgb, var(--main) 14%, transparent);
  color-scheme: light;
}

:root[data-theme="dark"], .article-body .code, .article-body pre, :root:not([data-theme="dark"]) .help-cta {
  --page: #1D3854;
  --card: #2B455E;
  --hover: #395169;
  --selected: #435A70;
  --line: #4F6479;
  --muted: #B5BFC9;
  --text: #F7F9FB;
  --indicator: #F46B68;

  --strong: var(--text);
  --on-strong: var(--main);
  --badge: var(--selected);
  --on-badge: var(--text);
  --icon: var(--accent);
  --ja: #8FD6A4;
  --nein: #FFA197;
  --shadow: 0 14px 34px color-mix(in srgb, var(--main) 45%, transparent);
  --shadow-sm: 0 4px 14px color-mix(in srgb, var(--main) 30%, transparent);
  --lift: 0 18px 40px color-mix(in srgb, var(--main) 60%, transparent);
  color-scheme: dark;
}

.head {
  --page: var(--main);
  --card: var(--main-hover);
  --hover: var(--main-hover);
  --selected: var(--main-hover);
  --line: var(--main-hover);
  --muted: var(--on-main);
  --text: var(--on-main);
  --indicator: var(--accent);

  --strong: var(--on-main);
  --on-strong: var(--main);
  --badge: var(--main-hover);
  --on-badge: var(--on-main);
  --icon: var(--accent);
  color-scheme: dark;
}

:root { --edge-fill: var(--page); }
body.page-block, body.page-article { --w: 1040px; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font: 400 16px/1.55 var(--body);
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.below { flex: 1; display: flex; flex-direction: column; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--indicator); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
[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; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app-logo { display: block; flex: none; fill: currentColor; overflow: visible; }

/* ---------- Kopfbereich (dunkel in beiden Themes) ---------- */

.head { position: relative; background: var(--main); color: var(--on-main); }
.bgfx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bgfx i { position: absolute; border-radius: 50%; }
.bgfx .g1 { left: 50%; top: 46%; width: 1000px; height: 680px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--on-main) 14%, transparent), transparent); }
.bgfx .g2 { right: -10%; bottom: -34%; width: 50%; height: 110%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); animation: glow 18s ease-in-out infinite; }
.bgfx .g3 { left: -12%; top: -30%; width: 46%; height: 110%; background: radial-gradient(closest-side, color-mix(in srgb, var(--main-hover) 90%, transparent), transparent); }
@keyframes glow { 0%, 100% { transform: translate(8%, 10%) scale(.95); } 50% { transform: translate(-40%, 2%) scale(1.1); } }

.top { position: relative; z-index: 2; }
.top-in { width: min(1680px, 100% - 64px); margin-inline: auto; min-height: 64px; padding-block: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--on-main); text-decoration: none; }
.brand .logo-img { width: 28px; height: 30px; display: block; flex: none; }
.brand .wm { font: 600 22px/1 var(--display); }
.brand .sep { width: 1.5px; height: 26px; background: currentColor; opacity: .3; flex: none; }
.brand .sub { font-size: 17px; color: var(--muted); white-space: nowrap; }
.brand .sub b { font: 600 17px/1 var(--display); color: var(--on-main); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; background: var(--main-hover); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s; }
.lang-btn:hover { color: var(--on-main); }
.lang-btn[aria-pressed="true"] { background: var(--on-main); color: var(--main); }

/* Sonne <-> Mond wie auf der Website: Strahlen drehen sich ein, die Sonne wächst, ein „Biss“ gleitet hinein und macht die Sichel */
.theme-toggle {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--on-main);
  transition: transform .15s ease, border-color .2s;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle:active { transform: scale(.9); }
.theme-icon { width: 19px; height: 19px; overflow: visible; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.theme-icon .sun-core, .theme-icon .sun-rays { transform-box: fill-box; transform-origin: center; }
.theme-icon .moon-bite { transition: transform .4s cubic-bezier(.65, 0, .35, 1) 0s; }
.theme-icon .sun-core { transition: transform .45s cubic-bezier(.34, 1.4, .64, 1) .05s; }
.theme-icon .sun-rays { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1) .12s, opacity .25s ease .12s, rotate .4s ease; }
.theme-toggle:hover .sun-rays { rotate: 22.5deg; }
[data-theme="light"] .theme-icon { transform: rotate(180deg); }
[data-theme="light"] .theme-icon .sun-rays { transform: rotate(-120deg) scale(.2); opacity: 0; transition: transform .4s cubic-bezier(.55, 0, .45, 1), opacity .3s ease, rotate .4s ease; }
[data-theme="light"] .theme-icon .sun-core { transform: scale(2.05); transition: transform .5s cubic-bezier(.2, .8, .2, 1) .04s; }
[data-theme="light"] .theme-icon .moon-bite { transform: translate(7.4px, -7.4px); transition-delay: .14s; }

/* Seitenkopf: Startseite mittig mit großer Suche, sonst linksbündig in der Breite des Inhalts */
.hero { position: relative; z-index: 2; width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 28px 0 24px; }
.page-home .hero { width: min(880px, 100% - 2 * var(--gutter)); padding: 56px 0 44px; text-align: center; }
.hero .eyebrow { margin-bottom: 14px; font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.page-home .hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.015em; color: var(--accent); }
.hero .lede { margin-top: 14px; max-width: 660px; color: var(--muted); font-size: 18px; }
.hero .lede b, .hero .lede strong { color: var(--on-main); font-weight: 600; }
.page-home .hero .lede { margin-inline: auto; max-width: 560px; }
.hero .tagline { margin-top: 14px; max-width: 660px; font: 600 20px/1.3 var(--display); }
.hero .tagline em { font-style: normal; color: var(--accent); }
.hero .tagline + .lede { margin-top: 8px; }
.hero-title { display: flex; align-items: center; gap: 16px; }
.hero-title .ico { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--main-hover); display: grid; place-items: center; }
.hero-title .ico.first { background: var(--accent); color: var(--on-accent); }
.hero-title .ico .i { width: 24px; height: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--on-main); }
.crumbs > span[aria-hidden] { opacity: .7; }
.hero-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; font-weight: 600; }
.hero-chips span { padding: 5px 12px; border-radius: 999px; background: var(--main-hover); }
.hero-chips .problem { background: var(--accent); color: var(--on-accent); }
.hero-chips .upd { background: none; color: var(--muted); font-weight: 500; }

.hero-search {
  margin-top: 28px; width: min(680px, 100%); height: 60px; display: flex; align-items: center; gap: 12px;
  background: var(--card); color: var(--text); border-radius: 999px; padding: 0 8px 0 24px;
}
.page-home .hero-search { margin: 32px auto 0; }
.hero-search { transition: box-shadow .2s; }
.hero-search:focus-within { box-shadow: 0 0 0 4px var(--line); }
.hero-search > .i { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--text); }
.hero-search input::placeholder { color: var(--muted); opacity: 1; }
.hero-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }  /* eigenes Löschen-Kreuz statt des blauen vom Browser */
.hero-search .clear { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.hero-search .clear:hover { background: var(--hover); color: var(--text); }
.hero-search .clear .i { width: 18px; height: 18px; }
.hero-search.small { width: min(560px, 100%); height: 52px; padding-right: 20px; margin-top: 24px; }
.hero-search.small input { font-size: 16px; }

.edge { position: relative; z-index: 1; display: block; width: 100%; height: clamp(40px, 6vw, 88px); margin: -1px 0 -1px; overflow: visible; }  /* -1px unten: keine Kante durch Subpixel */
.edge polygon { fill: var(--edge-fill); }
.edge line { stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, opacity .2s;
}
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.soft { background: var(--selected); color: var(--text); }
.btn.soft:hover { background: var(--line); }
.hero-search .btn { flex: none; height: 44px; }

/* ---------- Inhalt ---------- */

main { flex: 1; width: min(var(--w), 100% - 2 * var(--gutter)); margin: 12px auto 0; }
.loading { padding: 48px 0; text-align: center; color: var(--muted); }

.sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.sh h2 { font-size: 28px; line-height: 1.2; }
.sh .sd { font-size: 15px; color: var(--muted); }
.sh .count { font-size: 17px; font-weight: 600; color: var(--muted); }

/* Lernpfade (Kacheln) */
/* „Bist du neu?“ – Lernpfade eingeklappt: wer neu ist, klappt auf; die Startseite bleibt auch bei vielen Lernpfaden kurz */
.paths > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 22px; min-height: 128px; padding: 28px 28px 28px 26px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.paths > summary::-webkit-details-marker { display: none; }
.paths > summary:hover { box-shadow: var(--lift); }
.paths > summary:focus-visible { border-radius: var(--r); }
.paths .ico { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.paths .ico .i { width: 30px; height: 30px; }
.paths-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.paths-text h2 { font-size: 28px; line-height: 1.15; }
.paths-text .sd { font-size: 16px; color: var(--muted); }
.paths .count { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--selected); font-size: 14px; font-weight: 600; color: var(--text); }
.paths .caret { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--selected); color: var(--text); display: grid; place-items: center; transition: transform .25s, background-color .2s; }
.paths > summary:hover .caret { background: var(--line); }
.paths[open] .caret { transform: rotate(180deg); }
.paths .caret .i { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .paths .count { display: none; }
  .paths > summary { gap: 14px; min-height: 0; padding: 20px 18px 20px 16px; }
  .paths .ico { width: 52px; height: 52px; border-radius: 14px; } .paths .ico .i { width: 26px; height: 26px; }
  .paths-text h2 { font-size: 23px; }
  .paths .caret { width: 40px; height: 40px; }
}
.tiles { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 12px; min-height: 216px; padding: 20px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--badge); color: var(--icon); display: grid; place-items: center; }
.tile.first .ico { background: var(--accent); color: var(--on-accent); }
.tile .ico .i { width: 22px; height: 22px; }
.tiles .empty { grid-column: 1 / -1; }
.tile .n { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tile-title { font: 600 19px/1.2 var(--display); }
.tile-tag { align-self: flex-start; margin-top: -4px; padding: 3px 10px; border-radius: 999px; background: var(--selected); font-size: 12.5px; font-weight: 600; color: var(--text); }
.tile-text { flex: 1; font-size: 14px; color: var(--muted); }
.tile-go { font-size: 14.5px; font-weight: 600; }

.all { margin-top: 64px; }
.all.in-block { margin-top: 0; }

/* Filter: App, Typ, Thema */
/* Filterleiste: eine Fläche, links „Alle Apps“ und „Thema“ (Auswahllisten), rechts „Typ“ */
.filters {
  position: relative; z-index: 5; margin-top: 18px; display: flex; align-items: center; gap: 18px; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.all.in-block .filters { margin-top: 0; }
.filters .lbl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tsel { display: flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.facet { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 22px; background: var(--selected); }
.seg button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--strong); color: var(--on-strong); font-weight: 600; }

.apps { position: relative; }
.apps > button {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 7px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-sm); color: var(--text); font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.apps > button .i { width: 16px; height: 16px; transition: transform .2s; }
.filters .apps > button { background: var(--selected); border-color: transparent; box-shadow: none; transition: background-color .2s; }
.filters .apps > button:hover { background: var(--line); }
.apps.topic > button { padding-left: 16px; }
.apps.topic ul { min-width: 320px; }
.apps > button[aria-expanded="true"] .i { transform: rotate(180deg); }
.apps ul {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; max-height: 380px; overflow-y: auto; list-style: none;
  padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--lift); outline: none;
}
.apps li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.apps li.active { background: var(--hover); }
.apps li[aria-selected="true"] { background: var(--selected); font-weight: 600; }
.apps li.none { color: var(--muted); }
.apps .app-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apps .app-count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* App-Kästchen wie in Home, darin das Logo der App */
.badge { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--badge); color: var(--on-badge); display: grid; place-items: center; font: 600 11.5px/1 var(--display); }
.badge .app-logo { width: 20px; height: 20px; }
.badge.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }
.badge.sm .app-logo { width: 16px; height: 16px; }
.badge.any { background: var(--selected); color: var(--text); }
.badge.any .i { width: 16px; height: 16px; }

/* Artikelliste */
.list { margin-top: 18px; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.list ol, .list ul { list-style: none; display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.num { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--selected); display: grid; place-items: center; font: 700 15px/1 var(--display); }
.rt { flex: 1; min-width: 0; }
.rtitle { display: block; font-weight: 600; }
.rmeta { display: block; font-size: 13.5px; color: var(--muted); }
.rgo { flex: none; font-size: 14px; font-weight: 600; color: var(--text); }
/* Bekanntes Problem: Typ in der grauen Zeile wie „Anleitung“, mit Koralle-Punkt davor */
.rmeta .problem { white-space: nowrap; }  /* nicht fett, gleiche Farbe wie die übrige Zeile */
.rmeta .problem::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.more { margin-top: 16px; text-align: center; }
mark { background: var(--selected); color: inherit; border-radius: 3px; padding: 0 1px; margin: 0 -1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.empty b { display: block; margin-bottom: 10px; font-size: 18px; color: var(--text); }
.empty .btn { margin-top: 6px; }

.help-cta { display: none; }
body.has-helpdesk .help-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 56px; padding: 26px 30px;
  background: var(--card); color: var(--text); border-radius: var(--r);
}
.page-article.has-helpdesk .help-cta { margin-top: 24px; }
.help-cta div { flex: 1 1 320px; }
.help-cta b { display: block; font: 600 21px/1.25 var(--display); }
.help-cta p { margin-top: 6px; color: var(--muted); }

/* ---------- Artikelseite ---------- */

.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.pager.p-top { margin-bottom: 28px; }
.pager.p-bottom { margin-top: 28px; }
.pager a { display: inline-flex; align-items: center; gap: 8px; max-width: 42%; min-width: 0; padding: 8px 14px; border-radius: 999px; background: var(--hover); text-decoration: none; font-weight: 500; transition: background-color .2s; }
.pager a:hover { background: var(--selected); }
.pager a .i { width: 16px; height: 16px; }
.pager a span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager .pos { margin-inline: auto; font: 600 15px/1 var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }  /* zurück links, „In App öffnen“ rechts – wie Vor/Zurück */
.callout { margin-top: 28px; display: flex; gap: 14px; padding: 16px 18px; background: var(--selected); border-radius: 12px; }
.callout::before { content: "!"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 16px/1 var(--display); }

/* ---------- Inhalt der Artikel (HTML aus article.json) ---------- */

.article-body { font-size: 17px; line-height: 1.6; color: var(--text); }
.article-body > :first-child { margin-top: 0; }
.article-body section { margin-top: 40px; }
.article-body section:first-child { margin-top: 0; }
.article-body h2 { color: var(--text); margin-bottom: 14px; font-size: 26px; line-height: 1.2; scroll-margin-top: 16px; }
.article-body h3 { color: var(--text); margin-bottom: 8px; font-size: 19px; line-height: 1.3; }
.article-body p { margin-bottom: 12px; }
.article-body ul, .article-body ol:not(.steps):not(.legende) { margin: 0 0 12px 22px; }
.article-body li { margin-bottom: 4px; }
.article-body a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body b, .article-body strong { font-weight: 600; }
.article-body .tagline { margin-bottom: 8px; font: 600 20px/1.3 var(--display); }
.article-body .lede { font-size: 18px; color: var(--muted); }
.article-body .muted { color: var(--muted); }
.article-body .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article-body p:last-child, .article-body ul:last-child { margin-bottom: 0; }

/* Karten, Kästen, Warnungen */
.article-body .grid { margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.article-body .card { padding: 20px 22px; background: var(--hover); border-radius: 12px; }
.article-body .card h3 { font-size: 17px; }
.article-body .box { margin: 16px 0; padding: 18px 22px; background: var(--selected); border-radius: 12px; }
.article-body .grid > .box { margin: 0; }  /* im Raster bündig neben der Karte (stand vorher 16 px tiefer) */
.article-body .num { display: block; width: auto; height: auto; margin-bottom: 6px; background: none; font: 600 32px/1 var(--display); }
.article-body .warn { position: relative; margin: 18px 0; padding: 16px 20px 16px 60px; background: var(--selected); border-radius: 12px; }
.article-body .warn::before { content: "!"; position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 16px/1 var(--display); }

/* Nummerierte Schritte */
.article-body ol.steps { counter-reset: step; list-style: none; margin-top: 20px; }
.article-body ol.steps > li { position: relative; padding: 0 0 32px 52px; }
.article-body ol.steps > li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 9px;
  background: var(--selected); color: var(--text); display: grid; place-items: center; font: 700 16px/1 var(--display);
}
.article-body ol.steps > li > h3:first-child { padding-top: 4px; }
.article-body ol.steps > li.einschub { margin: 0 0 32px 52px; padding: 16px 20px; background: var(--hover); border-radius: 12px; }
.article-body ol.steps > li.einschub::before { content: none; }

/* Screenshots mit nummerierter Legende (Ziffern wie die Markierung C2: Koralle, Abendblau-Zahl) */
.article-body figure { margin: 24px 0; }
.article-body figure img { display: block; width: 100%; height: auto; background: var(--on-main); border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.article-body figure.narrow { max-width: 640px; }
/* Dunkel: helle Screenshots leicht abgedunkelt, damit sie auf der dunklen Karte nicht blenden; mit der Maus darüber in voller Helligkeit */
[data-theme="dark"] .article-body img { filter: brightness(.9); transition: filter .2s; }
[data-theme="dark"] .article-body img:hover { filter: none; }
.article-body figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.article-body figcaption b { color: var(--text); }
.article-body .legende { list-style: none; counter-reset: m; margin: 14px 0 0; display: grid; gap: 6px; }  /* Abstand zum Bild bzw. zur Bildunterschrift darüber */
.article-body .legende li { counter-increment: m; position: relative; margin: 0; padding-left: 34px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.article-body .legende li::before {
  content: counter(m); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 12px/1 var(--body);
}
.article-body .legende b { color: var(--text); }
.article-body .legende.manuell { counter-reset: none; }
.article-body .legende.manuell li { padding-left: 46px; }
.article-body .legende.manuell li::before { content: none; }
.article-body .marke {
  position: absolute; left: 0; top: 0; height: 22px; padding: 0 7px; border-radius: 11px;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 12px/1 var(--body);
}
.article-body .bildpaar { margin: 18px 0; display: grid; grid-template-columns: 1.9fr 1fr; gap: 48px; align-items: start; }
.article-body .bildpaar figure { margin: 0; }
.article-body .bildwrap { position: relative; }
.article-body .pfeil { position: absolute; top: 85.4%; right: -46px; transform: translateY(-50%); color: var(--text); line-height: 0; }

/* Tabellen */
.article-body table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 15px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.article-body th { background: var(--selected); font-weight: 600; text-align: left; }
.article-body th, .article-body td { padding: 10px 14px; vertical-align: top; }
.article-body td { box-shadow: inset 0 -1px 0 var(--line); }
.article-body tr:last-child td { box-shadow: none; }
.article-body .ja, .article-body .nein { font-weight: 700; }
.article-body .ja { color: var(--ja); }
.article-body .nein { color: var(--nein); }

/* Code, Tasten, Menüpfade, Adresszeile */
.article-body code, .article-body pre { font-family: var(--mono); font-size: 14px; }
.article-body code { padding: 1px 5px; background: var(--selected); border-radius: 5px; color: var(--text); }
.article-body pre { margin: 14px 0; padding: 16px 20px; overflow-x: auto; background: var(--main); color: var(--text); border: 1px solid var(--line); border-radius: 10px; line-height: 1.7; }
.article-body pre code { padding: 0; background: none; color: inherit; }
/* Codeblock mit Knopf „Kopieren“ (app.js legt .code um jedes pre) */
.article-body .code { position: relative; margin: 14px 0; }
.article-body .code pre { margin: 0; padding-right: 124px; }
.article-body .copy {
  position: absolute; top: 11px; right: 11px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border: 0; border-radius: 999px; background: var(--selected); color: var(--text); font: 600 13px/1 var(--body); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.article-body .copy:hover { background: var(--line); }
.article-body .copy .i { width: 16px; height: 16px; }
.article-body .copy.done { background: var(--accent); color: var(--on-accent); }
.article-body pre .c { color: var(--muted); }
.article-body pre .o { color: var(--accent); }
.article-body pre .hl { display: block; margin: 0 -20px; padding: 0 20px 0 17px; background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.article-body .legend { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; font-size: 15px; color: var(--muted); }
.article-body .legend i { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.article-body .k, .article-body .pfad span { padding: 1px 5px; background: var(--selected); border-radius: 5px; color: var(--text); font-weight: 600; font-size: .92em; white-space: nowrap; }
.article-body .warn :is(.k, code, .pfad span), .callout :is(.k, code) { background: var(--card); }
.article-body .pfad { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 2px 0; }
.article-body .pfad span + span::before { content: "\203A"; margin-right: 6px; color: var(--muted); font-weight: 400; }
.article-body .urlbar {
  display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 9px 16px; overflow-x: auto;
  background: var(--card); border-radius: 999px; box-shadow: 0 0 0 1.5px var(--line); font-family: var(--mono); font-size: 15px;
}
.article-body .urlbar svg { flex: none; }
.article-body .urlbar .host, .article-body .urlbar .rest { color: var(--muted); }
.article-body .urlbar mark { padding: 0 5px; background: var(--selected); box-shadow: none; color: var(--text); font-weight: 700; }
.article-body .urlbar .cap { margin-left: auto; padding-left: 16px; font-family: var(--body); font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Auswahl: empfohlen, Alternative, abgeraten */
.article-body .wahl { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.article-body .wahl > div { display: flex; flex-direction: column; overflow: hidden; padding: 0 22px 22px; background: var(--card); border-radius: 12px; box-shadow: 0 0 0 1.5px var(--line); }
.article-body .wahl .stufe { margin: 0 -22px 16px; padding: 8px 22px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-body .wahl .standard { box-shadow: 0 0 0 1.5px var(--strong); }
.article-body .wahl .standard .stufe { background: var(--strong); color: var(--on-strong); }
.article-body .wahl .alternative .stufe { background: var(--selected); color: var(--text); }
.article-body .wahl .abraten { background: var(--hover); }
.article-body .wahl .abraten .stufe { color: var(--muted); }
.article-body .wahl ul { margin-top: 10px; }
.article-body .wahl p.schluss { margin-top: auto; margin-bottom: 0; padding-top: 14px; }

/* ---------- Helpdesk-Formular (Zammad, eigenes CSS über noCSS) ---------- */

.zammad-form-modal { position: fixed; inset: 0; z-index: 100; overflow: auto; overscroll-behavior: contain; display: grid; place-items: center; padding: 24px 16px; }
.zammad-form-modal-backdrop { position: fixed; inset: 0; background: color-mix(in srgb, var(--main) 65%, transparent); }
.zammad-form-modal-body { position: relative; width: 100%; max-width: 540px; padding: 26px 30px 30px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.help-head .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.help-close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--selected); color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; }
.help-close:hover { background: var(--line); }
.zammad-form-modal-body h2 { margin: 16px 0 6px; font-size: 26px; line-height: 1.15; }
.help-hint { margin-bottom: 22px; color: var(--muted); }
.zammad-form-group { margin-bottom: 18px; }
.zammad-form-group label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.zammad-form-control { display: block; width: 100%; padding: 11px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--text); }
textarea.zammad-form-control { resize: vertical; min-height: 140px; }
.zammad-form-control:focus { outline: none; border-color: var(--indicator); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.zammad-form-group--has-error label { color: var(--nein); }
.zammad-form-group--has-error .zammad-form-control { border-color: var(--nein); background: var(--selected); }
.zammad-form .btn { display: flex; margin: 26px 0 0 auto; background: var(--accent); color: var(--on-accent); }
.zammad-form .btn:disabled { opacity: .6; cursor: progress; }
.zammad-form-thankyou, .js-noConfig { padding: 14px 18px; background: var(--selected); border-radius: 12px; }

/* ---------- Fußzeile ---------- */

.foot { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 48px 0; font-size: 14px; color: var(--muted); text-align: center; }
.foot strong { color: var(--text); font-weight: 600; }

/* ---------- Tablet und Handy ---------- */

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .top-in { width: calc(100% - 32px); column-gap: 12px; }
  .page-home .hero { padding: 36px 0 32px; }
  .hero-search { height: 54px; padding-left: 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { flex-wrap: wrap; gap: 12px; }
  .tsel { padding-left: 0; border-left: 0; }
  .facet { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .all { margin-top: 48px; }
  .row { gap: 12px; padding: 12px 14px; }
  .rgo { display: none; }
  .pager a { max-width: none; }
  .pager a span { display: none; }
  .article-body .bildpaar { grid-template-columns: 1fr; gap: 20px; }
  .article-body .pfeil { display: none; }
  .article-body ol.steps > li { padding-left: 46px; }
  .article-body ol.steps > li.einschub { margin-left: 0; }
  .article-body table { display: block; overflow-x: auto; }
  body.has-helpdesk .help-cta { padding: 22px; }
}
@media (max-width: 540px) {
  .brand .sep, .brand .sub { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .seg button { padding: 0 11px; font-size: 13.5px; }
  .tile { min-height: 0; }
  .hero-search .btn { display: none; }
  .hero-search { padding-right: 18px; }
  .article-body .copy { padding: 0 10px; }
  .article-body .copy span { display: none; }
  .article-body .code pre { padding-right: 60px; }
  .zammad-form-modal { padding: 12px; }
  .zammad-form-modal-body { padding: 20px 18px 22px; }
  .zammad-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
