/* ==========================================================================
   Akitogo 2026 – Theme
   Struktur: Tokens → Basis → Layout → Komponenten → Seiten
   Wird später 1:1 als ContentBox-Theme-CSS übernommen.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #121417;
  --ink-2: #2A2E33;
  --text: #3B4047;
  --muted: #5A5F66;
  --paper: #F5F5F2;
  --stone: #E9E9E4;
  --line: #D9D9D4;
  --line-strong: #C9C9C3;
  --white: #FFFFFF;

  --blue: #0068AC;        /* Logo-Blau: Buttons, Links, Akzente */
  --sky: #5496D0;         /* Logo-Hellblau: Akzente auf Dunkel */
  --blue-tint: #E3ECF5;   /* Hinweisboxen */

  --dark-text: #D6D8DB;
  --dark-muted: #A3A8AE;
  --dark-line: #3A3F45;
  --dark-surface: #1B1E22;

  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 10vw, 140px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--stone { background: var(--stone); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }

.split { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.split > * { flex: 1 1 400px; min-width: 0; }

/* ---------- Typografie ---------- */
.kicker {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.4;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.section--dark .kicker { color: var(--dark-muted); }
.label { font-family: var(--font-mono); font-size: 13px; line-height: 1.4; color: var(--muted); }

.display {
  font-size: clamp(44px, 7.4vw, 112px); line-height: .96;
  font-weight: 600; letter-spacing: -.045em;
}
.h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.04em; }
.h3 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--text); max-width: 34em; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 500 16px/1 var(--font-sans); letter-spacing: .015em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #00578F; color: var(--white); }
.btn--secondary { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); color: var(--paper); }
.btn--sky { background: var(--sky); color: var(--ink); }
.btn--sky:hover { background: #6AA6DA; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; letter-spacing: .02em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.tag {
  display: inline-block; padding: 5px 9px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 400 12px/1.2 var(--font-mono); color: var(--text); background: transparent;
}
.tag--lg { font-size: 13px; padding: 6px 10px; }

/* ---------- Header ---------- */
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-block: 20px;
}
.site-logo { display: block; padding: 4px 0; }
.site-logo img { height: 40px; width: auto; }

.site-nav ul {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 34px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  display: block; padding: 12px 0;
  font-size: 16px; font-weight: 450; letter-spacing: .015em; color: var(--ink); text-decoration: none;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; text-decoration-color: var(--blue);
}
.site-nav .nav-cta { padding: 12px 20px; font-weight: 500; background: var(--ink); color: var(--paper); border-radius: var(--radius-sm); }
.site-nav .nav-cta:hover { background: var(--ink-2); color: var(--paper); }

.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 500 15px/1 var(--font-sans); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 1000px) {
  .site-header .container { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: 14px 0; font-size: 18px; }
  .site-nav .nav-cta { margin: 16px 0 8px; text-align: center; }
  .site-nav li:last-child { border-bottom: 0; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.site-footer .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 32px; padding-block: 24px;
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer a { display: block; padding: 12px 0; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Startseite ---------- */
.hero { padding-block: clamp(56px, 9vw, 128px) clamp(48px, 6vw, 80px); }
.hero .kicker { margin-bottom: 32px; }
.hero h1 { max-width: 14ch; }
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-top: clamp(40px, 5vw, 64px);
}

.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink);
}
.services li {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 32px 40px 0; border-bottom: 1px solid var(--line);
}
.services .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.services p { color: var(--text); }

.akibase { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: center; }
.akibase__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.akibase__name { font-size: clamp(56px, 8vw, 120px); line-height: .9; font-weight: 700; letter-spacing: -.05em; }
.akibase__text .lead { color: var(--dark-text); max-width: 30em; }
.akibase__media {
  flex: 1 1 440px; min-width: 0; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
  background: var(--dark-surface); border: 1px dashed #4A5057; border-radius: var(--radius);
  font: 400 14px/1.4 var(--font-mono); color: var(--dark-muted);
}
.akibase__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--dark-line);
}
.features li {
  display: flex; align-items: center; gap: 12px; padding: 18px 0;
  border-bottom: 1px solid var(--dark-line); font-weight: 500;
}
.features li::before { content: ""; width: 8px; height: 8px; background: var(--sky); flex: none; }

/* Produkte: AKIBASE & xmstore */
.products-intro { display: flex; flex-wrap: wrap; gap: 24px 80px; align-items: flex-end; margin-bottom: 56px; }
.products-intro > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.products-intro > p { flex: 1 1 360px; min-width: 0; color: var(--dark-text); font-size: 18px; line-height: 1.6; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.product {
  display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 3.5vw, 44px);
  background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: var(--radius);
  scroll-margin-top: 24px;
}
.product--featured { border-color: var(--sky); }
.product__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.product__badge { padding: 5px 10px; border-radius: var(--radius-sm); font: 400 12px/1.2 var(--font-mono); background: var(--ink-2); color: var(--dark-text); }
.product--featured .product__badge { background: var(--sky); color: var(--ink); }
.product__name { font-size: clamp(44px, 5vw, 72px); line-height: .9; font-weight: 700; letter-spacing: -.05em; color: var(--paper); }
.product__claim { font-size: 21px; line-height: 1.35; font-weight: 500; letter-spacing: -.015em; color: var(--paper); }
.product__text { color: var(--dark-text); }
.product__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--dark-line); }
.product__facts div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--dark-line); }
.product__facts dt { font: 400 12px/1.4 var(--font-mono); color: var(--dark-muted); }
.product__facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; color: var(--paper); }
.product .features { margin-top: 0; grid-template-columns: 1fr; }
.product .features li { padding: 12px 0; }
.product .btn { align-self: flex-start; margin-top: auto; }

/* Funktionsgruppen (Produktseiten) */
.feature-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature-group { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-group h3 { font-size: 21px; letter-spacing: -.015em; }
.feature-group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-group li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.5; color: var(--text); }
.feature-group li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--blue); }

.product-hero { display: flex; flex-direction: column; gap: 28px; padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.product-hero .lead { max-width: 40em; }
.product-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Vergleichstabelle */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.compare caption { text-align: left; padding: 0 0 16px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; background: var(--ink); color: var(--paper); font-size: 15px; }
.compare thead th:first-child { width: 28%; }
.compare thead .compare__akibase { background: var(--blue); }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare tbody tr.compare__group th { padding-top: 22px; background: var(--paper); font: 400 12px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.compare td { color: var(--text); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; }
.yes::before, .no::before { content: ""; flex: none; width: 18px; height: 18px; background-position: center; background-repeat: no-repeat; }
.yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230068AC' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E"); }
.no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5F66' stroke-width='2'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

/* FAQ */
.faq { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq .faq__a { padding: 0 0 28px; max-width: 46em; color: var(--text); font-size: 17px; }
.faq .faq__a p + p { margin-top: 12px; }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 16px 48px; margin-bottom: 48px;
}

.clients {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px;
  margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink);
}
@media (max-width: 1100px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .clients { grid-template-columns: 1fr; } }
.clients li {
  padding: 26px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 500; letter-spacing: -.025em; hyphens: auto;
}

.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin: 56px 0 0; padding: 0; list-style: none;
}
.steps li {
  display: flex; flex-direction: column; gap: 14px; padding: 32px;
  background: var(--paper); border-radius: var(--radius);
}
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps h3 { font-size: 24px; letter-spacing: -.02em; }
.steps p { font-size: 16px; color: var(--text); }
.steps .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.contact h2 { max-width: 12ch; }
.contact__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px;
  margin-top: 64px; padding-top: 32px; border-top: 1.5px solid var(--ink);
}
.contact__item { display: flex; flex-direction: column; gap: 10px; }
.contact__value {
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; font-style: normal;
}
a.contact__value:hover { color: var(--blue); }
.contact__value--mail {
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; text-decoration-color: var(--blue);
}
address.contact__value { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; }

/* ---------- Blog-Übersicht ---------- */
.page-intro {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 64px; padding-block: clamp(48px, 7vw, 96px) 48px;
}
.page-intro > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.page-intro > p { flex: 1 1 340px; min-width: 0; max-width: 30em; }
.page-title { font-size: clamp(56px, 9vw, 136px); line-height: .9; font-weight: 600; letter-spacing: -.05em; }

.featured {
  display: flex; flex-wrap: wrap; overflow: hidden;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); text-decoration: none;
}
.featured:hover { color: var(--paper); }
.featured:hover .featured__more { text-decoration: underline; text-underline-offset: 4px; }
.featured__body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: clamp(28px, 4vw, 56px); }
.featured__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font: 400 13px/1.4 var(--font-mono); color: var(--dark-muted); }
.featured__badge { padding: 5px 10px; border-radius: var(--radius-sm); background: var(--sky); color: var(--ink); }
.featured__title { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; color: var(--paper); }
.featured__excerpt { font-size: 18px; color: var(--dark-text); max-width: 36em; }
.featured__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.featured__more svg { width: 18px; height: 18px; }
.featured__aside {
  flex: 1 1 320px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: clamp(28px, 4vw, 48px); background: var(--dark-surface); border-left: 1px solid var(--ink-2);
  font: 400 14px/1.7 var(--font-mono); color: var(--dark-muted);
}
.featured__aside b { font-weight: 400; color: var(--sky); }

.list-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-bottom: 24px; border-bottom: 1.5px solid var(--ink);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 450; letter-spacing: .02em; color: var(--ink); text-decoration: none;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter span { font: 400 12px/1 var(--font-mono); color: var(--muted); }
.filter[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter[aria-current="page"] span { color: var(--dark-muted); }

.posts { margin: 0; padding: 0; list-style: none; }
.posts li { border-bottom: 1px solid var(--line); }
.post-row { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 32px 0; color: var(--ink); text-decoration: none; }
.post-row:hover { color: var(--ink); }
.post-row:hover .post-row__title { color: var(--blue); }
.post-row time { flex: 0 0 140px; padding-top: 8px; font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.post-row__body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.post-row__title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; transition: color .15s; }
.post-row__excerpt { color: var(--text); max-width: 44em; }
.post-row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.pagination ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 14px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.pagination a:hover { border-color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination svg { width: 16px; height: 16px; }

.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.archive li { border-bottom: 1px solid var(--line-strong); }
.archive a { display: flex; justify-content: space-between; padding: 14px 16px 14px 0; font-size: 20px; font-weight: 500; color: var(--ink); text-decoration: none; }
.archive a:hover { color: var(--blue); }
.archive span { font: 400 13px/1.8 var(--font-mono); color: var(--muted); }

.archive-widget ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); column-gap: 24px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.archive-widget li { border-bottom: 1px solid var(--line-strong); }
.archive-widget a { display: block; padding: 12px 0; font-weight: 500; color: var(--ink); text-decoration: none; }
.archive-widget a:hover { color: var(--blue); }
.archive-widget h1, .archive-widget h2, .archive-widget h3, .archive-widget h4 { display: none; }

/* ---------- Artikel ---------- */
.article-head { display: flex; flex-direction: column; gap: 28px; padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 450; letter-spacing: .015em; color: var(--ink); text-decoration: none; }
.back-link svg { width: 16px; height: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.article-title { font-size: clamp(40px, 6.2vw, 92px); line-height: .98; letter-spacing: -.045em; max-width: 16ch; }

.article-layout {
  display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start;
  padding-bottom: clamp(80px, 10vw, 128px); border-top: 1.5px solid var(--ink);
}
.article-aside { flex: 1 1 240px; min-width: 0; max-width: 320px; padding-top: 40px; display: flex; flex-direction: column; gap: 40px; }
.toc { display: flex; flex-direction: column; }
.toc[hidden] { display: none; }
.toc .kicker { margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 0; font-size: 15px; letter-spacing: .015em; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); }

.cta-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--ink); color: var(--paper); border-radius: var(--radius); }
.cta-card .kicker { font-size: 12px; color: var(--dark-muted); }
.cta-card__title { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.cta-card p { font-size: 15px; line-height: 1.55; color: var(--dark-text); }
.cta-card .btn { align-self: flex-start; }

/* Fließtext (ContentBox-Inhalt landet in .prose) */
.prose { flex: 999 1 560px; min-width: 0; max-width: 760px; padding-top: 40px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 64px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.03em; scroll-margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; font-size: 21px; letter-spacing: -.015em; }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose ul, .prose ol { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; background: var(--blue); }
.prose ol { counter-reset: n; }
.prose ol > li { padding-left: 36px; }
.prose ol > li::before { counter-increment: n; content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 400 13px/1.7 var(--font-mono); color: var(--muted); }
.prose :not(pre) > code { font-family: var(--font-mono); font-size: .86em; background: var(--stone); padding: 2px 6px; border-radius: 5px; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { margin-inline: 0; padding: 20px 24px; background: var(--blue-tint); border-radius: var(--radius-lg); color: #1E2B38; font-size: 16px; }
.prose img { border-radius: var(--radius); }

.note { display: flex; gap: 16px; padding: 20px 24px; background: var(--blue-tint); border-radius: var(--radius-lg); font-size: 16px; line-height: 1.6; color: #1E2B38; }
.note svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; color: var(--blue); }
.note code { background: transparent !important; padding: 0 !important; }

.link-list li { padding: 0 !important; }
.link-list li::before { display: none; }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 500; color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--blue); }
.link-list svg { width: 18px; height: 18px; color: var(--blue); }

/* Codeblöcke – main.js ergänzt Kopfzeile, Kopieren-Button und Highlighting */
.prose pre, pre.code {
  margin: 24px 0 32px; padding: 20px; overflow-x: auto;
  background: var(--ink); color: #C9CDD2; border-radius: var(--radius);
  font: 400 14px/1.7 var(--font-mono); tab-size: 4;
}
.code-block { margin: 24px 0 32px; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.code-block pre { margin: 0 !important; border-radius: 0 !important; }
.code-block__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px 4px 20px; border-bottom: 1px solid var(--ink-2);
  font: 400 12px/1 var(--font-mono); color: var(--dark-muted);
}
.code-block__copy {
  min-height: 40px; padding: 0 12px; background: transparent; border: 0; border-radius: var(--radius-sm);
  font: 400 12px/1 var(--font-mono); color: var(--dark-text); cursor: pointer;
}
.code-block__copy:hover { background: var(--ink-2); }
.tok-comment { color: #868D95; }
.tok-string { color: #9CC9EE; }
.tok-key { color: var(--sky); }
.tok-num { color: #E8C47A; }
.tok-fn { color: #F5F5F2; }

.next-post {
  display: flex; flex-direction: column; gap: 10px; margin-top: 72px !important; padding: 28px 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.next-post:hover { color: var(--blue); }
.next-post__title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }

/* ---------- Einfache Inhaltsseiten (Impressum, Datenschutz) ---------- */
.page-layout { padding-bottom: clamp(80px, 10vw, 128px); border-top: 1.5px solid var(--ink); }
.page-layout .prose { max-width: 760px; }
.facts { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 13px/1.9 var(--font-mono); color: var(--muted); padding-right: 16px; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}

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