/* Schriften liegen auf dem eigenen Server (kein Google-Fonts-Abruf, DSGVO). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --gelb: #ffc21a;
  --schwarz: #16181b;
  --text: #2b2e33;
  --grau: #6b7079;
  --linie: #eceae4;
  --flaeche: #faf8f3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Kopfzeile */
.top {
  border-bottom: 1px solid var(--linie);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--schwarz);
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.wordmark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 3px;
}
.wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  border-radius: 4px;
  background: var(--gelb);
}
.secure {
  font-size: 14px;
  color: var(--grau);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Einleitung */
.intro {
  padding: 40px 0 24px;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--schwarz);
  background: var(--gelb);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  color: var(--schwarz);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.subline {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text);
  max-width: 640px;
  margin: 0;
}

/* Bereich für das Stripe-Formular */
.checkout-card {
  border: 1px solid var(--linie);
  border-radius: 18px;
  padding: 16px;
  min-height: 420px;
  background: #fff;
}
.loading, .error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 380px;
  gap: 14px;
  color: var(--grau);
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--linie);
  border-top-color: var(--gelb);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error strong { color: var(--schwarz); font-size: 18px; }
.error a { color: var(--schwarz); }
[hidden] { display: none !important; }

/* Nächste Schritte */
.next {
  margin: 36px 0 12px;
  background: var(--flaeche);
  border-radius: 18px;
  padding: 26px 24px;
}
.next h2, .state h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  color: var(--schwarz);
  font-size: 22px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}
.num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--schwarz);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fußzeile */
footer {
  border-top: 1px solid var(--linie);
  margin-top: 40px;
  padding: 22px 0 40px;
  font-size: 14px;
  color: var(--grau);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--grau); text-decoration: none; }
footer a:hover { color: var(--schwarz); text-decoration: underline; }

/* Danke-Seite */
.state {
  max-width: 640px;
  margin: 56px auto 0;
  text-align: center;
}
.state .icon-ok {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gelb);
  color: var(--schwarz);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
}
.state h1 { margin-bottom: 14px; }
.state p { margin: 0 0 12px; }
.state a:not(.btn) { color: var(--schwarz); }
.btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--schwarz);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 12px;
}
.btn:hover { background: #000; }

@media (max-width: 640px) {
  .intro { padding: 28px 0 18px; }
  .checkout-card { padding: 6px; border-radius: 14px; border: none; }
  .secure span { display: none; }
}
