/* =====================================================================
   Launch 1.0: neue Startseiten-Kopfzeile, Beweisstreifen, Vergleichsseiten, SAP-Teaser.
   Nur Tokens der bestehenden Gestaltung (magazin-weiss); kein Fremdfont, keine Fremdanfrage.
   ===================================================================== */

/* ---------- Hero ---------- */
.hero-launch { padding: clamp(36px, 6vw, 88px) 0 clamp(40px, 6vw, 80px); overflow-x: clip; }
.hero-launch .wrap { display: grid; gap: clamp(28px, 4vw, 52px); }
.hl-text { max-width: 62rem; }
.hero-launch h1 {
  font-size: clamp(2.5rem, 8.6vw, 7.2rem); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 0.28em;
  text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
.hero-launch h1 .l2 { display: block; margin-top: 0.08em; }
.hero-launch .swipe { font-style: italic; font-weight: 400; display: inline-block; padding: 0 0.22em 0.04em 0.1em; }
.hl-sub { max-width: 40ch; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.35; margin-bottom: 26px; color: var(--ink); }
.hl-cta { margin: 0 0 14px; }
.hl-cta .btn { min-height: 48px; }
.hl-meta { font: 600 0.82rem/1.4 var(--sans); letter-spacing: 0.04em; color: var(--muted); margin: 0; }
.hl-shot { margin-inline: calc(-1 * clamp(0px, 1vw, 12px)); padding: clamp(10px, 2.6vw, 36px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; }
.hl-shot .wshot .ws-img { border-radius: 8px; box-shadow: 0 2px 4px rgba(17, 17, 17, 0.08), 0 24px 60px -18px rgba(17, 17, 17, 0.35); }
:root[data-mode="dark"] .hl-shot .wshot .ws-img { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px -18px rgba(0, 0, 0, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  .hl-text > * { animation: hl-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hl-text > *:nth-child(2) { animation-delay: 0.05s; }
  .hl-text > *:nth-child(3) { animation-delay: 0.15s; }
  .hl-text > *:nth-child(4) { animation-delay: 0.22s; }
  .hl-text > *:nth-child(5) { animation-delay: 0.28s; }
  .hl-shot { animation: hl-in 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes hl-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Beweisstreifen ---------- */
.proof-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(18px, 3vw, 40px); }
.proof-strip li { border-top: 2px solid var(--ink); padding: 14px 0 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.proof-strip b { font: 800 clamp(1.7rem, 3.4vw, 2.6rem)/1 var(--serif); letter-spacing: -0.02em; background: linear-gradient(transparent 62%, var(--marker-soft) 62%); width: fit-content; max-width: 100%; padding: 0 0.1em 0 0; }
.proof-strip span { font: 400 0.95rem/1.45 var(--sans); color: var(--ink-2); }
.hl-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 4px 0 0; font: 600 0.95rem/1.4 var(--sans); }
.hl-links a { padding: 6px 0; }
.hl-proof .maker { margin-top: 18px; }
@media (max-width: 860px) { .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .proof-strip { grid-template-columns: minmax(0, 1fr); }
  .hl-shot { margin-inline: -8px; padding: 8px; }
  .hero-launch h1 { font-size: clamp(2.3rem, 11.5vw, 3.2rem); }
}

/* ---------- Vergleichsseiten ---------- */
.vg-hero { padding: clamp(36px, 6vw, 84px) 0 clamp(24px, 4vw, 48px); }
.vg-hero h1 { font-size: clamp(2.3rem, 6.4vw, 5.2rem); line-height: 0.98; max-width: 18ch; text-wrap: balance; overflow-wrap: break-word; }
.vg-hero-in { max-width: 62rem; }
.vg-hero .lead { max-width: 46rem; }
.vg-pick { margin: 18px 0 8px; padding: 16px 20px; border-left: 6px solid var(--marker); background: var(--bg-2); max-width: 46rem; font-size: 1.02rem; }
.vg-stand { font: 600 0.85rem/1.4 var(--sans); color: var(--muted); margin: 14px 0 0; }
.vgx { min-width: 0 !important; table-layout: fixed; }
.vgx th, .vgx td { vertical-align: top; font-family: var(--sans); font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.vgx tbody th { width: 17%; min-width: 0; }
.vgx thead th { position: static; }
.vgx td:nth-child(2) { background: var(--marker-soft); }
.vgx code { font-size: 0.85em; }
.table-scroll[role="region"] { overflow-x: auto; }
.table-scroll[role="region"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) {
  .vgx:not(.vgx-hub), .vgx:not(.vgx-hub) tbody, .vgx:not(.vgx-hub) tr, .vgx:not(.vgx-hub) th, .vgx:not(.vgx-hub) td { display: block; width: 100% !important; }
  .vgx:not(.vgx-hub) thead { position: absolute; left: -9999px; }
  .vgx:not(.vgx-hub) tr { border-top: 2px solid var(--ink); padding: 10px 0 14px; }
  .vgx:not(.vgx-hub) tbody th { border: 0; padding: 4px 14px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .vgx:not(.vgx-hub) td { border: 0; padding: 6px 14px; }
  .vgx:not(.vgx-hub) td:nth-child(2)::before { content: "RepoTailor"; display: block; font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
  .vgx:not(.vgx-hub) td:nth-child(3)::before { content: attr(data-n); display: block; font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
}
/* Hub-Tabelle mit fünf Spalten scrollt im Rahmen, nicht die Seite */
.vgx-hub { min-width: 820px !important; }
.vg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.vg-card { border-top: 3px solid var(--ink); padding-top: 14px; min-width: 0; }
.vg-card h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.vg-card h3 a { text-decoration: none; background: linear-gradient(transparent 62%, var(--marker-soft) 62%); }
.vg-card h3 a:hover { background: var(--marker); }
.vg-card p { font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 860px) { .vg-cards { grid-template-columns: minmax(0, 1fr); } }
.mig { counter-reset: m; list-style: none; padding: 0; margin: 12px 0 22px; max-width: 46rem; }
.mig li { counter-increment: m; position: relative; padding: 0 0 14px 52px; min-height: 40px; }
.mig li::before { content: counter(m); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--marker); color: #111; font: 800 1.05rem/1 var(--serif); }
.vg-src ul { padding-left: 1.2em; margin: 8px 0 0; font-family: var(--sans); font-size: 0.92rem; }
.vg-src li { margin: 4px 0; }
.vg-src a { overflow-wrap: anywhere; }
.vg-src-h { font-size: 1.15rem !important; }
.vg-teaser .head { margin-bottom: 24px; }

/* ---------- SAP-Teaser ---------- */
.sap-teaser { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sap-teaser-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.sap-teaser h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.sap-teaser .lead { max-width: 46rem; margin-bottom: 0; }
@media (max-width: 760px) { .sap-teaser-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero, Feinschliff: Headline über die volle Breite, Fakten ohne Flächen ---------- */
[data-design="magazin"] .hero-launch h1 { font-size: clamp(2.4rem, 7.4vw, 6.4rem); line-height: 0.95; letter-spacing: -0.035em; max-width: none; text-wrap: balance; }
.hero-launch .hl-text { max-width: none; }
.hero-launch .swipe { margin-left: -0.08em; }
@media (min-width: 1000px) {
  .hero-launch .hl-text { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; }
  .hero-launch .hl-text > .eyebrow, .hero-launch .hl-text > h1 { grid-column: 1 / -1; }
  .hero-launch .hl-sub { grid-column: 1; grid-row: 3 / span 2; margin: 0; align-self: start; }
  .hero-launch .hl-cta { grid-column: 2; grid-row: 3; justify-self: end; margin: 0 0 12px; }
  .hero-launch .hl-meta { grid-column: 2; grid-row: 4; justify-self: end; text-align: right; }
}
.proof-strip mark { background: none; color: inherit; padding: 0; }
.proof-strip span { color: var(--muted); }
[data-design="magazin"] .proof-strip b { font-size: clamp(2rem, 4.4vw, 3.6rem); background: linear-gradient(transparent 64%, var(--marker) 64%, var(--marker) 90%, transparent 90%); }
:root[data-mode="dark"] .proof-strip b { color: var(--ink); }
@media (max-width: 520px) { [data-design="magazin"] .hero-launch h1 { font-size: clamp(2.3rem, 11.5vw, 3.2rem); } }
/* Marker ist immer gelb: Text darauf immer dunkel; im Dunkelmodus Fakten nur unterstrichen */
@media (prefers-reduced-motion: reduce) { [data-design="magazin"] .hero-launch h1 .swipe { color: #111; } }
:root[data-mode="dark"] [data-design="magazin"] .proof-strip b, :root[data-mode="dark"][data-design="magazin"] .proof-strip b { background: linear-gradient(transparent 90%, var(--marker) 90%); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"])[data-design="magazin"] .proof-strip b { background: linear-gradient(transparent 90%, var(--marker) 90%); } }
