/* =========================================================
   Bitcoin Sparplan Vergleich – Stylesheet
   CI: PP Neue Machina (Headlines) + Work Sans (Text)
   ========================================================= */

@font-face { font-family: 'PPNeueMachina'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/PPNeueMachina-InktrapMedium.woff2') format('woff2'), url('../fonts/PPNeueMachina-InktrapMedium.woff') format('woff'); }
@font-face { font-family: 'PPNeueMachina'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/PPNeueMachina-InktrapSemibold.woff2') format('woff2'), url('../fonts/PPNeueMachina-InktrapSemibold.woff') format('woff'); }
@font-face { font-family: 'PPNeueMachina'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/PPNeueMachina-PlainUltrabold.woff2') format('woff2'), url('../fonts/PPNeueMachina-PlainUltrabold.woff') format('woff'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/WorkSans-Light.woff2') format('woff2'), url('../fonts/WorkSans-Light.woff') format('woff'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/WorkSans-Regular.woff2') format('woff2'), url('../fonts/WorkSans-Regular.woff') format('woff'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/WorkSans-Medium.woff2') format('woff2'), url('../fonts/WorkSans-Medium.woff') format('woff'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('../fonts/WorkSans-Variable.woff2') format('woff2-variations'), url('../fonts/WorkSans-Variable.woff2') format('woff2'); }

:root {
  --black: #000000;
  --grey-light: #A6A6A6;
  --yellow: #EDFB87;
    --sand: #EBECE3;
  --offwhite: #F8F8F6;
  --grey: #787879;
  --grey-text: #7A7A7A;
  --red: #BE1F1F;
  --line: rgba(0, 0, 0, .14);
  --line-strong: rgba(0, 0, 0, .28);

  --font-display: 'PPNeueMachina', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --max: 1440px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 30px;
  --header-h: 66px;
  --sticky-top: calc(var(--header-h) + 24px);
  --measure: 74ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 40px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; color: var(--black); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--black); color: #fff; padding: 10px 16px; border-radius: 30px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
/* Der Vergleich darf breiter laufen als der Lesetext */
.container--wide { max-width: none; padding-inline: clamp(12px, 1.4vw, 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--black); color: var(--offwhite);
  font-family: var(--font-text); font-weight: 500; font-size: 15px; line-height: 1.2;
  padding: 12px 24px; border-radius: var(--radius-l); border: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn { box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.btn:hover { background: #1a1a1a; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .16); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn--small { font-size: 13px; padding: 10px 18px; }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: #e2f06c; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px; min-height: var(--header-h);
  background: var(--sand); border-radius: var(--radius-m);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px 18px;
}
.brand {
  font-family: var(--font-display); font-weight: 900; font-size: 16px; line-height: 1.1;
  text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.brand__mark { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 16px; height: 16px; }
.ticker { display: flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; }
.ticker__icon { width: 30px; height: 30px; border-radius: 50%; background: #6e6e6e; color: var(--sand); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.ticker__name { font-family: var(--font-display); font-weight: 900; }
.ticker__price { font-weight: 500; }
.ticker__time { font-size: 11.5px; color: var(--grey); margin-left: 2px; }
.site-nav { justify-self: end; display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 30px; }
.site-nav a:hover { background: rgba(0, 0, 0, .06); }
.site-nav .btn { margin-left: 6px; color: var(--offwhite); }
.site-nav .btn:hover { background: #2b2b2b; }
.nav-toggle {
  display: none; justify-self: end; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 900; font-size: 16px; align-items: center; gap: 8px; padding: 8px 4px;
}
.nav-toggle::after { content: ''; border: 5px solid transparent; border-top-color: currentColor; margin-top: 5px; transition: transform .2s; }
.nav-toggle[aria-expanded="true"]::after { transform: rotate(180deg); margin-top: -5px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.hero h1 { font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.15; }
.hero__label { font-size: 14px; font-weight: 500; color: var(--grey); margin: 18px 0 0; }
.author { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--sand); }
.author__name { display: block; color: var(--grey-text); font-size: 17px; line-height: 1.4; }
.author__bio { display: block; color: var(--grey-text); font-size: 14px; font-weight: 500; line-height: 1.5; }
.hero__facts { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; margin: 18px 0 32px; }
.hero__intro { max-width: var(--measure); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(40px, 5vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.h2 { font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; }
.lead { max-width: var(--measure); margin-top: 12px; }
.content h2 { font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0 0 28px; }
.content h3 { font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; margin: 0 0 18px; }
.content p { max-width: var(--measure); }
.content section + section { margin-top: clamp(56px, 7vw, 104px); }

/* ---------- Vergleich: Hülle und Steuerleiste ---------- */
.compare-shell {
  background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: 24px;
  box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .35);
}
.compare-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 16px 20px; border-bottom: 1px solid rgba(0, 0, 0, .1);
  border-radius: 24px 24px 0 0; background: #fff;
}
.compare-controls__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compare-controls__label { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--grey); margin-right: 4px; }
.chip {
  height: 36px; border: 1px solid rgba(0, 0, 0, .16); background: #fff; border-radius: 999px;
  padding: 0 15px; font: 500 13.5px/34px var(--font-text); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.chip:hover { border-color: var(--black); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--offwhite); }
.compare-controls select {
  height: 38px; border: 1px solid rgba(0, 0, 0, .16); background-color: #fff; border-radius: 999px;
  padding: 0 40px 0 16px; font: 500 14px var(--font-text); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 11px;
}
.compare-controls select:hover { border-color: var(--black); }
.compare-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--grey); }

/* ---------- Vergleichstabelle ----------
   Stilsystem: Farben nur Schwarz, Weiß, Sand, Offwhite, Grau. Gelb allein für den Testsieger.
   Textrollen: .val (Wert), .note (Hinweis), Label (Kopfzeile). Eine Pill-Form (.pill). */
.compare { width: 100%; }
.ctable { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.ctable thead th {
  position: sticky; top: calc(var(--header-h) + 14px); z-index: 3;
  background: var(--offwhite); text-align: left; padding: 15px 12px; vertical-align: middle;
  font: 500 12px/1.25 var(--font-text); letter-spacing: 0; color: #3d3d3d;
  border-bottom: 1px solid rgba(0, 0, 0, .16);
}
.ctable thead .c-provider { width: 13.5%; }
.ctable thead .c-score { width: 6%; }
.ctable thead .c-fee { width: 10%; }
.ctable thead .c-spread { width: 8%; }
.ctable thead .c-plan { width: 7%; }
.ctable thead .c-only { width: 6.5%; }
.ctable thead .c-ln { width: 5%; }
.ctable thead .c-wallet { width: 9%; }
.ctable thead .c-kyc { width: 8%; }
.ctable thead .c-pay { width: 12%; }
.ctable thead .c-cta { width: 15%; }
.ctable .c-score, .ctable .c-only, .ctable .c-ln { text-align: center; }
.ctable .c-cta { text-align: right; }

.prow > * { padding: 22px 12px; vertical-align: middle; border-bottom: 1px solid rgba(0, 0, 0, .08); background: #fff; transition: background-color .15s; }
.prow > :first-child { padding-left: 20px; }
.prow > :last-child { padding-right: 16px; }
.prow:hover > * { background: var(--offwhite); }
.prow--top > * { background: #FDFFEF; }
.prow--top:hover > * { background: #FBFEE3; }
.prow--top > :first-child { box-shadow: inset 4px 0 0 var(--black); }
.prow--off > * { color: var(--grey); }
.prow--off .pv__logo, .prow--off .pv__name { opacity: .45; }
.prow.is-hidden, .drow.is-hidden { display: none; }

/* Anbieterzelle */
.c-provider { font-weight: 400; text-align: left; }
.pv { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pv__logo { height: 26px; display: flex; align-items: center; }
.pv__logo img { max-height: 26px; width: auto; max-width: 124px; }
.prow__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1; }
.pv__name { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.pv__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pv .pill { white-space: normal; text-align: left; }
.pv__tags:empty { display: none; }

/* Die eine Pill */
.pill { display: inline-block; background: var(--sand); color: var(--black); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.pill--accent { background: var(--black); color: var(--yellow); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pill--icon { display: inline-flex; align-items: center; gap: 5px; padding-left: 7px; }
.pi { width: 13px; height: 13px; fill: currentColor; flex: none; }

/* Textrollen */
.cellv { display: block; }
.val { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--black); }
.val--na { color: var(--grey-light); font-weight: 400; }

.note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-chars: 10 4 4; font-size: 12.5px; line-height: 1.4; color: #6b6b6b; margin-top: 4px; }
/* Punktzahl in der Tabelle. Die Testkarten nutzen .scores .score für die Balken, deshalb hier eng gefasst. */
.ctable .score { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; white-space: nowrap; }
.ctable .score small { font: 500 12px var(--font-text); color: #6b6b6b; margin-left: 3px; }

/* Ja / Nein */
.yn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; }
.yn::before { content: ''; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.yn--yes { background: var(--sand); color: var(--black); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.yn--no { background: transparent; color: var(--grey-light); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 11h14v2H5z'/%3E%3C/svg%3E"); }
.yn__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Aktion */
.code-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 8px;
  background: var(--sand); border: 0; border-radius: 10px; padding: 7px 10px; cursor: pointer; text-align: left;
  transition: background-color .15s;
}
.code-chip:hover { background: #E2E4D8; }
.code-chip__label { font: 500 11.5px/1 var(--font-text); color: #5a5a5a; }
.code-chip__code { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; color: var(--black); display: inline-flex; align-items: center; gap: 6px; }
.code-chip__code::after { content: ''; width: 12px; height: 12px; background: currentColor; opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4a2 2 0 0 0-2 2v14h2V3h12zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4a2 2 0 0 0-2 2v14h2V3h12zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11z'/%3E%3C/svg%3E") center / contain no-repeat; }
.code-chip.is-copied .code-chip__code::after { opacity: 1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 999px; font: 600 13.5px/1.1 var(--font-text); text-decoration: none; white-space: nowrap; border: 1.5px solid var(--black); transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.cta--primary { background: var(--black); color: var(--offwhite); }
.cta--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .7); }
.cta--secondary { background: #fff; color: var(--black); }
.cta--secondary:hover { background: var(--sand); transform: translateY(-1px); }
.cta--disabled { background: var(--offwhite); color: var(--grey-light); border-color: transparent; cursor: default; }
.detail-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; background: none; border: 0; cursor: pointer; font: 500 12.5px var(--font-text); color: var(--grey); padding: 4px 0; }
.detail-toggle::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .2s; }
.detail-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.detail-toggle:hover { color: var(--black); }

/* Details */
.drow > td { background: var(--offwhite); padding: 6px 12px 22px; border-bottom: 1px solid var(--line); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin: 0; }
.dgrid > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dgrid dt { font-size: 12px; font-weight: 400; color: var(--grey); margin-bottom: 3px; }
.dgrid dd { margin: 0; font-size: 13.5px; line-height: 1.45; }
.compare-empty { padding: 28px; text-align: center; color: var(--grey); margin: 0; }

.ctable thead th.has-tip > span { border-bottom: 1px dotted rgba(0, 0, 0, .45); cursor: help; }
.ctable thead th.has-tip:focus-visible { outline-offset: -3px; }
.tip { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; border: 1.5px solid currentColor; border-radius: 50%; background: none; padding: 0; font: 700 9.5px/1 var(--font-text); cursor: help; color: var(--grey); text-transform: none; letter-spacing: 0; }
.tip:hover, .tip:focus-visible { color: var(--black); }
.tooltip { position: fixed; z-index: 120; max-width: 280px; background: var(--black); color: var(--offwhite); font-size: 13px; line-height: 1.45; padding: 9px 13px; border-radius: 10px; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }

.disclaimer { font-size: 12.5px; line-height: 1.45; color: var(--grey); margin-top: 20px; }
.disclaimer p { margin: 0 0 5px; max-width: none; }

/* ---------- Layout mit Inhaltsverzeichnis ---------- */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.toc {
  position: sticky; top: var(--sticky-top);
  background: var(--offwhite); border-radius: var(--radius-m);
  max-height: calc(100vh - var(--header-h) - 60px); overflow: auto;
}
.toc summary {
  list-style: none; cursor: pointer; padding: 18px 20px; text-align: left; color: var(--grey-text);
  border-bottom: 1px solid var(--line); position: relative; font-weight: 500;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); margin-top: -2px; transition: transform .2s; }
.toc details:not([open]) summary::after { transform: rotate(45deg); margin-top: -6px; }
.toc ol { list-style: none; margin: 0; padding: 16px 18px 20px; font-size: 14.5px; }
.toc ol ol { padding: 0 0 0 14px; }
.toc a { display: block; position: relative; padding: 5px 0 5px 14px; text-decoration: none; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc a::before { content: ''; position: absolute; left: 0; top: .95em; width: 5px; height: 5px; border-radius: 50%; background: #b8bcb2; }
.toc a:hover { color: var(--grey); }
.toc a.is-active { font-weight: 500; }
.toc a.is-active::before { background: var(--black); box-shadow: 0 0 0 3px var(--yellow); }

/* ---------- Ratgeber ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.split--text-first > :first-child { max-width: var(--measure); }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-s); }
.figure figcaption { font-size: 13.5px; font-weight: 500; color: var(--grey-text); margin-top: 10px; }

.accordion { margin: 32px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative;
  font-weight: 700; line-height: 1.35;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ''; position: absolute; right: 6px; top: 24px; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.accordion__body { padding: 0 0 18px; }
.accordion__body p { max-width: none; }

.fng { margin: 14px 0 0; }
.fng img { width: 100%; max-width: 360px; border-radius: var(--radius-s); }
.fng figcaption, .fng small { display: block; color: var(--grey-text); font-size: 12.5px; margin-top: 8px; line-height: 1.45; }
.consent-box { background: var(--offwhite); border: 1px dashed var(--line-strong); border-radius: var(--radius-s); padding: 18px; max-width: 420px; }
.consent-box p { font-size: 13.5px; color: #3a3a3a; margin: 0 0 12px; max-width: none; }

/* ---------- Rechner ---------- */
.calc { background: var(--sand); border-radius: var(--radius-m); padding: clamp(20px, 2.6vw, 32px); margin-top: 24px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: start; }
.calc__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 46px; border: 1px solid transparent; border-radius: 12px; background: var(--offwhite);
  font: 500 16px var(--font-text); padding: 0 14px; color: var(--black); appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px var(--yellow); }
.calc__help { grid-column: 1 / -1; font-size: 12.5px; color: #3a3a3a; margin: -2px 0 0; max-width: none; }
.presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.presets span { font-size: 13px; font-weight: 500; }
.presets button { border: 1.5px solid var(--black); background: transparent; border-radius: 30px; padding: 6px 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.presets button[aria-pressed="true"], .presets button:hover { background: var(--black); color: var(--offwhite); }

.calc__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.kpi { background: var(--offwhite); border-radius: var(--radius-s); padding: 13px 15px; }
.kpi--accent { background: var(--yellow); }
.kpi dt { font-size: 12px; font-weight: 500; color: #3a3a3a; }
.kpi dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.25; overflow-wrap: anywhere; }
.kpi dd.is-negative { color: var(--red); }
.calc__chart { background: var(--offwhite); border-radius: var(--radius-s); padding: 14px 14px 6px; }
.calc__chart svg { width: 100%; height: auto; display: block; }
.chart-area { fill: var(--yellow); opacity: .75; }
.chart-value { fill: none; stroke: var(--black); stroke-width: 2; }
.chart-invested { fill: none; stroke: var(--grey); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart-axis { stroke: rgba(0, 0, 0, .25); }
.chart-label { font: 500 12px var(--font-text); fill: var(--grey-text); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #3a3a3a; padding: 6px 4px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--black); vertical-align: middle; margin-right: 6px; }
.legend i.dashed { border-top: 2px dashed var(--grey); }
.legend i.area { height: 10px; border: 0; background: var(--yellow); }
.calc__note { font-size: 12.5px; color: var(--grey); margin: 12px 0 0; line-height: 1.45; max-width: none; }

/* ---------- Testkarten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.card { background: var(--sand); border-radius: var(--radius-m); padding: 24px clamp(20px, 2vw, 32px) 30px; display: flex; flex-direction: column; }
.card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--offwhite); border-radius: var(--radius-s); padding: 12px 8px 10px; text-align: center; }
.stat--accent { background: var(--yellow); }
.stat b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; }
.stat span { display: block; font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
.card__logo { height: 100px; display: grid; place-items: center; margin: 12px 0 4px; }
.card__logo img { max-width: 160px; max-height: 72px; width: auto; }
.shots { position: relative; width: 224px; max-width: 70%; margin: 6px auto 0; }
.shots__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; }
.shots__track::-webkit-scrollbar { display: none; }
.shots__track img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; }
.shots__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.shots__btn[data-dir="-1"] { left: -44px; }
.shots__btn[data-dir="1"] { right: -44px; }
.shots__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.shots__dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(0, 0, 0, .25); cursor: pointer; }
.shots__dots button[aria-current="true"] { background: var(--black); }
.platforms { display: flex; justify-content: center; gap: 18px; margin: 16px 0 6px; }
.platforms svg { width: 20px; height: 20px; }
.card__name { font-family: var(--font-text); font-weight: 400; font-size: 17px; text-align: center; margin: 12px 0 16px; }
.card h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 10px 0 14px; }
.facts { margin: 0 0 22px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.facts dd { margin: 0; text-align: right; }
.scores { margin-bottom: 26px; }
.scores .score { margin-bottom: 13px; }
.scores .score > span { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.3; }
.bar { position: relative; height: 15px; background: var(--offwhite); border-radius: 40px; overflow: hidden; }
.bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); background: var(--black); border-radius: 40px; transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.bar b { position: absolute; right: 8px; top: 0; font: 500 11px/15px var(--font-text); color: var(--grey); opacity: 0; transition: opacity .4s .8s; }
.bar.is-filled b { opacity: 1; }
.score-scale { font-size: 12px; color: var(--grey); margin: -6px 0 0; max-width: none; }
.features { list-style: none; padding: 0; margin: 0 0 12px; }
.features li { position: relative; padding-left: 24px; line-height: 1.6; }
.features li::before { content: ''; position: absolute; left: 0; top: .42em; width: 15px; height: 15px; background: var(--black);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.features .pro { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.features .con { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z'/%3E%3C/svg%3E"); }
.features--cons { margin-top: 16px; }
.card__code { margin-top: auto; padding-top: 24px; text-align: center; }
.voucher { display: block; background: var(--yellow); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 18px; }
.voucher--none { background: var(--offwhite); }
.cards-note { font-size: 12px; line-height: 1.45; color: var(--grey); margin-top: 18px; max-width: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 44px; margin-top: 8px; }
.faq-item { background: var(--offwhite); border-radius: var(--radius-m); padding: 22px 24px; }
.faq-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.35; margin: 0 0 14px; }
.faq-item p { margin: 0; max-width: none; }

/* ---------- Footer ---------- */
.site-footer { margin: 60px 12px 12px; background: var(--yellow); border-radius: var(--radius-l); padding: clamp(36px, 4vw, 56px) clamp(22px, 5vw, 64px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; font-size: 14px; }
.footer__brand { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 16px; margin-bottom: 14px; display: block; }
.footer__about { max-width: 420px; margin: 0; }
.footer__title { font-family: var(--font-display); font-weight: 700; font-size: 13px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid rgba(0, 0, 0, .15); margin-top: 32px; padding-top: 20px; font-size: 12.5px; line-height: 1.5; color: #333; }
.footer__legal p { margin: 0 0 6px; max-width: none; }

/* ---------- Unterseiten (Rechner, Steuer, Einmalanlage) ---------- */
.page { padding-block: 36px 20px; }
.page__crumbs { font-size: 13px; color: var(--grey); margin: 0 0 18px; }
.page__crumbs a { color: inherit; }
.page h1 { font-weight: 900; font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.15; margin: 0 0 14px; max-width: 900px; }
.page .lead { margin: 0 0 8px; }
.page__meta { font-size: 13px; color: var(--grey); margin: 0 0 30px; }
.page h2 { font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; margin: 44px 0 14px; }
.page h3 { font-weight: 700; font-size: 1.1rem; margin: 26px 0 8px; }
.page p, .page ul, .page ol { max-width: var(--measure); }
.page li { margin: 4px 0; }
.page .calc { margin-top: 10px; }
.page .calc__form { grid-template-columns: minmax(0, 1fr); }
.page .back { display: inline-block; margin-top: 36px; font-weight: 500; }

/* ---------- Rechtsseiten ---------- */
.legal-page { padding-block: 40px 20px; max-width: 820px; }
.legal-page h1 { font-weight: 900; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; margin-bottom: 28px; }
.legal-page h2 { font-weight: 700; font-size: 1.2rem; margin: 34px 0 10px; }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-meta { color: var(--grey); font-size: 13px; margin-top: 36px; }

/* ---------- Ratgeber-Bausteine (Oktober 2026) ----------
   Gleiche Rollen wie in der Tabelle: Sand für Kästen, Offwhite für Kopfzeilen, Gelb nur für den Testsieger. */
.kurz { background: var(--sand); border-radius: var(--radius-m); padding: 22px 26px 20px; margin: 26px 0 0; }
.kurz h2 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 0 0 10px; }
.kurz ul { margin: 0; padding-left: 20px; }
.kurz li { margin: 5px 0; line-height: 1.5; }
.content h2 + .lead-in { margin-top: -10px; }
.content ul, .content ol { max-width: var(--measure); }
.content li { margin: 4px 0; }
.content h3.sub { font-size: 1.05rem; margin: 26px 0 8px; }
.tscroll { overflow-x: auto; margin: 18px 0 8px; -webkit-overflow-scrolling: touch; }
.dtable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th { font-weight: 500; font-size: 12.5px; color: #3d3d3d; background: var(--offwhite); }
.dtable tbody th { font-weight: 500; }
.dtable .num { text-align: right; white-space: nowrap; font-weight: 500; }
.dtable .note-cell { font-size: 12.5px; color: var(--grey); line-height: 1.4; }
.dtable tr.is-top th, .dtable tr.is-top td { background: #fdfee9; }
.aktab { min-width: 680px; }
.aktab td.best { background: var(--sand); font-weight: 500; }
.aktab td.neg { color: var(--red); }
.aktab th[scope="row"] { font-weight: 500; white-space: nowrap; }
.tab-legende { font-size: 12.5px; color: var(--grey); margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tab-legende i { display: inline-block; width: 13px; height: 13px; background: var(--sand); border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.dtable--klein { min-width: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; }
.steps li { position: relative; padding-left: 46px; margin: 0 0 16px; max-width: var(--measure); line-height: 1.55; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: var(--offwhite); font: 700 14px/30px var(--font-display); text-align: center; }
.teaser { background: var(--sand); border-radius: var(--radius-m); padding: clamp(18px, 2.4vw, 28px); margin: 20px 0 16px; }
.teaser .calc__results { margin: 0 0 10px; }
.teaser__note { font-size: 12.5px; color: #3a3a3a; margin: 0; max-width: none; line-height: 1.45; }
.about { display: flex; gap: 20px; align-items: flex-start; background: var(--offwhite); border-radius: var(--radius-m); padding: 22px 24px; margin: 16px 0 20px; }
.about img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--sand); flex: none; }
.about p { margin: 0 0 8px; max-width: none; }
.about p:last-child { margin: 0; }
.src { font-size: 13px; color: var(--grey); line-height: 1.5; }
.src a { color: inherit; }
.portraet-head { margin: clamp(36px, 5vw, 56px) 0 0; }
.portraet-head h3 { font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0 0 8px; }
.rank-note { font-size: 13.5px; color: var(--grey-text); margin: 0; }

/* Einzelabschnitte je Anbieter, erzeugt von tools/build_table.py */
.asec { margin: 0 0 30px; padding: 20px 22px 4px; background: var(--offwhite); border-radius: var(--radius-m); }
.asec > h3 { margin-top: 0; }
.afacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; margin: 0 0 14px; }
.afacts > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.afacts dt { font-size: 12px; color: var(--grey); margin-bottom: 2px; }
.afacts dd { margin: 0; font-size: 13.5px; line-height: 1.45; }
p.afn { color: var(--grey); font-size: 12.5px; line-height: 1.45; margin: -4px 0 12px; }
@media (max-width: 700px) {
  .asec { padding: 16px 16px 2px; }
  .afacts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Responsive ---------- */
[hidden] { display: none !important; }

/* Spalten verschwinden gestaffelt; Bitcoin only und Lightning bleiben als Tags sichtbar, alles steht in den Details */
@media (max-width: 1250px) {
  .ctable .c-kyc { display: none; }
  .ctable thead .c-provider { width: 15%; } .ctable thead .c-score { width: 6.5%; } .ctable thead .c-fee { width: 10.5%; }
  .ctable thead .c-spread { width: 8.5%; } .ctable thead .c-plan { width: 7.5%; } .ctable thead .c-only { width: 6.5%; }
  .ctable thead .c-ln { width: 5.5%; } .ctable thead .c-wallet { width: 9.5%; } .ctable thead .c-pay { width: 13%; } .ctable thead .c-cta { width: 17%; }
}
@media (max-width: 1150px) {
  .ctable .c-ln, .ctable .c-only { display: none; }
  .note { -webkit-line-clamp: 3; }
  .ctable thead .c-provider { width: 17%; } .ctable thead .c-score { width: 8%; } .ctable thead .c-fee { width: 12%; }
  .ctable thead .c-spread { width: 10%; } .ctable thead .c-plan { width: 9%; } .ctable thead .c-wallet { width: 12%; }
  .ctable thead .c-pay { width: 13%; } .ctable thead .c-cta { width: 19%; }
}
@media (max-width: 1000px) {
  .ctable .c-spread { display: none; }
  .ctable thead .c-provider { width: 18%; } .ctable thead .c-score { width: 8%; } .ctable thead .c-fee { width: 13%; }
  .ctable thead .c-plan { width: 10%; } .ctable thead .c-wallet { width: 13%; } .ctable thead .c-pay { width: 15%; } .ctable thead .c-cta { width: 23%; }
}

@media (max-width: 1200px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; max-height: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .accordion { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .calc__results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Kopfzeile: unter 1100 px passen Marke, Ticker und fünf Links nicht mehr nebeneinander */
@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .ticker { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--sand); border-radius: var(--radius-m); padding: 12px; flex-direction: column; align-items: stretch; box-shadow: 0 16px 40px rgba(0, 0, 0, .12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 16px; }
  .site-nav .btn { margin: 6px 0 0; }
}
@media (max-width: 950px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }

  /* Vergleich als Kartenliste: dieselbe Tabelle, kein zweites Markup */
  .compare-shell { background: transparent; border: 0; box-shadow: none; }
  .compare-controls { border: 1px solid rgba(0, 0, 0, .12); border-radius: 20px; margin-bottom: 14px; padding: 14px 16px; }
  .compare-count { margin-left: 0; width: 100%; }
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; width: 100%; }
  .ctable thead { display: none; }
  .ctable td.c-spread, .ctable td.c-only, .ctable td.c-ln, .ctable td.c-kyc { display: flex; }
  .prow { border: 1px solid rgba(0, 0, 0, .14); border-radius: 20px; padding: 18px; margin: 0 0 14px; background: #fff; overflow: hidden; }
  .prow--top { border: 2px solid var(--black); }
  .prow > *, .prow--top > :first-child { border-bottom: 0; padding: 0; background: transparent !important; box-shadow: none; }
  .prow td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: right; }
  .prow td::before { content: attr(data-label); color: var(--grey); font-size: 13px; font-weight: 500; text-align: left; flex: none; }
  .prow td .cellv { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
  .prow td .note { text-align: right; }
  .pills { justify-content: flex-end; }
  .yn { width: auto; height: auto; border-radius: 999px; padding: 4px 10px 4px 8px; gap: 6px; font-size: 12px; font-weight: 600; }
  .yn--no { background: var(--offwhite); color: var(--grey); }
  .yn__t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .c-provider { border-bottom: 1px solid var(--line) !important; padding-bottom: 14px !important; margin-bottom: 2px; }
  .c-cta { display: block !important; padding-top: 16px !important; border-bottom: 0 !important; text-align: center; }
  .c-cta::before { content: none !important; }
  .drow { margin: -14px 0 14px; }
  .drow > td { border: 1px solid rgba(0, 0, 0, .14); border-top: 0; border-radius: 0 0 20px 20px; padding: 6px 14px 14px; }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .calc__form { grid-template-columns: minmax(0, 1fr); }
  .calc__results { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__facts { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
