/*
 * ════════════════════════════════════════════════════════════════════════════
 *  TROEDELBOT.DE – EIN BILDSCHIRM
 * ════════════════════════════════════════════════════════════════════════════
 *
 * Len wollte erst einmal eine schlichte Seite: genau der Bildschirm, ohne
 * Scrollen. Mittig das Logo, ein Satz, was die App tut, die Knöpfe zu den
 * Stores (Google Play noch ausgegraut). Dahinter ein Video von Higgsfield:
 * Gebrauchtes schwebt in unserem dunklen Grün. Bewegt wird mit GSAP
 * (seite.js), Schrift und Bibliothek liegen auf unserem Server.
 *
 * Die lange Fassung mit allen Abschnitten liegt in ../website-lang-entwurf.
 */

:root {
  --gruen: #1aa28f;
  --gruen-stark: #12876e;
  --gruen-hell: #37cdb2;
  --tief: #041f1a;
  --weiss: #ffffff;
  --weiss-weich: rgba(255, 255, 255, 0.78);
  --weiss-leise: rgba(255, 255, 255, 0.56);
  --glas: rgba(255, 255, 255, 0.1);
  --glas-rand: rgba(255, 255, 255, 0.2);
  color-scheme: dark;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--tief);
  color: var(--weiss);
  font-family: 'Google Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ── Bühne ───────────────────────────────────────────────────────────────── */

.buehne {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--tief);
}

/*
  Schwebende Trödelschätze: Kamera, Sneaker, Lampe, Kopfhörer, Platte - genau
  das, was man mit der App verkauft. Das Standbild steht sofort da, das Video
  blendet darüber, sobald es läuft (seite.js). Beides wird nie vergrößert
  oder gezoomt, nur bildschirmfüllend zugeschnitten - deshalb bleibt es
  scharf. Im Hochformat eine eigene Fassung, bei der die Mitte frei bleibt.
*/
.hg-bild {
  position: absolute;
  inset: 0;
  background: url('bilder/schweben-breit.webp') center / cover no-repeat;
}

.hg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hg-video.laeuft {
  opacity: 1;
}

@media (max-aspect-ratio: 1/1) {
  .hg-bild {
    background-image: url('bilder/schweben-hoch.webp');
  }

  /* Im Hochformat steht der Text dichter an den Dingen oben und unten. */
  .schleier {
    background:
      radial-gradient(ellipse 95% 34% at 50% 50%, rgba(3, 26, 22, 0.62) 0%, rgba(3, 26, 22, 0.28) 60%, rgba(3, 26, 22, 0) 100%),
      linear-gradient(180deg, rgba(3, 26, 22, 0) 80%, rgba(3, 26, 22, 0.7) 100%);
  }
}

/* Ein Hauch Dunkel hinter dem Text und am Fuß - die Mitte des Bildes ist ohnehin leer. */
.schleier {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 44% 42% at 50% 50%, rgba(3, 26, 22, 0.55) 0%, rgba(3, 26, 22, 0.2) 60%, rgba(3, 26, 22, 0) 100%),
    linear-gradient(180deg, rgba(3, 26, 22, 0) 78%, rgba(3, 26, 22, 0.65) 100%);
}

/* ── Mitte ───────────────────────────────────────────────────────────────── */

.mitte {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 12px;
}

.logo {
  width: min(460px, 78vw);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.35));
}

.leitsatz {
  margin: 34px 0 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 900px;
}

.leitsatz .w {
  display: inline-block;
}

.leitsatz .hell {
  background: linear-gradient(90deg, #8ff0dc, #37cdb2 30%, #c6f7ec 50%, #37cdb2 70%, #8ff0dc);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.beschreibung {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  color: var(--weiss-weich);
}

/* ── Store-Knöpfe ────────────────────────────────────────────────────────── */

.stores {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

/*
  Wie die offiziellen Abzeichen: schwarz, grauer Rand, Logo links, zwei
  Zeilen Schrift. Die Logos stammen aus Lens SVG-Dateien. Google Play bleibt
  ausgegraut, bis die App dort erscheint.
*/
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 24px 0 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1.5px solid #a6a6a6;
  text-align: left;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

a.badge:hover {
  border-color: #fff;
  box-shadow: 0 22px 50px -16px rgba(55, 205, 178, 0.55);
}

a.badge:focus-visible {
  outline: 3px solid var(--gruen-hell);
  outline-offset: 3px;
}

.badge-logo {
  flex: none;
  display: block;
}

.badge-logo.apfel {
  width: 30px;
  height: 37px;
  margin-top: -3px;
}

.badge-logo.play {
  width: 33px;
  height: 37px;
}

.badge-text small {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.badge-text small.gross {
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.badge-text b {
  display: block;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.gp-schrift {
  display: block;
  height: 25px;
  width: auto;
  margin-top: 4px;
}

/* Gedimmt wird innen: Die Deckkraft des Knopfs selbst setzt die Animation. */
.badge-aus {
  cursor: not-allowed;
  box-shadow: none;
  border-color: rgba(166, 166, 166, 0.45);
  background: rgba(0, 0, 0, 0.55);
}

/* Das Logo behält seine Farben (so wollte Len es), nur Schrift und Rand treten zurück. */
.badge-aus .badge-text {
  opacity: 0.5;
}

/* ── Fakten ──────────────────────────────────────────────────────────────── */

.fakten {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--weiss-leise);
}

.fakten li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fakten li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  margin-right: 15px;
}

.fakten li[hidden] {
  display: none;
}

.nur-schmal {
  display: none;
}

.fakten .stern {
  width: 15px;
  height: 15px;
  fill: #f5c451;
  stroke: none;
}

/* ── Fuß ─────────────────────────────────────────────────────────────────── */

.fuss {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 14px 28px calc(14px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--weiss-leise);
}

.fuss nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.fuss a:hover {
  color: #fff;
}

/* ── Startzustand für die Bewegung (nur mit JS, sonst sofort sichtbar) ───── */

.js .logo,
.js .leitsatz .w,
.js .beschreibung,
.js .badge,
.js .fakten,
.js .fuss {
  opacity: 0;
}

/* ── Größen ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* Unten mehr Luft: hebt den Block etwas an, weg von Kopfhörern und Platte. */
  .mitte {
    padding: 16px 18px 64px;
  }

  .leitsatz {
    margin-top: 20px;
  }

  .beschreibung {
    margin-top: 14px;
  }

  .stores {
    margin-top: 22px;
    gap: 10px;
  }

  .badge {
    height: 54px;
    padding: 0 16px 0 12px;
    gap: 9px;
    border-radius: 12px;
  }

  .badge-logo.apfel {
    width: 24px;
    height: 30px;
  }

  .badge-logo.play {
    width: 26px;
    height: 29px;
  }

  .badge-text small {
    font-size: 11px;
  }

  .badge-text small.gross {
    font-size: 9.5px;
  }

  .badge-text b {
    font-size: 21px;
  }

  .gp-schrift {
    height: 20px;
  }

  .fakten {
    margin-top: 18px;
    font-size: 12.5px;
    gap: 6px 16px;
  }

  .fakten li + li::before {
    margin-right: 9px;
  }

  .fuss {
    justify-content: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    font-size: 12px;
  }

  .nur-schmal {
    display: inline;
  }

  .nur-breit {
    display: none !important;
  }

  .fuss nav {
    gap: 14px;
    justify-content: center;
  }
}

/* Sehr niedrige Fenster: lieber scrollen als abschneiden. */
@media (max-height: 600px) {
  body {
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .logo,
  .js .leitsatz .w,
  .js .beschreibung,
  .js .badge,
  .js .fakten,
  .js .fuss {
    opacity: 1;
  }
}
