/* ==========================================================
   Söth's Biokiste, Landingpage 5+1
   Branding zentral in den Variablen unten (Werte von soeths-biokiste.de)
   ========================================================== */
:root {
  /* Markenfarben */
  --c-primary: #5ab331;        /* Hellgrün der Website (Akzente, Icons, Rahmen) */
  --c-primary-dark: #006000;   /* Dunkelgrün der Website (Buttons, gut lesbar mit Weiß) */
  --c-primary-darker: #004a00;
  --c-accent: #f5bd00;         /* Gelb der Website (Gratis-Hinweis) */
  --c-heading: #534d45;
  --c-text: #534d45;
  --c-muted: #6f6758;
  --c-cream: #fffbeb;
  --c-surface: #f8fafc;
  --c-border: #d9d4c7;
  --c-white: #ffffff;
  --c-error: #b3261e;
  --c-error-bg: #fdecea;

  /* Schrift: Inter wie auf der Website, sonst Systemschrift (keine Webfont, spart Ladezeit) */
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-base: 1.0625rem;  /* 17 px */
  --fs-input: 1.0625rem; /* mind. 16 px, sonst zoomt iOS */
  --fs-h1: clamp(2rem, 8vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 6vw, 1.875rem);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(83, 77, 69, .08);
  --tap: 52px;
  --wrap: 560px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); }
h1, h2 { color: var(--c-heading); line-height: 1.15; margin: 0; }
p { margin: 0 0 .75rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section--cream { background: var(--c-cream); }
.section__title { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 14px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.btn--primary { background: var(--c-primary-dark); color: var(--c-white); }
.btn--primary:hover { background: var(--c-primary-darker); }
.btn--primary[disabled] { opacity: .65; cursor: wait; }
.btn--outline { background: var(--c-white); color: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 60px; font-size: 1.15rem; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--c-cream);
  padding: 24px 0 36px;
  text-align: center;
}
.hero__logo { margin: 0 auto 12px; width: 96px; height: 96px; }
.hero__claim {
  color: var(--c-primary-dark); font-weight: 600; letter-spacing: .02em;
  font-size: .95rem; margin-bottom: 8px;
}
.hero__title { font-size: var(--fs-h1); font-weight: 800; margin-bottom: 14px; }
.hero__sub { font-size: 1.125rem; color: var(--c-muted); margin: 0 auto 24px; max-width: 30em; }

/* ---------- Kisten-Karten ---------- */
.boxes { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.box { display: block; position: relative; cursor: pointer; }
.box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box__card {
  display: block; position: relative;
  background: var(--c-white);
  border: 3px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.box__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-surface); }
.box__body { display: block; padding: 16px 18px 18px; }
.box__name { display: block; font-size: 1.35rem; font-weight: 800; color: var(--c-heading); margin-bottom: 4px; }
.box__text { display: block; color: var(--c-muted); margin-bottom: 10px; }
.box__price { display: block; font-size: 1rem; }
.box__price strong { color: var(--c-primary-dark); font-size: 1.2rem; }
.box__check {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-white); border: 3px solid var(--c-border);
}
.box input:checked + .box__card { border-color: var(--c-primary-dark); box-shadow: 0 0 0 3px rgba(90, 179, 49, .35); }
.box input:checked + .box__card .box__check {
  background: var(--c-primary-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E") center / 22px no-repeat;
  border-color: var(--c-primary-dark);
}
.box input:focus-visible + .box__card { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.boxes.is-invalid .box__card { border-color: var(--c-error); }

@media (min-width: 640px) {
  .boxes { grid-template-columns: 1fr 1fr; }
  :root { --wrap: 720px; }
}

/* ---------- Vertrauensblock ---------- */
.trust { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__item strong { color: var(--c-heading); }
.trust__icon {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-white); color: var(--c-primary);
  box-shadow: var(--shadow);
}
.trust__img { border-radius: var(--radius); width: 100%; aspect-ratio: 720 / 408; object-fit: cover; background: var(--c-surface); }
.trust__note { font-size: .875rem; color: var(--c-muted); margin: 10px 0 0; text-align: center; }

/* ---------- Formular ---------- */
.order { margin: 0; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--c-heading); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--c-muted); }
.grid-2, .grid-plz { display: grid; gap: 0 12px; }
.grid-plz { grid-template-columns: 7.5rem 1fr; }
@media (min-width: 420px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font: inherit; font-size: var(--fs-input);
  color: var(--c-text);
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus { outline: none; border-color: var(--c-primary-dark); box-shadow: 0 0 0 3px rgba(90, 179, 49, .3); }
input[aria-invalid="true"] { border-color: var(--c-error); background: var(--c-error-bg); }
#iban { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.field-hint { font-size: .9rem; color: var(--c-muted); margin: 6px 0 0; }
.field-error { color: var(--c-error); font-size: .95rem; font-weight: 600; margin: 6px 0 0; }
.field-error:empty { display: none; }
.form-error {
  background: var(--c-error-bg); color: var(--c-error);
  border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600;
}

/* Radios und Checkboxen */
.choice, .check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 400 !important; }
.choice input, .check input {
  flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0;
  accent-color: var(--c-primary-dark);
}
.check span { color: var(--c-text); }
/* Bestell-Bereich: gleiche Höhe für grünen Button und PayPal-Button, damit nichts springt */
.order-hint { font-size: .9rem; color: var(--c-muted); text-align: center; margin: 0 0 10px; }
.order-hint strong { color: var(--c-heading); font-weight: 600; }
.order-actions { min-height: 60px; }
.order-actions .btn { height: 60px; min-height: 60px; }
.btn--primary[disabled] { cursor: progress; }
/* ---------- Zahlungsarten (Karten wie im modernen Checkout) ---------- */
.pay-options { display: grid; gap: 10px; }
.pay-card {
  border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-white);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pay-card:hover { border-color: #b9b2a2; }
.pay-card.is-selected { border: 2px solid var(--c-primary-dark); background: #f4faf0; }
.payment.is-invalid .pay-card { border-color: var(--c-error); }
.pay-card__head {
  display: flex !important; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 15px; margin: 0 !important; cursor: pointer; position: relative;
  font-weight: 400 !important;
}
.pay-card.is-selected .pay-card__head { padding: 11px 14px; } /* gleicht den 2-px-Rahmen aus */
.pay-card__input { position: absolute; left: 15px; top: 50%; opacity: 0; width: 20px; height: 20px; margin: -10px 0 0; pointer-events: none; }
.pay-card__radio {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #b9b2a2; background: var(--c-white); position: relative;
  transition: border-color .15s ease;
}
.pay-card__radio::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--c-white); transform: scale(0); transition: transform .15s ease;
}
.pay-card.is-selected .pay-card__radio { border-color: var(--c-primary-dark); background: var(--c-primary-dark); }
.pay-card.is-selected .pay-card__radio::after { transform: scale(1); }
.pay-card__input:focus-visible + .pay-card__radio { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.pay-card__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-card__title { font-size: 16px; font-weight: 600; color: var(--c-heading); line-height: 1.3; }
.pay-card__sub { font-size: 13.5px; color: var(--c-muted); line-height: 1.35; }
.pay-card__logo { flex: 0 0 auto; display: block; height: 22px; width: auto; }
.pay-card__logo--paypal { width: 78px; }
.pay-card__logo--sepa { width: 59px; }
.pay-card__logo--icon { width: 22px; }
/* Aufklappbereich: gleiche Einrückung wie der Text (Radio 20 px + Abstand 12 px) */
.payment__panel { padding: 0 15px 14px 47px; }
.pay-card.is-selected .payment__panel { padding: 0 14px 13px 46px; }
.payment__panel .field-hint:first-child { margin-top: 0; }
.payment__panel .field { margin-bottom: 0; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); margin: 12px 0 0; text-align: center; }
.secure-note img { display: block; }
@media (max-width: 479px) {
  .pay-card__head { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .pay-card.is-selected .pay-card__head { padding-left: 13px; padding-right: 13px; }
  .pay-card__sub { font-size: 13px; }
  .payment__panel { padding-left: 44px; }
  .pay-card.is-selected .payment__panel { padding-left: 43px; }
}
@media (max-width: 359px) {
  .pay-card__head { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .pay-card__logo { height: 18px; }
  .pay-card__logo--paypal { width: 64px; }
  .pay-card__logo--sepa { width: 48px; }
  .pay-card__logo--icon { width: 18px; }
  .payment__panel { padding-left: 42px; padding-right: 12px; }
}
.mandate { font-size: .8125rem; line-height: 1.5; color: var(--c-muted); margin: 10px 0 0; }

/* Zusammenfassung */
.summary {
  border: 2px dashed var(--c-primary); border-radius: var(--radius);
  padding: 14px 16px; margin: 8px 0 18px; background: #f3f9ef;
}
.summary__line { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; }
.summary__line strong { color: var(--c-heading); text-align: right; }
.summary__line--hi strong {
  background: var(--c-accent); color: var(--c-heading);
  padding: 0 8px; border-radius: 6px;
}

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

/* ---------- FAQ ---------- */
.faq details {
  background: var(--c-white); border-radius: var(--radius-sm);
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 16px 48px 16px 16px; position: relative;
  font-weight: 700; color: var(--c-heading); min-height: var(--tap);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--c-primary-dark); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 16px 16px; margin: 0; }

/* ---------- Footer ---------- */
.footer { padding: 28px 0 110px; font-size: .9rem; text-align: center; color: var(--c-muted); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer a { color: var(--c-muted); }
@media (min-width: 768px) { .footer { padding-bottom: 28px; } }

/* ---------- Sticky-Button (mobil) ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  transition: transform .2s, opacity .2s;
}
.sticky-cta.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
body.consent-open .sticky-cta { display: none; }

/* ---------- Cookie-Banner ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}
.consent__inner {
  max-width: 560px; margin: 0 auto;
  background: var(--c-white); color: var(--c-text);
  border-radius: var(--radius); padding: 18px;
  box-shadow: 0 -2px 30px rgba(0, 0, 0, .22);
}
.consent__title { font-weight: 800; color: var(--c-heading); margin-bottom: 6px; }
.consent__text { font-size: .9375rem; }
.consent__actions { display: grid; grid-template-columns: 1fr 1.8fr; gap: 8px; margin-top: 12px; }
/* Ablehnen bleibt gleich groß und gut sichtbar (TDDDG/DSGVO), nur optisch zweitrangig */
.btn--consent { background: var(--c-primary-dark); color: var(--c-white); padding: 12px 8px; font-size: 1rem; white-space: nowrap; }
.btn--consent:hover { background: var(--c-primary-darker); }
/* Ablehnen: dezent grau, aber lesbar, gleich hoch und klar als Button erkennbar (nicht "deaktiviert" aussehen lassen) */
.btn--consent-alt {
  background: transparent; color: var(--c-muted);
  border: 1px solid var(--c-border); font-weight: 500;
}
.btn--consent-alt:hover { background: var(--c-surface); }

/* ---------- Danke-Seite ---------- */
.thanks { padding: 32px 0 24px; text-align: center; }
.thanks__badge {
  width: 64px; height: 64px; margin: 8px auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-primary-dark); color: var(--c-white);
}
.thanks__title { font-size: var(--fs-h2); font-weight: 800; margin-bottom: 8px; }
.thanks__nr { color: var(--c-muted); }
.thanks__sub { font-size: 1.25rem; margin: 28px 0 14px; }
.steps { text-align: left; padding: 0; margin: 0 0 28px; list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 16px 48px; min-height: 36px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-cream); color: var(--c-primary-dark); font-weight: 800;
  border: 2px solid var(--c-primary);
}
.contact { background: var(--c-cream); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.contact__title { font-weight: 700; color: var(--c-heading); margin: 0 0 4px; }
.page-danke .footer { padding-bottom: 28px; }
