[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;
  --type-system: #087f7b;
  --type-pattern: #6251c9;
  --type-mechanism: #a94736;
  --type-foundation: #86590f;
  --type-practice: #265f9d;
  --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;
    --type-system: #77d7c4;
    --type-pattern: #b8a9ff;
    --type-mechanism: #ff9b7f;
    --type-foundation: #f6c97c;
    --type-practice: #8ebeff;
    --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; }
.raster { display: grid; grid-template-columns: clamp(18rem, 23vw, 22rem) minmax(0, 1fr); min-height: calc(100dvh - 6rem); }
.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; }
.typenfilter { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.typ-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.typ-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .1rem .5rem; width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface-raised); text-align: left; line-height: 1.35; }
[data-type="architekturform"] { --type-color: var(--type-system); }
[data-type="muster"] { --type-color: var(--type-pattern); }
[data-type="mechanismus"] { --type-color: var(--type-mechanism); }
[data-type="grundlage"] { --type-color: var(--type-foundation); }
[data-type="praxis"] { --type-color: var(--type-practice); }
.typ-chip[data-type] { border-left: 4px solid var(--type-color); background: color-mix(in srgb, var(--type-color) 5%, var(--surface-raised)); }
.typ-chip:hover:not(:disabled) { border-color: var(--type-color, var(--accent)); }
.typ-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--type-color, var(--accent)) 15%, var(--surface)); border-color: var(--type-color, var(--accent)); }
.typ-chip:disabled { opacity: .42; cursor: default; }
.typ-titel { min-width: 0; font-size: .86rem; font-weight: 730; }
.typ-chip .zahl { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.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(--type-color); 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(--type-color) 50%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--type-color) 9%, var(--surface)); color: var(--type-color); 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; }
.kernbild { margin: clamp(1rem, 2vw, 1.5rem) 0 0; }
.kernbild a { display: block; }
.kernbild img { display: block; width: 100%; max-width: 1240px; height: auto; border-radius: .7rem; }
.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 > a { display: block; }
.blatt img { display: block; width: auto; height: auto; min-width: 0; max-width: min(100%, 1400px); 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; }
.detail-ende { display: flex; justify-content: flex-end; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.detail-ende button { min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid var(--accent); border-radius: .7rem; background: var(--accent-soft); color: var(--accent); font-weight: 740; }
.detail-ende button:hover { background: var(--accent); color: var(--surface); }
.start { width: 100%; max-width: 78rem; margin: 0 auto; }
.start-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.7rem, 4vw, 4rem); border: 1px solid var(--line); border-radius: 1.5rem; background: linear-gradient(125deg, var(--accent-soft), var(--surface-raised) 58%, var(--teal-soft)); }
.start-hero::before { content: ""; position: absolute; z-index: -1; width: clamp(16rem, 35vw, 32rem); aspect-ratio: 1; right: -10%; top: -60%; border: clamp(2.5rem, 5vw, 5rem) solid color-mix(in srgb, var(--accent) 11%, transparent); border-radius: 50%; pointer-events: none; }
.eyebrow { display: inline-block; margin: 0 0 .65rem; color: var(--coral); font-size: .77rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.start h2 { max-width: 22ch; margin: .2rem 0 1.25rem; font-size: clamp(2.15rem, 4vw, 4.1rem); line-height: 1.08; letter-spacing: -.045em; }
.start-text { max-width: 68ch; margin: .75rem 0 0; color: var(--ink); font-size: clamp(1.05rem, 1.2vw, 1.22rem); line-height: 1.65; }
.start-text-zweit { color: var(--muted); }
.ergebnisse { width: 100%; max-width: 88rem; margin: 0 auto; }
.ergebnisse-kopf { margin-bottom: clamp(1.4rem, 2.6vw, 2.5rem); }
.ergebnisse-kopf h2 { max-width: none; margin: 0; font-size: clamp(2rem, 3.3vw, 3.3rem); }
.ergebnisse-einordnung { margin: .9rem 0 0; font-size: clamp(.98rem, 1.1vw, 1.1rem); line-height: 1.6; }
.ergebnisse-einordnung p { margin: 0 0 .65rem; }
.ergebnisse-einordnung .zieltext { margin-top: .8rem; padding: .6rem .85rem; border-left: 3px solid var(--teal); border-radius: .35rem; background: var(--teal-soft); }
.ergebnisse-anzahl { margin: .55rem 0 0; color: var(--muted); font-size: 1rem; }
.ergebnisse-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.ergebnisse-filter span { padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.ergebnisse-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(.85rem, 1.5vw, 1.25rem); align-items: stretch; }
.ergebnis-karte { display: flex; min-width: 0; flex-direction: column; padding: clamp(1.1rem, 1.7vw, 1.5rem); border: 1px solid var(--line); border-top: 3px solid var(--type-color); border-radius: 1.1rem; background: var(--surface-raised); box-shadow: 0 2px 8px rgba(34, 37, 43, .025); cursor: pointer; transition: transform .16s, border-color .16s, box-shadow .16s; }
.ergebnis-karte:hover, .ergebnis-karte:focus-within { transform: translateY(-3px); border-color: color-mix(in srgb, var(--type-color) 50%, var(--line)); border-top-color: var(--type-color); box-shadow: var(--shadow); }
.ergebnis-marken { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-bottom: .9rem; }
.ergebnis-typ { display: inline-block; padding: .18rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--type-color) 12%, var(--surface)); color: var(--type-color); font-size: .73rem; font-weight: 760; }
.ergebnis-kategorie { color: var(--muted); font-size: .73rem; font-weight: 720; }
.ergebnis-karte h3 { margin: 0; font-size: clamp(1.18rem, 1.5vw, 1.48rem); line-height: 1.23; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ergebnis-karte h3 a { color: var(--ink); text-decoration: none; }
.ergebnis-karte h3 a:hover { color: var(--accent); }
.ergebnis-untertitel { margin: .4rem 0 0; color: var(--muted); font-size: .87rem; line-height: 1.4; }
.ergebnis-beschreibung { margin-top: .9rem; color: var(--ink); font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; }
.ergebnis-beschreibung p { margin: 0; }
.ergebnis-beschreibung p + p { margin-top: .65rem; }
.ergebnis-aktion { margin-top: auto; padding-top: 1.2rem; color: var(--accent); font-size: .82rem; font-weight: 760; }
.ergebnisse-leer { padding: 1.4rem; border: 1px dashed var(--line); border-radius: .9rem; background: var(--surface); color: var(--muted); }
.zurueck.zu-ergebnissen { display: inline-block; }
.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; }
  .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; }
}
@media (max-width: 600px) {
  .detail-ende button { width: 100%; }
  .nav-toggle span { display: none; }
  .start-hero { padding: 1.35rem; border-radius: 1rem; }
  .start h2 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .detail-toc { padding-bottom: .8rem; }
  .abschnitt.gut, .abschnitt.schlecht { padding: 1rem; }
  .blatt img { width: max(100%, 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; }
}

/* „Was ist dir wichtig?“: Anliegen nach Themen gruppiert */
.wolke { position: relative; margin: 0 0 1.8rem; padding: 1.3rem clamp(1rem, 2.5vw, 1.8rem) 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: var(--shadow); }
.start .wolke { margin-top: 2rem; }
.wolke h2 { margin: 0 0 .25rem; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); }
.wolke-hinweis { margin: 0 0 1.1rem; color: var(--muted); font-size: .9rem; }
.wolke-gruppen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.1rem 1.4rem; align-items: start; }
.wolke-gruppe { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.wolke-gruppe h3 { margin: 0 0 .15rem; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.wolke-begriff { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; width: 100%; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface-raised); color: var(--ink); font: inherit; font-size: .9rem; line-height: 1.35; text-align: left; cursor: pointer; transition: background-color .12s, border-color .12s; }
.wolke-label { min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.wolke-begriff .zahl { flex: none; color: var(--muted); font-size: .76rem; }
.wolke-begriff:hover:not(:disabled) { border-color: var(--accent); }
.wolke-begriff:disabled { opacity: .42; cursor: default; }
.wolke-begriff[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.wolke-begriff[aria-pressed="true"] .zahl { color: var(--accent); }
.wolke-weitere { display: flex; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.wolke-weitere .wolke-begriff { width: auto; min-width: min(100%, 17rem); border-style: dashed; }
.wolke-weitere .wolke-label { font-style: italic; font-weight: 550; }
.wolke-tipp { position: absolute; z-index: 5; width: max-content; max-width: min(20rem, calc(100% - 16px)); padding: .5rem .7rem; border-radius: .55rem; background: var(--ink); color: var(--surface); font-size: .85rem; line-height: 1.4; pointer-events: none; box-shadow: var(--shadow); }

/* Bereiche im Kopf */
.bereiche { display: flex; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--bg); margin-left: auto; }
.bereiche button { min-height: 2.5rem; padding: .4rem 1rem; border: 0; border-radius: .6rem; background: none; color: var(--muted); font: inherit; font-weight: 700; }
.bereiche button:hover { color: var(--ink); }
.bereiche button[aria-current="page"] { background: var(--surface-raised); color: var(--accent); box-shadow: 0 1px 4px rgba(34, 37, 43, .12); }
.seiten-inhalt { display: flex; flex-direction: column; gap: 1rem; }
.seiten-inhalt[hidden] { display: none; }
#wz-suche { display: block; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: .85rem; padding: .75rem .9rem; background: var(--surface-raised); }
#wz-suche:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.wolke-werkzeuge { margin: 1.1rem 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.wolke-werkzeuge a { font-weight: 700; }
.wz-suchtreffer { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: baseline; margin: .9rem 0 0; font-size: .92rem; }

/* Werkzeugübersicht */
.wz-gruppe { margin: 0 0 2rem; }
.wz-gruppe h3 { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.wz-gruppe .zahl, .abschnitt h3 .zahl, .wz-partner .zahl { color: var(--muted); font-size: .8rem; font-weight: 600; }
.wz-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .5rem .9rem; margin: 0; padding: 0; list-style: none; }
.wz-zeile { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-raised); }
.wz-name { font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.wz-name:hover { text-decoration: underline; }
.wz-kurz { color: var(--ink); font-size: .88rem; line-height: 1.45; }
.wz-meta { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; color: var(--muted); font-size: .78rem; font-weight: 650; }
.wz-hinweis { display: inline-block; padding: .08rem .5rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: .74rem; font-weight: 750; }
.wz-buchstaben { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.4rem; }
.wz-buchstaben button { min-width: 2.2rem; min-height: 2.2rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface-raised); font: inherit; font-weight: 700; }
.wz-buchstaben button:hover { border-color: var(--accent); color: var(--accent); }

/* Werkzeugseite */
.werkzeug-kopf .detail-marken { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.wz-projekt { margin: .6rem 0 1.6rem; font-weight: 700; }
.wz-fundstellen { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.wz-fundstellen li { padding: .85rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--type-color, var(--accent)); border-radius: .75rem; background: var(--surface-raised); }
.wz-fund-kopf { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; }
.wz-fund-kopf a { font-weight: 750; font-size: 1.02rem; }
.wz-funktion { padding: .05rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 700; }
.wz-fundstellen p { margin: .4rem 0 0; font-size: .93rem; }
.wz-partner { display: flex; flex-wrap: wrap; gap: .4rem; }
.wz-partner a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); text-decoration: none; font-weight: 650; font-size: .9rem; }
.wz-partner a:hover { border-color: var(--accent); }
.wz-intern { display: inline-block; margin-left: .35rem; padding: .02rem .45rem; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 650; text-decoration: none; vertical-align: .08em; white-space: nowrap; }
.wz-intern:hover { border-color: var(--accent); }

/* Entwurf einer Architekturentscheidung */
.detail-werkzeugleiste { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.adr-knopf { min-height: 2.5rem; padding: .45rem .9rem; border: 1px solid var(--accent); border-radius: .7rem; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: .9rem; font-weight: 720; }
.adr-knopf:hover { background: var(--accent); color: var(--surface); }
.adr-entwurf { margin: 0 0 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.adr-entwurf h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.adr-entwurf p { margin: 0 0 .7rem; color: var(--muted); font-size: .9rem; }
.adr-entwurf textarea { display: block; width: 100%; min-height: 14rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface-raised); color: var(--ink); font: .85rem/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; resize: vertical; }
.adr-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .7rem; }
.adr-knoepfe button:not(.textknopf) { min-height: 2.4rem; padding: .4rem .85rem; border: 1px solid var(--accent); border-radius: .6rem; background: var(--surface-raised); color: var(--accent); font: inherit; font-size: .88rem; font-weight: 700; }
#adr-status { color: var(--teal); font-size: .85rem; font-weight: 650; }
@media (max-width: 900px) {
  .kopf { flex-wrap: wrap; }
  .bereiche { order: 3; width: 100%; margin-left: 0; }
  .bereiche button { flex: 1; }
}

/* Fußzeile mit Über mich, Impressum und Datenschutz (Startseite und Unterseiten) */
.fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding: 1.1rem clamp(1rem, 3vw, 3.5rem); background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.fuss a { color: var(--muted); text-underline-offset: .18rem; }
.fuss a:hover { color: var(--accent); }
.fuss a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

/* Kopf: Verweis auf „Über mich“ mit Porträt, auf allen Seiten sichtbar */
.person-link { display: inline-flex; flex: none; align-items: center; gap: .6rem; padding: .3rem .85rem .3rem .3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; line-height: 1.2; }
.bereiche + .person-link { margin-left: .2rem; }
.kopf-text + .person-link { margin-left: auto; }
.person-link img { display: block; width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.person-text { display: flex; flex-direction: column; }
.person-text strong { font-size: .88rem; font-weight: 740; }
.person-text span { color: var(--muted); font-size: .76rem; }
.person-link:hover { border-color: var(--accent); }
.person-link:hover .person-text span { color: var(--accent); }
.person-link[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 900px) {
  .bereiche + .person-link { margin-left: auto; }
}
@media (max-width: 600px) {
  .person-link { padding: .2rem; }
  .person-link img { width: 2.2rem; height: 2.2rem; }
  .person-text { display: none; }
}

/* Unterseiten: Über mich, Impressum, Datenschutz */
.kopf .kopf-titel { display: block; margin: 0; color: var(--ink); font-size: clamp(1.55rem, 2.2vw, 2.3rem); font-weight: 760; line-height: 1.1; letter-spacing: -.035em; }
.kopf-titel a { color: inherit; text-decoration: none; }
.kopf-titel a:hover { color: var(--accent); }
.unterseite { width: 100%; max-width: 50rem; min-height: calc(100dvh - 12rem); margin: 0 auto; padding: clamp(1.4rem, 4vw, 3.8rem) clamp(1rem, 4vw, 2rem) 4rem; }
.unterseite.breit { max-width: 64rem; }
.zurueck-link { display: inline-block; margin-bottom: 1.2rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.zurueck-link:hover { text-decoration: underline; text-underline-offset: .18rem; }
.unterseite h1 { margin: 0 0 1.4rem; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.045em; }
.unterseite h2 { margin: 2.2rem 0 .6rem; font-size: 1.15rem; line-height: 1.3; }
.unterseite p, .unterseite li { max-width: 70ch; overflow-wrap: anywhere; }
.unterseite ul { padding-left: 1.3rem; }
.unterseite li + li { margin-top: .2rem; }
.unterseite code { padding: .05rem .3rem; border-radius: .3rem; background: var(--accent-soft); font-size: .9em; }
.kasten { padding: .2rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: .8rem; background: var(--surface); }
.stand { margin-top: 2.5rem; color: var(--muted); font-size: .88rem; }
.ich { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.ich img { display: block; width: 100%; height: auto; border-radius: 1.1rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ich-text h1 { margin-top: 0; }
.ich-links { margin-top: 1.2rem; font-weight: 700; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .9rem; }
.karte { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.karte svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--accent); }
.karte h3 { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.karte p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.karte.projekt a { display: inline-block; margin-top: .6rem; font-size: .86rem; font-weight: 700; }
@media (max-width: 900px) {
  .kopf .kopf-titel { font-size: clamp(1.15rem, 4.8vw, 1.6rem); }
}
@media (max-width: 700px) {
  .ich { grid-template-columns: minmax(0, 1fr); }
  .ich img { width: 11rem; }
  .fuss { flex-direction: column; align-items: flex-start; }
}
