@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0A0A0A;
  --ink-2: #4A4A4A;
  --ink-3: #6B6B6B;
  --line: #E3E3E0;
  --paper: #FFFFFF;
  --pad: clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }

html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--pad) 0;
}

/* ---------- Produktseite ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas:
    "brand  stage"
    "pitch  stage"
    "family family";
  column-gap: clamp(1rem, 4vw, 4rem);
  min-height: calc(100vh - 6rem);
  align-content: start;
}
.brand  { grid-area: brand; }
.pitch  { grid-area: pitch; padding-bottom: clamp(2rem, 6vw, 4rem); }
.stage  { grid-area: stage; }
.family { grid-area: family; }

.logo { display: block; width: min(100%, 26rem); height: auto; margin: 0 0 clamp(2rem, 7vw, 5rem); }
.logo--text { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; }

.wm b { font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
.wm span { font-weight: 500; color: var(--ink-3); }

/* Der Amboss: in Produktfarbe, läuft rechts aus dem Bild */
.stage {
  position: relative;
  align-self: center;
  margin-right: calc(-1 * var(--pad) - 6vw);
  pointer-events: none;
}
.stage-anvil { display: block; width: 100%; height: auto; min-width: 22rem; }
.spark {
  position: absolute;
  left: 46%;
  top: -14%;
  width: 18%;
  aspect-ratio: 1;
  background:
    linear-gradient(var(--c2), var(--c2)) center / 10% 100% no-repeat,
    linear-gradient(var(--c2), var(--c2)) center / 100% 10% no-repeat;
  transform: rotate(45deg);
  animation: strike 1.1s cubic-bezier(.2,.9,.3,1.4) 0.35s both;
}
.spark::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--c2), var(--c2)) center / 6% 64% no-repeat,
    linear-gradient(var(--c2), var(--c2)) center / 64% 6% no-repeat;
  transform: rotate(45deg);
}
@keyframes strike {
  0%   { transform: rotate(45deg) scale(0); opacity: 0; }
  35%  { transform: rotate(45deg) scale(1.25); opacity: 1; }
  100% { transform: rotate(45deg) scale(1); opacity: 1; }
}

h1 {
  margin: 0 0 0.6em;
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hammer {
  display: inline-block;
  width: 0.9em; height: 0.9em;
  vertical-align: -0.08em;
  margin-left: 0.15em;
  object-fit: contain;
}
.line { margin: 0 0 1.75rem; max-width: 34ch; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--ink-2); }

.bubble {
  position: relative;
  display: inline-block;
  max-width: 30ch;
  margin: -0.5rem 0 2rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--c1);
  border-radius: 1.2rem 1.2rem 1.2rem 0.25rem;
  font-weight: 600;
}

/* Warteliste */
.waitlist { max-width: 34rem; }
.waitlist label { display: block; margin-bottom: 0.5rem; font-weight: 650; }
.field { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.field input {
  flex: 1 1 15rem;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field button {
  flex: 0 0 auto;
  height: 3.25rem;
  padding: 0 1.4rem;
  border: 2px solid var(--c1);
  border-radius: 4px;
  background: var(--c1);
  color: var(--on-c1);
  font: inherit;
  font-weight: 700;
  font-stretch: 108%;
  cursor: pointer;
}
.field button:hover { box-shadow: inset 0 -4px 0 var(--c2); }
.field button:disabled { opacity: 0.7; cursor: progress; }
.done .field { opacity: 0.55; }

.status { min-height: 1.5em; margin: 0.75rem 0 0; font-weight: 600; }
.status:empty { margin: 0; min-height: 0; }
.status[data-kind="ok"] { padding-left: 0.75rem; border-left: 4px solid var(--c1); }
.status[data-kind="invalid"], .status[data-kind="error"], .status[data-kind="limit"] { color: #B00020; }
.fine { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--ink-3); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Familie */
.family { padding: 2rem 0 1rem; border-top: 1px solid var(--line); }
.family h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; }
.family ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.family a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}
.family a:hover { border-color: var(--dot); }
.dot { width: 1.5em; height: auto; flex: none; }

/* Footer */
.foot {
  max-width: 72rem; margin: 0 auto;
  padding: 1.5rem var(--pad) 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.875rem; color: var(--ink-3);
}
.foot p { margin: 0; }
.stamp { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); font-stretch: 110%; }
.stamp-anvil { width: 1.8em; height: auto; }
.legal { display: flex; gap: 1.5rem; }

/* ---------- Übersicht ---------- */
.hero-overview { padding: clamp(1rem, 6vw, 4rem) 0 clamp(2rem, 6vw, 4rem); }
.hero-anvil-small { width: clamp(4rem, 9vw, 6rem); height: auto; margin-bottom: 1.5rem; }
.overview .family ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.25rem 2rem; }
.overview .family a {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: center;
  padding: 0.9rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-size: 1.15rem;
}
.overview .family a small { grid-column: 2; font-size: 0.9rem; color: var(--ink-2); }
.overview .family a:hover .wm b { text-decoration: underline; text-decoration-color: var(--dot); text-decoration-thickness: 3px; }

.confirm .back { font-weight: 700; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .product {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "stage" "pitch" "family";
    min-height: 0;
  }
  .logo { margin-bottom: 1.5rem; width: min(100%, 18rem); }
  .stage { width: 78%; margin: 0.5rem calc(-1 * var(--pad)) 2.5rem auto; }
  .stage-anvil { min-width: 0; }
  .field button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .spark { animation: none; }
  .hammer { display: none; }
}
