/* herzflink – Preview-Seite
   Farben und Schrift nach "Farbwelt-Konzept herzflink" und "Markenkonzept herzflink" (Notion).
   Website-Regel: Creme als Grund, Text Schwarz, Kirsche als Leitfarbe, Akzente sparsam. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --creme: #F6F1E7;
  --weiss: #FFFFFF;
  --schwarz: #000000;
  --kirsche: #B5173D;
  --unreif: #8DB33A;
  --limette: #C9D845;
  --gelb: #F2C230;
  --orange: #E0701A;
  --rot: #E0402A;
  --ueberreif: #5E1A45;

  --text-muted: rgba(0, 0, 0, 0.62);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--creme);
  color: var(--schwarz);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 10vh, 7rem) 1.25rem;
}

.hero__inner {
  width: 100%;
  max-width: 40rem;
  text-align: center;
}

.badge {
  display: inline-block;
  margin: 0 0 clamp(2rem, 5vh, 3rem);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--kirsche);
  color: var(--weiss);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

/* Platzhalter-Wortmarke in Archivo, bis die finale Wortmarke vorliegt:
   einfarbig, klein geschrieben, herz und flink nicht unterschiedlich hervorgehoben. */
.brand__word {
  font-size: clamp(3.5rem, 15vw, 7.5rem);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.035em;
  color: var(--kirsche);
}

.brand__descriptor {
  margin-top: 0.9rem;
  font-size: clamp(0.95rem, 2.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  margin-right: -0.22em; /* Sperrung nach dem letzten Buchstaben ausgleichen */
  color: var(--schwarz);
}

.lead {
  margin: clamp(2.5rem, 7vh, 4rem) 0 1rem;
  font-size: clamp(1.5rem, 4.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.text {
  margin: 0 auto 0.75rem;
  max-width: 32rem;
}

.text--muted { color: var(--text-muted); }

/* ---------- Reifeband ----------
   Sieben gleich breite Farbfelder in fester Reihenfolge, harte Kanten, kein Verlauf. */

.ripeness {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 10px;
}
.ripeness span:nth-child(1) { background: var(--unreif); }
.ripeness span:nth-child(2) { background: var(--limette); }
.ripeness span:nth-child(3) { background: var(--gelb); }
.ripeness span:nth-child(4) { background: var(--orange); }
.ripeness span:nth-child(5) { background: var(--rot); }
.ripeness span:nth-child(6) { background: var(--kirsche); }
.ripeness span:nth-child(7) { background: var(--ueberreif); }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--kirsche);
  color: var(--weiss);
  font-size: 0.875rem;
}

.footer a {
  color: var(--weiss);
  text-underline-offset: 0.2em;
}
.footer a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .footer { justify-content: center; text-align: center; }
}

/* ---------- Dezenter Einstieg ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__inner > :nth-child(2) { animation-delay: 0.08s; }
  .hero__inner > :nth-child(3) { animation-delay: 0.16s; }
  .hero__inner > :nth-child(4) { animation-delay: 0.22s; }
  .hero__inner > :nth-child(5) { animation-delay: 0.28s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Unterseiten (Impressum) ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) 1.25rem;
}
.page__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--kirsche);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.page h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 1.5rem; }
.page h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; }
.page p  { margin: 0 0 0.75rem; }
.page a  { color: var(--kirsche); }
