/* shapestats website, Runde 9 (16.11.2026): App-Design B auf allen Handys, Website an B angelehnt (verwandt, nicht identisch),
   App-Wege, Sprachwahl, Cardio-Zeile, Experimente. Nur Tokens aus marke/tokens.css und Werte aus dem Regelblatt B. */

/* ---------- Anlehnung an Design B ---------- */
/* Knopf: gefüllt in Text-Farbe mit dem Knopfschatten aus B, Drücken 0,97 in 120 ms, Ecken 4 px */
.btn, .signin {
  border-radius: var(--radius-control);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 1px 2px rgb(18 20 19 / 0.28), 0 6px 14px -6px rgb(18 20 19 / 0.45);
  transition: transform 120ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:active, .signin:active { transform: scale(0.97); }
/* Zahlen sprechen Clash Display, tabellarisch, wie in der App */
.ptable8 .p8, .band4.nums .n, .legend8 b, .lead6 .pillarband.plain8 b, .exhead9 b { font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
/* Gruppierung über Linien statt Schatten (B Nr. 5) */
.ptable8 { box-shadow: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; }
.obj7 li { box-shadow: none; }
/* Diagramme wie in B: hervorgehobene Reihe in Text-Farbe, Rohwerte als Punkte in Text 2, Endpunkt Orange */
.trend8 .tl { stroke: var(--silver-50); }
.trend8 .dots circle { fill: rgb(244 245 244 / 0.42); }
.trend8 .end { fill: var(--signal-500); stroke: var(--graphite-950); }
.legend8 .t::before { background: var(--silver-50); }
/* Handys: Bildschirm nach B, Rahmen schlanker und ruhiger */
[data-richtung="b"] .phone.real { background: #fff; }

/* ---------- Sprachwahl im Kopf ---------- */
.lang9 { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--radius-control); background: var(--surface-sunk, rgb(18 20 19 / 0.05)); margin-right: 12px; }
.lang9 a { display: inline-grid; place-items: center; min-width: 32px; height: 28px; padding: 0 6px; border-radius: 3px;
  font: 600 0.75rem/1 var(--font-text); letter-spacing: 0.02em; color: var(--ink-2); text-decoration: none; position: relative; }
.lang9 a::after { content: ""; position: absolute; inset: -8px -2px; }
.lang9 a:hover { color: var(--ink); }
.lang9 a[aria-current] { background: var(--action-bg); color: var(--action-ink); box-shadow: 0 1px 2px rgb(18 20 19 / 0.28); }
.lang9 a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 40em) {
  .bar { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 6px; }
  .brand { min-width: 0; }
  .lang9 { margin-right: 0; }
  .lang9 a { min-width: 26px; height: 26px; padding: 0 3px; font-size: 0.6875rem; }
}
/* Sprachwahl im Fuß (ersetzt den Ländereintrag) */
.langf9 { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: inherit; }
.langf9 .globe { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.langf9 ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.langf9 a { color: inherit; opacity: 0.75; text-decoration: none; font: 500 0.9375rem/1.4 var(--font-text); }
.langf9 a[aria-current] { opacity: 1; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
footer [aria-disabled="true"] { cursor: default; }

/* ---------- App-Wege (Punkt 4) ---------- */
.apps9 { padding: 112px 0; background: var(--graphite-950); color: var(--silver-50); overflow: hidden; }
.apps9 .container { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); grid-template-areas: "dev copy" "dev stores"; column-gap: clamp(32px, 6vw, 96px); row-gap: 32px; align-items: start; }
.apps9 .copy { grid-area: copy; }
.apps9 h2 { color: var(--silver-50); font: 800 clamp(2.25rem, 4vw, 3.5rem)/1.02 var(--font-display); letter-spacing: -0.04em; margin: 0 0 20px; text-wrap: balance; max-width: 14em; }
.apps9 p { color: var(--silver-200); font: 400 clamp(1.0625rem, 1.3vw, 1.25rem)/1.5 var(--font-text); max-width: 44ch; margin: 0 0 28px; }
.apps9 .web9 { background: var(--silver-50); color: var(--graphite-950); min-height: 48px; padding: 12px 20px; font-size: 1rem; gap: 10px;
  box-shadow: inset 0 -1px 0 rgb(18 20 19 / 0.12), 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 22px -10px rgb(0 0 0 / 0.7); }
.stores9 { grid-area: stores; display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.store9 { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: var(--radius-control);
  background: rgb(244 245 244 / 0.07); box-shadow: inset 0 0 0 1px rgb(244 245 244 / 0.16); color: var(--silver-50); text-decoration: none;
  transition: background 160ms var(--ease-out), transform 120ms var(--ease-out); }
.store9 svg { flex: none; }
.store9 span { display: grid; gap: 2px; font: 600 1.0625rem/1.1 var(--font-text); }
.store9 small { font: 500 0.75rem/1 var(--font-text); color: var(--silver-200); letter-spacing: 0.02em; }
.store9[href]:hover { background: rgb(244 245 244 / 0.12); }
.store9[href]:active { transform: scale(0.97); }
.store9[aria-disabled="true"] { cursor: default; }
.devices9 { grid-area: dev; position: relative; min-height: 560px; }
.devices9 .phone.real { position: absolute; width: clamp(190px, 17vw, 240px); border-radius: 30px; overflow: hidden;
  box-shadow: 0 0 0 6px var(--device-rim, #2a2d2c), 0 0 0 8px var(--device-edge, #3a3e3c), 0 30px 60px -20px rgb(0 0 0 / 0.8); }
.devices9 .p0 { left: 6%; top: 40px; transform: rotate(-5deg); z-index: 2; }
.devices9 .p1 { right: 6%; top: 0; transform: rotate(4deg); }
.devices9 .phone.real img { display: block; width: 100%; height: auto; }
@media (max-width: 56.25em) {
  .apps9 { padding: 80px 0; }
  .apps9 .container { grid-template-columns: 1fr; grid-template-areas: "copy" "stores" "dev"; }
  .devices9 { min-height: 0; height: clamp(320px, 80vw, 420px); }
  .devices9 .phone.real { width: clamp(140px, 38vw, 200px); }
  .devices9 .p0 { left: 4%; top: 24px; }
  .devices9 .p1 { right: 4%; top: 0; }
}
@media (max-width: 30em) {
  .stores9 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .store9 { padding: 10px 12px; gap: 10px; }
  .store9 span { font-size: 0.9375rem; }
  .apps9 .web9 { width: 100%; }
}

/* ---------- Experimente (Punkt 2) ---------- */
.exp9 { padding: 112px 0; background: var(--bg); }
.exp9.tone { background: var(--band); }
.exp9 .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.exp9 h2 { font: 800 clamp(2rem, 3.6vw, 3.25rem)/1.04 var(--font-display); letter-spacing: -0.04em; margin: 0 0 20px; color: var(--ink); text-wrap: balance; }
.exp9 .txt > p { font: 400 clamp(1.0625rem, 1.3vw, 1.1875rem)/1.55 var(--font-text); color: var(--ink-2); margin: 0 0 24px; max-width: 48ch; }
.exlist9 { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.exlist9 li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font: 600 1rem/1.3 var(--font-text); color: var(--ink); }
.exlist9 svg { flex: none; color: var(--ink-2); }
.exp9 .small9 { font: 400 0.9375rem/1.5 var(--font-text); color: var(--ink-2); margin: 0; max-width: 52ch; }
.exchart9 { margin: 0; padding: 28px 24px 20px; border-radius: var(--radius-card); background: var(--graphite-950); color: var(--silver-50); }
.exhead9 { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; margin-bottom: 18px; }
.exhead9 span { font: 600 1.0625rem/1.3 var(--font-text); }
.exhead9 b { grid-row: span 2; font-weight: 600; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--signal-500); }
.exhead9 small { font: 500 0.8125rem/1.3 var(--font-text); color: var(--silver-200); }
.exchart9 svg { display: block; width: 100%; height: auto; }
.exchart9 .zone { fill: rgb(244 245 244 / 0.05); }
.exchart9 .dots circle { fill: rgb(244 245 244 / 0.5); }
.exchart9 .avg { stroke: rgb(244 245 244 / 0.45); stroke-width: 2; stroke-dasharray: 4 5; }
.exchart9 .avg.hi { stroke: var(--silver-50); stroke-dasharray: none; stroke-width: 3; }
.exchart9 .end { fill: var(--signal-500); stroke: var(--graphite-950); stroke-width: 3; }
.exaxis9 { display: grid; grid-template-columns: 1fr 1fr; font: 500 0.75rem/1 var(--font-text); color: var(--silver-200); margin-top: 8px; }
.exaxis9 span:last-child { text-align: right; }
@media (max-width: 56.25em) {
  .exp9 { padding: 72px 0; }
  .exp9 .container { grid-template-columns: 1fr; }
}

/* ---------- Offene Prüflistenzeilen aus Runde 8 ---------- */
/* GW-D-109: Trendfoto gespiegelt, Blick zum Text */
.stage8 .ph > .bg.mirror { transform: scaleX(-1); }
/* GW-D-1027: Austritt etwa 20 Prozent kürzer als Eintritt */
.qa:not([open])::details-content { transition-duration: 160ms, 160ms; }
/* GW-D-874 und GW-D-061: Hero-Knopf ohne Scrollen sichtbar, auch auf den Seiten mit zweiter Unterzeile (390 x 664, 360 x 640) */
@media (max-width: 56.25em) {
  .lead6:has(.sub2) > .container { padding-top: min(56vw, 260px); }
  .lead6:has(.sub2) .sub { margin-bottom: 20px; }
}

/* Manuel 16.11. 08:35 Punkt 4: Band "Your training ...": über der Überschrift weniger, unter ihr mehr Luft */
.band6 { padding-top: 88px; }
.band6 h2 { margin-bottom: 120px; }
@media (max-width: 56.25em) {
  .band6 { padding-top: 64px; }
  .band6 h2 { margin-bottom: 72px; }
}

/* Manuel 16.11. 08:35 Punkt 3, Test: Foto als Hintergrund des ganzen Abschnitts, Handy neben dem Text */
.featbg9 { position: relative; isolation: isolate; overflow: hidden; background: var(--graphite-950); color: var(--silver-50); }
.featbg9 > .bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; filter: var(--photo-filter); }
.featbg9 > .bg.mirror { transform: scaleX(-1); }
.featbg9::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(18 20 19 / 0.88) 0%, rgb(18 20 19 / 0.7) 38%, rgb(18 20 19 / 0.25) 70%, rgb(18 20 19 / 0.45) 100%); }
.featbg9.flip::before { background: linear-gradient(270deg, rgb(18 20 19 / 0.88) 0%, rgb(18 20 19 / 0.7) 38%, rgb(18 20 19 / 0.25) 70%, rgb(18 20 19 / 0.45) 100%); }
.featbg9 .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; min-height: clamp(620px, 52vw, 760px); padding-block: 96px; }
.featbg9.flip .txt { order: 2; }
.featbg9 h2 { color: var(--silver-50); font: 800 clamp(2.25rem, 4vw, 3.5rem)/1.02 var(--font-display); letter-spacing: -0.04em; margin: 0 0 20px; text-wrap: balance; max-width: 13em; }
.featbg9 p { color: var(--silver-100); font: 400 clamp(1.0625rem, 1.3vw, 1.25rem)/1.5 var(--font-text); max-width: 42ch; margin: 0 0 24px; }
.featbg9 .link-arrow { color: var(--silver-50); }
.featbg9 .dev { display: grid; justify-items: center; }
.featbg9 .phone.real { position: relative; width: clamp(230px, 20vw, 290px); transform: rotate(-4deg); border-radius: 34px; overflow: hidden;
  box-shadow: 0 0 0 7px var(--device-rim, #2a2d2c), 0 0 0 9px var(--device-edge, #3a3e3c), 0 40px 80px -24px rgb(0 0 0 / 0.85); }
.featbg9 .phone.real img { display: block; width: 100%; height: auto; }
@media (max-width: 56.25em) {
  .featbg9 .container { grid-template-columns: 1fr; min-height: 0; padding-block: 72px; }
  .featbg9.flip .txt { order: 0; }
  .featbg9::before { background: linear-gradient(180deg, rgb(18 20 19 / 0.88) 0%, rgb(18 20 19 / 0.7) 45%, rgb(18 20 19 / 0.35) 100%); }
  .featbg9 .phone.real { width: min(62vw, 250px); }
}
