/* shapestats website, Runde 4 (16.11.2026): eigene Seite je Menüpunkt,
   Vollbild-Hero mit Mensch und echtem Handy, jeder Abschnitt mit Bild, Seiten wechseln links und rechts.
   Gilt für B (style.css) und C (style-c.css). Nur Tokens aus marke/tokens.css (Kopie, vom Build aus ../marke geholt). */

/* Kopf: Menüpunkt der aktuellen Seite */
.bar nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 currentColor; }

/* ---------- Hero über die volle Breite ---------- */
.fullhero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(560px, 82vh, 820px);
  display: flex;
  align-items: center;
  background: var(--graphite-950);
  color: var(--silver-50);
}
.fullhero.sub { min-height: clamp(520px, 70vh, 680px); }
.fullhero > .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: -2;
  filter: var(--photo-filter);
}
.fullhero > .bg.mirror { transform: scaleX(-1); }
.fullhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(18 20 19 / 0.9) 0%, rgb(18 20 19 / 0.82) 40%, rgb(18 20 19 / 0.4) 56%, rgb(18 20 19 / 0) 74%),
    linear-gradient(0deg, rgb(18 20 19 / 0.55) 0%, rgb(18 20 19 / 0) 30%);
}
.fullhero .container {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding-block: 96px;
}
.fullhero .copy { max-width: 540px; }
.fullhero:not(.sub) .copy { max-width: 680px; }
.fullhero:not(.sub) h1 { max-width: 13em; }
.fullhero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  margin-bottom: 20px;
  color: var(--silver-50);
  max-width: 11em;
}
.fullhero.sub h1 { font-size: clamp(2.25rem, 4.2vw, 3.375rem); }
.fullhero .copy > p {
  font: 400 1.125rem/1.5 var(--font-text);
  color: var(--silver-100);
  max-width: 40ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.fullhero .note { font: var(--type-small); color: var(--silver-200); margin-top: 16px; }
.fullhero .btn {
  min-height: var(--control-l);
  padding: 12px 22px;
  font-size: 0.9375rem;
}
[data-richtung="b"] .fullhero .btn,
[data-richtung="b"] .closer4 .btn {
  background: var(--silver-50);
  color: var(--graphite-900);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 1px 2px rgb(0 0 0 / 0.35), 0 10px 24px -12px rgb(0 0 0 / 0.6);
}
.fullhero .phone.real,
.closer4 .phone.real {
  width: 264px;
  transform: rotate(-6deg);
  transform-origin: center;
  align-self: end;
  margin-bottom: -150px;
}
.fullhero .phone.real img,
.closer4 .phone.real img { width: 100%; height: auto; }

/* Säulen unter dem Start-Hero */
.pillarband { background: var(--bg); border-bottom: var(--line) solid var(--rule); }
.pillarband ul {
  list-style: none;
  margin: 0 auto;
  padding: 32px var(--gutter);
  max-width: var(--container);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.pillarband li { display: flex; align-items: center; gap: 10px; font: 600 0.9375rem/1.2 var(--font-text); }
.pillarband svg { flex: none; }

/* ---------- Abschnitt: Bild und Text, Seiten wechseln ---------- */
.feat { padding: 112px 0; background: var(--bg); }
.feat.tone { background: var(--band); }
.feat .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 112px;
  align-items: center;
}
.feat.flip .container { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.feat.flip .vis { order: 2; }
.feat .txt h2 { margin-bottom: 20px; max-width: 13em; }
.feat .txt p { font: 400 1.125rem/1.55 var(--font-text); max-width: 38ch; margin-bottom: 28px; text-wrap: pretty; }
.feat .txt p:last-child { margin-bottom: 0; }
.feat .big {
  display: block;
  font: 600 clamp(4rem, 8vw, 6.5rem)/0.95 var(--font-figure);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
[data-richtung="c"] .feat .big { color: var(--signal-500); }

/* Bildträger: Foto als Fläche, echtes Handy darüber */
.vis { position: relative; }
.shot {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--graphite-800);
}
.shot > img.mirror { transform: scaleX(-1); }
.shot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: var(--photo-filter);
}
.vis .phone.real {
  position: absolute;
  width: 214px;
  right: -56px;
  bottom: -56px;
  transform: rotate(-5deg);
}
.feat.flip .vis .phone.real { right: auto; left: -56px; transform: rotate(5deg); }
.vis.solo .shot { display: none; }
.vis.solo { display: grid; place-items: center; }
.vis.solo .phone.real { position: relative; right: auto; left: auto; bottom: auto; width: 280px; transform: rotate(-4deg); }
.feat:has(.vis .phone.real:not(.solo .phone)) { padding-bottom: 148px; }

/* Grafik-Karte im Bild (Studie, Schalter, Tabelle) */
.vis .card4 {
  position: absolute;
  right: 6%;
  bottom: -40px;
  width: min(320px, 70%);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 20px 22px;
}
.feat.flip .vis .card4 { right: auto; left: 6%; }
.card4 .k { font: 700 1.0625rem/1.25 var(--font-display); color: var(--ink); margin-bottom: 12px; display: block; }
.card4 h3 { font: var(--type-title); letter-spacing: var(--tracking-display); margin-bottom: 14px; }
.card4 dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font: var(--type-small); }
.card4 dt { color: var(--ink-2); }
.card4 dd { margin: 0; font-weight: 600; text-align: right; }
.card4 .sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 600 0.9375rem/1.3 var(--font-text); }
.card4 .sw + .sw { margin-top: 14px; padding-top: 14px; border-top: var(--line) solid var(--rule); }
.toggle4 {
  width: 46px; height: 28px; flex: none;
  border-radius: 14px;
  background: var(--graphite-900);
  position: relative;
}
[data-richtung="c"] .toggle4 { background: var(--signal-500); }
.toggle4::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--silver-50);
}
.toggle4.off { background: var(--silver-300); }
.toggle4.off::after { right: auto; left: 3px; }
.card4 table { width: 100%; border-collapse: collapse; font: var(--type-small); }
.card4 th, .card4 td { text-align: left; padding: 8px 0; border-bottom: var(--line) solid var(--rule); }
.card4 td:last-child, .card4 th:last-child { text-align: right; font-weight: 700; }
.card4 tr:last-child td { border-bottom: 0; }

/* Drei Schritte mit echten Bildschirmen */
.trio { padding: 112px 0; background: var(--band); }
.trio h2 { margin-bottom: 56px; }
.trio ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio li { display: grid; gap: 20px; align-content: start; }
.trio .ph4 {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 32px 0 0;
  height: 340px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.trio .ph4 .phone.real { width: 220px; border-radius: 30px 30px 0 0; }
.trio .ph4 > img { width: 100%; height: 100%; object-fit: cover; margin-top: -32px; filter: var(--photo-filter); }
.trio h3 { font: var(--type-title); letter-spacing: var(--tracking-display); }
.trio p { font: var(--type-body); max-width: 34ch; }

/* Fragen mit Bild */
.faq4 { padding: 112px 0; background: var(--bg); }
.faq4 .container { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq4 .shot { aspect-ratio: 4 / 5; position: sticky; top: 24px; }
.faq4 h2 { margin-bottom: 24px; }

/* Schlussblock, auf jeder Seite gleich */
.closer4 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--graphite-950);
  color: var(--silver-50);
}
.closer4 > .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; z-index: -2; filter: var(--photo-filter); opacity: 0.55;
}
.closer4::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(18 20 19 / 0.92) 0%, rgb(18 20 19 / 0.7) 50%, rgb(18 20 19 / 0.35) 100%);
}
.closer4 .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding-block: 112px 0;
}
.closer4 .copy { padding-bottom: 112px; }
.closer4 h2 { color: var(--silver-50); margin-bottom: 16px; max-width: 14em; }
.closer4 p { color: var(--silver-200); font: 400 1.125rem/1.5 var(--font-text); max-width: 40ch; margin-bottom: 28px; }
.closer4 .phone.real { margin-bottom: -120px; align-self: end; }

/* Pricing in Runde 4 */
.pricing4 .plans .btn { width: 100%; }

/* ---------- Responsiv ---------- */
@media (max-width: 67.5em) {
  .pillarband ul { grid-template-columns: repeat(3, 1fr); }
  .feat .container, .feat.flip .container { gap: 56px; }
}
@media (max-width: 56.25em) {
  .fullhero, .fullhero.sub { min-height: 0; display: block; }
  .fullhero > .bg { height: min(92vw, 470px); object-position: var(--pos-m, 50% 30%); }
  .fullhero::before {
    background: linear-gradient(180deg, rgb(18 20 19 / 0) 20%, rgb(18 20 19 / 0.7) 46%, rgb(18 20 19 / 1) 62%);
  }
  .fullhero .container { grid-template-columns: 1fr; gap: 0; padding-block: 0 32px; }
  .fullhero h1 { margin-bottom: 14px; }
  .fullhero .copy > p { margin-bottom: 20px; }
  .fullhero .copy { padding-top: min(68vw, 330px); position: relative; z-index: 1; }
  .fullhero .phone.real {
    position: absolute;
    width: 100px;
    right: 18px;
    top: 24px;
    margin: 0;
    transform: rotate(-6deg);
    box-shadow: 0 0 0 5px var(--device-rim), 0 0 0 7px var(--device-edge), 0 24px 48px -20px rgb(0 0 0 / 0.7);
    border-radius: 22px;
  }
  .fullhero h1 { font-size: clamp(2.125rem, 9vw, 2.875rem); }
  .fullhero.sub h1 { font-size: clamp(2rem, 8.4vw, 2.625rem); }
  .fullhero .copy > p { font-size: 1.0625rem; margin-bottom: 24px; }
  .feat, .trio, .faq4 { padding: 72px 0; }
  .feat:has(.vis .phone.real:not(.solo .phone)) { padding-bottom: 72px; }
  .feat .container, .feat.flip .container { grid-template-columns: 1fr; gap: 40px; }
  .feat.flip .vis, .feat .vis { order: 2; }
  .feat .vis { margin-bottom: 48px; }
  .vis .phone.real { width: 140px; right: -8px; bottom: -48px; border-radius: 22px; }
  .feat.flip .vis .phone.real { left: -8px; }
  .vis.solo .phone.real { width: 240px; }
  .vis .card4 { bottom: -36px; }
  .trio ol { grid-template-columns: 1fr; gap: 48px; }
  .faq4 .container { grid-template-columns: 1fr; gap: 32px; }
  .faq4 .shot { position: relative; top: auto; aspect-ratio: 16 / 10; }
  .closer4 .container { grid-template-columns: 1fr; padding-block: 72px 0; gap: 0; }
  .closer4 .copy { padding-bottom: 40px; }
  .closer4 .phone.real { justify-self: center; width: 220px; margin-bottom: -180px; }
  .closer4 { padding-bottom: 0; }
  .closer4 .container { padding-bottom: 0; }
  .closer4 .phonewrap { height: 300px; overflow: hidden; display: flex; justify-content: center; padding-top: 16px; }
}
@media (min-width: 56.3125em) { .closer4 .phonewrap { display: contents; } }
@media (max-width: 40em) {
  .pillarband ul { grid-template-columns: repeat(2, 1fr); padding-block: 24px; }
  .feat .txt p, .closer4 p { font-size: 1.0625rem; }
  .feat .big { font-size: 4.5rem; }
}

/* Runde 4b nach Prüfern: Säulen im Hero, Schlussblock ohne Foto, Karten statt leerer Screens */
.fullhero.withpillars { flex-direction: column; align-items: stretch; justify-content: center; }
.fullhero.withpillars .container { flex: 1; }
.fullhero.withpillars .phone.real { margin-bottom: 0; align-self: center; }
.fullhero .pillarband { background: transparent; border: 0; border-top: 1px solid rgb(244 245 244 / 0.18); color: var(--silver-50); position: relative; }
.fullhero .pillarband ul { padding-block: 22px; }
.closer4 { background: var(--band); color: var(--ink); }
.closer4::before { display: none; }
.closer4 h2 { color: var(--ink); }
.closer4 p { color: var(--ink-2); }
[data-richtung="b"] .closer4 .btn { background: var(--action-bg); color: var(--action-ink); box-shadow: var(--shadow-button); }
.mini4 {
  align-self: center; width: min(280px, 86%); display: grid; gap: 8px;
  background: var(--surface); color: var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--card-shadow); padding: 18px; font: var(--type-small);
}
.trio .ph4 { align-items: center; padding: 0 16px; }
.mini4 b { font: 700 1.0625rem/1.2 var(--font-display); margin-bottom: 4px; }
.mini4 .f { color: var(--ink-2); font: var(--type-label); }
.mini4 .v { background: var(--surface-sunk); border-radius: var(--radius-control); padding: 8px 10px; }
.mini4 .go { justify-self: start; background: var(--action-bg); color: var(--action-ink); border-radius: var(--radius-control); padding: 6px 14px; font-weight: 600; margin-top: 4px; }
.mini4 .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.mini4 .row:last-child { border-bottom: 0; }
.mini4 .vote, .mini4 .tag { flex: none; border: 1px solid var(--rule); border-radius: var(--radius-control); padding: 3px 10px; font-weight: 600; }
.mini4 .tag { background: var(--action-bg); color: var(--action-ink); border-color: transparent; }
.plantop { height: 150px; overflow: hidden; border-radius: var(--radius-card); margin-bottom: 20px; background: var(--surface-sunk); }
.plantop img { width: 100%; height: auto; display: block; transform: translateY(-6%); }
@media (max-width: 56.25em) {
  .fullhero .pillarband { border-top: 0; }
  .fullhero .pillarband ul { padding-top: 0; }
}
@media (max-width: 40em) { .bar .signin { display: none; } }

/* Bewegung: Hero tritt beim Laden ein (Text, dann Handy). Ease-out, unter 600 ms, keine Scroll-Einblendung. */
@media (prefers-reduced-motion: no-preference) {
  .fullhero .copy > * { animation: r4-up 520ms var(--ease-out) both; }
  .fullhero .copy > :nth-child(2) { animation-delay: 60ms; }
  .fullhero .copy > :nth-child(3) { animation-delay: 120ms; }
  .fullhero .copy > :nth-child(4) { animation-delay: 160ms; }
  .fullhero .phone.real { animation: r4-phone 640ms var(--ease-out) 120ms both; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(var(--press-scale)); }
}
@keyframes r4-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes r4-phone { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* Runde 4c: leichterer Handyschatten, Rechtstabellen mobil gestapelt, Linkhöhe */
.phone.real { box-shadow: 0 0 0 7px var(--device-rim), 0 0 0 11px var(--device-edge), 0 0 0 12px var(--device-edge-2), 0 30px 60px -36px rgb(18 20 19 / 0.45); }
.doc td a { display: inline-block; padding-block: 12px; }
@media (max-width: 40em) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc td, .doc th { display: block; }
  .doc thead { display: none; }
  .doc td, .doc th { min-width: 0; border: 0; padding: 2px 0; }
  .doc tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
}

/* Runde 4d nach Nachprüfung: Handy tiefer, wo es sonst den Kopf deckt; Karten mobil im Fluss */
.fullhero .phone.real.low { margin-bottom: -380px; }
@media (max-width: 56.25em) {
  .fullhero .phone.real.low { margin-bottom: 0; right: auto; left: 18px; transform: rotate(6deg); }
  .vis .phone.real { width: 112px; right: -6px; bottom: -40px; }
  .feat.flip .vis .phone.real { left: -6px; }
  .vis .card4 { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -56px 16px 0; }
  .feat.flip .vis .card4 { left: auto; }
}

/* ---------- Runde 5: Grafikbänder nach je drei Bild-Text-Paaren (ruhig, ein Ton, keine Bewegung) ---------- */
.band4 { background: var(--graphite-950); color: var(--silver-50); padding: 88px 0; }
.band4 .container { max-width: var(--container, 1200px); margin-inline: auto; padding-inline: var(--gutter, 24px); }
.band4.nums ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.band4.nums li { display: grid; gap: 10px; padding: 8px 40px 8px 0; align-content: start; }
.band4.nums .n { font: 600 clamp(2.5rem, 5vw, 4rem)/1 var(--font-figure); letter-spacing: 0; white-space: nowrap; }
[data-richtung="c"] .band4.nums .n { color: var(--signal-500); }
.band4.nums .l { font: 400 1.125rem/1.4 var(--font-text); color: var(--silver-200); max-width: 22ch; }
.band4.strip { padding-bottom: 0; overflow: hidden; }
.band4.strip .line { font: var(--type-title); letter-spacing: var(--tracking-display); text-align: center; margin: 0 auto 48px; max-width: 28ch; }
.band4.strip .row { display: flex; justify-content: center; align-items: flex-start; gap: 40px; height: 380px; overflow: hidden; }
.band4.strip .row > div { flex: 0 0 240px; border-radius: 30px 30px 0 0; overflow: hidden; border: 1px solid rgb(244 245 244 / 0.22); border-bottom: 0; background: var(--graphite-900, #1a1d1c); }
.band4.strip .row > div:nth-child(2) { margin-top: 28px; }
.band4.strip .row img { display: block; width: 100%; height: auto; }
@media (max-width: 50em) {
  .band4 { padding: 56px 0; }
  .band4.strip { padding-bottom: 0; }
  .band4.nums ul { grid-template-columns: 1fr; gap: 28px; }
  .band4.nums li { padding: 0; }
  .band4.strip .row { gap: 14px; height: 260px; }
  .band4.strip .row > div { flex: 0 0 30%; border-radius: 20px 20px 0 0; }
}

/* Runde 5: Menüknopf gibt beim Drücken nach wie die Knöpfe (M4) */
.nav-toggle { transition: transform var(--dur-press) var(--ease-out); }
.nav-toggle:active { transform: scale(var(--press-scale)); }
.seg button:active, .arrows button:active, .qa summary:active { transform: scale(var(--press-scale)); }
.seg button, .arrows button { transition: transform var(--dur-press) var(--ease-out); }

/* Runde 5: Trefferflächen mindestens 44 px breit (Fußleiste, Tabellenlinks) */
.socials a { min-width: 44px; justify-content: center; }
footer ul a { min-width: 44px; }
.doc td a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 50em) {
  .band4.strip .row > div:nth-child(1), .band4.strip .row > div:nth-child(3) { display: none; }
  .band4.strip .row > div:nth-child(2) { flex: 0 0 62%; margin-top: 0; }
  .band4.strip .row { height: 340px; }
}

/* Runde 5 (Stichprobe): Druckrückmeldung auch an Länderwahl, Social-Knöpfen und Fragen; Menü mobil öffnet in 200 ms */
.market:active, .socials a:active { transform: scale(var(--press-scale)); }
.market, .socials a, .qa summary { transition: transform var(--dur-press) var(--ease-out); }
@media (prefers-reduced-motion: no-preference) { .bar nav.open { animation: r4-up var(--dur-ui) var(--ease-out) both; } }
.feat .big { white-space: nowrap; }
@media (max-width: 23.75em) { .feat .big { font-size: 3.25rem; } }
