/* Tokenlabor – warmes Weiß, Tinte, ein Orange als Akzent, pastellige Token-Farben.
   Schrift: Geist + Geist Mono (selbst gehostet, keine externen Anfragen). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #ffffff;
  --sunken: #f4f2ed;
  --ink: #17140f;
  --ink-2: #48433c;
  --muted: #6f685e;
  --line: #ebe7df;
  --line-2: #dbd5ca;
  --accent: #e8541c;
  --accent-ink: #c2410c;
  --accent-soft: #fdefe7;
  --t0: #ffdcc9; --t1: #e3defe; --t2: #d3efe1; --t3: #fff0bd; --t4: #d8e9fb;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(23, 20, 15, .04), 0 10px 30px -14px rgba(23, 20, 15, .16);
  --shadow-sm: 0 1px 2px rgba(23, 20, 15, .05);
  --header-bg: rgba(250, 249, 246, .86);
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-hover: #2d2820;
  --result-bg: var(--ink); --result-fg: #f3efe8; --result-strong: #fff; --result-muted: #b8b0a3; --result-text: #cfc8bc;
  --footer-bg: var(--ink); --footer-fg: #b8b0a3; --footer-strong: #fff; --footer-line: #2e2922; --footer-dim: #8a8276;
  --result-border: transparent;
  --prose: #2a2620; --row-hover: #fcfbf8; --soft: #fdfcfa; --focus-ring: rgba(23, 20, 15, .08); --ok: #1f7a4d; --cat-analyse: #f1e3f3;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01"; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--t0); }
svg { display: block; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Kopf ---------------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav a { display: block; padding: 7px 13px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--sunken); }
.nav a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav .s { display: none; }
@media (max-width: 920px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .nav { order: 3; width: calc(100% + 32px); margin: 8px -16px 0; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 12px; font-size: .9rem; }
  .nav .l { display: none; } .nav .s { display: inline; }
}

main { padding: 0 0 96px; }

/* ---------------- Typografie ---------------- */
h1, h2, h3 { color: var(--ink); letter-spacing: -.03em; line-height: 1.08; font-weight: 700; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
h3 { font-size: 1.12rem; margin: 0 0 6px; letter-spacing: -.015em; line-height: 1.3; font-weight: 650; }
p { margin: 0 0 16px; }
.lead { font-size: 1.14rem; line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); }
.label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }

.page-head { padding: 44px 0 30px; }
.page-head .lead { margin-top: 4px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line-2); }

.section { margin-top: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.more:hover { text-decoration: underline; }
@media (max-width: 640px) { .section { margin-top: 64px; } .page-head { padding: 28px 0 22px; } }

/* ---------------- Knöpfe & Formulare ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2348433c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
textarea { resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
input[type=number] { font-family: var(--mono); font-size: .98rem; }
.field { margin-bottom: 18px; }
.grid2, .grid3 { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }

/* Auswahl-Chips (Checkbox/Radio) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .9rem; font-weight: 500; cursor: pointer; user-select: none; transition: all .15s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .15s; }
.chip:hover { border-color: var(--muted); }
.chip:has(input[type=checkbox]:not(:checked)) { background: var(--sunken); color: var(--muted); border-color: var(--line); }
.chip:has(input:checked) { background: var(--surface); border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }
.chip:has(input[type=radio]:checked) { background: var(--btn-bg); color: var(--btn-fg); }
.chip:has(input:checked)::before { background: var(--accent); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- Karten & Panels ---------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-body { padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--sunken); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (max-width: 520px) { .panel-body { padding: 18px; } .panel-foot { padding: 14px 18px; } }

/* ---------------- Token-Chips ---------------- */
.tok { font-family: var(--mono); font-size: .96rem; line-height: 2.1; white-space: pre-wrap; word-break: break-word; }
.tok span { padding: 3px 1px; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tok .t0 { background: var(--t0); } .tok .t1 { background: var(--t1); } .tok .t2 { background: var(--t2); } .tok .t3 { background: var(--t3); } .tok .t4 { background: var(--t4); }
.tok .nl { display: block; height: 0; }

/* ---------------- Startseite ---------------- */
.hero { padding: 72px 0 0; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); letter-spacing: -.045em; line-height: 1.02; margin: 0 auto 22px; font-weight: 750; hyphens: manual; -webkit-hyphens: manual; }
.hero h1 .l { display: block; }
@media (max-width: 520px) { .hero h1 { font-size: clamp(1.8rem, calc((100vw - 32px) / 9.4), 2.6rem); } }
.hero h1 .a { color: var(--accent); }
.hero .lead { margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 56ch; }
.hero .actions { justify-content: center; margin-top: 30px; }
@media (max-width: 640px) { .hero { padding-top: 40px; } .hero h1 { margin-bottom: 16px; } }

.play { margin: 56px auto 0; max-width: 920px; text-align: left; }
.play .panel-head { padding: 12px 14px 12px 20px; }
.play-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dots i:first-child { background: var(--accent); }
.play-model { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.play-model select { min-height: 34px; width: auto; padding: 4px 32px 4px 10px; font-size: .88rem; background-position: right 10px center; }
.play textarea { border: 0; border-radius: 0; box-shadow: none; padding: 18px 20px 10px; min-height: 0; height: 92px; font-size: 1.05rem; resize: none; background: transparent; }
.play textarea:focus { box-shadow: none; }
.play .tok { padding: 18px 20px 22px; border-top: 1px dashed var(--line-2); background: var(--soft); min-height: 72px; }
.play-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.play-stats div { padding: 16px 20px; }
.play-stats div + div { border-left: 1px solid var(--line); }
.num { font-family: var(--mono); font-weight: 500; font-size: 1.6rem; letter-spacing: -.04em; line-height: 1.15; display: block; font-variant-numeric: tabular-nums; }
.num.a { color: var(--accent-ink); }
.play-stats span:not(.num) { font-size: .8rem; color: var(--muted); }
.play-note { text-align: center; font-size: .86rem; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 640px) {
  .play { margin-top: 36px; }
  .play-stats { grid-template-columns: 1fr 1fr; }
  .play-stats div:nth-child(3) { border-left: 0; }
  .play-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .play .panel-head { padding: 10px 12px 10px 16px; }
  .play .dots, .play-model span { display: none; }
  .play textarea { height: 128px; padding: 16px; }
  .play .tok { padding: 16px; }
  .hero .actions { gap: 8px; }
  .hero .btn { padding: 0 15px; font-size: .92rem; }
  .num { font-size: 1.35rem; }
}

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.points div { padding: 22px 24px 22px 0; display: flex; gap: 14px; align-items: flex-start; }
.points div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.points svg { color: var(--accent); flex: none; margin-top: 2px; }
.points b { display: block; font-weight: 650; }
.points span { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } .points div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .points div { padding: 18px 0; } }

/* Werkzeug-Karten */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-prev { height: 172px; background: var(--sunken); border-bottom: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-2); font-size: .95rem; flex: 1; margin: 0 0 18px; }
.card .more { color: var(--ink); }
.card:hover .more { color: var(--accent-ink); }
.prev-word { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.card-prev .tok { font-size: 1.05rem; line-height: 2.2; }
.prev-count { font-family: var(--mono); font-size: .86rem; color: var(--ink-2); }
.prev-count b { color: var(--accent-ink); font-weight: 600; }
.mini-bars { display: grid; gap: 9px; }
.mini-bars div { display: grid; grid-template-columns: 112px 1fr 48px; white-space: nowrap; gap: 10px; align-items: center; font-size: .78rem; color: var(--ink-2); }
.mini-bars i { height: 12px; border-radius: 6px; background: var(--ink); display: block; }
.mini-bars div:nth-child(2) i { background: var(--accent); }
.mini-bars b { font-family: var(--mono); font-weight: 500; text-align: right; color: var(--ink); }
.mini-prompt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-family: var(--mono); font-size: .8rem; line-height: 1.7; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.ph { background: var(--t3); color: var(--ink); border-radius: 4px; padding: 1px 4px; }
.ph.b { background: var(--t1); } .ph.c { background: var(--t2); }

/* Preis-Diagramm */
.split { display: grid; gap: 24px; grid-template-columns: 1.15fr .85fr; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.chart .panel-body { padding: 8px 24px 20px; }
.c-row { display: grid; grid-template-columns: 172px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-row:last-of-type { border-bottom: 0; }
.c-name { font-weight: 600; font-size: .93rem; line-height: 1.25; hyphens: none; }
.c-name small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.c-bars { display: grid; gap: 5px; }
.c-bar { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.c-bar i { height: 9px; border-radius: 5px; min-width: 4px; background: var(--ink); }
.c-bar.o i { background: var(--accent); }
.legend { display: flex; gap: 18px; font-size: .82rem; color: var(--muted); padding: 14px 24px; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.legend .o i { background: var(--accent); }
@media (max-width: 520px) { .c-row { grid-template-columns: 1fr; gap: 6px; } .chart .panel-body { padding: 4px 18px 16px; } }

/* Ratgeber-Liste */
.list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.list li { counter-increment: n; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 40px 1fr 20px; gap: 14px; padding: 18px 0; color: var(--ink); text-decoration: none; align-items: start; }
.list a::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: .86rem; color: var(--accent-ink); padding-top: 2px; }
.list a > svg { color: var(--muted); margin-top: 3px; transition: transform .15s, color .15s; }
.list a:hover > svg { transform: translateX(3px); color: var(--ink); }
.list b { display: block; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.list span { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.list.plain a { grid-template-columns: 1fr 20px; }
.list.plain a::before { display: none; }

/* FAQ */
.faq-wrap { display: grid; gap: 8px 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 2fr; } .faq-wrap .faq { max-width: none; } }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sunken) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%2317140f' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 1v8M1 5h8'/%3E%3C/svg%3E") center no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: -4px 0 20px; max-width: 70ch; }

/* ---------------- Token-Zähler ---------------- */
.counter textarea { min-height: 220px; font-size: 1.02rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats div { padding: 18px 24px; min-width: 0; }
.stats div + div { border-left: 1px solid var(--line); }
.stats span:not(.num) { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .stats div { padding: 14px 18px; } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.meter { height: 8px; background: var(--sunken); border-radius: 4px; overflow: hidden; margin: 10px 0 8px; box-shadow: inset 0 0 0 1px var(--line); }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .25s; }
.status { font-size: .86rem; color: var(--muted); min-height: 1.4em; }
.tokview { padding: 20px 24px; max-height: 460px; overflow: auto; min-height: 90px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-2); margin: 0; cursor: pointer; }
.toggle input { accent-color: var(--ink); width: 16px; height: 16px; }
.cost-line { font-size: .95rem; color: var(--ink-2); margin: 0; min-height: 3em; }
.cost-line b { color: var(--ink); font-family: var(--mono); font-weight: 600; }

/* ---------------- Kostenrechner ---------------- */
.result { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center; padding: 22px 24px; background: var(--result-bg); color: var(--result-fg); border-radius: var(--r-lg); margin: 24px 0; }
.result .big { font-family: var(--mono); font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--result-strong); white-space: nowrap; }
.result .big small { font-size: .9rem; letter-spacing: 0; color: var(--result-muted); margin-left: 6px; }
.result p { margin: 0; color: var(--result-text); font-size: .95rem; }
.result b { color: var(--result-strong); font-weight: 600; }
@media (max-width: 640px) { .result { grid-template-columns: 1fr; } }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; background: var(--sunken); }
th:first-child { border-top-left-radius: var(--r-lg); } th:last-child { border-top-right-radius: var(--r-lg); }
th.n { text-align: right; }
td.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.n { font-size: .88rem; color: var(--ink-2); }
td .prov { display: block; font-size: .78rem; color: var(--muted); }
td.m { font-weight: 600; }
td.cost { min-width: 170px; }
.costbar { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-family: var(--mono); font-size: .9rem; color: var(--ink); font-weight: 500; }
.costbar i { height: 8px; border-radius: 4px; background: var(--line-2); flex: 1; max-width: 90px; position: relative; overflow: hidden; }
.costbar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--ink); border-radius: 4px; }
tr.sel td { background: var(--accent-soft); }
tr.sel .costbar i::after { background: var(--accent); }
tr.sel[data-label] td.m::after { content: ""; margin-left: 8px; font-size: .7rem; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .05em; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--row-hover); }
tbody tr.sel:hover td { background: var(--accent-soft); }

/* ---------------- Vorlagen ---------------- */
.filterbar { display: grid; gap: 16px; margin-bottom: 26px; }
.search { position: relative; max-width: 460px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; border-radius: 999px; }
.count { font-size: .88rem; color: var(--muted); margin: -8px 0 16px; }
.tpl-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-grid li[hidden] { display: none; }
.tpl-grid a { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tpl-grid a:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tpl-grid .cat { align-self: flex-start; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; color: var(--ink); }
.cat.schreiben { background: var(--t0); } .cat.buero { background: var(--t4); } .cat.code { background: var(--t1); }
.cat.lernen { background: var(--t2); } .cat.marketing { background: var(--t3); } .cat.analyse { background: var(--cat-analyse); }
.tpl-grid h3 { margin-bottom: 6px; }
.tpl-grid p { color: var(--ink-2); font-size: .93rem; margin: 0 0 16px; flex: 1; }
.tpl-grid .more { font-size: .88rem; color: var(--ink); }
.tpl-grid a:hover .more { color: var(--accent-ink); }

.tpl-layout { display: grid; gap: 24px; grid-template-columns: 1fr 1.1fr; align-items: start; }
@media (max-width: 900px) { .tpl-layout { grid-template-columns: 1fr; } }
.tpl-out { position: sticky; top: 84px; }
.prompt-out { font-family: var(--mono); font-size: .9rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; padding: 22px 24px; min-height: 220px; color: var(--ink); }
.prompt-out mark { background: var(--t3); color: var(--ink); border-radius: 4px; padding: 1px 4px; }
.ok { color: var(--accent-ink); font-size: .9rem; font-weight: 600; min-width: 7ch; }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 70ch; }
.tips li { position: relative; padding-left: 22px; color: var(--ink-2); }
.tips li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* ---------------- Artikel ---------------- */
.article { max-width: 720px; }
.article .page-head { padding-bottom: 8px; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; line-height: 1.05; }
.meta { font-size: .86rem; color: var(--muted); margin-top: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--prose); }
.prose > .lead { margin-top: 18px; font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); max-width: none; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 6px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--accent-ink); }
.prose b { font-weight: 650; color: var(--ink); }
.cta { margin-top: 48px; padding: 24px; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta b { display: block; font-size: 1.08rem; }
.cta span { color: var(--ink-2); font-size: .95rem; }

.legal { max-width: 720px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal p { color: var(--ink-2); }

/* ---------------- Fuß ---------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 56px 0 40px; font-size: .92rem; }
.foot { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
.site-footer .brand { color: var(--footer-strong); margin-bottom: 12px; }
.site-footer p { margin: 0; max-width: 34ch; line-height: 1.55; }
.site-footer h4 { margin: 4px 0 12px; color: var(--footer-strong); font-size: .86rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--footer-fg); text-decoration: none; }
.site-footer a:hover { color: var(--footer-strong); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--footer-line); font-size: .84rem; color: var(--footer-dim); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ================= Erweiterungen ================= */
/* Datei-Upload */
.drop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--soft); color: var(--ink-2); font-size: .92rem; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { color: var(--muted); flex: none; }
.drop .grow { flex: 1; min-width: 180px; }
.drop b { color: var(--ink); font-weight: 600; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Werkzeug-Raster */
.tool-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tool .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); }
.tool:nth-child(5n+1) .ico { background: var(--t0); } .tool:nth-child(5n+2) .ico { background: var(--t1); } .tool:nth-child(5n+3) .ico { background: var(--t2); }
.tool:nth-child(5n+4) .ico { background: var(--t3); } .tool:nth-child(5n+5) .ico { background: var(--t4); }
.tool h3 { margin: 6px 0 0; }
.tool p { margin: 0; color: var(--ink-2); font-size: .93rem; flex: 1; }
.tool .more { font-size: .88rem; }
.new { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; vertical-align: 3px; letter-spacing: .02em; }

/* Ergebnis-Kacheln (Umrechner) */
.outgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); overflow: hidden; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.outgrid div { padding: 18px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.outgrid span:not(.num) { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* Größen-Knöpfe */
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.sizes button { font: inherit; font-size: .8rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.sizes button:hover { border-color: var(--ink); color: var(--ink); }

/* Prompt-Prüfer */
.pp-layout { display: grid; gap: 20px; grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 900px) { .pp-layout { grid-template-columns: 1fr; } }
.pp-findings { list-style: none; margin: 0; padding: 0; }
.pp-findings li { padding: 14px 20px 14px 40px; border-bottom: 1px solid var(--line); position: relative; }
.pp-findings li:last-child { border-bottom: 0; }
.pp-findings li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.pp-findings li.pp-f::before { background: var(--accent); }
.pp-findings li.pp-v::before { background: #e0b100; }
.pp-findings li.pp-m::before { background: #6a5be2; }
.pp-findings li.pp-d::before, .pp-findings li.pp-l::before, .pp-findings li.pp-n::before { background: #3b8fd1; }
.pp-findings li.pp-ok::before { background: #2f9e6e; }
.pp-findings b { display: block; font-weight: 600; }
.pp-findings span { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
.pp-view { padding: 18px 20px; white-space: pre-wrap; word-break: break-word; line-height: 1.75; font-size: .97rem; min-height: 80px; }
.pp-view mark { border-radius: 4px; padding: 1px 2px; color: var(--ink); }
.pp-view mark.pp-f { background: var(--t0); text-decoration: line-through; text-decoration-color: rgba(194, 65, 12, .5); }
.pp-view mark.pp-v { background: var(--t3); }

/* Vergleiche */
.cmp-table td.win { color: var(--accent-ink); font-weight: 600; }
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 0 0 24px; }
.vs-head .side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.vs-head .side b { display: block; font-size: 1.2rem; letter-spacing: -.02em; }
.vs-head .side span { color: var(--muted); font-size: .88rem; }
.vs-head .vs { font-family: var(--mono); color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .vs-head { grid-template-columns: 1fr; } .vs-head .vs { text-align: center; } }

/* Modell-Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.kpis div { padding: 18px 22px; min-width: 0; }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis span:not(.num) { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis div:nth-child(3) { border-left: 0; } .kpis div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.mtable td.m a { color: var(--ink); text-decoration: none; }
.mtable td.m a:hover { color: var(--accent-ink); text-decoration: underline; }
.mtable tr.group td { background: var(--sunken); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 14px; cursor: default; }
.mtable tbody tr { cursor: default; }
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill-links a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.pill-links a:hover { border-color: var(--ink); }

/* Glossar */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.az a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.az a:hover { border-color: var(--ink); }
.gl { max-width: 820px; margin: 0; }
.gl-letter { font-family: var(--mono); color: var(--accent-ink); font-size: 1rem; margin: 40px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.gl dt { font-weight: 650; font-size: 1.1rem; letter-spacing: -.01em; margin-top: 22px; scroll-margin-top: 90px; }
.gl dd { margin: 4px 0 0; color: var(--ink-2); max-width: 72ch; line-height: 1.7; }
.gl dt:target { color: var(--accent-ink); }

/* Preisänderungen */
.log { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.log li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.log li:first-child { border-top: 1px solid var(--line); }
.log time { font-family: var(--mono); font-size: .86rem; color: var(--muted); padding-top: 2px; }
.log .kind { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-bottom: 6px; background: var(--sunken); }
.log .kind.teurer { background: var(--t0); } .log .kind.günstiger { background: var(--t2); } .log .kind.neu { background: var(--t4); } .log .kind.hinweis { background: var(--t3); }
.log p { margin: 0; color: var(--ink-2); }
.log a.src { font-size: .84rem; }
@media (max-width: 520px) { .log li { grid-template-columns: 1fr; gap: 4px; } }

/* Vorlagen: Favoriten und Öffnen */
.tpl-grid li { position: relative; }
.fav { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 6px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .84rem; font-weight: 500; }
.fav:hover { background: var(--sunken); color: var(--ink); }
.fav[aria-pressed="true"] { color: var(--accent-ink); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav .fav-l { display: none; }
.fav.big { position: static; border-color: var(--line-2); background: var(--surface); padding: 6px 12px; }
.fav.big .fav-l { display: inline; }
.open-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--sunken); border-radius: 0 0 var(--r-lg) var(--r-lg); align-items: center; }
.open-row .note { font-size: .84rem; color: var(--muted); flex-basis: 100%; margin: 0; }
.open-row .note:empty { display: none; }
.open-row .muted { font-size: .84rem; margin-right: 4px; }

/* Rasterspalten dürfen schrumpfen, Tabellen scrollen dann innerhalb */
.split > *, .cols > *, .tpl-layout > *, .pp-layout > *, .faq-wrap > * { min-width: 0; }
.btn:disabled, .btn[disabled] { opacity: .35; cursor: not-allowed; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .stats.three div:nth-child(3) { border-left: 1px solid var(--line); } .stats.three div:nth-child(n+3) { border-top: 0; } .stats.three div { padding: 14px 12px; } }
.play .panel-head { gap: 8px; }
.play-model { min-width: 0; }
@media (max-width: 400px) { .play-model select { max-width: 150px; text-overflow: ellipsis; } .play-title { font-size: .88rem; } }

/* Text aufteilen */
.chunks { display: grid; gap: 14px; margin-top: 8px; }
.chunk-text { margin: 0; padding: 16px 20px; font-family: var(--mono); font-size: .84rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; color: var(--ink-2); }
.chunk.done .panel-head b::after { content: " ✓"; color: var(--accent-ink); }
/* Änderungen markieren */
.diff ins { background: var(--t2); color: var(--ink); text-decoration: none; border-radius: 3px; padding: 0 2px; }
.diff del { background: var(--t0); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.panel-head ins, .panel-head del { padding: 0 4px; border-radius: 3px; text-decoration: none; }
.panel-head ins { background: var(--t2); } .panel-head del { background: var(--t0); }
pre.prompt-out { margin: 0; }
textarea[readonly] { background: var(--soft); }

/* Markdown-Vorschau */
.md-preview { padding: 20px 24px; min-height: 260px; max-height: 560px; overflow: auto; font-size: .97rem; line-height: 1.6; }
.md-preview h1, .md-preview h2, .md-preview h3, .md-preview h4 { margin: 18px 0 8px; letter-spacing: -.01em; }
.md-preview h1 { font-size: 1.5rem; } .md-preview h2 { font-size: 1.3rem; } .md-preview h3 { font-size: 1.12rem; }
.md-preview > :first-child { margin-top: 0; }
.md-preview ul, .md-preview ol { padding-left: 22px; }
.md-preview table { margin: 12px 0; } .md-preview th, .md-preview td { border: 1px solid var(--line); }
.md-preview blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.md-preview pre { background: var(--sunken); padding: 12px; border-radius: 8px; overflow: auto; font-size: .85rem; }
.md-preview code { font-family: var(--mono); font-size: .88em; background: var(--sunken); padding: 1px 4px; border-radius: 4px; }
/* Temperatur */
input[type=range] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.tp-table td { padding: 9px 14px; } .tp-table tr.off td { color: var(--muted); }
.tp-table tr.off .costbar i::after { background: var(--line-2); }
.result .big.wrap { white-space: normal; font-family: var(--font); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.result .big.wrap small { display: block; margin: 6px 0 0; font-family: var(--mono); }

/* ---- Runde 5: Werkzeugsuche, Copilot Studio, Text- und JSON-Werkzeuge ---- */
@media (min-width: 921px) and (max-width: 1100px) { .nav .l { display: none; } .nav .s { display: inline; } .nav a { padding: 7px 10px; } }
.tool-search { position: relative; display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; max-width: 640px; }
.tool-search input { flex: 1; min-height: 50px; padding-left: 44px; font-size: 1rem; }
.tool-search .ts-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.tool-search .small { white-space: nowrap; }
.cat-jump { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; font-size: .92rem; }
.cat-jump a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.cat-jump a:hover { color: var(--ink); border-color: var(--ink-2); }
.tool-cat { scroll-margin-top: 90px; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
mark.uz { border-radius: 3px; padding: 0 2px; color: var(--ink); font-weight: 600; }
mark.uz-space { background: var(--t4); } mark.uz-zw, mark.uz-bidi { background: var(--t0); }
.pp-view mark { background: var(--t0); color: var(--ink); border-radius: 3px; padding: 0 2px; }
b.ok { color: var(--ok); } b.bad { color: var(--accent-ink); }
textarea[readonly] { background: var(--sunken); }
.cat-group + .cat-group { margin-top: 56px; }
.tool[hidden], .tool-cat[hidden] { display: none; }
@media (max-width: 640px) { .result > * { min-width: 0; } .result .big small { display: block; margin: 8px 0 0; white-space: normal; line-height: 1.3; } }
code { overflow-wrap: anywhere; }
@media (max-width: 360px) { .play .panel-head { flex-wrap: wrap; gap: 8px; } .play-model select { max-width: 150px; } .more { white-space: normal; } }

/* ---- Runde 7: Suche, Sprunglink, Inhaltsverzeichnis, weniger Bewegung ---- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--btn-bg); color: var(--btn-fg); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: var(--btn-fg); }
main:focus { outline: none; }
.srch-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 7px 8px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: .9rem; cursor: pointer; flex: none; }
.srch-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.srch-btn kbd { font-family: var(--mono); font-size: .75rem; padding: 1px 7px; border-radius: 6px; background: var(--sunken); color: var(--muted); }
@media (max-width: 1040px) { .srch-btn span, .srch-btn kbd { display: none; } .srch-btn { padding: 8px; } }
@media (max-width: 920px) { .srch-btn { margin-left: auto; width: 40px; height: 40px; justify-content: center; } }
.srch { width: min(640px, calc(100vw - 24px)); max-height: min(70vh, 640px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(23, 20, 15, .35); overflow: hidden; }
.srch[open] { display: flex; flex-direction: column; }
.srch::backdrop { background: rgba(23, 20, 15, .32); }
.srch-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.srch-box input { flex: 1; border: 0; box-shadow: none; padding: 8px 4px; font-size: 1.05rem; min-height: 0; background: transparent; }
.srch-box input:focus { box-shadow: none; outline: none; }
.srch-x { border: 1px solid var(--line-2); background: var(--sunken); border-radius: 6px; font: inherit; font-size: .75rem; padding: 3px 8px; color: var(--muted); cursor: pointer; }
.srch-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.srch-head { padding: 10px 12px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.srch-empty { padding: 18px 12px; color: var(--muted); }
.srch-hit { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.srch-hit b { font-weight: 600; }
.srch-hit .srch-d { grid-column: 2; color: var(--ink-2); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-hit.on, .srch-hit:hover { background: var(--accent-soft); color: var(--ink); }
.srch-k { font-size: .72rem; font-family: var(--mono); color: var(--muted); min-width: 64px; }
@media (max-width: 520px) { .srch { margin-top: 12px; } .srch-hit { grid-template-columns: 1fr; } .srch-hit .srch-d { grid-column: 1; } .srch-k { min-width: 0; } }
.toc { margin: 8px 0 32px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.toc b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 32px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.srch-box input::-webkit-search-cancel-button { display: none; }
/* Demo-Textfeld: Höhe passend zum Inhalt, ohne Scrollbalken */
@media (max-width: 960px) { .play textarea { height: 116px; } }
@media (max-width: 560px) { .play textarea { height: 150px; } }
@supports (field-sizing: content) { .play textarea { field-sizing: content; height: auto; min-height: 92px; max-height: 320px; } }
/* Mobile Navigation: Auslauf rechts als Hinweis auf weitere Einträge */
@media (max-width: 920px) {
  .nav { padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .nav.at-end { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 400px) { .nav a { padding: 6px 10px; } }
.cta .btn, .cta .btn:hover { color: var(--btn-fg); font-size: .96rem; }

tr.sel[data-label="gewählt"] td.m::after { content: "gewählt"; }
tr.sel[data-label="günstigst"] td.m::after { content: "günstigst"; }
tr.sel[data-label="zu knapp"] td.m::after { content: "zu knapp"; }
tr.sel[data-label="Engpass"] td.m::after { content: "Engpass"; }
tr.sel[data-label="passt am besten"] td.m::after { content: "passt am besten"; }
tr.sel[data-label="häufig"] td.m::after { content: "häufig"; }
tr.sel[data-label="Lizenz günstiger"] td.m::after { content: "Lizenz günstiger"; }
@media (min-width: 600px) { .grid3.au-row { grid-template-columns: 2fr 1.3fr 1fr 1fr; } }
/* Eingabefelder in einer Zeile bündig, auch wenn eine Beschriftung umbricht */
.grid2 > .field:not([style]), .grid3 > .field:not([style]) { display: flex; flex-direction: column; }
.grid2 > .field:not([style]) > label:first-child, .grid3 > .field:not([style]) > label:first-child { flex: 1 0 auto; }

/* ---- Drucken und PDF ---- */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.also { margin: 14px 0 0; font-size: .95rem; }
/* Tabellen und Prompt-Beispiele in Ratgebern */
.prose .prose-table { margin: 8px 0 22px; box-shadow: none; }
.prose .prose-table td { font-size: .95rem; line-height: 1.5; vertical-align: top; }
.prose .prose-table th { white-space: normal; }
.prose pre { margin: 0 0 22px; padding: 14px 16px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-sm); font-family: var(--mono); font-size: .85rem; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

/* ---- Modellvergleich (/modelle/) und Stärken (/modelle/staerken/) ---- */
:root { --p-anthropic: #d4704a; --p-openai: #3e8a72; --p-google: #4a7fd0; --p-deepseek: #6a5be2; --p-xai: #6f685e; --p-mistral: #d39a00; --p-other: #b0568c; }
:root[data-theme="dark"] { --p-anthropic: #ec8b64; --p-openai: #5fb596; --p-google: #78a3ea; --p-deepseek: #9488f0; --p-xai: #b3aa9d; --p-mistral: #e8bb3c; --p-other: #d77fb2; }
.fam-anthropic { --p: var(--p-anthropic); } .fam-openai { --p: var(--p-openai); } .fam-google { --p: var(--p-google); }
.fam-deepseek { --p: var(--p-deepseek); } .fam-xai { --p: var(--p-xai); } .fam-mistral { --p: var(--p-mistral); } .fam-other { --p: var(--p-other); }
.chip.mv-prov:has(input:checked)::before { background: var(--p); }
.chip.mv-prov:has(input:not(:checked))::before { background: var(--line-2); }
.mv-prov[data-fam="anthropic"] { --p: var(--p-anthropic); } .mv-prov[data-fam="openai"] { --p: var(--p-openai); } .mv-prov[data-fam="google"] { --p: var(--p-google); }
.mv-prov[data-fam="deepseek"] { --p: var(--p-deepseek); } .mv-prov[data-fam="xai"] { --p: var(--p-xai); } .mv-prov[data-fam="mistral"] { --p: var(--p-mistral); }

.mv { padding: 28px 28px 22px; margin-bottom: 40px; }
.mv-head h2 { margin: 0 0 6px; font-size: 1.6rem; }
.mv-head p { margin: 0 0 20px; color: var(--ink-2); max-width: 680px; }
.mv-presets { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--sunken); border-radius: 12px; width: fit-content; max-width: 100%; margin-bottom: 18px; }
.mv-preset { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.mv-preset:hover { color: var(--ink); }
.mv-preset.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.mv-inputs { margin-bottom: 6px; }
.mv-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 4px 0 22px; }
.mv-filter .chips { margin: 0; }

.mv-cmp { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 26px; min-height: 120px; }
.mv-card { position: relative; padding: 16px 18px 14px; border: 1px solid var(--line); border-top: 3px solid var(--p); border-radius: 14px; background: var(--surface); }
.mv-card small { color: var(--muted); font-size: .78rem; }
.mv-card h3 { margin: 2px 0 10px; font-size: 1.06rem; line-height: 1.25; padding-right: 22px; }
.mv-card h3 a { color: var(--ink); text-decoration: none; } .mv-card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.mv-big { font-family: var(--mono); font-size: 1.55rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.mv-big span { font-family: inherit; font-size: .8rem; letter-spacing: 0; color: var(--muted); }
.mv-badge, .mv-x { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 600; }
.mv-badge { color: var(--ok, #1a7f52); } .mv-x { color: var(--accent-ink); }
.mv-card dl { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.mv-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; }
.mv-card dt { color: var(--muted); } .mv-card dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.mv-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.mv-close:hover { background: var(--sunken); color: var(--ink); }
.mv-slot, .mv-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: .88rem; margin: 0; }
.mv-empty { grid-column: 1 / -1; }

.mv-chart-head { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; font-weight: 600; color: var(--ink-2); padding: 0 6px 8px; border-bottom: 1px solid var(--line); }
.mv-bars { list-style: none; margin: 0; padding: 0; }
.mv-row { border-bottom: 1px solid var(--line); }
.mv-pick { display: grid; grid-template-columns: 28px minmax(140px, 1.1fr) 2fr 130px; align-items: center; gap: 12px; width: 100%; padding: 9px 6px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: 10px; }
.mv-pick:hover { background: var(--row-hover, var(--sunken)); }
.mv-row.on .mv-pick { background: var(--accent-soft); }
.mv-pos { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-align: right; }
.mv-name { font-weight: 600; font-size: .93rem; line-height: 1.25; }
.mv-name small, .mv-val small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.mv-track { height: 12px; background: var(--sunken); border-radius: 999px; overflow: hidden; }
.mv-track i { display: block; height: 100%; background: var(--p); border-radius: 999px; transition: width .35s ease; opacity: .85; }
.mv-row.on .mv-track i { opacity: 1; }
.mv-val { text-align: right; font-variant-numeric: tabular-nums; }
.mv-val b { font-family: var(--mono); font-weight: 500; font-size: .92rem; }
.mv-more { margin: 14px auto 0; display: block; }
.mv-foot { margin-top: 18px; }
@media (max-width: 640px) {
  .mv { padding: 20px 16px 16px; }
  .mv-pick { grid-template-columns: 22px 1fr auto; grid-template-areas: "pos name val" ". track track"; row-gap: 6px; }
  .mv-pos { grid-area: pos; } .mv-name { grid-area: name; } .mv-val { grid-area: val; } .mv-track { grid-area: track; height: 8px; }
  .mv-presets { width: 100%; } .mv-preset { flex: 1 1 auto; padding: 8px 10px; }
  .mv-cmp { grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; }
  .mv-card { padding: 12px 12px 10px; }
  .mv-card h3 { font-size: .95rem; margin-bottom: 6px; }
  .mv-big { font-size: 1.15rem; } .mv-big span { display: block; font-size: .72rem; }
  .mv-card dl div:nth-child(2), .mv-card dl div:nth-child(3) { display: none; }
  .mv-card dl div { flex-direction: column; gap: 0; font-size: .78rem; } .mv-card dd { text-align: left; }
  .mv-slot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mv-track i { transition: none; } }

/* Stärken nach Themen */
.st-recs { padding: 6px 24px; margin-bottom: 32px; }
.st-recs ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 32px; }
.st-recs li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.st-recs li > span { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.st-recs a { color: var(--ink); }
.st-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--sunken); border-radius: 12px; margin-bottom: 12px; }
.st-tabs::-webkit-scrollbar { display: none; }
.st:not(.js) .st-tabs { display: none; }
.st-tab { flex: none; border: 0; background: none; padding: 9px 14px; border-radius: 9px; font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.st-tab:hover { color: var(--ink); }
.st-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.st-body { padding: 8px 24px 18px; }
.st:not(.js) .st-panel + .st-panel { border-top: 1px solid var(--line); margin-top: 12px; }
.st-ph h2 { font-size: 1.3rem; margin: 18px 0 6px; }
.st-ph p { margin: 0 0 14px; color: var(--ink-2); font-size: .94rem; max-width: 760px; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-row { display: grid; grid-template-columns: 26px minmax(150px, 1fr) 2fr 84px; align-items: center; gap: 12px; padding: 9px 8px; border-bottom: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.st-row:last-child { border-bottom: 0; }
.st-row:hover { background: var(--row-hover, var(--sunken)); }
.st-rank { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: right; }
.st-row.top .st-rank { color: var(--accent-ink); font-weight: 600; }
.st-name { font-weight: 600; font-size: .94rem; line-height: 1.25; }
.st-name a { color: var(--ink); text-decoration: none; } .st-name a:hover { color: var(--accent-ink); text-decoration: underline; }
.st-name small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.st-track { height: 12px; background: var(--sunken); border-radius: 999px; overflow: hidden; }
.st-track i { display: block; height: 100%; background: var(--p); border-radius: 999px; opacity: .85; }
.st-val { font-family: var(--mono); font-weight: 500; font-size: .92rem; text-align: right; font-variant-numeric: tabular-nums; }
.st-miss { margin: 10px 8px 0; }
.st-pinned .st-row:not(.pin) { opacity: .45; }
.st-row.pin { background: var(--accent-soft); opacity: 1; }
.st-heat td.hm { font-family: var(--mono); font-size: .82rem; text-align: center; padding: 8px 6px; border-left: 2px solid var(--surface); min-width: 64px; }
.st-heat td.m { white-space: nowrap; min-width: 170px; padding: 8px 14px; }
.st-heat td.m a { color: var(--ink); text-decoration: none; } .st-heat td.m a:hover { color: var(--accent-ink); text-decoration: underline; }
.st-heat th.n { text-align: center; padding: 10px 6px; }
.st-heat .l4 { background: color-mix(in srgb, var(--accent) 78%, var(--surface)); color: #fff; font-weight: 600; }
.st-heat .l3 { background: color-mix(in srgb, var(--accent) 38%, var(--surface)); color: var(--ink); }
.st-heat .l2 { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--ink-2); }
.st-heat .l1 { background: var(--sunken); color: var(--muted); }
.st-heat .l0 { color: var(--muted); }
.st-heat tbody tr { cursor: pointer; } .st-heat tbody tr.pin td.m { box-shadow: inset 4px 0 0 var(--accent); }
.st-sort { border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 2px 4px; border-radius: 6px; white-space: nowrap; }
.st-sort:hover, .st-sort.on { color: var(--ink); background: var(--surface); }
.clean-list { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: .95rem; line-height: 1.6; } .clean-list li { margin-bottom: 8px; }
@media (max-width: 640px) {
  .st-body { padding: 4px 12px 14px; } .st-recs { padding: 4px 16px; }
  .st-row { grid-template-columns: 22px 1fr auto; grid-template-areas: "rank name val" ". track track"; row-gap: 6px; }
  .st-rank { grid-area: rank; } .st-name { grid-area: name; } .st-val { grid-area: val; } .st-track { grid-area: track; height: 8px; }
}

/* Startseite: Leistungs-Kacheln */
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--p); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.st-tile:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--line-2); border-top-color: var(--p); }
.st-tile span { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.st-tile b { font-size: 1.12rem; letter-spacing: -.01em; }
.st-tile small { font-family: var(--mono); font-size: .84rem; color: var(--ink-2); }
@media (max-width: 860px) { .st-tiles { grid-template-columns: 1fr 1fr; } }
/* News-Filter */
.news-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; }
.nf { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; }
.nf span { color: var(--muted); font-size: .78rem; margin-left: 2px; }
.nf:hover { border-color: var(--ink-2); color: var(--ink); }
.nf.on { background: var(--ink); border-color: var(--ink); color: var(--bg); } .nf.on span { color: inherit; opacity: .7; }
.nf-rss { margin-left: auto; font-size: .86rem; }
.news-card[hidden] { display: none; }
/* Ratgeber-Suche */
.rg-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.rg-filter input { flex: 1 1 320px; max-width: 520px; }
.rg-none { margin: 8px 0 24px; color: var(--ink-2); }
.tool-cat[hidden], .tool-cat li[hidden] { display: none; }

@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .skip, .srch, .noprint, .btn, .open-row, .faq-wrap, .cta, .crumbs, .toc, .section:has(.tool-grid), .section:has(.list.plain) { display: none !important; }
  main .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .panel, .result, table { box-shadow: none !important; break-inside: avoid; }
  .result { background: #fff !important; color: #000 !important; border: 1px solid #999; }
  .result .big, .result b, .result p { color: #000 !important; }
  pre, .chunk-text { max-height: none !important; overflow: visible !important; white-space: pre-wrap; color: #000; }
  textarea { border: 1px solid #999; }
  body.print-one main * { visibility: hidden; }
  body.print-one main .print-target, body.print-one main .print-target * { visibility: visible; }
  body.print-one main .print-target { position: absolute; left: 0; top: 0; width: 100%; font-size: 11pt; padding: 0; }
}


/* ---- Dunkler Modus: folgt dem System, außer es wurde ausdrücklich hell gewählt ---- */

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151310; --surface: #1d1a16; --sunken: #25211c;
  --ink: #f2ede5; --ink-2: #cfc7bb; --muted: #a39a8e;
  --line: #2e2a24; --line-2: #403a32;
  --accent: #f0703d; --accent-ink: #ff9a6a; --accent-soft: #3a2218;
  --t0: #5b3423; --t1: #36305e; --t2: #1f4535; --t3: #4f4216; --t4: #1f3b56;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --header-bg: rgba(21, 19, 16, .86);
  --btn-bg: #f2ede5; --btn-fg: #151310; --btn-hover: #ffffff;
  --result-bg: #0d0b09; --result-fg: #ece6dc; --result-strong: #ffffff; --result-muted: #a39a8e; --result-text: #cfc7bb;
  --footer-bg: #0d0b09; --footer-fg: #a39a8e; --footer-strong: #f2ede5; --footer-line: #2a2621; --footer-dim: #8a8276;
  --prose: #e4ddd2; --result-border: #3a342c; --row-hover: #221e1a; --soft: #1a1714; --focus-ring: rgba(242, 237, 229, .14); --ok: #5fcf98; --cat-analyse: #4a2c4e;
}

:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23cfc7bb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] mark { color: var(--ink); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; flex: none; }
.theme-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.theme-btn .moon { display: none; }

:root[data-theme="dark"] .theme-btn .sun { display: none; } :root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (max-width: 920px) { .theme-btn { margin-left: 6px; } }


:root[data-theme="dark"] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23f2ede5' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 1v8M1 5h8'/%3E%3C/svg%3E"); }

/* ---- KI-News ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 8px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.news-card:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--ink); }
.news-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sunken); }
.news-body { padding: 16px 18px 20px; }
.news-body h3 { margin: 8px 0 8px; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; }
.news-body p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); }
.news-cat { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .76rem; font-weight: 600; }
.news-article .meta { align-items: center; }
.news-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); margin: 4px 0 28px; background: var(--sunken); }
.takeaway { padding: 18px 22px; margin: 28px 0; background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.takeaway b { display: block; margin-bottom: 4px; }
.takeaway p { margin: 0; }
.sources { padding-left: 20px; }
@media print { .news-hero { max-height: 8cm; object-fit: cover; } .takeaway { border: 1px solid #999; background: #fff; } }
.panel-head del, .panel-head ins { color: var(--ink); }
.result { border: 1px solid var(--result-border); }
.theme-switch *, .theme-switch *::before, .theme-switch *::after { transition: none !important; }

/* ---- KI-Kennzeichnung und Kontakt ---- */
.ai-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .78rem; font-weight: 600; text-decoration: none; }
.ai-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
.ai-badge:hover { border-color: var(--ink-2); color: var(--ink); }
.kontakt-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .kontakt-layout { grid-template-columns: 1fr; } }
input[type=email] { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
input[type=email]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
.kontakt-status { margin: 14px 0 0; font-weight: 600; }
.kontakt-status:empty { display: none; }
.kontakt-status.ok { color: var(--ok); }
.kontakt-status.bad { color: var(--accent-ink); }
.kontakt-status:focus { outline: none; }
@media print { .ai-badge { border: 1px solid #999; } }
