  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    /* Schwarz-Weiß-Basis */
    --bg: #FFFFFF;
    --tile: #F7F7F8;
    --ink: #0A0A0A;
    --ink-2: #4B4B52;
    --ink-3: #84848D;
    --line: #E6E6EA;
    /* Ampel-Status (einzige Farb-Ausnahme neben Parteifarben) */
    --st-done: #16A34A;
    --st-progress: #D97706;
    --st-failed: #DC2626;
    --st-promised: #52525B;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.08);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
  }

  :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

  /* HEADER */
  header { padding: 0 24px; }
  .header-inner { max-width: 1200px; margin: 0 auto; padding: 34px 0 22px; }
  .header-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
  }
  h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 12px;
  }
  h1 span { box-shadow: inset 0 -0.16em 0 var(--ink); }
  .header-sub { font-size: 15px; color: var(--ink-2); max-width: 640px; line-height: 1.65; }
  .source-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
  .source-note svg { flex-shrink: 0; }

  /* STICKY TOOLBAR: Partei-Tabs + Status-Filter */
  .toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
  }
  .toolbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 0 12px; display: flex; flex-direction: column; gap: 8px; }

  .party-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .party-nav::-webkit-scrollbar { display: none; }
  .party-tab {
    --pc: var(--ink);
    --pc-ink: var(--ink);
    --on-pc: #FFFFFF;
    scroll-snap-align: center;
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 16px 8px;
    min-height: 52px;
    min-width: 96px;
    border-radius: 9px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .tab-top { display: inline-flex; align-items: center; gap: 7px; }
  .party-tab .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--pc); flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
  .tab-role { font-size: 10.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.02em; }
  .party-tab:hover { border-color: var(--pc-ink); }
  .party-tab.active { background: var(--pc); border-color: var(--pc); color: var(--on-pc); }
  .party-tab.active .dot { background: var(--on-pc); box-shadow: none; }
  .party-tab.active .tab-role { color: var(--on-pc); opacity: 0.75; }

  /* Parteifarben (Akzent + kontrastsichere Textvariante) */
  .party-tab[data-party="spd"]    { --pc: #E3000F; --pc-ink: #E3000F; }
  .party-tab[data-party="cdu"]    { --pc: #000000; --pc-ink: #000000; }
  .party-tab[data-party="gruene"] { --pc: #1AA037; --pc-ink: #15803D; }
  .party-tab[data-party="fdp"]    { --pc: #FFED00; --pc-ink: #8A7A00; --on-pc: #0A0A0A; }
  .party-tab[data-party="afd"]    { --pc: #009EE0; --pc-ink: #0369A1; }
  .party-tab[data-party="bsw"]    { --pc: #7B2D8B; --pc-ink: #7B2D8B; }
  .party-tab[data-party="linke"]  { --pc: #BE3075; --pc-ink: #BE3075; }
  .party-tab[data-party="ssw"]    { --pc: #003C8F; --pc-ink: #003C8F; }
  #panel-fdp { --party-color: #FFED00; }

  .filter-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    min-height: 38px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink-2);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .filter-chip:hover { border-color: var(--ink); color: var(--ink); }
  .filter-chip.active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
  .chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .chip-dot.done { background: var(--st-done); }
  .chip-dot.progress { background: var(--st-progress); }
  .chip-dot.failed { background: var(--st-failed); }
  .chip-dot.promised { background: var(--st-promised); }
  .chip-count { font-weight: 700; font-size: 11px; background: var(--tile); color: var(--ink-2); border-radius: 999px; padding: 2px 7px; }
  .filter-chip.active .chip-count { background: rgba(255,255,255,0.18); color: #FFFFFF; }

  /* MAIN LAYOUT */
  .main { max-width: 1200px; margin: 0 auto; padding: 24px 24px 56px; }
  .content-area { min-width: 0; scroll-margin-top: 130px; }

  .party-panel { display: none; }
  .party-panel.active { display: block; }

  /* PARTEI-DASHBOARD-KOPF */
  .party-header {
    background: var(--bg);
    border: 2px solid var(--party-color);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
  }
  .party-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  .party-full-name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
  .party-tagline { font-size: 13px; color: var(--ink-2); }
  .party-stats { display: flex; gap: 8px; flex-wrap: wrap; }
  .stat {
    text-align: center;
    min-width: 78px;
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
  }
  .stat-num { font-size: 24px; font-weight: 800; display: block; line-height: 1.15; }
  .stat-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); font-weight: 600; }
  .stat-num.done { color: var(--st-done); }
  .stat-num.progress { color: var(--st-progress); }
  .stat-num.failed { color: var(--st-failed); }
  .stat-num.promised { color: var(--ink); }

  .progress-track-label {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
  }
  .progress-track {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--tile);
  }
  .progress-track span { display: block; }
  .seg-done { background: var(--st-done); }
  .seg-progress { background: var(--st-progress); }
  .seg-failed { background: var(--st-failed); }
  .seg-promised { background: #D4D4D8; }

  .source-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--ink-2);
    text-decoration: none;
    margin-top: 10px;
    padding: 6px 10px;
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: color 0.15s, border-color 0.15s;
  }
  .source-link:hover { color: var(--ink); border-color: var(--ink-3); }

  /* PROMISE CARDS */
  .section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 26px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
  }
  .section-title::before { content: '▾'; font-size: 9px; color: var(--ink-3); flex-shrink: 0; }
  .section-title.grid-collapsed::before { content: '▸'; }
  .section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
  .section-title.hidden { display: none; }

  .cards-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 8px; }
  .cards-grid.hidden, .cards-grid.grid-collapsed { display: none; }
  @media (min-width: 1024px) {
    .cards-grid { grid-template-columns: 1fr; }
  }

  .promise-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    transition: box-shadow 0.15s;
  }
  .promise-card:hover { box-shadow: var(--shadow-hover); }
  .promise-card[data-status="done"] { border-left-color: var(--st-done); }
  .promise-card[data-status="progress"] { border-left-color: var(--st-progress); }
  .promise-card[data-status="failed"] { border-left-color: var(--st-failed); }
  .promise-card[data-status="promised"] { border-left-color: #A1A1AA; }
  .promise-card.hidden { display: none; }

  .promise-topic {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    margin-bottom: 5px;
  }
  .promise-title { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
  .promise-text { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 8px; }
  .promise-result {
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
  }
  .promise-result.done { background: #F0FDF4; color: #166534; }
  .promise-result.progress { background: #FFFBEB; color: #92400E; }
  .promise-result.failed { background: #FEF2F2; color: #991B1B; }
  .promise-result.promised { background: var(--tile); color: var(--ink-2); }

  .card-source {
    font-size: 11px;
    color: var(--ink-3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
  }
  .card-source:hover { color: var(--ink); }

  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .badge-done { background: #DCFCE7; color: #15803D; }
  .badge-progress { background: #FEF9C3; color: #A16207; }
  .badge-failed { background: #FEE2E2; color: #B91C1C; }
  .badge-promised { background: #E4E4E7; color: #3F3F46; }

  .empty-state {
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 16px;
    text-align: center;
    color: var(--ink-3);
    font-size: 13px;
  }
  .empty-state.hidden { display: none; }

  /* DISCLAIMER */
  .disclaimer {
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .disclaimer strong { font-weight: 600; color: var(--ink); }
  .disclaimer a { color: var(--ink); }

  /* FOOTER */
  footer { border-top: 1px solid var(--line); background: var(--tile); padding: 30px 24px 40px; margin-top: 32px; }
  .footer-inner { max-width: 1200px; margin: 0 auto; }
  footer h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
  footer p { font-size: 13px; color: var(--ink-2); line-height: 1.65; max-width: 720px; }
  .footer-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); }

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

  @media (max-width: 768px) {
    header, .toolbar { padding: 0 14px; }
    .main { padding: 16px 14px 48px; }
    .header-inner { padding: 22px 0 16px; }
    .header-sub { font-size: 13.5px; }
    .party-tab { padding: 8px 12px 7px; min-height: 48px; min-width: 0; }
    .party-header-top { flex-direction: column; }
    .party-stats { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .stat { min-width: 0; padding: 10px 4px; }
    .content-area { scroll-margin-top: 118px; }
    footer { padding: 26px 14px 34px; }
    /* Nur Parteien-Seite: Kacheln im 2-Spalten-Raster; die Leiste klebt so,
       dass beim Scrollen nur die Status-Filterzeile oben sichtbar bleibt
       (negativer top-Wert wird per JS auf die Rasterhöhe gesetzt) */
    .page-parteien .party-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; overflow: visible; }
    .page-parteien .party-tab { width: 100%; }
    .page-parteien .content-area { scroll-margin-top: 76px; }
  }

  @media (max-width: 480px) {
    .party-stats { grid-template-columns: repeat(2, 1fr); }
  }

  /* SITE-MENÜ (Seitenwechsel) */
  .site-nav { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
  .site-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 9px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .site-tab:hover { border-color: var(--ink); color: var(--ink); }
  .site-tab.active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

  /* SPRUNGMARKEN (Steuergeld-Seite) */
  .anchor-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    min-height: 44px;
    border-radius: 9px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .anchor-tab:hover { border-color: var(--ink); }
  section { scroll-margin-top: 125px; }
  .topic-header { margin-bottom: 8px; }
  .topic-header .party-stats { margin-top: 4px; }
  section.hidden, .topic-header.hidden { display: none; }

  /* HAUSHALTS-AUFTEILUNG (Steuergeld-Seite) */
  .budget-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
  }
  .budget-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; margin: 14px 0 12px; }
  .budget-bar span { display: block; }
  .b1 { background: #0A0A0A; }
  .b2 { background: #3F3F46; }
  .b3 { background: #71717A; }
  .b4 { background: #A1A1AA; }
  .b5 { background: #E4E4E7; }
  .budget-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
  .budget-legend li { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; line-height: 1.4; }
  .budget-legend strong { color: var(--ink); font-weight: 700; }
  .b-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.15); }
  @media (max-width: 768px) {
    .budget-legend { grid-template-columns: 1fr; }
  }
  .budget-note { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; line-height: 1.5; }
  .budget-legend li[data-target] { cursor: pointer; border-radius: 6px; }
  .budget-legend li[data-target]:hover { color: var(--ink); }
  .budget-legend li[data-target]:hover .b-jump { transform: translateY(2px); }
  .b-jump { color: var(--ink-3); font-weight: 700; margin-left: 2px; transition: transform 0.15s; }
  .promise-card { scroll-margin-top: 125px; }
  .card-flash { animation: cardflash 1.8s ease-out; }
  @keyframes cardflash {
    0%, 35% { box-shadow: 0 0 0 3px var(--ink); }
    100% { box-shadow: var(--shadow); }
  }
  @media (prefers-reduced-motion: reduce) { .card-flash { animation: none; } }

  /* PARTEIEN-VERGLEICH (Startseite) */
  .compare-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
  }
  .compare-card:empty { display: none; }
  .compare-details > summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 10px; }
  .compare-details > summary::-webkit-details-marker { display: none; }
  .compare-details > summary::before { content: '▾'; color: var(--ink-3); font-size: 11px; margin-top: 4px; flex-shrink: 0; }
  .compare-details:not([open]) > summary::before { content: '▸'; }
  .compare-details > .compare-rows { margin-top: 14px; }
  .compare-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
  .compare-tile {
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .ct-icon { font-size: 18px; }
  .ct-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); }
  .ct-value { font-size: 16px; font-weight: 800; }
  .ct-sub { font-size: 11.5px; color: var(--ink-2); }
  .compare-rows { display: flex; flex-direction: column; gap: 4px; }
  .compare-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
  }
  .compare-row:hover { background: var(--tile); border-color: var(--line); }
  .cr-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
  .cr-name .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
  .cr-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--tile); }
  .cr-bar span { display: block; }
  .cr-nums { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
  .cr-nums .n-done { color: var(--st-done); }
  .cr-nums .n-prog { color: var(--st-progress); }
  .cr-nums .n-fail { color: var(--st-failed); }
  .compare-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

  @media (max-width: 768px) {
    .compare-tiles { grid-template-columns: 1fr; }
    .compare-row { grid-template-columns: 92px 1fr; }
    .cr-nums { grid-column: 2; justify-self: end; }
  }

  /* TEILEN-SEITE (Social-Share-Karten) */
  .share-intro {
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .share-toolbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .format-label { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--tile); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
  .share-hint { font-size: 12px; color: var(--ink-3); }

  .share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 30px; }
  .share-card-wrap {
    --ar: 0.5625;
    aspect-ratio: var(--ar);
    cursor: pointer;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #0A0A0A;
    transition: box-shadow 0.15s, transform 0.15s;
    padding: 0;
  }
  .share-card-wrap:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

  .share-card {
    --accent: var(--st-promised);
    width: 100%;
    height: 100%;
    background:
      radial-gradient(130% 85% at 12% 0%, color-mix(in srgb, var(--accent) 40%, #0a0a0a) 0%, transparent 62%),
      radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--accent) 24%, #0a0a0a) 0%, transparent 60%),
      linear-gradient(165deg, #1c1c1f, #050505);
    color: #FFFFFF;
    padding: 8% 8%;
    display: flex;
    flex-direction: column;
    gap: 3%;
    position: relative;
    z-index: 0;
    container-type: size;
    overflow: hidden;
  }
  .share-icon-wrap {
    position: absolute;
    z-index: -1;
    inset: auto -16cqmin -12cqmin auto;
    width: 82cqmin;
    height: 82cqmin;
    color: var(--accent);
    opacity: 0.2;
    pointer-events: none;
  }
  .share-icon-svg { width: 100%; height: 100%; display: block; }
  .share-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 7px;
    background: var(--accent);
  }
  .share-brand {
    font-size: clamp(9px, 2.5cqmin, 16px);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .share-kicker {
    font-size: clamp(10px, 3cqmin, 18px);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .share-kicker .dot { width: 11px; height: 11px; border-radius: 3px; background: var(--accent); flex-shrink: 0; }
  .share-headline {
    font-size: clamp(16px, 7.4cqmin, 48px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .share-body { font-size: clamp(10.5px, 3cqmin, 18px); line-height: 1.5; color: rgba(255,255,255,0.82); }

  /* "Versprochen" vs. "Ergebnis" — mehr Kontext, Vorher/Nachher-Format */
  .share-quotes { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(9px, 2.8cqmin, 22px); min-height: 0; }
  .share-qblock { border-left: 4px solid rgba(255,255,255,0.2); padding-left: clamp(9px, 2.6cqmin, 18px); }
  .share-qblock.result { border-left-color: var(--accent); }
  .share-qlabel {
    font-size: clamp(8px, 2.3cqmin, 14px);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 3px;
  }
  .share-qblock.result .share-qlabel { color: var(--accent); }
  .share-qtext {
    font-size: clamp(11px, 3.2cqmin, 22px);
    line-height: 1.45;
    color: rgba(255,255,255,0.92);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  /* Marke, "Versprochen"-Block und Hashtags brauchen etwas Mindesthöhe —
     im hochformatigen Story-Format (9:16) steht die auch in der Grid-Vorschau
     praktisch immer zur Verfügung, volle Sicherheit gibt das Vollbild-Modal. */
  .share-brand, .share-hashtags, .share-qblock.top { display: none; }
  @container (min-height: 200px) {
    .share-brand { display: flex; }
    .share-hashtags { display: block; }
  }
  @container (min-height: 230px) {
    .share-qblock.top { display: block; }
  }

  .share-badge {
    align-self: flex-start;
    display: inline-flex;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: clamp(10px, 2.8cqmin, 18px);
    font-weight: 700;
    background: var(--accent);
    color: #0A0A0A;
  }
  .share-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: clamp(8px, 2.1cqmin, 14px);
    color: rgba(255,255,255,0.45);
    font-weight: 700;
    letter-spacing: 0.03em;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 9px;
  }
  .share-hashtags {
    font-size: clamp(8px, 2.2cqmin, 14px);
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  /* Ranking- und Haushalts-Karte: Zeilenlisten statt Fließtext */
  .share-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1.8cqmin, 16px); }
  .share-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(7px, 2.2cqmin, 18px); }
  .sr-name { font-size: clamp(11px, 3.6cqmin, 21px); font-weight: 800; display: flex; align-items: center; gap: 7px; min-width: 0; }
  .sr-name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sr-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
  .sr-bar { height: clamp(6px, 1.9cqmin, 15px); border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
  .sr-bar span { display: block; height: 100%; background: linear-gradient(90deg, #34D399, #6EE7B7); }
  .sr-num { font-size: clamp(11px, 3.3cqmin, 21px); font-weight: 800; text-align: right; white-space: nowrap; }
  .share-row.two-col { grid-template-columns: 1fr auto; }
  /* Kleine Kachel: nur Top-4 zeigen, volle Liste erst ab genug Höhe (Story-Kachel, Vollbild-Modal) */
  .share-list .share-row:nth-child(n+5) { display: none; }
  @container (min-height: 230px) {
    .share-list .share-row:nth-child(n+5) { display: grid; }
  }

  .share-modal {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .share-modal.hidden { display: none; }
  .share-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
  }
  .share-modal-stage {
    --ar: 0.5625;
    width: min(calc(100vw - 32px), calc((100vh - 32px) * var(--ar)));
    height: min(calc(100vh - 32px), calc((100vw - 32px) / var(--ar)));
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }

  @media (max-width: 768px) {
    .share-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
  }

  /* Methodik-Hinweis einklappbar */
  details.disclaimer > summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
  details.disclaimer > summary::-webkit-details-marker { display: none; }
  details.disclaimer > summary::before { content: "▸ "; color: var(--ink-3); }
  details.disclaimer[open] > summary::before { content: "▾ "; }
  details.disclaimer > summary span, details.disclaimer > span { display: block; margin-top: 10px; }
