/* ==========================================================================
   GhostWriter Theme — Main Stylesheet
   Design System: Light Mode fest (kein Dark Mode). Dunkles Marken-Blau,
   Limettengrün als Signal-/CTA-Farbe, Teal als Zweitakzent. Schriften:
   Inter (Fließtext) und Fraunces (Display/Titel), beide selbst gehostet.
   ========================================================================== */

/* Self-hosted fonts
   ========================================================================== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Design Tokens
   ========================================================================== */
:root {
  --brand-900: #0a1f3c;
  --brand-800: #10305c;
  --brand-700: #17427c;
  --brand-600: #1f5aa8;
  --brand-500: #2e79d6;
  --brand-100: #e8f0fb;
  --brand-050: #f4f8fd;

  --accent-surface: #ccff00;
  --accent-surface-hover: #b8e600;
  --accent-ink: #0a1f3c;
  --accent-line: #6b8500;
  --accent-vivid: #ccff00;
  --accent-100: #f4fbd4;

  --teal-600: #0a6d65;
  --teal-vivid: #0d8a80;
  --teal-100: #dff4f1;

  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --ink-300: #d0d5dd;
  --ink-100: #eaecf0;
  --ink-050: #f7f8fa;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --shadow: 0 4px 6px -2px rgba(16, 24, 40, .05), 0 12px 16px -4px rgba(16, 24, 40, .1);
  --shadow-lg: 0 8px 8px -4px rgba(16, 24, 40, .04), 0 20px 24px -4px rgba(16, 24, 40, .1);

  --wrap: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-700); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: .8rem;
}
.eyebrow--light { color: #9dc4f5; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.4rem); }
.section--alt { background: var(--ink-050); }
.section--brand { background: var(--brand-050); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center.narrow { margin-inline: auto; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--rev > :first-child { order: 2; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header__inner { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }
.logo { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--brand-900); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 1.05rem; }
.logo__text span { font-size: .72rem; font-weight: 600; color: var(--ink-500); letter-spacing: .04em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.nav a:not(.btn) {
  padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--ink-700);
  font-size: .93rem; font-weight: 600;
}
.nav a:not(.btn):hover { background: var(--brand-050); color: var(--brand-700); text-decoration: none; }
.nav a.btn--primary { color: var(--accent-ink); }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-100); }
.nav__cta { margin-left: .5rem; }
.nav-toggle {
  margin-left: auto; display: none; width: 44px; height: 44px; border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm); background: var(--white); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px;
}
.nav-toggle span { position: relative; display: block; margin: 0 auto; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after  { top: 6px; left: 0; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--ink-100); padding: .8rem 1.1rem 1.4rem;
    box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .6rem; font-size: 1rem; }
  .nav__cta { margin: .6rem 0 0; }
  .btn--block-mobile { width: 100%; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .96rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent-surface); color: var(--accent-ink);
  border-color: var(--accent-line); box-shadow: 0 6px 16px rgba(10, 31, 60, .16); }
.btn--primary:hover { background: var(--accent-surface-hover); color: var(--accent-ink); }
.btn--dark { background: var(--brand-800); color: var(--white); }
.btn--dark:hover { background: var(--brand-900); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline { border-color: var(--ink-300); color: var(--brand-700); background: var(--white); }
.btn--outline:hover { border-color: var(--brand-500); background: var(--brand-050); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero { position: relative; overflow: hidden; background: var(--brand-900); color: #dce7f5; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 480px at 12% -10%, rgba(46, 121, 214, .55), transparent 62%),
    radial-gradient(760px 420px at 92% 8%, rgba(13, 138, 128, .42), transparent 60%),
    radial-gradient(620px 400px at 70% 108%, rgba(242, 112, 31, .3), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(900px 520px at 60% 40%, #000 20%, transparent 78%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero p { color: #c8daf0; }
.hero--home { padding-block: clamp(3.4rem, 8vw, 6.4rem); }
.hero--page { padding-block: clamp(2.6rem, 6vw, 4.4rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; } }

.hero-facts { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .85rem;
  border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #e6eefb;
}
.chip--light { background: var(--brand-100); border-color: transparent; color: var(--brand-700); }
.chip--accent { background: var(--accent-100); color: var(--accent-ink); border-color: transparent; }
.chip--teal { background: var(--teal-100); color: var(--teal-600); border-color: transparent; }

.media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--brand-700), var(--teal-vivid));
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 9; }
.media__note {
  position: absolute; inset: auto .8rem .8rem .8rem; font-size: .74rem; color: #fff;
  background: rgba(20, 27, 40, .88); padding: .35rem .6rem; border-radius: 6px;
}
.media__caption { font-size: .84rem; color: var(--ink-500); margin-top: .6rem; }

.hero-card {
  background: rgba(255, 255, 255, .96); color: var(--ink-700); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 1.9rem); box-shadow: var(--shadow-lg);
}
.hero-card h2, .hero-card h3 { font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: .8rem; letter-spacing: -.02em; }
.hero-card ul { margin: 0 0 1.2rem; padding-left: 0; list-style: none; }
.hero-card li { display: flex; gap: .6rem; padding: .42rem 0; font-size: .95rem; border-bottom: 1px solid var(--ink-100); }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li b { color: var(--ink-900); margin-left: auto; white-space: nowrap; }

.card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.7rem); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); text-decoration: none; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-500); font-size: .96rem; margin-bottom: .9rem; }
.card > :last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700); margin-bottom: 1rem; flex: none;
}
.card__icon--accent { background: var(--accent-100); color: var(--accent-ink); }
.card__icon--teal { background: var(--teal-100); color: var(--teal-600); }
.card__more { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--brand-600); }
.card--feature { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100), var(--shadow); }
.card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-surface); color: var(--accent-ink);
  border: 1px solid var(--accent-line); font-size: .73rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 999px; white-space: nowrap;
}
.card-rel { position: relative; }

.price { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--brand-800); line-height: 1; margin: .2rem 0 .1rem; font-weight: 600; }
.price small { font-size: .85rem; color: var(--ink-500); font-family: var(--font); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.ticks li { position: relative; padding: .34rem 0 .34rem 1.75rem; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .72rem; width: 1.05rem; height: .55rem;
  border-left: 2.5px solid var(--teal-600); border-bottom: 2.5px solid var(--teal-600);
  transform: rotate(-45deg);
}

.stats { display: grid; gap: 1px; background: var(--ink-100); border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--white); padding: 1.4rem 1.2rem; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--brand-700); line-height: 1.1; font-weight: 600; }
.stat span { font-size: .87rem; color: var(--ink-500); }
.stats--onbrand { border: 0; background: rgba(255,255,255,.14); }
.stats--onbrand .stat { background: rgba(255, 255, 255, .07); }
.stats--onbrand .stat b { color: var(--white); }
.stats--onbrand .stat span { color: #b9cfea; }

.timeline { position: relative; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); counter-reset: q; }
.tl {
  position: relative; background: var(--white); border: 1px solid var(--ink-100); border-top: 4px solid var(--brand-500);
  border-radius: var(--radius); padding: 1.3rem 1.2rem; box-shadow: var(--shadow-sm);
}
.tl:nth-child(2) { border-top-color: #4b91e2; }
.tl:nth-child(3) { border-top-color: var(--teal-600); }
.tl:nth-child(4) { border-top-color: #2fa89c; }
.tl:nth-child(5) { border-top-color: var(--accent-vivid); }
.tl__q { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.tl__goal { display: inline-block; margin: .5rem 0 .7rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-800); font-weight: 600; }
.tl ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; color: var(--ink-500); }
.tl li { margin-bottom: .3rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--ink-100); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 540px; }
thead th { background: var(--ink-050); text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); padding: .85rem 1rem; border-bottom: 1px solid var(--ink-100); white-space: nowrap; }
tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--brand-050); }
td b, th b { color: var(--ink-900); }

.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tag-T { background: var(--brand-100); color: var(--brand-700); }
.tag-W { background: var(--accent-100); color: var(--accent-ink); }
.tag-M { background: var(--teal-100); color: var(--teal-600); }
.tag-G { background: #f0e9fb; color: #6b3fa0; }

.finder__controls { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; align-items: center; }
.finder__search {
  flex: 1 1 240px; padding: .75rem 1rem; font: inherit; font-size: .95rem;
  border: 1.5px solid var(--ink-300); border-radius: 999px; background: var(--white); color: var(--ink-900);
}
.finder__search:focus-visible { border-color: var(--brand-500);
  outline: 3px solid var(--brand-500); outline-offset: 2px; }
.filter-btn {
  min-height: 44px;
  padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink-300); background: var(--white);
  font: inherit; font-size: .88rem; font-weight: 700; color: var(--ink-700); cursor: pointer;
}
.filter-btn:hover { border-color: var(--brand-500); color: var(--brand-700); }
.filter-btn.is-active { background: var(--brand-700); border-color: var(--brand-700); color: var(--white); }
.finder__count { font-size: .88rem; color: var(--ink-500); margin-left: auto; }
.is-hidden { display: none !important; }
.finder__empty { padding: 1.6rem; text-align: center; color: var(--ink-500); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; }
.step { counter-increment: s; position: relative; padding: 1.2rem 1.3rem 1.2rem 4.2rem; background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  content: counter(s); position: absolute; left: 1.2rem; top: 1.15rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-700); color: #fff; font-weight: 800; font-size: .95rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-500); }

.note {
  border-left: 4px solid var(--brand-500); background: var(--brand-050);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6rem 0;
}
.note__title { display: block; margin: 0 0 .35rem; font-weight: 700; color: var(--ink-900); }
.note p:last-child { margin-bottom: 0; }
.note--warn { border-left-color: var(--accent-line); background: var(--accent-100); }
.note--teal { border-left-color: var(--teal-600); background: var(--teal-100); }
.note--todo { border-left-color: #b42318; background: #fef3f2; }

.faq { display: grid; gap: .7rem; }
details.qa { background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
details.qa > summary {
  cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.2rem; font-weight: 700; color: var(--ink-900);
  list-style: none; position: relative; font-size: 1rem;
}
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 1.4rem; width: .55rem; height: .55rem;
  border-right: 2.5px solid var(--brand-600); border-bottom: 2.5px solid var(--brand-600);
  transform: rotate(45deg); transition: transform .18s ease;
}
details.qa[open] > summary::after { transform: rotate(-135deg); }
details.qa .qa__body { padding: 0 1.4rem 1.2rem; color: var(--ink-500); font-size: .96rem; }
details.qa .qa__body > :last-child { margin-bottom: 0; }

.cta { position: relative; overflow: hidden; background: var(--brand-800); color: #d7e5f6; border-radius: var(--radius-lg); padding: clamp(1.8rem, 5vw, 3.2rem); }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 15%, rgba(242,112,31,.4), transparent 60%),
              radial-gradient(500px 300px at 5% 100%, rgba(13,138,128,.45), transparent 62%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: var(--white); }
.cta p { color: #c6d9ef; }

.site-footer { background: var(--brand-900); color: #9fb6d1; padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.6rem; font-size: .93rem; }
.site-footer h4, .site-footer .footer__h { color: var(--white); font-size: .84rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 700; }
.site-footer a { color: #c3d6ec; }
.site-footer a:hover { color: var(--white); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: .5rem; }
.footer__brand p { max-width: 34ch; font-size: .9rem; }
.footer__bottom {
  margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; font-size: .85rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-left: auto; }

.crumbs { font-size: .84rem; color: #9dc0e8; margin-bottom: 1rem; }
.crumbs a { color: #cfe0f5; }
.langs { display: flex; gap: .25rem; }
.langs a { min-width: 44px; min-height: 44px; display: inline-flex;
  align-items: center; justify-content: center; padding: .3rem .55rem; border-radius: 6px; font-size: .82rem; font-weight: 700; color: var(--ink-500); }
.langs a.is-active { background: var(--brand-100); color: var(--brand-700); }
.langs a[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.small { font-size: .88rem; }
.muted { color: var(--ink-500); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--white); padding: .8rem 1.2rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose dl dt { font-weight: 700; color: var(--ink-900); margin-top: 1rem; }
.prose dl dd { margin: .2rem 0 0; }

@media print { .site-header, .site-footer, .cta, .nav-toggle { display: none; } }
@media (forced-colors: active) {
  .card, .note, .table-scroll, details.qa { border: 1px solid CanvasText; }
  .btn { border: 1px solid ButtonText; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.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;
}
.logo__mark { object-fit: contain; border-radius: 6px; }
.card .price { display: block; }
.card-rel .card { height: 100%; }
.langs a { white-space: nowrap; }
.hero-card p { color: var(--ink-700); }
.hero-card .muted { color: var(--ink-500); }
.nav a { white-space: nowrap; }

/* Sprachumschalter in der Navigation
   ========================================================================== */
/* Markup: partials/navigation.hbs. Die aktive Sprache steht als
   data-current-lang am umgebenden <nav class="site-nav"> und stammt aus dem
   Partial lang-code (siehe #1023); der Attributselektor unten leitet die
   Hervorhebung allein daraus ab und funktioniert damit auch ohne JavaScript.
   aria-current="page" ergaenzt assets/js/main.js, weil sich Attribute per CSS
   nicht setzen lassen. Farben ausschliesslich aus den Design-Tokens in :root,
   Light Mode fest (kein prefers-color-scheme, siehe #1019). */

/* Menuepunkte, Sprachumschalter und RSS-Link stehen in einer Zeile, damit die
   Kopfzeile durch den zusaetzlichen Block nicht umbricht. */
.site-nav { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.langs { flex: none; }
.langs a:hover { background: var(--brand-050); color: var(--brand-700); text-decoration: none; }
.site-nav[data-current-lang="de"] .langs a[data-lang="de"],
.site-nav[data-current-lang="en"] .langs a[data-lang="en"],
.site-nav[data-current-lang="zh"] .langs a[data-lang="zh"],
.site-nav[data-current-lang="es"] .langs a[data-lang="es"],
.langs a[aria-current="page"] { background: var(--brand-100); color: var(--brand-700); }

/* Schmale Viewports: Der Umschalter sitzt neben dem Menue-Button und bleibt
   dadurch unabhaengig vom Zustand des Mobilmenues sichtbar und bedienbar -
   ohne die vorhandene Oeffnen-/Schliessen-Mechanik zu beruehren. Kompaktere
   Masse, damit die Kopfzeile auch bei 320px Breite nicht umbricht; mit
   36x44px bleibt die Trefferflaeche deutlich ueber dem WCAG-Mindestmass. */
@media (max-width: 560px) {
  .langs { gap: .1rem; }
  .langs a { min-width: 36px; padding: .3rem .25rem; font-size: .78rem; }
}

/* Legacy token bridge
   ========================================================================== */
/* assets/css/prism.css (self-hosted Prism syntax highlighting, siehe Issue #2)
   referenziert diese Namen weiterhin; sie werden hier auf die neuen
   Design-Tokens gemappt. --font-mono bleibt als Systemfont-Stack erhalten,
   da Codebloecke in Ghost-Beitraegen eine Monospace-Schrift brauchen, ein
   eigener selbst gehosteter Monospace-Font aber fuer dieses Marketing-Design
   nicht erforderlich ist. */
:root {
  --color-text-primary: var(--ink-900);
  --color-bg-secondary: var(--ink-050);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Ghost Admin custom font picker hooks */
  --gh-font-heading: var(--font);
  --gh-font-body: var(--font);
}

/* Ghost-Editor-Inhalte (Koenig)
   ========================================================================== */
/* Grundgestaltung fuer Inhalte, die Redakteur:innen im Ghost-Editor pflegen
   (Fliesstext-Elemente sowie die haeufigsten Koenig-Karten). Die Basis-
   Typografie (h1-h4, p, a) liefert bereits das Design-Token-System oben;
   hier ergaenzt um Listen, Zitate, Code und Karten, die dort fehlen, damit
   editor-gepflegte Inhalte lesbar bleiben, auch bevor die Seiten-Templates
   (post.hbs, page.hbs) in einem Folge-Issue auf die neuen Klassen umgestellt
   werden. */
.post-content ul, .post-content ol,
.page-content ul, .page-content ol {
  margin: 0 0 1.1em; padding-left: 1.3em; color: inherit;
}
.post-content li, .page-content li { margin-bottom: .4em; }

.post-content blockquote, .page-content blockquote,
.post-content .kg-blockquote-alt, .page-content .kg-blockquote-alt {
  margin: 1.6em 0; padding: .2em 0 .2em 1.3em; border-left: 4px solid var(--brand-500);
  color: var(--ink-700); font-style: italic;
}
.post-content .kg-blockquote-alt, .page-content .kg-blockquote-alt {
  border-left: 0; padding-left: 0; font-family: var(--font-display); font-size: 1.3em; font-style: normal;
}

.post-content hr, .page-content hr { border: 0; border-top: 1px solid var(--ink-100); margin: 2.4em 0; }

.post-content code, .page-content code {
  font-family: var(--font-mono); font-size: .9em; background: var(--ink-050);
  color: var(--ink-900); padding: .2em .4em; border-radius: var(--radius-sm);
}
.post-content pre, .page-content pre {
  font-family: var(--font-mono); background: var(--ink-050); color: var(--ink-900);
  padding: 1.4rem; border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm);
}
.post-content pre code, .page-content pre code { background: none; padding: 0; color: inherit; }

.kg-code-card figcaption {
  order: -1; padding: .8rem 1.6rem; font-family: var(--font-mono); font-size: .8rem;
  color: var(--ink-700); background: var(--ink-050); border: 1px solid var(--ink-100);
  border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
}
.kg-code-card { display: flex; flex-direction: column; margin: 0 0 1.6em; }
.kg-code-card figcaption + pre, .kg-code-card pre { border-top-left-radius: 0; border-top-right-radius: 0; margin: 0; }

.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin: auto calc(50% - 50vw) * .15; transform: translateX(calc(50vw - 50%)); }
.kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.kg-width-wide img, .kg-width-full img { width: 100%; height: auto; }

.kg-image-card { margin: 0 0 1.6em; }
.kg-image-card img { display: block; margin: 0 auto; max-width: 100%; border-radius: var(--radius-sm); }
.kg-image-card figcaption { margin-top: .8rem; text-align: center; font-size: .84rem; color: var(--ink-500); }

.kg-gallery-container { display: flex; flex-direction: column; max-width: 1040px; width: 100%; margin: 0 auto 1.6em; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 4px; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card { width: 100%; margin: 0 0 1.6em; }
.kg-bookmark-container {
  display: flex; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: inherit; background: var(--white); border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.kg-bookmark-container:hover { box-shadow: var(--shadow); text-decoration: none; }
.kg-bookmark-content { flex: 1; padding: 1.6rem; }
.kg-bookmark-title { font-size: 1.05rem; font-weight: 700; color: var(--ink-900); }
.kg-bookmark-description {
  font-size: .92rem; color: var(--ink-500); margin-top: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kg-bookmark-metadata { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; font-size: .84rem; color: var(--ink-500); }
.kg-bookmark-icon { width: 18px; height: 18px; margin-right: .2rem; border-radius: 3px; }
.kg-bookmark-publisher {
  display: inline-block; max-width: 240px; padding: .15rem .6rem; background: var(--ink-050);
  border-radius: var(--radius-sm); font-weight: 600; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kg-bookmark-author { position: relative; }
.kg-bookmark-thumbnail { width: 180px; min-height: 120px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) {
  .kg-bookmark-container { flex-direction: column-reverse; }
  .kg-bookmark-thumbnail { width: 100%; height: 180px; }
}

.kg-callout-card {
  display: flex; align-items: flex-start; gap: .8rem; padding: 1.1rem 1.3rem;
  border-radius: var(--radius); margin: 0 0 1.6em; background: var(--brand-050);
}
.kg-callout-emoji { flex: none; font-size: 1.3rem; line-height: 1; }
.kg-callout-text { color: var(--ink-700); }
.kg-callout-text > :last-child { margin-bottom: 0; }

.kg-embed-card { margin: 0 0 1.6em; }
.kg-embed-card iframe { width: 100%; border-radius: var(--radius-sm); }

/* Pagination & Prev/Next-Navigation
   ========================================================================== */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--ink-100);
}
.pagination a {
  padding: .6rem 1.2rem; border-radius: var(--radius-sm); font-size: .93rem;
  font-weight: 600; color: var(--ink-700); transition: box-shadow .2s, color .2s;
}
.pagination a:hover { box-shadow: var(--shadow-sm); color: var(--brand-600); text-decoration: none; }

.post-nav {
  max-width: 760px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--ink-100);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
.post-nav-link {
  display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem; border-radius: var(--radius);
  background: var(--ink-050); border: 1px solid var(--ink-100); color: var(--ink-900);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.post-nav-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-100); text-decoration: none; }
.post-nav-link--next { text-align: right; }
.post-nav-link--next:only-child { grid-column: 2; }
.post-nav-direction { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); }
.post-nav-title { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink-900); }

@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link--next, .post-nav-link--next:only-child { grid-column: 1; text-align: left; }
}
