/* Wildheil Waitlist – Farben, Verläufe und Scan-Rahmen folgen dem Wildheil-Logo
   (Hirsch mit Blattgeweih im Kamerarahmen, Schriftzug in dunklem Waldgrün). */

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Aus dem Logo abgeleitet */
  --ink: #1c3a17; /* Schriftzug */
  --forest: #2c5a22; /* dunkle Rahmenenden */
  --leaf: #4f8a2a; /* Blätter */
  --leaf-light: #8cbf4a; /* helle Rahmenenden */
  --mint: #eef5e4;
  --mint-strong: #dcebc8;
  --blossom: #fffdf6; /* weiße Blüten */

  --background: #fbfbf6;
  --surface: #ffffff;
  --text: #22301f;
  --muted: #5d6a59;
  --border: #e3e8da;
  --warning-bg: #fbeee6;
  --danger: #a42f27;

  --gradient-leaf: linear-gradient(135deg, var(--leaf-light) 0%, var(--leaf) 45%, var(--forest) 100%);
  --gradient-frame-top: linear-gradient(90deg, #7fb446, #3f7a26);
  --gradient-frame-bottom: linear-gradient(90deg, #3f7a26, #23501d);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-card: 0 10px 30px rgba(28, 58, 23, 0.08);
  --shadow-raised: 0 18px 50px rgba(28, 58, 23, 0.14);
  --shadow-button: 0 8px 20px rgba(44, 90, 34, 0.28);
  --gutter: 24px;
  --max: 1160px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--forest);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--leaf-light);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}

.overline {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--leaf);
}

/* Scan-Rahmen: die vier Kameraecken aus dem Logo */
.scan-corner {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0 solid transparent;
  pointer-events: none;
}
.scan-corner.tl {
  top: -12px;
  left: -12px;
  border-top-width: 5px;
  border-left-width: 5px;
  border-top-color: #7fb446;
  border-left-color: #6aa23a;
  border-top-left-radius: 22px;
}
.scan-corner.tr {
  top: -12px;
  right: -12px;
  border-top-width: 5px;
  border-right-width: 5px;
  border-top-color: #4f8a2a;
  border-right-color: #3f7a26;
  border-top-right-radius: 22px;
}
.scan-corner.bl {
  bottom: -12px;
  left: -12px;
  border-bottom-width: 5px;
  border-left-width: 5px;
  border-bottom-color: #3f7a26;
  border-left-color: #4f8a2a;
  border-bottom-left-radius: 22px;
}
.scan-corner.br {
  bottom: -12px;
  right: -12px;
  border-bottom-width: 5px;
  border-right-width: 5px;
  border-bottom-color: #23501d;
  border-right-color: #2c5a22;
  border-bottom-right-radius: 22px;
}

/* Kopfzeile */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.brand img {
  height: 40px;
  width: auto;
}

.header-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  padding: 10px 18px;
  border: 1.5px solid var(--mint-strong);
  border-radius: 999px;
  background: var(--surface);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.header-cta:hover {
  background: var(--mint);
  border-color: var(--leaf-light);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 24px var(--gutter) 88px;
  background:
    radial-gradient(60% 70% at 85% 35%, rgba(140, 191, 74, 0.18), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(220, 235, 200, 0.7), transparent 70%);
}

.hero-inner {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  background: var(--mint);
  border: 1px solid var(--mint-strong);
  border-radius: 999px;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-leaf);
  box-shadow: 0 0 0 4px rgba(140, 191, 74, 0.25);
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 13ch;
  text-wrap: balance;
}

.lead {
  margin: 20px 0 40px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  max-width: 34rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-glow {
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 235, 200, 0.9) 0%, rgba(220, 235, 200, 0) 70%);
  filter: blur(8px);
}
.hero-mark {
  position: relative;
  width: min(100%, 470px);
  height: auto;
  animation: sway 9s ease-in-out infinite;
  transform-origin: 50% 85%;
}
@keyframes sway {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-0.6deg);
  }
}

/* Anmeldekarte im Scan-Rahmen */
.signup-card {
  position: relative;
  max-width: 540px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-raised);
  padding: 30px 30px 26px;
  scroll-margin-top: 32px;
}
.signup-card h2 {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.signup-intro {
  margin: 8px 0 20px;
  color: var(--muted);
}

.signup-form {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* Eintragen erst nach Einwilligung: Button bleibt bis zum Häkchen ausgegraut. */
.signup-submit {
  width: 100%;
  margin-top: 4px;
}
.signup-submit:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: #8a9486;
  background: var(--surface-secondary, #eef0e8);
  box-shadow: none;
  transform: none;
}

.signup-form input[type='email'] {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 18px;
  font: inherit;
  color: var(--text);
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.signup-form input[type='email']:focus {
  outline: none;
  border-color: var(--leaf);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(140, 191, 74, 0.22);
}
.signup-form input[aria-invalid='true'] {
  border-color: var(--danger);
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--leaf);
  cursor: pointer;
}

/* Honeypot: für Menschen unsichtbar, für Screenreader ausgeblendet. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  font: 600 16px/1 var(--sans);
  color: #fff;
  background: var(--gradient-leaf);
  background-size: 140% 140%;
  background-position: 0% 50%;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-button);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-position 0.35s,
    transform 0.12s,
    box-shadow 0.2s;
}
.button:hover {
  background-position: 100% 50%;
  box-shadow: 0 10px 24px rgba(44, 90, 34, 0.34);
}
.button:active {
  transform: scale(0.98);
}
.button[disabled] {
  cursor: progress;
  opacity: 0.85;
}
.button[aria-busy='true']::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.button-secondary {
  color: var(--forest);
  background: var(--mint);
  box-shadow: none;
  border: 1.5px solid var(--mint-strong);
}
.button-secondary:hover {
  background: var(--mint-strong);
  box-shadow: none;
}

.form-status {
  margin: 4px 0 0;
  min-height: 1.5em;
  font-size: 14px;
  line-height: 1.5;
}
.form-status:empty {
  min-height: 0;
  margin: 0;
}
.form-status[data-state='error'] {
  color: var(--danger);
  background: var(--warning-bg);
  border: 1px solid #f0c9bd;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-weight: 500;
}
.form-status[data-state='success'] {
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--mint-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

/* Inhaltsabschnitte */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.features {
  padding: 88px 0 72px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features h2,
.honesty h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
  text-wrap: balance;
}

.feature-grid {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feature {
  position: relative;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gradient-leaf);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 6px 14px rgba(44, 90, 34, 0.22);
}
.feature h3 {
  font-size: 23px;
  line-height: 1.22;
  margin-bottom: 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.honesty {
  padding: 96px 0;
}
.honesty-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.scan-photo {
  position: relative;
  margin: 12px;
}
.scan-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.honesty-text p:not(.overline) {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.honesty-text .note {
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  color: var(--text);
  margin-bottom: 28px;
}

/* Fußzeile */
.site-footer {
  background: var(--mint);
  border-top: 1px solid var(--mint-strong);
  color: var(--muted);
  font-size: 14px;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-inner p {
  margin: 0;
}
.footer-logo {
  height: 30px;
  width: auto;
}
.site-footer a {
  color: var(--forest);
}
.site-footer nav {
  display: flex;
  gap: 20px;
}

/* Einfache Seiten (Bestätigen, Abmelden, Fehler) */
.page-simple {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter);
  background:
    radial-gradient(50% 45% at 50% 0%, rgba(140, 191, 74, 0.18), transparent 70%), var(--background);
}
.simple-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-raised);
  padding: 36px 32px;
  text-align: center;
}
.simple-mark {
  width: 120px;
  height: auto;
  margin: 0 auto 18px;
}
.simple-card h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.simple-card p {
  margin: 0 0 24px;
  color: var(--muted);
}
.simple-card form {
  margin: 0;
}
.simple-card .button {
  width: 100%;
}
.simple-footer {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  font-size: 14px;
}
.simple-footer a {
  color: var(--muted);
}

/* Tablet und Handy */
@media (max-width: 900px) {
  .hero {
    padding-top: 8px;
    padding-bottom: 64px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-mark {
    width: min(62vw, 300px);
  }
  .hero-copy {
    text-align: center;
  }
  .hero h1,
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .signup-card {
    margin: 0 auto;
    text-align: left;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .honesty-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }
  .brand img {
    height: 32px;
  }
  .header-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
  .lead {
    margin-bottom: 32px;
  }
  .signup-card {
    padding: 24px 20px 20px;
  }
  .scan-corner {
    width: 36px;
    height: 36px;
  }
  .features {
    padding: 64px 0 48px;
  }
  .feature {
    padding: 24px;
  }
  .honesty {
    padding: 64px 0;
  }
  .honesty-text .button {
    width: 100%;
  }
  .simple-card {
    padding: 28px 20px;
  }
}

/* Erfolgs-Popup nach dem Eintragen */
.success-dialog {
  width: min(92vw, 420px);
  padding: 36px 30px 28px;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-raised);
  text-align: center;
}
.success-dialog::backdrop {
  background: rgba(28, 58, 23, 0.35);
  backdrop-filter: blur(3px);
}
.success-dialog[open] {
  animation: pop-in 0.25s ease-out;
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--gradient-leaf);
  box-shadow: var(--shadow-button);
}
.success-dialog h2 {
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.success-dialog p {
  margin: 0 0 24px;
  color: var(--muted);
}
.success-dialog form {
  margin: 0;
}
.success-dialog .button {
  width: 100%;
}

/* Dank in der Karte nach dem Eintragen */
.signup-card.is-joined > h2,
.signup-card.is-joined > .signup-intro,
.signup-card.is-joined > .signup-form {
  display: none;
}
.signup-thanks {
  text-align: center;
  padding: 8px 4px 4px;
  outline: none;
}
.signup-thanks[hidden] {
  display: none;
}
.signup-thanks h2 {
  font-size: 27px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.signup-thanks p {
  margin: 0;
  color: var(--muted);
}
