/* Site build (c7): c6 plus the "Warum" block and the legal pages (bottom of this file).
   c6: c5 with a scroll-scrubbed dark band (cards fly out from the centre), a new hero photo
   and a stronger "Gebucht" chip.
   c5: c4 with real photos (Pexels, exported by make-c5-images.sh as AVIF/WebP/JPG <picture>s).
   Brand colours "variant B". One supporting tint: the pale green of the app's "Gebucht" chip.
   One typeface: Onest.
   Tabs: the app screen is always shown whole, and the floating card only overlaps the photo
   and the tile edge, never the screen (checked by shoot-c5.mjs). */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #2f6b4f;
  --green-hover: #275a43;
  --green-on-dark: #6fbf94;
  --green-on-dark-hover: #86cca5;
  --tint: #dceee4;
  --tint-ink: #1f5a3f;
  --charcoal: #1a1a1c;
  --charcoal-2: #252528;
  --charcoal-3: #323236;
  --ink: #1c1c1e;
  --ink-2: #5d5d63;
  --grey: #f2f2f5;
  --line: #e4e4e9;
  --white: #ffffff;
  --on-dark: #f4f4f6;
  --on-dark-2: #b4b4bb;

  --text: "Onest", system-ui, sans-serif;
  --page: min(1160px, 100% - 64px);
  --radius-photo: 28px;
  --radius-card: 22px;
  --shadow: 0 1px 2px rgb(28 28 30 / 0.06), 0 12px 32px -8px rgb(28 28 30 / 0.18);
  --shadow-dark: 0 2px 4px rgb(0 0 0 / 0.25), 0 18px 40px -12px rgb(0 0 0 / 0.55);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #c4c4cb var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  caret-color: var(--green);
  accent-color: var(--green);
}

::selection {
  background: var(--tint);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

.page {
  width: var(--page);
  margin-inline: auto;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links .nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-weight: 550;
  transition: border-color 0.2s;
}

.nav-links .nav-cta:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.button:hover {
  background: var(--green-hover);
}

.button:active {
  transform: scale(0.97);
}

.button-on-dark {
  background: var(--green-on-dark);
  color: var(--charcoal);
}

.button-on-dark:hover {
  background: var(--green-on-dark-hover);
}

.button-on-dark:focus-visible {
  outline-color: var(--green-on-dark);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  max-width: 14ch;
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 34ch;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  text-wrap: balance;
}

.hero-copy .button {
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
}

/* The stage is laid out on a 1160 × 620 canvas; every fragment is placed in % of it. */
.stage {
  position: relative;
  aspect-ratio: 1160 / 620;
  margin-top: clamp(48px, 6vw, 80px);
}

.stage > * {
  position: absolute;
}

.photo {
  overflow: hidden;
  border-radius: var(--radius-photo);
  background-color: var(--charcoal-2);
}

.photo img,
.tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}


.photo-main {
  left: 25.5%;
  top: 0;
  width: 51%;
  aspect-ratio: 4 / 3;
  z-index: 1;
}

.photo-side {
  left: 5%;
  top: 14%;
  width: 22%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-photo) 0 0 var(--radius-photo);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.pill-ask {
  left: 1%;
  top: 7%;
  z-index: 3;
  padding: 16px 30px 16px 20px;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pill-mark {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.pill-home {
  left: 17%;
  top: 83%;
  z-index: 4;
  padding: 12px 22px;
  font-size: 18px;
  font-weight: 500;
}

.frag {
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.35;
}

.frag-title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.vote {
  left: 0;
  top: 47%;
  z-index: 3;
  width: 29%;
  padding: 16px;
}

.vote-option {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--grey);
}

.vote-option-quiet {
  margin-top: 8px;
}

.vote-name {
  font-weight: 600;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 6px;
  margin-top: 10px;
}

.answer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding-inline: 6px;
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.answer svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.answer-on {
  background: var(--green);
  color: var(--white);
}

.vote-count {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13px;
}

.programme {
  left: 38%;
  top: 66%;
  z-index: 3;
  width: 33%;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 18px 20px;
}

.prog-time {
  font-weight: 600;
}

.prog-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}

.prog-name {
  font-weight: 650;
  font-size: 17px;
}

.prog-place {
  color: var(--ink-2);
}

.prog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--tint-ink);
  font-size: 14px;
  font-weight: 650;
}

.chip svg {
  width: 12px;
  height: 12px;
}

.story {
  left: 73.5%;
  top: 22%;
  z-index: 2;
  width: 22%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  color: var(--white);
}

.story::after,
.s-fotos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(26 26 28 / 0.4) 0%, rgb(26 26 28 / 0) 22%, rgb(26 26 28 / 0) 34%, rgb(26 26 28 / 0.6) 58%, rgb(26 26 28 / 0.9) 100%);
}

.s-fotos::after {
  background: linear-gradient(180deg, rgb(26 26 28 / 0) 45%, rgb(26 26 28 / 0.85) 100%);
}

.story-bars {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.story-bars i {
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.4);
}

.story-bars i:first-child {
  background: var(--white);
}

.story-text {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-sub,
.story-date {
  font-size: 14px;
  color: rgb(255 255 255 / 0.88);
}

.story-title {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- TestFlight placeholder note ---------- */

.link-note {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
}

.hero-copy .link-note {
  margin-top: 10px;
}

.hero-copy .link-note + .hero-note {
  margin-top: 6px;
}

.band .link-note {
  margin-top: 12px;
  color: var(--on-dark-2);
  font-size: 14px;
}

/* ---------- Warum: heading and text side by side, three facts as a quiet line of type ---------- */

.why {
  background: var(--grey);
  padding-block: clamp(72px, 9vw, 128px);
}

.why-head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  gap: 24px clamp(40px, 7vw, 112px);
}

.why-title {
  max-width: 15ch;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.why-text {
  max-width: 40ch;
  color: var(--ink-2);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.5;
  text-wrap: pretty;
}

.why-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.why-facts li {
  padding-top: 20px;
  border-top: 1px solid #cfcfd6;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* The brand's centre dot marks each fact. */
.why-facts li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Tabs section ---------- */

.how {
  padding-block: clamp(72px, 9vw, 128px);
}

.section-title {
  max-width: 16ch;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tabs {
  display: flex;
  width: fit-content;
  margin: 36px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: var(--grey);
}

.tabs button {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.tabs button:hover {
  color: var(--ink);
}

.tabs button[aria-selected="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(28 28 30 / 0.12);
}

.panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
  margin-top: clamp(48px, 6vw, 72px);
}

.panel:not([hidden]) {
  animation: panel-in 0.45s var(--ease-out);
}

.panel:focus-visible {
  outline-offset: 12px;
  border-radius: 24px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.panel-copy h3 {
  max-width: 16ch;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.panel-copy p {
  max-width: 44ch;
  margin-top: 18px;
  color: var(--ink-2);
}

.panel-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.panel-copy .button {
  margin-top: 28px;
}

/* Desktop tile: photo fills the tile, the whole app screen stands on the right,
   the floating card sits bottom-left over the photo and the tile edge.
   Card right edge (-12% + 54% = 42%) stays left of the screen (100% - 7% - 45% = 48%). */
.tile {
  position: relative;
}

.tile-clip {
  position: relative;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  border-radius: 32px;
  background: var(--tint);
}

.screen {
  position: absolute;
  right: 7%;
  top: 6%;
  width: 45%;
  border-radius: 22px;
  box-shadow: 0 2px 6px rgb(28 28 30 / 0.2), 0 24px 48px -12px rgb(28 28 30 / 0.45);
}

.float-card {
  position: absolute;
  left: -12%;
  bottom: 7%;
  z-index: 2;
  width: 54%;
  padding: 16px;
}

.float-card .answer:not(.answer-on) {
  background: var(--grey);
}

.float-line {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--grey);
  font-weight: 600;
}

.float-line .vote-count {
  margin-top: 2px;
  font-weight: 400;
}

.float-prog {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.float-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

/* ---------- Dark band: the cards "explode" from the centre ----------
   Every card is anchored at the centre of the stage. Its final spot is an offset from the
   centre (--x, --y, in container units of the stage); its start spot is a small offset
   (--x0, --y0) with a tilt (--r0) and a smaller size (--s0), so at the start all cards sit
   in one stack in the middle.
   Default (no JS, old browser, or "reduce motion"): no pin, every card in its final spot.
   With scroll-driven animations: the stage is pinned inside a tall track and the cards move
   with the scroll position (scrubbed). Without them, c6.js sets --e and --h on the stage
   while you scroll and the .band-js rules below do the same maths. */

.band {
  background: var(--charcoal);
  color: var(--on-dark);
  overflow: clip;
}

.band-stage {
  position: relative;
  height: 100svh;
  min-height: 620px;
  max-height: 1000px;
  overflow: clip;
  container-type: size;
  display: grid;
  place-items: center;
}

.headline-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  padding-inline: 32px;
  text-align: center;
}

.band h2 {
  font-size: clamp(40px, min(6.6cqw, 10.5cqh), 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Each sentence of the band headline stays on one line. */
.band h2 .keep {
  white-space: nowrap;
}

.headline-wrap p {
  margin-top: 22px;
  color: var(--on-dark-2);
  font-size: 19px;
}

.headline-wrap .button {
  margin-top: 28px;
}

.scatter {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: var(--w);
  translate: -50% -50%;
  transform: translate(var(--x), var(--y));
  --s0: 0.55;
}

.frag-dark {
  background: var(--charcoal-2);
  color: var(--on-dark);
  box-shadow: var(--shadow-dark);
  padding: 16px;
}

.frag-dark .prog-place,
.frag-dark .prog-icon,
.frag-dark .prog-time {
  color: var(--on-dark-2);
}

.frag-dark .answer {
  background: var(--charcoal-3);
  color: var(--on-dark);
}

.frag-dark .answer-on {
  background: var(--green-on-dark);
  color: var(--charcoal);
}

.band .photo {
  box-shadow: var(--shadow-dark);
  border-radius: 22px;
}

/* Final spot (--x, --y) and start in the stack (--x0, --y0, --r0). The order in the stack
   follows the z-index: the last card on top. */
.s-plates { --w: 170px; --x: -40cqw; --y: -24cqh; --x0: -50px; --y0: -34px; --r0: -7deg; aspect-ratio: 3 / 4; z-index: 3; }
.s-vote   { --w: 300px; --x: -17cqw; --y: -37cqh; --x0: 14px;  --y0: -64px; --r0: 4deg; z-index: 4; }
.s-bread  { --w: 250px; --x: 36cqw;  --y: -29cqh; --x0: 64px;  --y0: -22px; --r0: 6deg; aspect-ratio: 4 / 3; z-index: 2; }
.s-come   { --w: 230px; --x: -37cqw; --y: 9cqh;   --x0: -74px; --y0: 22px;  --r0: -3deg; z-index: 6; }
.s-photos { --w: 250px; --x: 38cqw;  --y: 10cqh;  --x0: 70px;  --y0: 8px;   --r0: 3deg; z-index: 7; }
.s-wine   { --w: 150px; --x: -27cqw; --y: 34cqh;  --x0: -34px; --y0: 52px;  --r0: -5deg; aspect-ratio: 3 / 4; z-index: 2; }
.s-bar    { --w: 230px; --x: 5cqw;   --y: 39cqh;  --x0: 0px;   --y0: 70px;  --r0: 2deg; z-index: 8; }
.s-fotos  { --w: 180px; --x: 28cqw;  --y: 31cqh;  --x0: 40px;  --y0: 46px;  --r0: 8deg; aspect-ratio: 3 / 4; z-index: 5; }

.fotos-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.fotos-label span {
  font-weight: 500;
  font-size: 17px;
  color: rgb(255 255 255 / 0.85);
}

@keyframes band-cards-out {
  from { transform: translate(var(--x0), var(--y0)) scale(var(--s0)) rotate(var(--r0)); }
  to { transform: translate(var(--x), var(--y)) scale(1) rotate(0deg); }
}

/* Site build: the headline only sharpens (no fade), so its text and button keep full contrast. */
@keyframes band-headline-in {
  from { filter: blur(8px); }
  to { filter: blur(0); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Modern browsers: the browser itself ties the animation to the scroll position. */
  @supports (animation-timeline: view()) {
    .band-track {
      height: var(--track, 280svh);
      view-timeline-name: --band;
    }

    .band-stage {
      position: sticky;
      top: 0;
    }

    /* "contain" = the time the stage is pinned. Cards finish at 80 %, then a short rest. */
    .scatter {
      animation: band-cards-out cubic-bezier(0.45, 0, 0.2, 1) both;
      animation-timeline: --band;
      animation-range: contain 0% contain 80%;
    }

    .headline-wrap {
      animation: band-headline-in linear both;
      animation-timeline: --band;
      animation-range: contain 15% contain 70%;
    }
  }

  /* Fallback (Safari before 26): c6.js writes --e (cards, 0 to 1, eased) and --h (headline). */
  .band-js .band-track {
    height: var(--track, 280svh);
  }

  .band-js .band-stage {
    position: sticky;
    top: 0;
  }

  .band-js .scatter {
    transform:
      translate(calc(var(--x0) + (var(--x) - var(--x0)) * var(--e, 1)), calc(var(--y0) + (var(--y) - var(--y0)) * var(--e, 1)))
      scale(calc(var(--s0) + (1 - var(--s0)) * var(--e, 1)))
      rotate(calc(var(--r0) * (1 - var(--e, 1))));
  }

  .band-js .headline-wrap {
    filter: blur(calc((1 - var(--h, 1)) * 8px));
  }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--charcoal);
  color: var(--on-dark-2);
  border-top: 1px solid var(--charcoal-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
  font-size: 15px;
}

.footer .brand {
  color: var(--on-dark);
}

.footer-links {
  display: flex;
  gap: 10px;
}

.footer a:focus-visible {
  outline-color: var(--green-on-dark);
}

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
  .vote {
    width: 32%;
  }

  .answer {
    font-size: 13px;
  }

}

/* ---------- Mobile: fragments re-stack in story order ---------- */

@media (max-width: 760px) {
  :root {
    --page: calc(100% - 32px);
    --radius-photo: 24px;
  }

  body {
    font-size: 17px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .why-head {
    grid-template-columns: 1fr;
  }

  .why-facts {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .why-facts li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-top: 22px;
  }

  .why-facts li::before {
    flex: none;
    margin-bottom: 0;
    translate: 0 -2px;
  }

  .stage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stage > * {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
  }

  .pill-ask {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: -30px;
    margin-left: 8px;
    padding: 12px 22px 12px 16px;
    font-size: 21px;
  }

  .vote {
    grid-column: 1 / -1;
    order: 1;
    padding-top: 34px;
  }

  .pill-home {
    grid-column: 1 / -1;
    order: 2;
    justify-self: end;
    margin-top: -30px;
    margin-right: 8px;
    font-size: 16px;
    padding: 10px 18px;
  }

  .photo-main {
    grid-column: 1 / -1;
    order: 3;
    margin-top: 4px;
  }

  .programme {
    grid-column: 1 / -1;
    order: 4;
    margin: -64px 12px 0;
  }

  .photo-side {
    order: 5;
    margin-top: 4px;
    border-radius: var(--radius-card);
  }

  .story {
    order: 6;
    margin-top: 4px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border-radius: 24px;
  }

  .tabs button {
    padding-inline: 8px;
    font-size: 15px;
  }

  .panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Mobile tile: the card leaves the tile and sits below it, overlapping only the
     empty photo strip under the screen. */
  .tile-clip {
    aspect-ratio: 1 / 1.48;
    border-radius: 28px;
  }

  .screen {
    right: 5%;
    top: 4%;
    width: 60%;
    border-radius: 18px;
  }

  .float-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -28px 12px 0;
  }

  .panel-copy .button {
    margin-top: 24px;
  }

  /* Band on a phone: a shorter pin, four cards, vectors up and down instead of sideways. */
  .band {
    --track: 200svh;
  }

  .headline-wrap {
    padding-inline: 20px;
  }

  .headline-wrap p {
    font-size: 17px;
  }

  .s-vote,
  .s-bread,
  .s-photos,
  .s-wine {
    display: none;
  }

  .s-plates { --w: 128px; --x: -24cqw; --y: -33cqh; --x0: -30px; --y0: -40px; }
  .s-come   { --w: 200px; --x: 19cqw;  --y: -26cqh; --x0: 26px;  --y0: -20px; }
  .s-bar    { --w: 196px; --x: -19cqw; --y: 29cqh;  --x0: -24px; --y0: 30px; }
  .s-fotos  { --w: 128px; --x: 25cqw;  --y: 33cqh;  --x0: 30px;  --y0: 44px; }

  .s-come .prog-place {
    font-size: 15px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .panel:not([hidden]) {
    animation: none;
  }

  .button,
  .tabs button {
    transition: none;
  }
}

/* Hero photo: frame the people at the table, not the kitchen shelves above them. */
.photo-main img { object-position: 50% 78%; }

/* ---------- Legal pages (Datenschutz, Impressum): one calm column of text ---------- */

.legal {
  padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 120px);
}

.legal-text {
  max-width: 68ch;
}

.legal h1 {
  max-width: none;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.legal-meta {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
}

.legal h2 {
  margin-top: 48px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 650;
}

.legal p,
.legal ul {
  margin-top: 14px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 10px;
}

.legal li::marker {
  color: var(--green);
}

.legal strong {
  font-weight: 600;
}

.legal a {
  color: var(--green);
  text-decoration-thickness: 1px;
}

.legal a:hover {
  color: var(--green-hover);
}

.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--grey);
}

.legal-back {
  display: inline-block;
  margin-top: 56px;
  font-size: 16px;
}
