/* ALEX Startseite – Polish-Layer (11.11.2026)
   Reine CSS-Ergänzung: kein Inhalt, kein Markup, kein Skript wird verändert.
   Einbinden als LETZTES Stylesheet im <head> von / :
     <link rel="stylesheet" href="/neu/home-polish.css">
   Rückbau: diese eine Zeile wieder entfernen.

   Was der Layer tut:
   1  Hero: ruhigerer Umbruch der Headline, weniger Leerraum
   2  "Übernommene Live-Abschnitte" (Aktuelles, Video, Zwei Wege, Autor, ALEX LAB)
      an das Hybrid-Design angleichen: Headlines, Buttons, Karten, Farben
   3  Leere rechte Seitenhälften füllen (zweispaltige Layouts)
   4  Toolkit-Raster 3×2 statt 4+2
   5  Mobil: Run Trace vertikal statt abgeschnittenem Seitwärts-Scrollen
   6  Kleinigkeiten: Lesbarkeit, Fokus, Auswahlfarbe
   7  Blasen (nur aktiv zusammen mit /neu/home-bubbles.js) */

/* ---------- 0 Grundlagen ---------- */
::selection { background: rgba(214, 173, 97, .32); color: #fff; }
h2 { text-wrap: balance; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 1 Hero ---------- */
.section-grid.hero { grid-template-columns: minmax(0, 1.04fr) minmax(440px, .96fr); gap: 56px; min-height: 0; padding-top: 84px; padding-bottom: 92px; }
.hero h1 { max-width: 17ch; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.04; }
.evidence-card h2 { font-size: clamp(25px, 2.7vw, 36px); }
.evidence-card__foot { flex-wrap: wrap; row-gap: 8px; }
.hero-overline { margin-top: 34px; }
.hero-lead { max-width: 520px; }
.hero-note { margin-top: 34px; }

/* dezente Einmal-Animation der Spur in der Akten-Karte */
@media (prefers-reduced-motion: no-preference) {
  .mini-trace__line { transform-origin: left center; animation: ax-trace 1.5s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .mini-trace i { animation: ax-dot .45s ease both; }
  .mini-trace i:nth-of-type(1) { animation-delay: .3s; }
  .mini-trace i:nth-of-type(2) { animation-delay: .6s; }
  .mini-trace i:nth-of-type(3) { animation-delay: .9s; }
  .mini-trace i:nth-of-type(4) { animation-delay: 1.2s; }
  .mini-trace i:nth-of-type(5) { animation-delay: 1.5s; }
}
@keyframes ax-trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ax-dot { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* ---------- 2 Einheitliche Typo + Buttons in den übernommenen Abschnitten ---------- */
.plain-section h2, .alex-lab h2 { max-width: 20ch; margin: 0 0 22px; font-size: clamp(32px, 4vw, 54px); line-height: 1.04; }
.plain-section > .w > p, .alex-lab .lab-intro { font-size: 16px; line-height: 1.65; }
.card h3, .lab-card summary strong, .prompt-card h3 { font-weight: 500; letter-spacing: -.03em; }

.btn { gap: 12px; border-radius: var(--radius); background: var(--gold); font: 400 11px "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover { background: var(--gold-soft); }
.btn.alt { background: transparent; }
.btn.alt:hover { background: transparent; }

/* ---------- 3a Aktuelles ---------- */
#aktuelles { padding: 84px 0 88px; background: linear-gradient(180deg, rgba(17, 25, 29, .55), transparent); }
#aktuelles h2 { margin-bottom: 12px; }
#aktuelles .grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 13px; margin-top: 38px; }
#aktuelles .card { display: flex !important; flex-direction: column; padding: 25px 26px 24px; border-radius: 7px; background: linear-gradient(145deg, rgba(29, 42, 47, .78), rgba(17, 25, 29, .92)); transition: transform .25s ease, border-color .25s ease; }
#aktuelles .card[hidden] { display: none !important; }
#aktuelles a.card:hover { transform: translateY(-4px); border-color: rgba(214, 173, 97, .45); }
#aktuelles .card .eye { margin-bottom: 26px !important; color: var(--muted); letter-spacing: .12em; }
#aktuelles .card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.16; }
#aktuelles .card p { margin: 0; font-size: 13.5px; line-height: 1.65; }
#aktuelles .card::after { content: "Öffnen ↗"; margin-top: auto; padding-top: 22px; color: var(--gold); font: 11px "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 3b Erklärvideo: Video links, Einordnung rechts ---------- */
.vid video { border-color: var(--line-strong); border-radius: 9px; box-shadow: 0 28px 90px rgba(0, 0, 0, .38); }
.vid figcaption { color: var(--faint); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.video-block .limit { padding: 4px 0 4px 18px; }
.video-block .limit strong { color: var(--text); font-weight: 500; }
@media (min-width: 961px) {
  .video-block { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .video-block > .eye, .video-block > h2 { grid-column: 1 / -1; }
  .video-block > .vid { grid-column: 1; grid-row: 3 / span 4; max-width: none; margin: 16px 0 0; }
  .video-block > .vid-note { grid-column: 2; grid-row: 3; margin: 22px 0 0; color: var(--text); font-size: 17px; line-height: 1.6; }
  .video-block > .limit { grid-column: 2; grid-row: 4; margin: 26px 0 0; }
  .video-block > .actions { grid-column: 2; grid-row: 5; margin-top: 30px; }
}

/* ---------- 3c "Zwei Wege hinein": Headline links, Text rechts ---------- */
@media (min-width: 961px) {
  .plain-section:not([id]) > .w:not(.person), .ax-panel > .w:not(.person):not(.video-block) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 84px; align-items: start; }
  .plain-section:not([id]) > .w:not(.person) > .eye, .ax-panel > .w:not(.person):not(.video-block) > .eye { grid-column: 1 / -1; }
  .plain-section:not([id]) > .w:not(.person) > h2, .ax-panel > .w:not(.person):not(.video-block) > h2 { grid-column: 1; grid-row: 2 / span 2; margin-bottom: 0; }
  .plain-section:not([id]) > .w:not(.person) > p, .ax-panel > .w:not(.person):not(.video-block) > p { grid-column: 2; grid-row: 2; margin: 6px 0 0; }
  .plain-section:not([id]) > .w:not(.person) > .actions, .ax-panel > .w:not(.person):not(.video-block) > .actions { grid-column: 2; grid-row: 3; }
  #procurement .procurement-list { grid-column: 2; grid-row: 3; margin-top: 18px; }
  #procurement .procurement-note { grid-column: 2; grid-row: 4; margin-top: 18px; }
  #procurement .actions { grid-column: 2; grid-row: 5; }
}

/* ---------- 3d Autor: als ruhige Karte statt loser Block ---------- */
.plain-section:has(> .person) { padding: 72px 0 0; }
.person { gap: 34px; padding: 38px 44px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(135deg, #172026, #10171b); }
.person h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.person p { margin-bottom: 22px; }
.mark { width: 92px; height: 92px; font-weight: 500; font-size: 27px; letter-spacing: -.02em; background: radial-gradient(circle at 30% 25%, rgba(214, 173, 97, .16), transparent 65%); box-shadow: 0 0 0 7px rgba(214, 173, 97, .06); }

/* ---------- 3e ALEX LAB (interaktiv): gleiche Flächen wie der Rest ---------- */
.alex-lab { padding: 104px 0 96px; background: linear-gradient(180deg, rgba(17, 26, 30, .9), rgba(9, 13, 16, .96)); }
.lab-grid { gap: 13px; margin-top: 44px; }
.lab-card { border-color: var(--line); border-radius: 7px; background: linear-gradient(155deg, #1a252a, #121a1e 72%); }
.lab-card:hover { border-color: var(--line-strong); }
.lab-card[open] { border-color: rgba(214, 173, 97, .55); box-shadow: 0 22px 70px rgba(0, 0, 0, .3); }
.lab-card summary { min-height: 176px; }
.lab-card summary strong { font-size: 23px; }
.lab-panel { border-top-color: var(--line); background: rgba(4, 9, 11, .2); }
.prompt-card textarea, .lab-form textarea, .lab-form select { border-color: var(--line-strong); background: #0b1114; }
.verdict-result, .lab-risk-form fieldset { border-color: var(--line); }
.verdict-result { background: #0b1114; }
.lab-button, .verdict-tab { border-radius: var(--radius); font: 500 11px "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.lab-button:hover { background: var(--gold-soft); }
@media (min-width: 961px) {
  .alex-lab > .w { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 72px; align-items: start; }
  .alex-lab > .w > .eye, .alex-lab > .w > h2, .alex-lab > .w > .lab-intro, .alex-lab > .w > .vid-note { grid-column: 1; }
  .alex-lab > .w > .vid { grid-column: 2; grid-row: 1 / span 4; max-width: none; margin: 0; }
  .alex-lab > .w > .vid-note { padding-left: 18px; border-left: 2px solid var(--gold); }
  .alex-lab > .w > .lab-grid { grid-column: 1 / -1; }
}

/* ---------- 4 Toolkit: 3×2, bessere Lesbarkeit ---------- */
@media (min-width: 1051px) { .tool-grid { grid-template-columns: repeat(3, 1fr); gap: 13px; } }
.tool-card h3 { margin-top: 44px; font-size: 22px; }
.tool-card p { min-height: 0; margin-bottom: 26px; font-size: 14px; line-height: 1.6; }
.control-row p, .scope-card p { font-size: 14px; }

/* ---------- 5 Run Trace: unter 1051px vertikal statt abgeschnitten ---------- */
@media (max-width: 1050px) {
  .timeline-track { grid-template-columns: 1fr; overflow: visible; margin-right: 0; padding-bottom: 0; }
  .timeline-item { min-width: 0; min-height: 0; padding-bottom: 34px; }
  .timeline-item__connector { top: 31px; left: 50%; width: 1px; height: calc(100% - 31px + 34px); }
  .timeline-item:last-child { padding-bottom: 30px; }
  .timeline-item:last-child .timeline-item__connector { display: none; }
  .timeline-item__content { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; padding-right: 0; }
  .timeline-time { grid-column: 1; grid-row: 1 / span 3; }
  .timeline-label { grid-column: 2; margin: 3px 0 7px; }
  .timeline-item strong, .timeline-item small { grid-column: 2; max-width: 46ch; }
  .timeline-item small { margin-top: 8px; }
}

/* ---------- 6 Mobil-Feinschliff ---------- */
@media (max-width: 760px) {
  .section-grid.hero { padding-top: 56px; padding-bottom: 68px; }
  .hero h1 { max-width: none; font-size: clamp(34px, 9.6vw, 46px); }
  .hero-actions .button-link { flex: 1 1 auto; }
  .hero-actions .text-link { flex: 1 1 100%; margin: 6px 0 0; }
  #aktuelles { padding: 60px 0 64px; }
  .plain-section h2, .alex-lab h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .plain-section:has(> .person) { padding: 48px 0 0; }
  .person { padding: 28px 24px; }
  .alex-lab { padding: 68px 0 64px; }
  .w { width: min(100% - 36px, 600px); }
}

/* ---------- 7 Blasen (wirken nur, wenn /neu/home-bubbles.js geladen ist) ---------- */
.ax-dock { padding: 60px 0 64px; background: linear-gradient(180deg, transparent, rgba(17, 25, 29, .45)); }
.ax-dock > .w > .eye { margin-bottom: 20px; }
.ax-bubbles { display: flex; flex-wrap: wrap; gap: 11px; }
.ax-bubble { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; max-width: 100%; padding: 0 20px 0 22px; border: 1px solid var(--line-strong); border-radius: 999px; background: linear-gradient(145deg, rgba(29, 42, 47, .82), rgba(17, 25, 29, .94)); color: var(--text); font: 500 17px/1.2 "Space Grotesk", "IBM Plex Sans", sans-serif; letter-spacing: -.02em; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, background .2s ease; }
.ax-bubble:hover { transform: translateY(-2px); border-color: rgba(214, 173, 97, .6); }
.ax-bubble[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-soft); background: linear-gradient(145deg, rgba(214, 173, 97, .16), rgba(17, 25, 29, .94) 70%); box-shadow: 0 0 0 5px rgba(214, 173, 97, .07), 0 0 30px rgba(214, 173, 97, .13); }
.ax-bubble__meta { color: var(--muted); font: 11px "IBM Plex Mono", monospace; letter-spacing: .1em; white-space: nowrap; }
.ax-bubble__icon { flex: 0 0 auto; width: 0; height: 0; margin-right: 2px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--gold); }
.ax-bubble__sign { flex: 0 0 auto; margin-left: 4px; color: var(--gold); font: 400 17px/1 "IBM Plex Mono", monospace; transition: transform .22s ease; }
.ax-bubble[aria-expanded="true"] .ax-bubble__sign { transform: rotate(45deg); }

.ax-dock .ax-panel { margin-top: 24px; padding: 38px 42px 42px; border: 1px solid rgba(214, 173, 97, .28); border-radius: 9px; background: linear-gradient(135deg, #172026, #10171b); box-shadow: 0 24px 70px rgba(0, 0, 0, .22); }
.ax-dock .ax-panel > .w { width: auto; }
.ax-dock .ax-panel .ax-used { display: none; }
.ax-dock .ax-panel h2 { font-size: clamp(28px, 3vw, 40px); }
.ax-dock .ax-panel > .video-block > .eye { margin-bottom: 4px; }
.ax-dock .ax-panel > .person { padding: 0; border: 0; border-radius: 0; background: none; }
@media (prefers-reduced-motion: no-preference) {
  .ax-panel:not([hidden]) { animation: ax-pop .3s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes ax-pop { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }

/* Aktuelles: Desktop = Karten wie gehabt, Handy = Blasen */
.ax-bubbles--news { display: none; }
@media (min-width: 761px) {
  #aktuelles .ax-bubbled > .card[hidden] { display: flex !important; }
  #aktuelles .ax-bubbled > .card { animation: none; }
}
@media (max-width: 760px) {
  .ax-bubbles--news { display: flex; flex-direction: column; gap: 9px; margin-top: 28px; }
  .ax-bubbles--news .ax-bubble { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; width: 100%; padding: 13px 20px 14px 22px; border-radius: 28px; font-size: 16px; }
  .ax-bubbles--news .ax-bubble__meta { grid-column: 1; }
  .ax-bubbles--news .ax-bubble__label { grid-column: 1; }
  .ax-bubbles--news .ax-bubble__sign { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  #aktuelles .grid.ax-bubbled { display: block; margin-top: 12px; }
  #aktuelles .ax-bubbled > .card .eye, #aktuelles .ax-bubbled > .card h3 { display: none; }
  #aktuelles .ax-bubbled > .card { padding: 20px 22px; border-color: rgba(214, 173, 97, .28); }
  #aktuelles .ax-bubbled > .card::after { padding-top: 16px; }
  .ax-dock { padding: 44px 0 48px; }
  .ax-bubble { min-height: 50px; font-size: 16px; }
  .ax-dock .ax-panel { padding: 24px 20px 26px; }
  /* Toolkit kompakter: die rein dekorativen Grafiken entfallen auf dem Handy */
  .tool-visual { display: none; }
  .tool-card h3 { margin-top: 26px; }
}
