/*
  Stylesheet der Website (ADR 0031). Die Farben sind die Light-Tokens der App aus global.css,
  hier gespiegelt, weil 11ty kein NativeWind kennt. Bei einer Token-Änderung dort hier mitziehen.
  Schriften selbst gehostet (eleventy.config.js), keine Anfrage an Google.
*/

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;

  --background: #fef0d2;
  --foreground: #4a3a22;
  --primary: #432700;
  --primary-foreground: #fffdf6;
  --card: #fffdf6;
  --secondary: #f5e7c3;
  --border: #ebdcb0;
  --input: #d5b877;
  --secondary-foreground: #5a3a12;
  --muted-foreground: #856537;
  --accent: #ebdcb0;
  --success: #e3efdf;
  --success-foreground: #2c744a;
  --like: #0e9247;
  --rating-1: #b23a25;
  --rating-2: #a85e12;
  --rating-3: #6e7a26;
  --rating-4: #4c7a2c;
  --rating-5: #2c744a;
  --camera-top: #3a3128;
  --camera-mid: #241c13;
  --camera-bottom: #15100a;
  --flash: #ffe08a;

  --shadow-card: 0 2px 6px rgb(67 39 0 / 0.05), 0 18px 40px -24px rgb(67 39 0 / 0.35);
  --shadow-sheet: 0 -12px 40px rgb(0 0 0 / 0.25);
  --radius-card: 18px;
  --radius-field: 14px;
  --radius-thumb: 10px;
  --radius-sheet: 26px;
  --header-h: 5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 68ch;
  --radius: 0.75rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--input) var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--primary);
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

[hidden] {
  display: none !important;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
  text-wrap: balance;
  /* Überschriften werden nicht mit Bindestrich getrennt. Bricht ein langes Kompositum auf einem
     sehr schmalen Gerät trotzdem nicht in die Zeile, bricht es hart statt über den Rand zu laufen. */
  overflow-wrap: break-word;
  hyphens: manual;
}

/* Sprunglink: unsichtbar bis zum Fokus per Tastatur. */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Kopf */

.site-header {
  padding: 1.25rem var(--gutter);
}

.site-logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.625rem;
  line-height: 0;
}

/* Der Würfel mit Mütze aus dem Splash der App (assets/images/splash-icon.png, auf den Inhalt
   zugeschnitten). Er steht auf derselben Grundlinie wie der Schriftzug und ragt darüber hinaus. */
.site-logo-cube {
  height: 2.75rem;
  width: auto;
}

.site-logo-wordmark {
  height: 1.75rem;
  width: auto;
  margin-bottom: 0.125rem;
}

/* Inhalt */

.site-main {
  flex: 1;
  width: 100%;
  padding: 1.5rem var(--gutter) 4rem;
}

/* Fuß */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 700;
}

/* Rechtstexte */

.legal {
  max-width: var(--measure);
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  margin: 1rem 0 2rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin: 2.75rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 1.75rem 0 0.5rem;
}

.legal p {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  overflow-wrap: break-word;
}

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

.legal-stand {
  margin-top: 3rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* Einladung */

.invite {
  max-width: 30rem;
  margin: 2rem auto 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
}

.invite h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  margin: 0 0 1rem;
}

.invite p {
  margin: 0 0 1rem;
}

.invite .actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.invite .hint {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.button {
  display: block;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}

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

.button-secondary {
  background: transparent;
  color: var(--primary);
}

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

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------------------------
   Landing-Page (website/index.njk). Die Seite erzählt einen Scan nach; das Kamera-Panel ist der
   einzige dunkle Ort, alles andere steht auf Creme.
--------------------------------------------------------------------------------------------- */

.page-home .site-header {
  position: relative;
  z-index: 2;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-block: 0;
}

.page-home .site-main {
  padding: 0;
}

/* Würfel, wie TofuCubeRating sie zeigt: voll, leer (entfärbt) oder anteilig gefüllt. */

.cubes {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.cube {
  display: block;
  width: var(--cube);
  height: var(--cube);
  max-width: none;
}

.cube-empty {
  filter: grayscale(1);
  opacity: 0.28;
}

.cube-partial {
  position: relative;
  display: block;
  width: var(--cube);
  height: var(--cube);
}

.cube-partial-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--fill) * var(--cube));
  overflow: hidden;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.5;
}

.rating-1 {
  background: var(--rating-1);
}
.rating-2 {
  background: var(--rating-2);
}
.rating-3 {
  background: var(--rating-3);
}
.rating-4 {
  background: var(--rating-4);
}
.rating-5 {
  background: var(--rating-5);
}

.vegan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--success);
  color: var(--success-foreground);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.5;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.example-tag {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  border: 1px solid rgb(255 253 246 / 0.35);
  color: var(--primary-foreground);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
}

.example-tag-light {
  border-color: var(--input);
  background: var(--card);
  color: var(--secondary-foreground);
}

/* Store-Slot: aktiv ein gefüllter Button, solange es keinen öffentlichen Eintrag gibt ein
   gestrichelter Platzhalter mit „Bald". */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-field);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.store-button-soon {
  border-style: dashed;
  border-color: var(--input);
  background: transparent;
  color: var(--secondary-foreground);
  cursor: default;
}

.store-soon {
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.store-note {
  margin: 0.875rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  padding: 1.5rem var(--gutter) 3rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 11ch;
  font-size: clamp(2.75rem, 1.5rem + 4.2vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero-subline {
  margin: 0 0 2rem;
  max-width: 30ch;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.5;
}

.scanner {
  position: relative;
  margin: 0;
  min-height: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.5rem var(--gutter) 15rem;
  overflow: hidden;
  border-radius: 2rem 2rem 0 0;
  background: linear-gradient(
    180deg,
    var(--camera-top),
    var(--camera-mid) 55%,
    var(--camera-bottom)
  );
  color: var(--primary-foreground);
}

.scanner > .example-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
}

.viewfinder {
  position: relative;
  width: min(25rem, 100%);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.corner {
  position: absolute;
  width: 3.25rem;
  height: 3.25rem;
  border: 5px solid var(--flash);
}

.corner-tl {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 1.125rem;
}
.corner-tr {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 1.125rem;
}
.corner-bl {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 1.125rem;
}
.corner-br {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 1.125rem;
}

/* Das Etikett mit dem Strichcode, wie es auf einer Packung klebt. */
.barcode {
  width: auto;
  padding: 0.875rem 1rem 0.5rem;
  border-radius: 6px;
  background: var(--card);
  color: var(--camera-bottom);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.6);
}

/* Genau 2 px je Modul (113 Module inklusive Ruhezonen): Krumme Pixelbreiten machten die Striche
   ungleich dick, und ein Strichcode, der unsauber aussieht, verspricht das Gegenteil. */
.ean13 {
  display: block;
  width: 226px;
  height: 5.5rem;
  margin: 0 auto;
}

.barcode-digits {
  display: block;
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

.scanline {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 3px;
  border-radius: 3px;
  /* Zu den Enden hin auslaufend, wie das Licht eines Scanners, statt eines Leuchtschattens. */
  background: linear-gradient(90deg, transparent, var(--flash) 18%, var(--flash) 82%, transparent);
  /* Bleibt nach dem Scan über dem Code stehen, wie im Sucher der App. */
  opacity: 0.85;
}

.scan-status {
  display: grid;
  margin: 1.5rem 0 0;
  font-weight: 700;
  color: var(--flash);
  text-align: center;
}

.scan-status > span {
  grid-area: 1 / 1;
}

.scan-status-hold {
  opacity: 0;
  color: var(--primary-foreground);
}

.sheet {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  padding: 0.625rem 1.25rem 1.5rem;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-sheet);
}

.sheet-handle {
  display: block;
  width: 2.5rem;
  height: 4px;
  margin: 0 auto 0.875rem;
  border-radius: 4px;
  background: var(--input);
}

.sheet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

/* Ø der Crew aus dem Scan heraus: die Würfel-Wertung schon im ersten Bildschirm. */
.sheet-crew {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-basis: 100%;
}

.sheet-crew-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.sheet-crew-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sheet-crew-rating strong {
  font-size: 1.25rem;
  color: var(--primary);
}

.sheet-thumb {
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  border-radius: var(--radius-thumb);
  object-fit: cover;
}

.sheet-text {
  min-width: 0;
}

.sheet-text p {
  margin: 0;
}

.sheet-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
}

.sheet-brand {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.sheet-text .sheet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.avatar-stack {
  display: inline-flex;
}

.avatar.avatar-mini {
  width: 1.375rem;
  height: 1.375rem;
  border: 2px solid var(--background);
  font-size: 0.6875rem;
}

.avatar-mini + .avatar-mini {
  margin-left: -0.375rem;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: min(calc(100svh - var(--header-h)), 54rem);
  }

  .hero-copy {
    align-self: center;
    padding: 2rem clamp(2rem, 4vw, 4rem) 5rem var(--gutter);
  }

  .scanner {
    margin-top: calc(-1 * var(--header-h));
    min-height: 0;
    justify-content: center;
    padding: 4rem 3rem 12rem;
    border-radius: 0 0 0 2.5rem;
  }

  .sheet {
    left: 2.5rem;
    right: 2.5rem;
    padding-inline: 1.75rem;
  }

  .sheet-row {
    flex-wrap: nowrap;
  }

  .sheet-crew {
    flex-basis: auto;
    margin-left: auto;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
  }

  .viewfinder {
    width: min(30rem, 100%);
  }

  /* Größer, aber wieder in ganzen Pixeln: 3 px je Modul. */
  .ean13 {
    width: 339px;
    height: 7rem;
  }
}

@media (max-width: 599px) {
  .store-buttons li {
    flex: 1 1 100%;
  }

  .store-button {
    width: 100%;
    justify-content: space-between;
  }
}

/* Die Szene beim Laden: Scanlinie läuft über den Code, Ziffern rasten ein, Rahmen färbt sich,
   Sheet fährt hoch. Jede Animation läuft AUS dem Startzustand IN den Ruhezustand, der ohne
   Animation ohnehin gilt: Bei reduzierter Bewegung steht der erkannte Scan einfach still da. */

@media (prefers-reduced-motion: no-preference) {
  .scanline {
    animation: scan-sweep 1.25s cubic-bezier(0.45, 0, 0.55, 1) 0.4s backwards;
  }

  .barcode-digits {
    animation: digits-lock 0.35s ease-out 1.55s backwards;
  }

  .corner {
    animation: corner-lock 0.45s var(--ease-out) 1.55s backwards;
  }

  .scan-status-hold {
    animation: status-out 0.25s ease-out 1.5s backwards;
  }

  .scan-status-found {
    animation: status-in 0.35s var(--ease-out) 1.6s backwards;
  }

  .sheet {
    animation: sheet-up 0.7s var(--ease-out) 1.85s backwards;
  }
}

@keyframes scan-sweep {
  0% {
    top: 12%;
    opacity: 1;
  }
  50% {
    top: 84%;
    opacity: 1;
  }
  85% {
    top: 46%;
    opacity: 1;
  }
  100% {
    top: 50%;
    opacity: 0.85;
  }
}

@keyframes digits-lock {
  from {
    opacity: 0.2;
    filter: blur(3px);
  }
}

@keyframes corner-lock {
  from {
    border-color: rgb(255 253 246 / 0.7);
    transform: scale(1.12);
  }
}

@keyframes status-out {
  from {
    opacity: 1;
  }
}

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

@keyframes sheet-up {
  from {
    transform: translateY(110%);
  }
}

/* Abschnitte */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) 0;
}

.feature h2,
.crew h2,
.trust h2,
.close h2 {
  margin: 0 0 1.25rem;
  max-width: 14ch;
  font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem);
  letter-spacing: -0.01em;
}

.feature-text p {
  max-width: 34rem;
  margin: 0 0 1rem;
  font-size: 1.1875rem;
}

.feature-text .feature-aside {
  font-size: 1rem;
  color: var(--muted-foreground);
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .feature-scan .product-card {
    order: -1;
  }
}

/* Produktblatt */

.product-card {
  position: relative;
  max-width: 32rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.product-card > .example-tag,
.rate-card > .example-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.product-name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--primary);
}

.product-brand {
  margin: 0.125rem 0 0;
  color: var(--muted-foreground);
}

.product-brand + .vegan-pill {
  margin-top: 0.875rem;
}

.product-facts {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.product-facts dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.product-facts dd {
  margin: 0.125rem 0 1rem;
}

.product-facts dd:last-child {
  margin-bottom: 0;
}

.product-average {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.product-average strong {
  font-size: 1.25rem;
  color: var(--primary);
}

.product-average span:last-child {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Werten */

.rate-card {
  position: relative;
  max-width: 32rem;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.rate-label {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.rate-input {
  display: flex;
  gap: 0.375rem;
}

.rate-cube {
  position: relative;
  /* Fünf Würfel müssen auch auf 360 px nebeneinander passen; 48 px bleiben das Minimum. */
  width: clamp(3rem, 14vw, 4rem);
  height: clamp(3rem, 14vw, 4rem);
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
}

.rate-cube img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 120ms ease-out,
    transform 260ms var(--ease-out);
}

/* Ein offener Würfel ist ein gestrichelter Platz wie in der App, kein blasses Objekt. */
.rate-cube::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed var(--input);
  border-radius: var(--radius-thumb);
  transition: border-color 150ms ease-out;
}

.rate-cube:hover::after {
  border-color: var(--primary);
}

.rate-cube.is-filled img {
  opacity: 1;
  transform: none;
}

.rate-cube.is-filled::after {
  opacity: 0;
}

/* Wie im Bewerten-Sheet: „4 von 5:" kräftig in der Farbe der Stufe, der Erklärtext gedämpft. */
.rate-value {
  min-height: 3em;
  margin: 0.75rem 0 1.5rem;
  color: var(--muted-foreground);
}

.rate-value strong {
  margin-right: 0.25rem;
  font-weight: 700;
  font-size: 1.0625rem;
}

.rating-text-1 {
  color: var(--rating-1);
}
.rating-text-2 {
  color: var(--rating-2);
}
.rating-text-3 {
  color: var(--rating-3);
}
.rating-text-4 {
  color: var(--rating-4);
}
.rating-text-5 {
  color: var(--rating-5);
}

.rate-note {
  padding: 1rem 1.125rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-field);
  background: var(--background);
}

.rate-note p {
  margin: 0;
}

.rate-note-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.rate-private {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.rate-private strong {
  color: var(--foreground);
}

.switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  flex: none;
  border-radius: 999px;
  background: var(--input);
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--card);
}

/* Crew */

.crew {
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  background: var(--secondary);
}

.crew-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  max-width: 76rem;
  margin: 0 auto;
}

.feed {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.feed-head .example-tag {
  margin-left: auto;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 50%;
  background: var(--input);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
}

.avatar-2 {
  background: var(--accent);
}

.avatar-3 {
  background: var(--secondary);
}

.feed-who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.feed-who span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.feed-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.875rem 0;
  padding: 0.625rem;
  border-radius: var(--radius-field);
  background: var(--background);
}

.feed-thumb {
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: var(--radius-thumb);
  object-fit: cover;
}

.feed-thumb-placeholder {
  display: grid;
  place-items: center;
  background: var(--secondary);
}

.feed-product-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.feed-product-text span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.feed-product .rating-pill {
  margin-left: auto;
}

.feed-note {
  margin: 0 0 0.75rem;
}

.feed-actions {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.feed-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.feed-actions .icon {
  font-size: 1.25rem;
}

.feed-like .icon {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.feed-like.is-liked .icon {
  color: var(--like);
  opacity: 1;
}

.feed-comments {
  margin: 0.875rem 0 0;
  padding: 0.875rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 0.9375rem;
}

.feed-comments li + li {
  margin-top: 0.625rem;
}

.feed-comment-text {
  display: block;
}

@media (min-width: 960px) {
  .crew-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
  }
}

/* Vertrauen: eine Liste mit Gewicht, keine Kacheln. */

.trust {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) 0;
}

.trust-lead {
  max-width: 34rem;
  margin: 0;
  font-size: 1.125rem;
}

.trust-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--input);
}

.trust-list li {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--input);
  font-size: 1.125rem;
}

.trust-list strong {
  text-wrap: balance;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2;
  color: var(--primary);
}

@media (min-width: 760px) {
  .trust-list li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 2rem;
    align-items: baseline;
  }
}

/* Abschluss */

.close {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(5rem, 9vw, 8rem);
  text-align: center;
}

.close-cube {
  display: block;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  transform: rotate(-6deg);
}

.close h2 {
  margin-inline: auto;
}

.close > p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.1875rem;
}

.close .store-buttons {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .rate-cube img,
  .rate-cube::after {
    transition: none;
  }
}
