/* TGI Glossar (Theme). Nur .gx-*. Tokens aus main.css, Lebenswelt-Farbton per --h-*. Kein Hex, kein em-dash. Quelle: freigegebenes Mockup (DESIGNPRUEFUNG_3) + Auflagen. */

.gx { --gx-header: 73px; --gx-bar: 64px; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }
/* A9 / D5 P2-3: Kacheln trennen am Desktop nur über &shy; aus den Daten (manual); automatisch erst schmal (siehe ≤ 600 px).
   Wortüberlauf-Schutz bleibt über overflow-wrap: break-word auf .gx. */
.gx-grid, .gx-card { -webkit-hyphens: manual; hyphens: manual; }
.gx :focus-visible, .gx-neu :focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
.gx-hero :focus-visible, .gx-head :focus-visible { outline-color: var(--on-dark-sage); }
.gx-neu { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) { .gx *, .gx-neu * { transition: none !important; scroll-behavior: auto !important; } }
.gx .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); box-sizing: border-box; }

/* ---------- Übersicht ---------- */
.gx-hero { background: var(--forest-deep); color: var(--on-dark); }
.gx-hero .wrap { padding-block: clamp(40px, 5vw, 70px) clamp(32px, 4vw, 52px); text-align: center; }
.gx-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--on-dark-sage); margin: 0 0 14px; }
.gx-hero h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.05; margin: 0 0 14px; color: var(--on-dark); }
.gx-hero h1 .serif-it { font-style: italic; color: var(--on-dark-sage); }
.gx-hero__lead { color: var(--on-dark-soft); font-size: 18px; max-width: 600px; margin: 0 auto 26px; line-height: 1.55; }
.gx-search { position: relative; max-width: 560px; margin: 0 auto; }
.gx-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; }
.gx-search input::placeholder { color: var(--ink-faint); }
.gx-search input { width: 100%; box-sizing: border-box; font: 400 17px/1 var(--sans); padding: 17px 20px 17px 50px; border-radius: var(--r-pill); border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 10px 30px -12px oklch(0.2 0.03 160 / .5); }
.gx-search input:focus { outline: 3px solid var(--on-dark-sage); outline-offset: 2px; }
.gx-search__hint { margin: 10px 0 0; font-size: 13.5px; color: var(--on-dark-soft); }
.gx-search__hint kbd { font: 600 12px/1 var(--sans); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--on-dark-soft); }
.gx-hero__count { margin: 6px 0 0; font-size: 13.5px; color: var(--on-dark-soft); }

.gx-bar { position: sticky; top: var(--gx-header); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.gx-filterzeile { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gut) 0; }
.gx-filterzeile summary { display: none; }
.gx-bar__inner { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gut); }
.gx-az { display: grid; grid-template-columns: repeat(27, minmax(0, 1fr)); gap: 2px; }
.gx-az a, .gx-az span { font-family: var(--serif); font-size: 17px; min-width: 0; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); text-decoration: none; }
.gx-az a { color: var(--forest); font-weight: 600; }
.gx-az a:hover, .gx-az a:focus-visible { background: var(--forest-deep); color: var(--on-dark); }
.gx-az span { color: var(--line-strong); }
.gx-filter { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.gx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 13px/1 var(--sans); padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.gx-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--sage)); }
.gx-chip.is-on { background: var(--chip-soft, var(--forest-deep)); color: var(--chip-ink, var(--on-dark)); border-color: transparent; }
.gx-chip[data-filter="alle"].is-on { background: var(--forest-deep); color: var(--on-dark); }
.gx-filter select { min-height: 44px; font: 600 13.5px/1 var(--sans); padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); }

.gx-body { padding: clamp(28px, 4vw, 52px) 0 84px; }
.gx-group { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: clamp(14px, 3vw, 40px); padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--gx-header) + var(--gx-bar) + 16px); }
.gx-group:first-child { border-top: 0; }
.gx-letter { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 5.6vw, 66px); line-height: .85; color: var(--label); margin: 0; position: sticky; top: calc(var(--gx-header) + var(--gx-bar) + 12px); align-self: start; white-space: nowrap; }
/* D5 P1-4: „0–9“ passt einzeilig in die 84-px-Spalte. */
.gx-group[data-letter="0–9"] .gx-letter { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.03em; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.gx-card { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--h-ink); border-radius: 4px var(--r-md) var(--r-md) 4px; /* D5 P2-2: linke Ecken knapp, Kante bleibt gerade */ padding: 18px 18px 16px 22px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: calc(var(--gx-header) + var(--gx-bar) + 16px); transition: transform .15s ease, box-shadow .15s ease; }
.gx-card:hover { transform: translateY(-2px); box-shadow: inset 4px 0 0 var(--h-ink), 0 12px 26px -16px oklch(0.2 0.03 160 / .45); }
.gx-card:target { outline: 3px solid var(--h-ink); outline-offset: 2px; }
.gx-card--wip { opacity: .62; box-shadow: inset 4px 0 0 var(--line-strong); }
.gx-card__title { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; color: var(--forest-deep); }
.gx-card__title a { color: inherit; text-decoration: none; }
.gx-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gx-card__more { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; }
.gx-card__title a:hover { text-decoration: underline; text-decoration-color: var(--h-ink); text-underline-offset: 3px; }
.gx-card__also { font-size: 13px; color: var(--ink-faint); }
.gx-card__def { margin: 4px 0 6px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.gx-card__def--wip { color: var(--ink-faint); font-style: italic; }
.gx-card__tipp { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.gx-card__tipp strong { color: var(--forest); }
.gx-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gx-tag { font: 700 11px/1 var(--sans); letter-spacing: .04em; padding: 5px 9px; border-radius: var(--r-pill); }
.gx-tag--plain { background: var(--paper-2); color: var(--ink-soft); }
.gx-card__more { margin-left: auto; font: 700 13.5px/1 var(--sans); color: var(--h-ink); text-decoration: none; }
.gx-card__more:hover { text-decoration: underline; }
.gx-empty { text-align: center; color: var(--ink-soft); font-size: 16.5px; margin: 40px auto; max-width: 520px; }
.gx-empty button { margin: 14px 6px 0; min-height: 44px; font: 600 14px/1 var(--sans); padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--forest); cursor: pointer; }
.gx-bald { margin: 30px 0 0; padding: 20px 22px; border-radius: var(--r-md); background: var(--paper-2); color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.gx-bald strong { color: var(--ink); }
.gx-hidden { display: none !important; }

/* ---------- Einzelseite (v2: DESIGNPRUEFUNG_4 Teil A + C5) ---------- */
/* Kopf (A3, A12, C5): Flaeche im CI wie Wiki/Glossar-Uebersicht, Verlauf in Pillar-Richtung, Krume im Kopf. */
.gx-head { background: linear-gradient(165deg, var(--forest), var(--forest-deep)); color: var(--on-dark); }
.gx-head .wrap { padding-block: 18px clamp(36px, 4.5vw, 60px); }
.gx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 clamp(14px, 2.2vw, 28px); font-size: 13px; }
.gx-crumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--on-dark-soft); text-decoration: none; }
.gx-crumb a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.gx-crumb > span { color: var(--on-dark-soft); opacity: .55; }
@media (pointer: coarse) { .gx-crumb a { min-height: 44px; } }
.gx-head__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.gx-head__grid--solo { grid-template-columns: minmax(0, 1fr); }
.gx-head__eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-sage); margin: 0 0 16px; }
.gx-head__eyebrow i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--h-accent, var(--on-dark-sage)); }
.gx-head__title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--on-dark); overflow-wrap: break-word; text-wrap: balance; }
.gx-head__also { margin: 0 0 18px; color: var(--on-dark-soft); font-size: 15px; }
.gx-head__also strong { color: var(--on-dark); font-weight: 600; }
.gx-head__def { font-family: var(--sans); font-size: 19px; line-height: 1.55; max-width: 600px; margin: 0 0 22px; color: var(--on-dark); text-wrap: pretty; }
.gx-head__meta.meta { flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 14px; color: var(--on-dark-soft); }
.gx-head__meta .sep { background: var(--on-dark-soft); }
.gx-head__meta a { color: var(--on-dark); text-decoration: none; }
.gx-head__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Karte „Auf einen Blick“ (wie .wiki-hero-card) */
.gx-glance { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 26px 26px 22px; box-shadow: 0 12px 40px oklch(0.2 0.03 160 / .22); }
.gx-glance h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--forest); margin: 0 0 12px; }
.gx-glance dl { margin: 0 0 20px; }
.gx-glance dl > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.gx-glance dt { font: 600 11px/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.gx-glance dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; } /* D5 P1-8: lange Normnamen mit Trennstrich */
.gx-glance dd a { color: var(--forest); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.gx-glance dd a:hover { text-decoration-color: var(--forest); }
.gx-glance dd small { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.gx-copy { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; font: 600 14.5px/1 var(--sans); padding: 12px 18px; border-radius: var(--r-pill); border: 0; background: var(--forest-deep); color: var(--on-dark); cursor: pointer; transition: background .15s ease; }
.gx-copy::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--gx-ico-copy) center / contain no-repeat; mask: var(--gx-ico-copy) center / contain no-repeat; }
.gx-copy:hover { background: var(--forest); }
.gx-copy.is-done { background: var(--sage-soft); color: var(--forest); }
.gx-copy.is-done::before { -webkit-mask-image: var(--gx-ico-check); mask-image: var(--gx-ico-check); }
.gx-copy.is-fail { background: var(--clay-soft); color: var(--clay-ink); } /* D5 P2-5: sichtbare Fehler-Rückmeldung */
.gx-glance__hint { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-faint); }
.gx { --gx-ico-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h8'/%3E%3C/svg%3E");
  --gx-ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }

/* Layout + Inhaltsverzeichnis (A8) */
.gx-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); padding-top: clamp(36px, 4vw, 56px); padding-bottom: 80px; }
.gx-side { position: sticky; top: calc(var(--gx-header) + 24px); align-self: start; max-height: calc(100vh - var(--gx-header) - 48px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 640px) { .gx-side { position: static; max-height: none; } }
@media (hover: none) { .gx-search__taste { display: none; } }
.gx-toc { font-size: 14px; }
.gx-toc summary { list-style: none; cursor: default; }
.gx-toc summary::-webkit-details-marker { display: none; }
.gx-toc__h { display: block; font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin: 0 0 12px; }
.gx-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.gx-toc a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 4px 0 4px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
@media (pointer: fine) { .gx-toc a { min-height: 34px; } }
.gx-toc a:hover { color: var(--forest); }
.gx-toc a.is-on { border-left-color: var(--forest); color: var(--forest); font-weight: 600; }

/* Fliesstext wie .prose (A1) */
.gx-main { max-width: 720px; font-size: 18px; line-height: 1.72; color: var(--ink); }
.gx-sec { scroll-margin-top: calc(var(--gx-header) + 24px); }
.gx-sec + .gx-sec { margin-top: 44px; }
.gx-sec h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; color: var(--forest); margin: 0 0 16px; text-wrap: balance; }
.gx-sec p { font-size: 18px; line-height: 1.72; margin: 0 0 22px; }
.gx-sec > :last-child, .gx-sec p:last-child { margin-bottom: 0; }
.gx-sec strong { font-weight: 600; color: var(--forest-deep); }
.gx-mehr { margin: 6px 0 0 !important; }
.gx-mehr a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--forest); text-decoration: none; }
.gx-mehr a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Rechtliche Definition (A2): Grotesk, Innenkante per inset-Schatten (linke Ecken knapp gerundet, damit die Kante gerade bleibt), Anfuehrung aus der Vorlage */
.gx-norm__hin { margin: 0 0 14px !important; font-size: 16px !important; line-height: 1.55 !important; color: var(--ink-soft); }
.gx-norm { margin: 0; padding: 22px 24px 20px 28px; border-radius: 4px var(--r-md) var(--r-md) 4px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--h-ink, var(--forest)); }
.gx-norm p { margin: 0 !important; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); }
.gx-norm__src { margin-top: 12px; font: 600 13px/1.45 var(--sans); color: var(--ink-soft); }
.gx-norm cite { font-style: normal; }
.gx-norm cite a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.gx-norm__klein { display: block; margin-top: 4px; font-weight: 400; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); }

/* So begegnet dir der Begriff (A5) */
.gx-kontexte { display: grid; gap: 18px; margin: 0 0 22px; }
.gx-kontexte:last-child { margin-bottom: 0; }
.gx-kontexte dt { font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin: 0 0 6px; }
.gx-kontexte dd { margin: 0; font-size: 18px; line-height: 1.72; }

/* Im Alltag (A4, C5): Salbei wie .prose .kurz, Tipps als Checkliste, Oeko-Blick als eigene Zeile */
.gx-alltag { background: var(--sage-soft); border-radius: var(--r-md); padding: 26px 28px; }
.gx-alltag p { margin: 0 0 12px; }
.gx-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gx-check li { position: relative; padding-left: 34px; }
.gx-check li::before { content: ""; position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); }
.gx-check li::after { content: ""; position: absolute; left: 5px; top: 10px; width: 12px; height: 12px; background: var(--forest); -webkit-mask: var(--gx-ico-check) center / contain no-repeat; mask: var(--gx-ico-check) center / contain no-repeat; }
.gx-alltag__oeko { margin: 18px 0 0 !important; padding-top: 16px; border-top: 1px solid oklch(1 0 0 / .65); font-size: 17px !important; line-height: 1.65 !important; }
.gx-alltag > .gx-alltag__oeko:first-child { margin-top: 0 !important; padding-top: 0; border-top: 0; }
.gx-alltag__oeko strong { color: var(--forest); }

/* Zahlen mit Stand (A6) */
.gx-zahlen { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gx-zahlen li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.gx-zahl__wert { margin: 0 0 8px !important; font-size: 17px !important; line-height: 1.65 !important; }
.gx-zahl__beleg, .gx-zahl__hinweis { margin: 0 !important; font-size: 13.5px !important; line-height: 1.5 !important; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.gx-zahl__hinweis { margin-top: 6px !important; color: var(--ink-soft); }
.gx-zahl__q { font-weight: 600; color: var(--ink-soft); }

/* Nicht verwechseln (A10: ruhige Variante, Begriffe in Grotesk) */
.gx-abgr { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 16px; }
.gx-abgr th, .gx-abgr td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.gx-abgr thead th:first-child { width: 32%; }
.gx-abgr thead th { font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--label); border-bottom: 2px solid var(--line-strong); }
.gx-abgr tbody th { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--forest-deep); width: 32%; }

/* Haeufige Irrtuemer (A11) */
.gx-myth { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin: 0 0 10px; overflow: hidden; transition: border-color .15s ease; }
.gx-myth summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; gap: 12px; align-items: baseline; font-size: 16.5px; line-height: 1.5; min-height: 44px; box-sizing: border-box; }
.gx-myth summary::-webkit-details-marker { display: none; }
.gx-myth__t { min-width: 0; flex: 1 1 auto; }
.gx-myth__k { flex: none; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--r-pill); background: var(--clay-soft); color: var(--clay-ink); }
.gx-myth__k--ok { background: var(--sage-soft); color: var(--forest); margin-right: 10px; }
.gx-myth__open { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--sans); color: var(--forest); }
.gx-myth__open::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.gx-myth[open] .gx-myth__open { font-size: 0; }
.gx-myth[open] .gx-myth__open::after { transform: translateY(2px) rotate(-135deg); }
.gx-myth summary:hover .gx-myth__open { text-decoration: underline; text-underline-offset: 3px; }
.gx-myth p { margin: 0 !important; padding: 2px 18px 18px; font-size: 16.5px !important; line-height: 1.6 !important; }
.gx-myth[open] { border-color: var(--line-strong); }

/* Bei uns erwaehnt, Verwandte Begriffe */
.gx-mentions { display: grid; gap: 8px; }
.gx-mention { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--forest-deep); text-decoration: none; font: 600 16px/1.45 var(--sans); }
.gx-mention:hover { border-color: var(--line-strong); background: var(--paper-2); }
.gx-rels { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-rel { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 8px 16px; border-radius: var(--r-pill); font: 600 14px/1.2 var(--sans); background: var(--surface); border: 1px solid var(--line-strong); color: var(--forest); text-decoration: none; }
.gx-rel:hover { background: var(--sage-soft); border-color: transparent; }
.gx-rel--wip { background: var(--paper-2); color: var(--ink-faint); }

/* Quellen im Artikelmuster .tgi-quellen (A7) */
.gx-quellen { padding: 20px 24px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; font-size: 15px; line-height: 1.6; }
.gx-quellen__stand { margin: 0 0 12px !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--ink-faint); }
.gx-quellen ol { margin: 0; padding-left: 1.3em; }
.gx-quellen li { padding: 4px 0; color: var(--ink-soft); }
.gx-quellen li::marker { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.gx-q__hg { font-weight: 600; color: var(--ink); }
.gx-quellen a { color: var(--clay-ink); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.gx-quellen a:hover { text-decoration-thickness: 2px; }
.gx-q__zus { color: var(--ink-faint); }

/* Stand, Korrekturen, Blaettern */
.gx-small { font-size: 14px !important; color: var(--ink-faint); margin-top: 10px !important; }
.gx-nowrap { white-space: nowrap; }
.gx-stand { margin-top: 44px; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper-2); font-size: 14.5px; line-height: 1.6; }
.gx-stand p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.gx-stand a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gx-pn { margin-top: 26px; }
.gx-pn a { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); font-weight: 600; text-decoration: none; }
.gx-pn a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kurzinfo im Artikel ---------- */
.gx-link { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: help; }
.gx-link:hover, .gx-link:focus-visible { background: var(--sage-soft); border-radius: 3px; }
.gx-tip { position: absolute; z-index: 10000; width: min(340px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--tip-ink, var(--forest)); border-radius: var(--r-md); box-shadow: 0 20px 40px -18px oklch(0.2 0.03 160 / .55); padding: 16px 18px 14px; font-family: var(--sans); }
.gx-tip[hidden] { display: none; }
.gx-tip__k { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin: 0 0 6px; }
.gx-tip__t { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 6px; color: var(--forest-deep); }
.gx-tip__d { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.gx-tip__a { font: 700 13.5px/1 var(--sans); color: var(--tip-ink, var(--forest)); text-decoration: none; }
.gx-tip__x { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-faint); cursor: pointer; }

/* D5 P2-8: bis 820 px einzeilig (27 Felder, kompakt), darunter 9er-Raster ohne Kleben – sonst belegt die Leiste
   auf dem Tablet ein Drittel des Bildschirms. --gx-bar setzt glossar.js nur, solange die Leiste klebt. */
@media (max-width: 1100px) {
  .gx-az a, .gx-az span { font-size: 15px; height: 44px; }
}
@media (max-width: 819px) {
  .gx { --gx-bar: 0px; }
  .gx-bar { position: static; }
  .gx-az { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .gx-az a, .gx-az span { height: 44px; }
}
@media (max-width: 900px) {
  .gx-layout { grid-template-columns: minmax(0, 1fr); }
  .gx-side { position: static; }
  .gx-toc { border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px; background: var(--surface); }
  .gx-toc summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
  .gx-toc summary::after { content: "+"; font: 600 20px/1 var(--sans); color: var(--forest); }
  .gx-toc[open] summary::after { content: "–"; }
  .gx-toc .gx-toc__h { margin: 0; }
  .gx-letter { position: static; }
}
@media (max-width: 600px) {
  .gx-group { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .gx-letter { font-size: 38px; }
  .gx-bar { position: static; }
  /* D5 P1-5: vollständiges 9er-Raster (3 × 9), inaktive Buchstaben bleiben grau sichtbar. */
  .gx-az { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
  .gx-az a, .gx-az span { height: 44px; font-size: 16px; }
  .gx-filterzeile summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); font: 600 14px/1 var(--sans); color: var(--forest); cursor: pointer; list-style: none; }
  .gx-filterzeile summary::-webkit-details-marker { display: none; }
  .gx-filterzeile[open] .gx-filter { margin-top: 10px; }
  .gx-abgr, .gx-abgr thead, .gx-abgr tbody, .gx-abgr tr, .gx-abgr th, .gx-abgr td { display: block; width: auto; }
  .gx-abgr thead { display: none; }
  .gx-abgr tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .gx-abgr th, .gx-abgr td { padding: 0; border: 0; }
  .gx-abgr tbody th { margin-bottom: 4px; width: auto !important; }
  /* D5 P2-3: schmal darf in Kartentexten automatisch getrennt werden. */
  .gx-card__def, .gx-card__also { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}
/* ---------- Section: Neueste Artikel nach Themenwelt ---------- */
.gx-neu { background: var(--paper); padding: clamp(48px, 6vw, 84px) 0; border-top: 1px solid var(--line); }
.gx-eyebrow--light { color: var(--label); }
.gx-neu__h { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; margin: 0 0 22px; color: var(--forest-deep); } /* D5 P2-7: wie die anderen Section-H2 */
.gx-neu__h .serif-it { font-style: italic; color: var(--sage); }
.gx-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.gx-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font: 600 13.5px/1 var(--sans); padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.gx-tab i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--sage)); }
.gx-tab.is-on { background: var(--forest-deep); color: var(--on-dark); border-color: transparent; }
.gx-arts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gx-arts[hidden] { display: none; }
.gx-art { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.gx-art__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); }
.gx-art__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gx-art:hover .gx-art__img img { transform: scale(1.04); }
.gx-art__lw { font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.gx-art__t { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.25; color: var(--forest-deep); text-wrap: balance;
  /* D5 P2-3: nur sehr lange Komposita trennen (≥ 14 Zeichen, je Seite ≥ 6), damit „Heizdecke“ ganz bleibt, schmale Spalten aber nicht überlaufen. */
  -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 14 6 6; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 6; }
.gx-art:hover .gx-art__t { text-decoration: underline; text-underline-offset: 3px; }
.gx-art__d { font-size: 13px; color: var(--ink-faint); }
.gx-neu__more { margin: 26px 0 0; }
.gx-neu__more a { font-weight: 700; color: var(--forest); text-decoration: none; }
@media (max-width: 900px) { .gx-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gx-arts { grid-template-columns: 1fr; } }

/* ---------- Auflagen Designprüfung 3 ---------- */
/* R3-W3: Leer-Meldung direkt unter dem Suchfeld (nur bei aktiver Suche ohne Treffer). */
.gx-leer { margin: 10px auto 0; max-width: 560px; font-size: 15px; line-height: 1.5; color: var(--on-dark); }
.gx-leer button { min-height: 44px; margin-left: 4px; padding: 0 6px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--on-dark-sage); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* R3-F1: Hinweiszeile ausgewogen umbrechen. */
.gx-search__hint { text-wrap: balance; }
/* W2/R3-F3: Chips links in eigener Zeile-Gruppe, Auswahlfeld rechts daneben (Desktop eine Zeile). */
.gx-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
/* D5 P1-6: ab Tablet linksbündiger Fluss – Chips und Auswahlfeld stehen in EINER Reihe hintereinander und brechen gemeinsam um
   (.gx-chips löst sich auf), kein verwaister Chip in einer zentrierten Zeile, kein schwebendes Auswahlfeld. */
@media (min-width: 601px) {
  .gx-filter { flex-wrap: wrap; justify-content: flex-start; }
  .gx-chips { display: contents; }
  .gx-filter select { flex: none; }
}
/* R3-F5 / W3: Tippziele 44 px. */
.gx-tip__a { display: inline-flex; align-items: center; min-height: 44px; }
.gx-neu__more a { display: inline-flex; align-items: center; min-height: 44px; }
/* Leerer Zustand der Seite (noch keine veröffentlichten Einträge). */
.gx-aufbau { margin: 0 auto; max-width: 620px; text-align: center; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
/* Theme-Ergänzungen Begriffsseite (über das Mockup hinaus, gleiche Formensprache). */
.gx-korr { margin: 10px 0 0; padding-left: 18px; font-size: 14.5px; line-height: 1.6; }
.gx-pn { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between; }
.gx-pn a { overflow-wrap: anywhere; }
.gx-mention__t { min-width: 0; overflow-wrap: anywhere; }
.gx-mention__lw { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--label); white-space: nowrap; }
.gx-arts:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: var(--r-md); }

/* ---------- Einzelseite: Breakpoints (A3, A13) ---------- */
@media (max-width: 1024px) {
  .gx-head__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gx-glance { max-width: 560px; }
}
@media (max-width: 600px) {
  .gx-head .wrap { padding-bottom: 32px; }
  /* D5 P1-7: Trennung nur an den &shy; der Vorlage; automatisch nur für lange Titel ohne &shy; (Klasse aus single-glossar.php). */
  .gx-head__title { -webkit-hyphens: manual; hyphens: manual; font-size: clamp(30px, 8.6vw, 40px); }
  .gx-head__title--auto { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  /* D5 P2-1: Meta-Zeile untereinander, kein verwaister Trennpunkt am Zeilenende. */
  .gx-head__meta.meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .gx-head__meta .sep { display: none; }
  .gx-head__def { font-size: 18px; }
  .gx-glance { padding: 22px 20px 18px; border-radius: var(--r-md); }
  .gx-glance dl > div { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .gx-sec + .gx-sec { margin-top: 36px; }
  .gx-sec h2 { font-size: 26px; }
  .gx-alltag { padding: 20px; }
  .gx-norm { padding: 18px 18px 16px 22px; }
  .gx-quellen { padding: 16px 18px; }
  /* D5 P2-5: Aufklapp-Zeichen rechts oben fest, statt eines einzelnen „^“ in eigener Zeile. */
  .gx-myth summary { position: relative; padding-right: 44px; }
  .gx-myth__open { position: absolute; right: 18px; top: 22px; margin-left: 0; font-size: 0; gap: 0; }
  .gx-pn { flex-direction: column; align-items: flex-start; gap: 0; }
}
