/*
 * Öffentliche Website: Landingpage und Rechtstexte.
 * Gestaltung nach den Figma-Mockups W-01 (Desktop und Mobil) und W-07.
 * Ab 900 px Breite zweispaltig, darunter einspaltig.
 */

/* ---------- Grundgerüst ---------- */

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.section {
  padding-block: 96px;
}

.section--white {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.kicker {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand);
}

.title {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.accent {
  color: var(--brand);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

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

.button--small {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-s);
  font-size: 14px;
}

.button--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.button--coin {
  background: var(--coin);
  color: var(--coin-ink);
}

.button--coin:hover {
  background: #FFC933;
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo img {
  width: 44px;
  height: 40px;
}

.logo__re {
  color: var(--brand);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 560px;
  align-items: center;
  gap: 40px;
  padding-block: 72px 48px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.02;
}

.hero__visual {
  position: relative;
  height: 600px;
}

.hero__phone--front {
  position: absolute;
  left: 20px;
  top: 30px;
}

.hero__phone--back {
  position: absolute;
  left: 290px;
  top: 0;
}

.hero__socke {
  position: absolute;
  left: 210px;
  top: 410px;
  width: 150px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.store-button small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok-ink);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Geräte-Rahmen ---------- */

.phone {
  width: 248px;
  padding: 10px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow: var(--shadow-device);
}

.phone img {
  width: 228px;
  border-radius: 30px;
}

.tablet {
  padding: 12px;
  border-radius: var(--radius-l);
  background: var(--ink);
  box-shadow: var(--shadow-device);
}

.tablet img {
  border-radius: 18px;
}

/* ---------- Leiste ---------- */

.promise {
  background: var(--ink);
  color: #fff;
  padding-block: 26px;
}

.promise__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-block: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  font-weight: 800;
}

.promise__list li:last-child {
  color: var(--brand-light);
}

/* ---------- So funktioniert's ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.step__title {
  font-size: 22px;
  font-weight: 800;
}

.step__text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.step__image {
  height: 230px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg);
}

.step__image img {
  width: 100%;
}

/*
 * Ausschnitte wie in den Mockups, oben an einer sauberen Kante.
 * Prozentwerte beziehen sich auf die Breite: Versatz im Screen (px) / 393 px.
 */
.step__image--week img {
  margin-top: -10.2%;    /* ab „Meine Woche“ (40 px) */
}

.step__image--detail img {
  margin-top: -64.1%;    /* ab „So sieht's fertig aus“ (252 px) */
}

.step__image--market img {
  margin-top: -34.6%;    /* ab der ersten Reihe Belohnungen (136 px) */
}

/* ---------- Text neben Bild ---------- */

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 80px;
}

.feature--text-first {
  grid-template-columns: 1fr auto;
}

.feature__devices {
  display: flex;
  gap: 24px;
}

.feature__devices .phone:last-child {
  margin-top: 60px;
}

.feature .lead {
  margin-top: 18px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

.checklist li::before {
  content: "✓";
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 800;
  font-size: 15px;
}

.checklist strong {
  color: var(--ink);
}

/* ---------- Preise ---------- */

.pricing__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.pricing__head .lead {
  margin-top: 12px;
}

.pricing__socke {
  width: 150px;
  flex-shrink: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 2px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.plan--recommended {
  border-color: var(--brand);
}

.plan--founder {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.plan__flag {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.plan--founder .plan__flag {
  background: var(--coin);
  color: var(--coin-ink);
}

.plan__name {
  font-size: 20px;
  font-weight: 800;
}

.plan__price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.plan__price small {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.6;
}

.plan--founder .plan__price {
  color: var(--coin);
}

.plan--founder .plan__price small {
  color: #fff;
}

.plan__note {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.plan--founder .plan__note {
  color: #C9CCD4;
}

.plan .button {
  margin-top: auto;
}

.pricing__vat {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
}

.faq__socke {
  width: 150px;
  margin-top: 30px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.question summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.question summary::after {
  content: "+";
  font-weight: 800;
}

.question[open] summary::after {
  content: "–";
}

.question p {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Fußzeile ---------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding-block: 56px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.site-footer .logo {
  color: #fff;
}

.site-footer__claim {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #C9CCD4;
}

.site-footer__columns {
  display: flex;
  gap: 80px;
}

.site-footer h2 {
  font-size: 16px;
  font-weight: 800;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #C9CCD4;
  text-decoration: none;
}

.site-footer li a:hover,
.site-footer li a[aria-current] {
  color: #fff;
}

/* ---------- Rechtstexte ---------- */

.legal {
  width: min(760px, 100% - 40px);
  margin-inline: auto;
  padding-block: 56px 96px;
}

.legal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.legal__tabs a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ECE8DF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal__tabs a[aria-current] {
  background: #FFE7DC;
  color: var(--brand-ink);
}

.legal h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.legal h2 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 800;
}

.legal p,
.legal li {
  font-size: 17px;
  color: var(--text);
}

.legal address {
  font-style: normal;
  color: var(--text);
}

/* Open-Source-Hinweise: ein aufklappbarer Eintrag pro Komponente */

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

.oss__item summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  cursor: pointer;
}

.oss__name {
  font-weight: 700;
  color: var(--ink);
}

.oss__meta {
  font-size: 14px;
  color: var(--muted);
}

.legal .oss__link {
  margin: 0 0 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.oss__text {
  max-height: 360px;
  overflow: auto;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: #FAF8F3;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.oss__list {
  padding-left: 20px;
}

.draft-note {
  margin-top: 32px;
  padding: 12px 14px;
  border: 1px dashed #D8D2C4;
  border-radius: var(--radius-s);
  background: #FAF8F3;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .section {
    padding-block: 64px;
  }

  .hero,
  .feature,
  .feature--text-first,
  .faq {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-block: 40px;
  }

  .hero__visual {
    height: 470px;
  }

  .hero__phone--front {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .hero__phone--back {
    display: none;
  }

  .hero__socke {
    left: auto;
    right: 0;
    top: 300px;
    width: 110px;
  }

  .store-button {
    flex: 1;
    align-items: center;
  }

  .promise__list {
    justify-content: center;
    font-size: 16px;
  }

  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  .step__image {
    display: none;
  }

  .feature__devices {
    justify-content: center;
  }

  .feature__devices .phone:first-child {
    display: none;
  }

  .feature__devices .phone:last-child {
    margin-top: 0;
  }

  .pricing__socke,
  .faq__socke {
    display: none;
  }

  .site-footer__inner,
  .site-footer__columns {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .site-header .button {
    display: none;
  }
}
