/* =====================================================================
   guide-kit-site.css · SkillPass-Marke für das Artikel-Layout (guide-kit.css)
   Lädt nur auf Ratgebern mit layout "gk" (app/components/marketing/guide/GuidePage.tsx),
   nach guide-kit.css. Bei Pelican stehen die Tokens in styles.css; hier eine eigene Datei,
   weil eine Änderung an app/app.css den Asset-Namen auf jeder Seite der Website ändern würde.
   Kontraste (WCAG): Text auf Weiß und auf --g-paper-2 jeweils mindestens 5:1.
   ===================================================================== */

:root {
  --g-serif: "Source Serif 4 Variable", "Source Serif 4", Georgia, serif;
  --g-sans: "Schibsted Grotesk Variable", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --g-ink: #0b1730;        /* 17,8:1 auf Weiß */
  --g-ink-soft: #46556e;   /* 7,5:1 */
  --g-ink-mute: #56657d;   /* 5,9:1 auf Weiß, 5,5:1 auf --g-paper-2 */
  --g-link: #1d4ed8;       /* 6,7:1 */
  --g-accent: #2563eb;     /* Marken-Blau; Weiß darauf 5,2:1 */
  --g-accent-dark: #1d4ed8;
  --g-accent-text: #1d4ed8;
  --g-warn: #b91c1c;
  --g-warn-bg: #fdecec;
  --g-ok: #15803d;
  --g-paper: #ffffff;
  --g-paper-2: #f3f6fb;    /* = --color-mist der Website */
  --g-surface: #ffffff;
  --g-line: #dce3ed;       /* = --color-rule */
  --g-app-bg: #e8eef9;     /* = --color-tint */
  --g-radius: 12px;
  /* Gleiche Kanten wie .container-page von Kopf- und Fußzeile (76rem, Rand 1,25 / 2 / 3 rem) */
  --g-maxw: 76rem;
  --g-gutter: 1.25rem;
  --g-header-offset: 5.5rem; /* Kopfzeile ist 4 rem hoch und sticky */
}
@media (min-width: 640px) { :root { --g-gutter: 2rem; } }
@media (min-width: 1024px) { :root { --g-gutter: 3rem; } }
/* Das Kit setzt ab 1100 px einen festen Seitenrand von 1,5 rem; SkillPass richtet die Spalten an der Navigation aus */
@media (min-width: 1100px) { .gk { padding-inline: var(--g-gutter); } }

/* Tailwind-Preflight nimmt Listen die Aufzählungszeichen; im Artikel gelten sie wieder */
:where(.gk-article) ul { list-style: disc; }
:where(.gk-article) ol { list-style: decimal; }
/* Chrome setzt Listenziffern in Tabellenziffern; bei Schibsted Grotesk steht dann eine Lücke vor dem Punkt („1 .“) */
.gk ol > li::marker { font-variant-numeric: normal; }
/* Mobil trennt das Kit im Artikel automatisch; Markenname, Autor und Bildnachweis nicht trennen */
.gk-cta p, .gk-author p, .gk-credits { -webkit-hyphens: manual; hyphens: manual; }
/* Knöpfe wie auf der übrigen Website (6 px Radius statt Pille) */
.gk .gk-cta a.gk-btn { border-radius: .375rem; }
.gk .gk-cta h2 { text-wrap: balance; }

/* Produkt-Ausschnitt im Browserrahmen (SkillPass ist eine Web-Anwendung, kein Handy-Screenshot).
   Der Rahmen ist reines CSS um den echten Screenshot: Leiste mit drei Punkten, Linie, runde Ecken.
   Anders als das Handy bei Pelican endet der Ausschnitt an einer Zeilenkante und wird nicht ausgeblendet:
   Die Dateien sind so zugeschnitten, dass sie in jeder Höhenstufe ganz sichtbar sind (docs/ratgeber-layout.md). */
.gk-promo-shot, .gk-fig--app img { -webkit-mask-image: none; mask-image: none; }
.gk-promo-shot img, .gk-fig--app img {
  box-sizing: border-box;
  border: 1px solid var(--g-line);
  border-radius: 10px;
  padding-top: 1.125rem;
  background:
    radial-gradient(circle, #c9d2df 0 3px, transparent 3.5px) 10px 9px / 8px 8px no-repeat,
    radial-gradient(circle, #c9d2df 0 3px, transparent 3.5px) 22px 9px / 8px 8px no-repeat,
    radial-gradient(circle, #c9d2df 0 3px, transparent 3.5px) 34px 9px / 8px 8px no-repeat,
    #ffffff;
}
/* Produkt-Ausschnitt im Text: Rahmen ist unten geschlossen, also auch unten Innenabstand */
.gk-fig--app { padding-bottom: 1.25rem; }
.gk .gk-fig--app figcaption { padding-bottom: 0; }
@media (min-width: 700px) { .gk-fig--app { padding-bottom: 1.75rem; align-items: center; } }

/* Haupt-CTA der Landingpage statt Store-Buttons: ein Knopf, so breit wie der Ausschnitt darüber */
.gk-promo-stores a.gk-promo-btn {
  display: flex; align-items: center; justify-content: center;
  width: 14.75rem; max-width: 100%; min-height: 2.75rem; padding: 0 1rem;
  line-height: 1.2; text-decoration: none; text-align: center;
  font-family: var(--g-sans); font-size: .9375rem; font-weight: 600; color: #fff;
  background: var(--g-accent); border-radius: .375rem;
}
.gk-promo-stores a.gk-promo-btn:hover { background: var(--g-accent-dark); transform: none; }
@media (min-width: 1100px) and (min-height: 680px) and (max-height: 899px) {
  .gk-promo-stores a.gk-promo-btn { width: 13rem; min-height: 2.5rem; }
  .gk .gk-promo-title { margin-bottom: .625rem; } /* 2 px Luft, damit der Rahmen auch bei dreizeiligem Slogan (en) unten ganz sichtbar bleibt */
}
/* Ohne Bild (Sprachen ohne echten Screenshot): Slogan und Knopf */
.gk-promo:not(:has(.gk-promo-shot)) .gk-promo-stores { margin-top: .25rem; }
