/* Gathery – Startseite (de und en) */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 0;
  text-align: center;
  overflow: clip;
}

.hero .lead {
  max-width: 640px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-3);
}

.hero-visual {
  position: relative;
  height: 660px;
  margin-top: 56px;
}

.glow {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(760px, 120vw);
  aspect-ratio: 1.4;
  translate: -50% 0;
  background: var(--brand);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}

/* ---------- Phone-Mockup ---------- */
.phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 300px;
  aspect-ratio: 300 / 620;
  translate: -50% 0;
  padding: 11px;
  border-radius: 54px;
  background: #0b0b0c;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3c,
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 40px 80px -20px rgba(30, 10, 60, 0.45);
  z-index: 2;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-align: left;
  isolation: isolate;
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 27px;
  translate: -50% 0;
  border-radius: 20px;
  background: #000;
  z-index: 5;
}

.statusbar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 15px 26px 0 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  z-index: 4;
}

.statusbar span:last-child {
  display: flex;
  gap: 4px;
  align-items: center;
}

.statusbar i {
  display: block;
  width: 22px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  position: relative;
}

.statusbar i::after {
  content: "";
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  background: #fff;
  border-radius: 1px;
}

.scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 196, 92, 0.95) 0 5%, transparent 9%),
    radial-gradient(circle at 74% 16%, rgba(255, 112, 168, 0.9) 0 6%, transparent 10%),
    radial-gradient(circle at 56% 34%, rgba(130, 120, 255, 0.85) 0 4%, transparent 8%),
    radial-gradient(circle at 30% 48%, rgba(255, 140, 90, 0.7) 0 7%, transparent 12%),
    radial-gradient(circle at 86% 46%, rgba(70, 220, 200, 0.75) 0 5%, transparent 9%),
    radial-gradient(circle at 12% 70%, rgba(190, 90, 255, 0.6) 0 8%, transparent 13%),
    radial-gradient(ellipse at 50% 110%, rgba(255, 120, 80, 0.55), transparent 60%),
    linear-gradient(170deg, #2a1240 0%, #160b2c 45%, #2b1410 100%);
  filter: blur(5px) saturate(120%);
  scale: 1.08;
}

.scene.alt-1 {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 210, 120, 0.95) 0 9%, transparent 15%),
    radial-gradient(circle at 25% 60%, rgba(255, 90, 140, 0.8) 0 10%, transparent 18%),
    radial-gradient(circle at 80% 80%, rgba(90, 140, 255, 0.7) 0 8%, transparent 14%),
    linear-gradient(160deg, #3b1530, #120a24 70%);
}

.scene.alt-2 {
  background:
    radial-gradient(circle at 30% 30%, rgba(80, 230, 200, 0.9) 0 9%, transparent 16%),
    radial-gradient(circle at 75% 55%, rgba(170, 100, 255, 0.85) 0 11%, transparent 19%),
    radial-gradient(circle at 40% 85%, rgba(255, 180, 80, 0.7) 0 8%, transparent 14%),
    linear-gradient(200deg, #0d2233, #130b2a 70%);
}

.scene.alt-3 {
  background:
    radial-gradient(circle at 55% 40%, rgba(255, 120, 170, 0.95) 0 12%, transparent 20%),
    radial-gradient(circle at 20% 20%, rgba(255, 220, 140, 0.8) 0 7%, transparent 12%),
    radial-gradient(circle at 85% 85%, rgba(120, 160, 255, 0.8) 0 9%, transparent 16%),
    linear-gradient(140deg, #2a0f1f, #0f0c26 70%);
}

.cam-top {
  position: absolute;
  top: 52px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chip img {
  width: 19px;
  height: 19px;
  border-radius: 6px;
}

.chip-round {
  width: 28px;
  padding: 0;
  justify-content: center;
}

.chip-round svg {
  width: 15px;
  height: 15px;
}

.challenge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 122px;
  padding: 13px 15px 14px;
  border-radius: 20px;
  background: rgba(30, 30, 34, 0.45);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
  z-index: 3;
}

.challenge small {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.challenge p {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cam-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 108px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 26px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 3;
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}

.thumb .scene {
  filter: none;
}

.shutter {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #fff;
  padding: 4px;
}

.shutter::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
}

.cam-bar .chip-round {
  justify-self: end;
  width: 40px;
  height: 40px;
}

.cam-bar .chip-round svg {
  width: 19px;
  height: 19px;
}

/* ---------- Polaroids ---------- */
.polaroid {
  position: absolute;
  width: 200px;
  padding: 10px 10px 0;
  border-radius: 6px;
  background: #fff;
  color: #3a3a3c;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 24px 48px -12px rgba(20, 10, 40, 0.35);
  z-index: 1;
}

.polaroid .photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
}

.polaroid .photo .scene {
  filter: blur(2px) saturate(120%);
}

.polaroid figcaption {
  padding: 10px 2px 12px;
  font-size: 13px;
  font-style: italic;
  letter-spacing: -0.01em;
  text-align: left;
}

.p1 { left: calc(50% - 400px); top: 70px; rotate: -8deg; }
.p2 { left: calc(50% + 190px); top: 40px; rotate: 6deg; }
.p3 { left: calc(50% + 230px); top: 330px; rotate: -4deg; width: 170px; }
.p4 { left: calc(50% - 380px); top: 360px; rotate: 5deg; width: 170px; }

@media (max-width: 820px) {
  .hero-visual { height: 580px; }
  .phone { width: 260px; border-radius: 48px; padding: 10px; }
  .screen { border-radius: 38px; }
  .polaroid { width: 150px; padding: 7px 7px 0; }
  .polaroid figcaption { font-size: 11px; padding: 7px 1px 9px; }
  .p1 { left: calc(50% - 250px); top: 50px; }
  .p2 { left: calc(50% + 110px); top: 30px; }
  .p3 { left: calc(50% + 120px); top: 300px; width: 140px; }
  .p4 { left: calc(50% - 255px); top: 320px; width: 140px; }
  .challenge { bottom: 108px; }
  .challenge p { font-size: 14px; }
  .cam-bar { height: 96px; padding-inline: 20px; }
  .shutter { width: 62px; height: 62px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 48px; }
  .hero-visual { height: 580px; margin-top: 44px; }
  .p1 { left: calc(50% - 200px); }
  .p2 { left: calc(50% + 80px); }
  .p3 { left: calc(50% + 90px); }
  .p4 { left: calc(50% - 210px); }
}

/* ---------- Abschnitte ---------- */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 600px) {
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 40px; }
}

/* Schritte */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 30px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-num {
  margin: 28px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.47;
  color: var(--text-2);
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 36px;
  border-radius: 32px;
  background: var(--bg-alt);
  overflow: hidden;
}

.tile h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tile p {
  margin: 12px 0 0;
  max-width: 440px;
  font-size: 17px;
  color: var(--text-2);
  text-wrap: pretty;
}

.tile .kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }

.tile-visual {
  margin-top: auto;
  padding-top: 32px;
}

@media (max-width: 900px) {
  .span-4, .span-3 { grid-column: span 6; }
  .span-2 { grid-column: span 3; }
}

@media (max-width: 600px) {
  .bento { gap: 12px; }
  .span-2 { grid-column: span 6; }
  .bento .tile { min-height: 0; padding: 28px 26px; border-radius: 28px; }
  .stack { height: 176px; }
}

/* QR-Kachel */
.tile-qr {
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.tile-qr .copy { flex: 1; }

.qr-card {
  flex: none;
  width: 220px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 20px 40px -12px rgba(30, 10, 60, 0.25);
  rotate: 3deg;
}

.qr-card svg {
  width: 100%;
  height: auto;
}

.qr-card span {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

@media (max-width: 700px) {
  .tile-qr { flex-direction: column; align-items: flex-start; gap: 32px; }
  .qr-card { width: 190px; align-self: center; }
}

/* Aufgaben-Stapel */
.stack {
  position: relative;
  height: 150px;
}

.task {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition-property: translate, scale, opacity;
  transition-duration: 700ms;
  transition-timing-function: var(--ease-out);
  transform-origin: 50% 0;
  opacity: 0;
  translate: 0 48px;
  scale: 0.86;
}

.task > * {
  transition: opacity 300ms ease 250ms;
}

.task:not([data-pos="0"]) > * {
  opacity: 0;
  transition-duration: 120ms;
  transition-delay: 0ms;
}

.task .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.task .dot svg { width: 17px; height: 17px; }

.task[data-pos="0"] { opacity: 1; translate: 0 0; scale: 1; z-index: 3; }
.task[data-pos="1"] { opacity: 0.75; translate: 0 16px; scale: 0.95; z-index: 2; }
.task[data-pos="2"] { opacity: 0.45; translate: 0 32px; scale: 0.9; z-index: 1; }
.task[data-pos="out"] { opacity: 0; translate: 0 -24px; scale: 1; z-index: 4; transition-duration: 400ms; }

/* Enthüllen-Kachel */
.timeline {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0;
}

.bar {
  position: relative;
  height: 8px;
  margin: 10px 0 22px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 72%;
  border-radius: inherit;
  background: var(--brand);
}

.locked {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.locked div {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

.locked .scene {
  filter: blur(10px) saturate(130%);
  scale: 1.3;
}

.locked-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.locked-label svg { width: 16px; height: 16px; flex: none; }

/* Kleine Kacheln */
.tile-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--accent);
}

.tile-icon svg { width: 28px; height: 28px; }

.tile-small { min-height: 300px; }

.tile .big-number {
  margin: auto 0 0;
  padding-top: 24px;
  font-size: clamp(64px, 9vw, 104px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: transparent;
}

.tile .big-number + p { margin-top: 6px; }

/* Anlässe */
.occasions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
}

.occasions li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 17px;
  font-weight: 500;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 200ms var(--ease-out), translate 200ms var(--ease-out);
}

.faq details[open] summary::after {
  rotate: 225deg;
  translate: 0 3px;
}

.faq details p {
  margin: -6px 0 24px;
  max-width: 640px;
  font-size: 17px;
  color: var(--text-2);
}

@media (max-width: 600px) {
  .faq summary { font-size: 18px; padding: 18px 0; }
}

/* Abschluss */
.final {
  padding: 140px 0 150px;
  text-align: center;
  overflow: clip;
  position: relative;
}

.final .app-icon {
  width: auto;
  height: 104px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 20px 20px rgba(60, 20, 120, 0.3));
}

.final .hero-cta { margin-top: 36px; }

/* ---------- Eintritts-Animationen ---------- */
.js .rise {
  opacity: 0;
  translate: 0 16px;
  filter: blur(4px);
  transition-property: opacity, translate, filter;
  transition-duration: 800ms;
  transition-timing-function: var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js .rise.in {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .rise { translate: none; filter: none; }
}
