/* =====================================================================
   guide-kit.css · Artikel-Layout für Ratgeber und Blogbeiträge
   Gemeinsam für Pelican, SeaMemo, Forage und Nitido. Diese Datei enthält
   keine Markenwerte: Schriften und Farben kommen aus den --g-* Tokens,
   die jede Website in ihrem eigenen Stylesheet setzt (siehe Ende der
   Datei). Regeln und Begründungen: docs/artikel-layout-konzept.md
   Alle Klassen beginnen mit gk-, damit nichts mit alten Stilen kollidiert.
   ===================================================================== */

.gk {
  --gk-measure: 40rem;          /* Textspalte: ≈ 72–75 Zeichen bei 19 px */
  --gk-toc: 13.5rem;            /* Desktop-Inhaltsverzeichnis */
  --gk-gap: 3.5rem;
  --gk-radius: var(--g-radius, 14px);
  font-family: var(--g-sans, system-ui, sans-serif);
  font-size: 1.125rem;          /* 18 px mobil */
  line-height: 1.6;
  color: var(--g-ink-soft, #333);
  /* gleiche Breite und gleicher Rand wie der Container von Kopf- und Fußzeile der Website */
  max-width: var(--g-maxw, 1120px); margin-inline: auto;
  padding: 2.25rem var(--g-gutter, 1.5rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.gk *, .gk *::before, .gk *::after { box-sizing: border-box; }
/* Schutz gegen globale Element-Stile der jeweiligen Website (z. B. sticky <header>, Abstand an <section>) */
/* :where() hält die Spezifität auf Element-Ebene, damit jede gk-Klasse diese Rücksetzung überschreibt */
:where(.gk) :is(header, section, aside, nav, details) {
  position: static; z-index: auto; padding: 0; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}

/* ---------- Überschriften ---------- */
:where(.gk) h1, :where(.gk) h2, :where(.gk) h3, :where(.gk) h4 { color: var(--g-ink, #111); letter-spacing: -0.01em; text-wrap: pretty; }
:where(.gk) h1, :where(.gk) h2, :where(.gk) h3 { font-family: var(--g-serif, Georgia, serif); font-weight: 500; }
:where(.gk) h1 { font-size: 2rem; line-height: 1.12; margin: 0; text-wrap: pretty; }
:where(.gk) h2 { font-size: 1.6875rem; line-height: 1.2; margin: 3.25rem 0 .75rem; }
/* Sprungmarken landen unter der fixierten Kopfzeile der Website (Höhe per Token einstellbar) */
html:has(.gk) { scroll-padding-top: var(--g-header-offset, 5.5rem); }
:where(.gk) h3 { font-size: 1.375rem; line-height: 1.25; margin: 2.5rem 0 .5rem; }
:where(.gk) h4 { font-family: var(--g-sans, sans-serif); font-weight: 700; font-size: 1.125rem; line-height: 1.35; margin: 1.6rem 0 .4rem; }

/* ---------- Fließtext ---------- */
:where(.gk) p, :where(.gk) ul, :where(.gk) ol { margin: 0 0 1em; }
:where(.gk) ul, :where(.gk) ol { padding-left: 1.4em; }
:where(.gk) li { margin-bottom: .5em; padding-left: .15em; }
.gk-nw { white-space: nowrap; }
:where(.gk) li::marker { color: var(--g-ink-mute, #666); }
:where(.gk) strong { font-weight: 650; color: var(--g-ink, #111); }
:where(.gk) em { font-style: italic; }
:where(.gk) a { color: var(--g-link, #0645ad); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
:where(.gk) a:hover { text-decoration-thickness: 2px; }
:where(.gk) a:focus-visible, .gk summary:focus-visible, .gk-table:focus-visible {
  outline: 3px solid var(--g-ink, #111); outline-offset: 3px; border-radius: 4px;
}
:where(.gk) abbr[title] { text-decoration: none; }

/* ---------- Kopf ---------- */
.gk-head { margin-bottom: 2rem; }
.gk-crumbs { font-size: .9375rem; color: var(--g-ink-mute, #666); margin-bottom: 1.1rem; }
.gk-crumbs a { color: inherit; }
.gk-crumbs span[aria-hidden] { margin: 0 .4em; }
.gk-kicker {
  font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--g-accent-text, var(--g-link, #0645ad)); margin: 0 0 .6rem;
}
.gk-lead { font-size: 1.25rem; line-height: 1.5; color: var(--g-ink-soft, #333); margin: 1.25rem 0 0; }
/* Byline in einer Zeile: wer schreibt, wann aktualisiert, Lesezeit (mobil untereinander) */
.gk-meta {
  font-size: .9375rem; line-height: 1.5; color: var(--g-ink-mute, #666);
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--g-line, #ddd);
}
.gk .gk-meta p { margin: 0 0 .2rem; }
.gk-meta a { color: var(--g-ink, #111); white-space: nowrap; }
.gk-meta-nw { white-space: nowrap; }
@media (max-width: 699px) {
  :where(.gk-article) p, :where(.gk-article) li { hyphens: auto; }
  .gk-meta-nw { display: block; }
  .gk-meta-nw > [aria-hidden] { display: none; }
}

/* „Auf einen Blick“ */
.gk-summary {
  background: var(--g-paper-2, #f4f4f4); border-radius: var(--gk-radius);
  padding: 1.35rem 1.4rem; margin: 0 0 1.75rem;
}
.gk .gk-summary-title {
  display: flex; align-items: center; gap: .45em;
  font-family: var(--g-sans, sans-serif); font-size: .875rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--g-ink, #111); margin: 0 0 .7rem;
}
.gk-summary-title::before {
  content: ""; width: 1.15rem; height: 1.15rem; flex: none; background: var(--g-accent, #333);
  -webkit-mask: 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%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M3.5 6l1.2 1.2L7 5M3.5 12l1.2 1.2L7 11M3.5 18l1.2 1.2L7 17'/%3E%3C/svg%3E") center / contain no-repeat; mask: 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%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M3.5 6l1.2 1.2L7 5M3.5 12l1.2 1.2L7 11M3.5 18l1.2 1.2L7 17'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gk .gk-summary ul { list-style: none; padding: 0; margin: 0; }
.gk-summary li { position: relative; padding-left: 1.6em; margin-bottom: .5em; font-size: .95em; line-height: 1.5; }
.gk .gk-summary li:last-child { margin-bottom: 0; }
.gk-summary li::before, .gk-compare li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1em; height: 1em; background: var(--gk-mark, var(--g-accent, #333));
  -webkit-mask: var(--gk-mark-ico) center / contain no-repeat; mask: var(--gk-mark-ico) center / contain no-repeat;
}
.gk-summary, .gk-compare-good { --gk-mark-ico: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E"); }
.gk-compare-bad { --gk-mark-ico: 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.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); --gk-mark: var(--g-warn, #b3261e); }
.gk-compare-good { --gk-mark: var(--g-ok, #2e7d4f); }

/* ---------- Inhaltsverzeichnis ---------- */
.gk-toc { margin: 0 0 2.25rem; }
.gk-toc details { border: 1px solid var(--g-line, #ddd); border-radius: var(--gk-radius); padding: 0; background: var(--g-surface, #fff); }
.gk-toc summary {
  font-family: var(--g-sans, sans-serif); font-size: 1rem; font-weight: 700; color: var(--g-ink, #111);
  padding: .85rem 3rem .85rem 1.1rem; cursor: pointer; list-style: none; position: relative;
}
.gk-toc summary::-webkit-details-marker { display: none; }
.gk-toc summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.35rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.gk-toc details[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.gk-toc ol { list-style: none; padding: 0 1.1rem .9rem; margin: 0; counter-reset: toc; }
.gk-toc li { margin: 0; padding: 0; counter-increment: toc; }
.gk-toc a {
  display: flex; gap: .6em; padding: .4rem 0; font-size: 1rem; line-height: 1.35;
  color: var(--g-ink-soft, #333); text-decoration: none;
}
.gk-toc a::before { content: counter(toc); min-width: 1.2em; color: var(--g-ink-mute, #666); font-variant-numeric: tabular-nums; }
.gk-toc a:hover { color: var(--g-ink, #111); text-decoration: underline; }
.gk-toc a[aria-current="true"] { color: var(--g-ink, #111); font-weight: 650; }
.gk-toc a[aria-current="true"]::before { color: var(--g-accent, #333); }

/* ---------- Seitenleiste: Inhaltsverzeichnis + CTA-Karte (Karte nur auf dem Desktop) ---------- */
.gk-rail { display: contents; }
.gk-promo { display: none; }

/* ---------- Boxen: Tipp, Achtung, Vorschrift ---------- */
.gk-tip {
  --gk-tone: var(--g-accent, #333);
  background: var(--g-paper-2, #f4f4f4); border-radius: var(--gk-radius);
  padding: 1.35rem 1.4rem; margin: 2rem 0; font-size: .95em; line-height: 1.55;
}
.gk .gk-tip > :last-child { margin-bottom: 0; }
.gk .gk-tip p:not(.gk-tip-label) { font-size: inherit; }
.gk-tip--warn { --gk-tone: var(--g-warn, #b3261e); background: var(--g-warn-bg, #fbeeec); }
.gk-tip--law { --gk-tone: var(--g-accent, #333); }
.gk .gk-tip-label {
  display: flex; align-items: center; gap: .45em; margin: 0 0 .4rem;
  font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-ink, #111);
}
.gk-tip-label::before {
  content: ""; width: 1.15rem; height: 1.15rem; flex: none; background: var(--gk-tone);
  -webkit-mask: var(--gk-ico) center / contain no-repeat; mask: var(--gk-ico) center / contain no-repeat;
}
.gk-tip { --gk-ico: 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%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.gk-tip--warn { --gk-ico: 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%3Cpath d='M12 3 2 20h20L12 3z'/%3E%3Cpath d='M12 10v4M12 17.5v.01'/%3E%3C/svg%3E"); }
.gk-tip--law { --gk-ico: 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%3Cpath d='M12 3v18M5 21h14M4 7h16M7 7l-3 7a3 3 0 0 0 6 0L7 7zM17 7l-3 7a3 3 0 0 0 6 0l-3-7z'/%3E%3C/svg%3E"); }

/* ---------- Nummerierte Schritte ---------- */
.gk-steps { list-style: none; padding: 0; margin: .75rem 0 1.5rem; }
.gk-steps > li { position: relative; padding-left: 2.75rem; margin-bottom: 1rem; }
.gk-steps > li::before {
  content: counter(list-item); position: absolute; left: 0; top: .1em;
  width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--g-sans, sans-serif); font-size: .875rem; font-weight: 700; line-height: 1;
  color: var(--g-paper, #fff); background: var(--g-ink, #111);
}
/* Zwischentitel, der eine Gruppe von Schritten einleitet */
.gk .gk-phase {
  display: flex; align-items: center; gap: .75rem; margin: 1.75rem 0 .25rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g-accent-text, #333);
}
.gk-phase::after { content: ""; flex: 1; height: 1px; background: var(--g-line, #ddd); }

/* ---------- Abbildungen ---------- */
.gk-fig { margin: 2rem 0; }
.gk-fig img, .gk-fig picture { display: block; max-width: 100%; height: auto; }
.gk-fig img { border-radius: calc(var(--gk-radius) - 4px); }
.gk-fig figcaption { margin-top: .7rem; font-size: .9375rem; line-height: 1.45; color: var(--g-ink-soft, #333); }
.gk-fig figcaption small { display: block; margin-top: .2rem; font-size: .875rem; color: var(--g-ink-mute, #666); }
.gk-fig figcaption small a { color: inherit; }
.gk-fig--phone { text-align: center; }
.gk-fig--phone img { width: min(300px, 78%); margin: 0 auto; border-radius: 20px; border: 1px solid var(--g-line, #ddd); box-shadow: 0 16px 36px rgba(0, 0, 0, .10); }
.gk-fig--phone figcaption { max-width: 30rem; margin-inline: auto; }
.gk-fig--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* Fotos: volle Textspalte, Seitenverhältnis kommt aus width/height. Bildnachweis gesammelt am Ende (.gk-credits) */
.gk-fig--photo img { width: 100%; height: auto; background: var(--g-paper-2, #eee); }
.gk-fig--hero { margin: 1.75rem 0 0; }
@media (max-width: 699px) {
  .gk-fig--hero { margin-inline: calc(-1 * var(--g-gutter, 1.5rem)); }
  .gk-fig--hero img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
}
.gk-fig--app {
  display: grid; gap: 1.25rem; align-items: center; background: var(--g-app-bg, #f4f1eb);
  border-radius: var(--gk-radius); padding: 1.25rem 1.25rem 0; overflow: hidden;
}
.gk-fig--app img { width: min(16rem, 82%); height: auto; margin: 0 auto; border-radius: 0; background: none;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.gk .gk-fig--app figcaption { margin: 0; padding: 0 0 1.5rem; font-size: 1em; color: var(--g-ink-soft, #333); }
.gk-fig--app figcaption strong { display: block; margin-bottom: .3rem; font-family: var(--g-serif, serif); font-weight: 500; font-size: 1.25em; line-height: 1.25; }
@media (min-width: 700px) {
  .gk-fig--app { grid-template-columns: 12rem 1fr; gap: 2.25rem; padding: 1.75rem 2rem 0; align-items: end; }
  .gk-fig--app img { width: 100%; }
  .gk .gk-fig--app figcaption { align-self: center; padding: 0 0 2rem; }
}
.gk-credits { margin-top: 1.25rem; font-size: .875rem; line-height: 1.75; color: var(--g-ink-mute, #666); }
.gk-credits strong { color: inherit; font-weight: 650; }
.gk-credits a { color: inherit; }

/* ---------- Tabellen ---------- */
.gk-table { margin: 2rem 0; overflow-x: auto; border: 1px solid var(--g-line, #ddd); border-radius: var(--gk-radius); background: var(--g-surface, #fff); }
.gk-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.gk-table caption { caption-side: top; text-align: left; padding: .9rem 1rem .6rem; font-family: var(--g-serif, serif); font-weight: 500; font-size: 1.125rem; line-height: 1.3; color: var(--g-ink, #111); }
.gk-table th, .gk-table td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-top: 1px solid var(--g-line, #ddd); }
.gk-table th { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--g-ink-mute, #666); background: var(--g-paper-2, #f4f4f4); }
.gk-table tbody th { padding-right: 1.1rem; text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: 650; color: var(--g-ink, #111); background: none; white-space: nowrap; }
.gk .gk-table-note { margin: 0; padding: .8rem 1rem .9rem; border-top: 1px solid var(--g-line, #ddd); background: var(--g-paper-2, #f4f4f4); font-size: .9375rem; line-height: 1.5; color: var(--g-ink-soft, #333); }
.gk-table-note strong { color: var(--g-ink, #111); }
@media (min-width: 700px) {
  .gk-table--fixed table { table-layout: fixed; }
  .gk-table--fixed td { hyphens: auto; overflow-wrap: break-word; }
  .gk-table--fixed th, .gk-table--fixed td { padding-inline: .8rem; }
}
.gk-table td.num, .gk-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* Unter 700 px: jede Zeile wird eine Karte mit Beschriftung (data-label), statt seitlich zu scrollen */
@media (max-width: 699px) {
  .gk-table--cards { overflow: hidden; }
  .gk-table--cards table, .gk-table--cards tbody, .gk-table--cards tr, .gk-table--cards th, .gk-table--cards td { display: block; width: auto; }
  .gk-table--cards caption { display: block; padding: .9rem 1rem .4rem; }
  .gk-table--cards thead { display: none; }
  /* jede Zeile ein Block mit Label links, Wert rechts: kompakt statt Kartenstapel */
  .gk-table--cards tr { border-top: 1px solid var(--g-line, #ddd); padding: .75rem 1rem .6rem; }
  .gk-table--cards tbody th { border: 0; padding: 0 0 .35rem; font-size: 1rem; }
  .gk-table--cards td { display: grid; grid-template-columns: 5.25rem 1fr; gap: .6rem; border: 0; padding: .15rem 0; font-size: .9375rem; }
  .gk-table--cards td::before { content: attr(data-label); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--g-ink-mute, #666); padding-top: .2em; }
}
.gk-table-hint { display: block; font-size: .875rem; color: var(--g-ink-mute, #666); padding: 0 1rem .7rem; }

/* ---------- Gegenüberstellung ---------- */
.gk-compare { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
.gk-compare > div {
  border-radius: var(--gk-radius); padding: 1.35rem 1.5rem 1.2rem;
  background: var(--g-paper-2, #f4f4f4);
}
.gk .gk-compare ul { margin: 0; }
.gk .gk-compare li:last-child { margin-bottom: 0; }
.gk .gk-compare h3 { margin: 0 0 .75rem; font-size: 1.25rem; }
.gk-compare ul { list-style: none; padding: 0; }
.gk-compare li { position: relative; padding-left: 1.6em; font-size: .95em; }

/* ---------- Zitat ---------- */
:where(.gk) blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--g-line, #ddd); font-family: var(--g-serif, serif); font-size: 1.25rem; line-height: 1.45; color: var(--g-ink, #111); }
:where(.gk) blockquote + p.gk-quote-src { font-size: .9375rem; color: var(--g-ink-mute, #666); margin-top: -1.25rem; }

/* ---------- Produkt-Abschnitt und Hinweis im Text ---------- */
.gk-cta {
  background: var(--g-ink, #111); color: var(--g-paper, #fff); border-radius: var(--gk-radius);
  padding: 2rem 1.5rem; margin: 3rem 0 1rem; text-align: center;
}
.gk .gk-cta h2 { color: var(--g-paper, #fff); margin: 0 0 1rem; font-size: 1.5rem; }
.gk-cta p { color: rgba(255, 255, 255, .88); margin: 0 auto 1.4rem; max-width: 34rem; font-size: 1.0625rem; }
.gk .gk-cta a.gk-btn {
  display: inline-block; text-decoration: none; font-weight: 700; color: #fff;
  background: var(--g-accent, #333); padding: .85rem 1.6rem; border-radius: 999px;
}
.gk .gk-cta a.gk-btn:hover { background: var(--g-accent-dark, #000); }
.gk-cta-note { display: block; margin-top: .8rem; font-size: .875rem; color: rgba(255, 255, 255, .75); }

/* ---------- FAQ ---------- */
.gk-faq { margin: 1rem 0 0; }
.gk-faq details { border: 0; border-bottom: 1px solid var(--g-line, #ddd); padding: 0; }
.gk-faq details:first-child { border-top: 1px solid var(--g-line, #ddd); }
.gk-faq summary {
  font-family: var(--g-sans, sans-serif); font-size: 1.0625rem; font-weight: 650; line-height: 1.4; color: var(--g-ink, #111);
  padding: 1rem 2.5rem 1rem 0; cursor: pointer; list-style: none; position: relative;
}
.gk-faq summary::-webkit-details-marker { display: none; }
.gk-faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: .55rem; font-size: 1.6rem; font-weight: 300;
  color: var(--g-accent, #333); transition: transform .2s;
}
.gk-faq details[open] summary::after { transform: rotate(45deg); }
.gk-faq details > div { padding: 0 0 .6rem; }

/* ---------- Quellen ---------- */
.gk-sources { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--g-line, #ddd); }
.gk-faq + .gk-sources { border-top: 0; padding-top: 0; }
.gk .gk-sources h2 { margin: 0 0 .5rem; }
.gk-sources ol { font-size: .9375rem; line-height: 1.5; padding-left: 1.6em; }
.gk-sources li { margin-bottom: .6em; }
.gk-sources-date { font-size: .9375rem; color: var(--g-ink-mute, #666); margin: -.25rem 0 .8rem; }

/* ---------- Über diesen Ratgeber ---------- */
.gk-author {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  border-top: 1px solid var(--g-line, #ddd); border-bottom: 1px solid var(--g-line, #ddd);
  padding: 1.5rem 0; margin: 3rem 0 0;
}
.gk-author-badge {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--g-paper-2, #eee); font-family: var(--g-serif, serif); font-weight: 600; font-size: 1.1rem; color: var(--g-ink, #111);
}
.gk-author-badge img { width: 100%; height: 100%; object-fit: cover; }
.gk .gk-author-title { font-family: var(--g-sans, sans-serif); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .35rem; color: var(--g-ink-mute, #666); }
.gk-author p { font-size: 1rem; line-height: 1.55; margin-bottom: .5em; }
.gk-author a { white-space: nowrap; }

/* ---------- Weiterlesen ---------- */
.gk-related { margin-top: 2.5rem; }
.gk-related h2 { margin-top: 0; }
.gk-related ul { list-style: none; padding: 0; display: grid; gap: .75rem; }
.gk-related li { margin: 0; padding: 0; }
.gk-related li a {
  display: block; height: 100%; text-decoration: none; padding: 1rem 1.1rem; border-radius: var(--gk-radius);
  border: 1px solid var(--g-line, #ddd); background: var(--g-surface, #fff); transition: border-color .15s, transform .15s;
}
.gk-related li a:hover { border-color: var(--g-accent, #333); }
.gk-related-tag { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-ink-mute, #666); margin-bottom: .3rem; }
.gk-related-title { display: block; font-size: 1rem; line-height: 1.4; font-weight: 650; color: var(--g-ink, #111); }
.gk-related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .9rem; }
.gk .gk-related-head h2 { margin: 0; }
.gk-related-all { font-size: 1rem; white-space: nowrap; }

/* ---------- Nach oben ---------- */
.gk-top {
  position: fixed; right: .6rem; bottom: .9rem; z-index: 40; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--g-surface, #fff); color: var(--g-ink, #111);
  border: 1px solid var(--g-line, #ddd); box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.gk-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.gk-top svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Breiten ---------- */
.gk-head, .gk-summary, .gk-toc, .gk-article { width: 100%; max-width: var(--gk-measure); margin-inline: auto; }
.gk-article > :first-child { margin-top: 0; }
.gk:not(:has(.gk-toc)) .gk-head { margin-bottom: 3.25rem; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .gk { padding-top: 3rem; }
  .gk-compare { grid-template-columns: 1fr 1fr; }
  .gk-related ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gk-summary, .gk-tip { padding: 1.5rem 1.75rem; }
  .gk-cta { padding: 2.5rem 2.5rem; }
}

/* ---------- Desktop: Inhaltsverzeichnis links ab dem Seitenkopf, daneben die Textspalte ----------
   Alles im Artikel bleibt in der Textspalte (auch Tabellen und Grafiken), damit es eine klare rechte Kante gibt.
   Die Textspalte bleibt immer bei ≈ 75 Zeichen. Auf großen Bildschirmen wachsen Schrift UND Spalte gemeinsam
   (siehe 1600 px / 1900 px), statt dass die Zeilen länger werden. */
@media (min-width: 1100px) {
  .gk {
    font-size: 1.1875rem;       /* 19 px */
    padding: 3.5rem 1.5rem 6rem;
    --gk-measure: 42rem; --gk-toc: 17.5rem;   /* zusammen mit dem Rest des Containers: ≈ 7 rem Abstand, keine Leerfläche */
    grid-template-columns: var(--gk-toc) minmax(0, var(--gk-measure));
    grid-template-areas: "toc head" "toc side" "toc article";
    grid-template-rows: auto auto 1fr;
    column-gap: var(--gk-gap);
    justify-content: space-between;
  }
  /* Seiten ohne Inhaltsverzeichnis (z. B. Redaktionsseite): eine Spalte, mittig */
  .gk:not(:has(.gk-toc)) { grid-template-columns: minmax(0, var(--gk-measure)); grid-template-areas: "head" "side" "article"; justify-content: center; }
  .gk-head { grid-area: head; max-width: none; margin: 0 0 2rem; }
  .gk-summary { grid-area: side; max-width: none; margin: 0 0 3.5rem; }
  .gk-toc { grid-area: toc; align-self: start; position: sticky; top: 6.5rem; max-width: none; margin: 0;
            max-height: calc(100vh - 8rem); overflow-y: auto; scrollbar-width: thin; }
  /* Mit Seitenleiste läuft die ganze Leiste mit, nicht nur das Inhaltsverzeichnis */
  .gk-rail { display: flex; flex-direction: column; gap: 2.25rem; grid-area: toc; align-self: start; position: sticky; top: 6.5rem; }
  .gk-rail .gk-toc { position: static; max-height: none; overflow: visible; }
  .gk-article { grid-area: article; max-width: none; margin: 0; }

  :where(.gk) h1 { font-size: 2.625rem; text-wrap: balance; }
  :where(.gk) h2 { font-size: 1.875rem; margin-top: 3.5rem; }
  :where(.gk) h3 { font-size: 1.4375rem; margin-top: 2.25rem; }
  :where(.gk) h4 { font-size: 1.1875rem; }
  .gk-lead { font-size: 1.3125rem; margin-top: 1.6rem; }
  .gk-meta, .gk-fig figcaption, .gk-sources ol { font-size: 1rem; }

  /* Auf dem Desktop ist das Inhaltsverzeichnis immer offen, als ruhige Liste */
  .gk-toc details { border: 0; background: none; border-left: 1.5px solid var(--g-line, #ddd); border-radius: 0; }
  .gk-toc summary { pointer-events: none; padding: .1rem 0 .7rem 1.1rem; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--g-ink-mute, #666); }
  .gk-toc summary::after { display: none; }
  .gk-toc ol { padding: 0 0 0 1.1rem; }
  .gk-toc a { font-size: .9375rem; padding: .32rem 0; color: var(--g-ink-mute, #666); }
  .gk-toc a[aria-current="true"] { color: var(--g-ink, #111); }
}

/* CTA-Karte: Slogan, App-Ausschnitt passend zum Ratgeber, Store-Buttons. Die Seitenleiste ist höchstens
   so hoch wie der Bildschirm; reicht der Platz nicht, wird zuerst der App-Ausschnitt kürzer.
   Erscheint erst nach dem ersten Abschnitt (guide-kit.js). */
@media (min-width: 1100px) and (min-height: 680px) {
  .gk-rail { max-height: calc(100vh - 8rem); }
  .gk-rail .gk-toc { flex: none; }
  .gk-promo {
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
    background: var(--g-paper-2, #f4f4f4); border-radius: var(--gk-radius); padding: 1.25rem 1.125rem;
    opacity: 0; visibility: hidden; transform: translateY(.5rem);
  }
  /* Ohne JavaScript bleibt die Karte weg; die CTA-Box am Ende ist immer da */
  .gk-promo.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .gk .gk-promo-title {
    flex: none; margin: 0 0 1rem; text-align: center; text-wrap: balance;
    font-family: var(--g-serif, serif); font-weight: 600; font-size: 1.25rem; line-height: 1.15; color: var(--g-ink, #111);
  }
  .gk-promo-title span { color: var(--g-accent-text, #333); }
  /* Handy oben angeschnitten, unten ausgeblendet wie im App-Modul im Text */
  .gk-promo-shot {
    flex: 0 1 auto; min-height: 0; overflow: hidden; display: flex; justify-content: center;
    -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent);
  }
  /* Handy so breit wie die Reihe der Store-Buttons: eine gemeinsame Achse */
  .gk-promo-shot img { width: 14.75rem; max-width: 100%; height: auto; align-self: flex-start; }
  .gk-promo-stores { flex: none; display: flex; justify-content: center; gap: .5rem; margin-top: .875rem; }
  .gk-promo-stores a { display: block; line-height: 0; border-radius: .45rem; transition: transform .15s ease; }
  .gk-promo-stores a:hover { transform: translateY(-2px); }
  .gk-promo-stores img { display: block; height: 2.25rem; width: auto; }
}
/* Notebook-Höhe (z. B. 1536×864, 1280×800): Inhaltsverzeichnis enger, damit das Handy groß bleibt.
   Handy und Button-Reihe behalten dieselbe Breite. */
@media (min-width: 1100px) and (min-height: 680px) and (max-height: 899px) {
  .gk-rail { gap: 1.5rem; }
  .gk-rail .gk-toc a { padding: .2rem 0; }
  .gk-promo { padding-top: 1.1rem; }
  .gk .gk-promo-title { font-size: 1.1875rem; margin-bottom: .75rem; }
  .gk-promo-shot { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
  .gk-promo-shot img { width: 13rem; }
  .gk-promo-stores img { height: 2rem; }
}
/* Handy nur, wenn mindestens gut zwei Listenzeilen sichtbar sind; sonst nur Slogan und Store-Buttons */
@media (min-width: 1100px) and (max-height: 789px) {
  .gk-promo-shot { display: none; }
  .gk-promo-stores { margin-top: .25rem; }
}
@media (prefers-reduced-motion: reduce) { .gk-promo.is-shown, .gk-promo-stores a { transition: none; } }

/* ---------- Großer Bildschirm: alles proportional größer, Zeichen pro Zeile bleiben gleich ---------- */
@media (min-width: 1600px) {
  .gk {
    --gk-measure: 43.5rem; --gk-toc: 18.5rem; --gk-gap: 4rem;
    font-size: 1.25rem;         /* 20 px */
  }
  :where(.gk) h1 { font-size: 2.75rem; }
  :where(.gk) h2 { font-size: 2rem; }
  :where(.gk) h3 { font-size: 1.5rem; }
  :where(.gk) h4 { font-size: 1.25rem; }
  .gk-lead { font-size: 1.375rem; }
  .gk-meta, .gk-fig figcaption, .gk-sources ol { font-size: 1.0625rem; }
  .gk-toc a { font-size: 1rem; }
}
@media (min-width: 1900px) {
  .gk {
    --gk-measure: 44rem; --gk-toc: 18.5rem; --gk-gap: 4rem;
    font-size: 1.3125rem;       /* 21 px */
  }
  :where(.gk) h1 { font-size: 2.8125rem; }
  :where(.gk) h2 { font-size: 2.125rem; }
  .gk-lead { font-size: 1.4375rem; }
  .gk-meta, .gk-fig figcaption, .gk-sources ol { font-size: 1.125rem; }
  .gk-toc a { font-size: 1rem; }
}

/* ---------- Druck: nur der Artikel ---------- */
@media print {
  .gk-toc, .gk-promo, .gk-top, .gk-cta, .gk-related, header#site-header, footer { display: none !important; }
  .gk { display: block; padding: 0; font-size: 11pt; color: #000; }
  :where(.gk) a { color: #000; }
  .gk-fig, .gk-table, .gk-tip, .gk-steps > li, .gk-compare > div { break-inside: avoid; }
  .gk-faq details > div { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gk *, .gk *::before, .gk *::after { transition: none !important; }
}
