/* sjb-handel.de – Entwurf. Farben und Schrift nach KONZEPT_MARKE_ITWORKS.md. */

@font-face {
  font-family: "Inter";
  src: url("assets/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --lila: #5b2bc2;
  --lila-dark: #4a22a3;
  --blass: #9183e6;
  --wash: #f4f1fd;
  --line: #e4e1f0;
  --ink: #1f1b2e;
  --grey: #5d5973;
  --white: #ffffff;
  --radius: 14px;
  --page: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

a {
  color: var(--lila);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lila-dark);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--blass);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------------- Kopf */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: var(--grey);
}

.brand img {
  height: 30px;
  width: auto;
  display: block;
}

.brand span {
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-size: 15.5px;
  font-weight: 500;
}

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

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

.nav .lang {
  color: var(--grey);
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

/* --------------------------------------------------------------- Bühne */
.hero {
  padding: 72px 0 40px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.hero .sub {
  margin: 0;
  max-width: 34em;
  font-size: 20px;
  color: var(--grey);
}

.section {
  padding: 56px 0;
}

.section.wash {
  background: var(--wash);
}

h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
}

p {
  margin: 0 0 14px;
}

.lead {
  font-size: 21px;
  color: var(--ink);
  max-width: 30em;
}

.measure {
  max-width: 40em;
}

/* --------------------------------------------------------------- Knopf */
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--lila);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.button:hover {
  background: var(--lila-dark);
  color: var(--white);
}

.button.pending {
  background: var(--white);
  color: var(--grey);
  border: 1px dashed var(--blass);
}

/* ------------------------------------------------------------ App-Karte */
.app-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(91, 43, 194, 0.08);
  background: var(--white);
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  display: block;
}

.app-card h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.app-card .claim {
  margin: 0 0 6px;
  font-size: 19px;
}

.app-card .price {
  margin: 0 0 16px;
  color: var(--grey);
  font-size: 15.5px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-weight: 500;
}

/* Karte mit Bild rechts (Startseite) */
.app-card.wide {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 36px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.app-head .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.app-head h2 {
  margin: 0;
  font-size: 30px;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.25;
}

.store-badge small {
  font-weight: 500;
  font-size: 12px;
}

.store-badge.pending {
  color: var(--grey);
  border: 1px dashed var(--blass);
}

.illu {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  background: var(--wash);
}

.illu-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.illu-row strong {
  display: block;
  font-size: 17px;
}

.illu-row span {
  font-size: 14px;
  color: var(--grey);
}

.illu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-weight: 750;
  font-size: 20px;
}

.illu-row.stop {
  border: 2px solid #d8232a;
}

.illu-row.stop .illu-icon {
  background: #fdeaea;
  color: #c11920;
}

.illu-row.pass .illu-icon {
  background: #0a9e43;
  color: var(--white);
  border-radius: 50%;
}

/* -------------------------------------------------------------- Raster */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.box p:last-child {
  margin-bottom: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--lila);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.checks.single {
  grid-template-columns: 1fr;
}

.checks .box {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--lila);
}

.mark.no {
  background: var(--white);
  color: var(--grey);
  border: 1.5px solid var(--grey);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts strong {
  display: block;
  font-weight: 650;
}

.price-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.price-box .amount {
  font-size: 46px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lila);
}

.price-box .amount small {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--grey);
}

/* --------------------------------------------- Nachbau des Checkout-Felds */
.checkout {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(31, 27, 46, 0.07);
  font-size: 14.5px;
}

.checkout .title {
  margin: 0 0 14px;
  font-weight: 650;
  font-size: 17px;
}

.field {
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid #d5d3dc;
  border-radius: 8px;
  background: var(--white);
}

.field.error {
  border: 2px solid #d8232a;
  margin-bottom: 4px;
}

.error-text {
  margin: 0 0 12px;
  color: #c11920;
  font-size: 13.5px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay {
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #d9d7e0;
  color: #77738a;
  text-align: center;
  font-weight: 600;
}

.note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--grey);
}

/* ----------------------------------------------------------------- Fuß */
.site-footer {
  margin-top: 24px;
  padding: 44px 0;
  background: var(--lila);
  color: var(--white);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.site-footer img {
  height: 30px;
  display: block;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
}

.site-footer .promise {
  font-weight: 600;
  font-size: 17px;
}

.site-footer a {
  color: var(--white);
}

.site-footer .links {
  font-size: 14.5px;
  text-align: right;
  line-height: 1.9;
}

/* --------------------------------------------------------------- Handy */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    gap: 4px 18px;
    font-size: 15px;
  }

  .nav .lang {
    border-left: 0;
    padding-left: 0;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero .sub {
    font-size: 18px;
  }

  .section {
    padding: 40px 0;
  }

  .app-card {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 18px;
    align-items: start;
  }

  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .app-card.wide {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .app-head h2 {
    font-size: 24px;
  }

  .illu {
    padding: 16px;
  }

  .two,
  .three,
  .checks,
  .facts,
  .price-box {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .facts {
    gap: 0;
  }

  .site-footer .links {
    text-align: left;
  }
}

/* ---------------------------------------------- Ergänzungen für die Website */
.hero.tight {
  padding-bottom: 56px;
}

.h1-page,
.hero h1.h1-page {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.cta {
  margin-top: 22px;
}

.section.spaced {
  margin-top: 56px;
}

a.store-badge {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.field .label {
  display: block;
  font-size: 11.5px;
  color: var(--grey);
}

/* Textseiten: Hilfe, Über uns, Datenschutz, Impressum, Nutzungsbedingungen */
.page-head {
  padding: 56px 0 8px;
}

.crumb {
  margin: 0 0 10px;
  font-size: 15px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
  font-size: 15px;
}

.toc a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
}

.toc a:hover {
  border-color: var(--blass);
  color: var(--lila);
}

.prose .wrap > * {
  max-width: 44em;
}

.prose h2 {
  margin-top: 44px;
  font-size: 24px;
  scroll-margin-top: 20px;
}

.prose .wrap > h2:first-child,
.prose .wrap > .lead:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

dl.rules {
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
}

dl.rules dt {
  padding-top: 14px;
  font-weight: 650;
}

dl.rules dd {
  margin: 0;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--line);
}

.stand {
  margin-top: 36px;
  color: var(--grey);
  font-size: 15px;
}

mark.todo {
  padding: 1px 4px;
  border-radius: 4px;
  background: #fff1a8;
  color: var(--ink);
}

@media (max-width: 760px) {
  .page-head {
    padding-top: 36px;
  }

  .prose h2 {
    margin-top: 34px;
    font-size: 22px;
  }
}
