/* =========================================================
   bestenki.de – Stylesheet
   Aufbau: 1 Tokens · 2 Basis · 3 Layout · 4 Header/Footer
           5 Komponenten · 6 Seiten · 7 Utilities · 8 Print
   ========================================================= */

/* 1 — Tokens ---------------------------------------------- */
:root {
  color-scheme: light;

  --bg:            #ffffff;
  --bg-soft:       #f6f7fb;
  --bg-elevated:   #ffffff;
  --bg-inset:      #f0f2f8;
  --border:        #e2e5ee;
  --border-strong: #cbd1e0;

  --text:          #14161f;
  --text-muted:    #5a6178;
  --text-faint:    #868da3;

  --accent:        #4f46e5;
  --accent-hover:  #4338ca;
  --accent-soft:   #eef0ff;
  --accent-text:   #3f37c9;

  --star:          #e8a317;
  --pro:           #17795e;
  --pro-soft:      #e6f4ef;
  --con:           #b3261e;
  --con-soft:      #fdecea;

  --shadow-sm: 0 1px 2px rgba(16, 20, 40, .06);
  --shadow-md: 0 6px 20px -8px rgba(16, 20, 40, .18);
  --shadow-lg: 0 18px 48px -20px rgba(16, 20, 40, .32);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --wrap: 1140px;
  --wrap-narrow: 760px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #0e1017;
  --bg-soft:       #141822;
  --bg-elevated:   #171b26;
  --bg-inset:      #1c2130;
  --border:        #262c3b;
  --border-strong: #39415a;

  --text:          #eef0f6;
  --text-muted:    #a6adc2;
  --text-faint:    #7c8399;

  --accent:        #8b8bff;
  --accent-hover:  #a5a5ff;
  --accent-soft:   #1e2140;
  --accent-text:   #b0b0ff;

  --star:          #f0b640;
  --pro:           #4ad2a4;
  --pro-soft:      #12291f;
  --con:           #ff8a80;
  --con-soft:      #2c1614;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 6px 20px -8px rgba(0, 0, 0, .7);
  --shadow-lg: 0 18px 48px -20px rgba(0, 0, 0, .8);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 1.25rem + 2.4vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

a { color: var(--accent-text); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--bg-inset); padding: .15em .4em; border-radius: 5px; }

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

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

/* 3 — Layout ---------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; } }

/* 4 — Header / Footer ------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em; color: var(--text); text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #a855f7);
  color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: -.04em;
}
.brand__tld { color: var(--text-faint); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .5rem .7rem; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.nav__link:hover { background: var(--bg-inset); color: var(--text); }
.nav__link[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-elevated); color: var(--text-muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }

html[data-theme="dark"] .theme-toggle__sun { display: none; }
html:not([data-theme="dark"]) .theme-toggle__moon { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 66px 0 auto; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: .75rem 20px 1.25rem;
    max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__link { padding: .75rem .8rem; font-size: 1.02rem; }
}

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); margin-bottom: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-about p { color: var(--text-muted); font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  color: var(--text-faint); font-size: .87rem;
}

/* 5 — Komponenten ----------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .97rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: var(--bg-elevated); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--sm { padding: .5rem .9rem; font-size: .88rem; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .6rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  background: var(--bg-inset); color: var(--text-muted); border: 1px solid var(--border);
}
.badge--accent { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.badge--pro { background: var(--pro-soft); color: var(--pro); border-color: color-mix(in srgb, var(--pro) 30%, transparent); }
.badge--free { background: var(--pro-soft); color: var(--pro); border-color: color-mix(in srgb, var(--pro) 30%, transparent); }

.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 0; }
.card__meta { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.tool-logo {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  color: #fff; letter-spacing: -.02em; box-shadow: var(--shadow-sm);
}
.tool-logo--lg { width: 68px; height: 68px; border-radius: 16px; font-size: 1.5rem; }

.tool-card__head { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.tool-card__title { margin: 0; font-size: 1.15rem; }
.tool-card__vendor { color: var(--text-faint); font-size: .84rem; }

.rating { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }
.rating__value { color: var(--text); }
.rating__max { color: var(--text-faint); font-weight: 500; }

.rank {
  position: absolute; top: -12px; left: 1.3rem;
  min-width: 30px; height: 30px; padding-inline: .45rem; border-radius: 999px;
  display: grid; place-items: center; font-size: .85rem; font-weight: 800;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-sm);
}
.rank--1 { background: linear-gradient(140deg, #f0b640, #e0821a); color: #241a04; }
.rank--2 { background: linear-gradient(140deg, #c9ced9, #9aa3b4); color: #1b1f2a; }
.rank--3 { background: linear-gradient(140deg, #d9a271, #b4763f); color: #23140a; }

.tool-card { position: relative; }

.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.35rem, 1.15rem + .75vw, 1.72rem); }
.prose h3 { margin-top: 1.9rem; }
.prose > :first-child { margin-top: 0; }
.prose blockquote {
  margin: 1.5rem 0; padding: .9rem 1.2rem; border-left: 3px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted); font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { background: var(--bg-inset); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }
td .tool-logo { width: 34px; height: 34px; border-radius: 9px; font-size: .8rem; }
.cell-tool { display: flex; align-items: center; gap: .65rem; }
.cell-tool a { font-weight: 650; text-decoration: none; color: var(--text); }
.cell-tool a:hover { color: var(--accent-text); }

.proscons { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.proscons__box { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.proscons__box h4 { display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.proscons__box ul { margin: 0; padding-left: 1.1em; }
.proscons__box li { font-size: .95rem; color: var(--text-muted); }
.proscons__box--pro { background: var(--pro-soft); border-color: color-mix(in srgb, var(--pro) 25%, transparent); }
.proscons__box--pro h4 { color: var(--pro); }
.proscons__box--con { background: var(--con-soft); border-color: color-mix(in srgb, var(--con) 25%, transparent); }
.proscons__box--con h4 { color: var(--con); }

.score-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.score-row { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr 2.6rem; align-items: center; gap: 1rem; font-size: .93rem; }
.score-bar { height: 7px; border-radius: 99px; background: var(--bg-inset); overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #a855f7); }
.score-row b { text-align: right; font-variant-numeric: tabular-nums; }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1rem; font-size: .94rem; }
.facts dt { color: var(--text-faint); }
.facts dd { margin: 0; font-weight: 600; }

.aside-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.aside-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li + li { margin-top: .55rem; }
.aside-box a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.aside-box a:hover { text-decoration: underline; }

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.field { position: relative; flex: 1 1 240px; }
.field input, .field select {
  width: 100%; padding: .7rem .9rem; font: inherit; font-size: .95rem;
  color: var(--text); background: var(--bg-elevated);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.field input::placeholder { color: var(--text-faint); }
.filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .45rem .85rem; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-muted);
}
.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.result-count { color: var(--text-muted); font-size: .92rem; margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated); }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.25rem 1.2rem; color: var(--text-muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.breadcrumb { font-size: .87rem; color: var(--text-faint); padding-top: 1.5rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--border-strong); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }

.note {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem; font-size: .93rem; color: var(--text-muted);
}
.note strong { color: var(--text); }

/* 6 — Seiten ---------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 130%; z-index: -1;
  background:
    radial-gradient(46% 46% at 18% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(40% 40% at 82% 8%, rgba(168, 85, 247, .2), transparent 70%);
}
.hero__inner { max-width: 46rem; }
.hero p.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--text-muted); max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; }
.hero__stat b { display: block; font-size: 1.6rem; letter-spacing: -.03em; }
.hero__stat span { color: var(--text-muted); font-size: .88rem; }

.page-head { padding: clamp(2rem, 5vw, 3rem) 0 1.5rem; }
.page-head p.lead { color: var(--text-muted); font-size: 1.08rem; max-width: 62ch; margin-bottom: 0; }

.tool-hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.75rem; }
.tool-hero__text { flex: 1 1 320px; }
.tool-hero__text h1 { margin-bottom: .3rem; }
.tool-hero__text p { color: var(--text-muted); margin-bottom: .8rem; }
.verdict {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-bottom: 2rem;
}
.verdict__score { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent-text); }
.verdict__score small { font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.verdict p { margin: 0; flex: 1 1 260px; font-size: .97rem; }

.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--text-faint); font-size: .88rem; margin-bottom: 2rem; }

.post-list { display: grid; gap: 1.1rem; }
.post-item { display: grid; gap: .35rem; padding: 1.35rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); text-decoration: none; color: inherit; }
.post-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.post-item h3 { margin: 0; }
.post-item p { color: var(--text-muted); margin: 0; font-size: .96rem; }
.post-item__meta { color: var(--text-faint); font-size: .83rem; }

.cta {
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 14%, var(--bg)), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem); text-align: center;
}
.cta h2 { margin-bottom: .5rem; }
.cta p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }

/* 7 — Utilities ------------------------------------------- */
.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;
}
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .9rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* 8 — Print ----------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero::before, .toolbar, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}

/* =========================================================
   9 — Blog
   ========================================================= */
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.post-card {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.6rem 1.4rem 1.4rem; text-decoration: none; color: inherit;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.post-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card__band { position: absolute; inset: 0 0 auto; height: 5px; }
.post-card__kat { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.post-card__meta { margin-top: auto; padding-top: .9rem; color: var(--text-faint); font-size: .84rem; }

.post-card--gross { grid-column: 1 / -1; padding: 2.25rem 2rem 1.9rem; }
.post-card__flag {
  position: absolute; top: 1.4rem; right: 1.5rem; z-index: 1;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text);
}
@media (min-width: 820px) {
  .post-card--gross { padding-right: 42%; min-height: 240px; }
  .post-card--gross::after {
    content: ""; position: absolute; top: 5px; right: 0; bottom: 0; width: 36%;
    background: var(--band, var(--accent)); opacity: .13;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  }
}
.post-card--gross h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); max-width: 24ch; }
.post-card--gross p { font-size: 1.03rem; max-width: 62ch; }
.post-card--gross .post-card__band { height: 7px; }

.post-head { position: relative; padding: 2.75rem 0 2rem; background: var(--bg-soft); border-bottom: 1px solid var(--border); overflow: hidden; }
.post-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--band, var(--accent)); }
.post-head::after {
  content: ""; position: absolute; inset: -60% -20% auto 40%; height: 200%; z-index: 0;
  background: var(--band, var(--accent)); opacity: .07; filter: blur(30px); pointer-events: none;
}
.post-head > .wrap { position: relative; z-index: 1; }
.post-head h1 { margin: 1rem 0 .6rem; max-width: 20ch;
  font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.55rem); }
.post-head .lead { color: var(--text-muted); font-size: 1.1rem; max-width: 58ch; }
a.badge:hover { text-decoration: none; border-color: var(--accent); }

.byline { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.byline__avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #a855f7); color: #fff; font-weight: 700; font-size: .88rem;
}
.byline b { display: block; font-size: .95rem; }
.byline small { color: var(--text-faint); font-size: .85rem; }

.split--links { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .split--links { grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; }
  .toc-spalte { order: -1; }
  .toc { position: sticky; top: 90px; }
}

.toc { border-left: 2px solid var(--border); padding-left: 1.1rem; }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: .6rem; }
.toc a { display: block; font-size: .9rem; line-height: 1.4; color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--accent-text); }

.toolbox { margin: 2.5rem 0; padding: 1.6rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.toolbox h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.toolbox .grid { margin-top: 1.2rem; }

.autorbox { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; border: 1px solid var(--border); border-radius: var(--radius); margin: 2.5rem 0; }
.autorbox p { margin-top: .35rem; }

.postnav { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2rem; }
.postnav__link {
  display: grid; gap: .25rem; padding: 1.1rem 1.25rem; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated);
}
.postnav__link:hover { border-color: var(--accent); }
.postnav__link span { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); }
.postnav__link b { font-size: .98rem; line-height: 1.35; }
.postnav__link--next { text-align: right; }

/* Querverweis-Kacheln (Kategorien, verwandte Seiten) */
.linkbox-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.linkbox {
  display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.15rem; text-decoration: none; color: inherit;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
}
.linkbox:hover { border-color: var(--accent); }
.linkbox__punkt { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: .38rem; }
.linkbox b { display: block; font-size: .98rem; }
.linkbox small { color: var(--text-muted); font-size: .87rem; line-height: 1.45; }

a.chip { text-decoration: none; }
a.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Kontextlinks im Fließtext deutlich, aber nicht aufdringlich */
.prose a { text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
