/* Scan4Me – Verkaufsseite.
   Eigenes Stylesheet statt app.css: Die Gäste-Ansicht schleppt die
   Beeren-Animation und den Dashboard-Teil mit, das sind über 20 kB, die auf
   der Startseite niemand braucht. Farben, Schriften und Kartenoptik sind
   identisch – der Stil bleibt derselbe, nur ohne Ballast. */

:root {
  --ink: #f0eee2;
  --surface: #fdfdf8;
  --surface-2: #e9f0e0;
  --line: #d9dcc6;
  --text: #24352b;
  --muted: #6e7d6e;
  --green: #2e7a57;
  --green-soft: #3c9a6f;
  --green-deep: #1d5540;
  --berry: #b23a63;
  --star: #eab230;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  background: var(--ink);
  background-image:
    radial-gradient(circle at 12% 6%,  rgba(233, 132, 170, 0.45) 0 3px,   transparent 4px),
    radial-gradient(circle at 19% 11%, rgba(233, 132, 170, 0.32) 0 2px,   transparent 3px),
    radial-gradient(circle at 88% 8%,  rgba(233, 132, 170, 0.38) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 93% 15%, rgba(233, 132, 170, 0.28) 0 2px,   transparent 3px),
    linear-gradient(180deg, #e4eddb 0, var(--ink) 420px);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ------------------------------------------------------------------ Kopf */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0 8px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  color: var(--text); text-decoration: none;
}
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--green); color: #fdfdf8;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.topbar .to-login { font-size: 14px; color: var(--muted); text-decoration: none; }
.topbar .to-login:hover { color: var(--green); }

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

.hero { text-align: center; padding: 34px 0 10px; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); font-weight: 500; margin-bottom: 12px;
}
h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 6.4vw, 46px); line-height: 1.12;
  letter-spacing: -0.015em; text-wrap: balance;
}
h1 .accent { color: var(--green); }
.lead {
  margin: 16px auto 0; max-width: 560px;
  font-size: clamp(16px, 2.4vw, 18px); color: var(--muted); text-wrap: pretty;
}
.rule {
  width: 64px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--green) 60%, var(--berry) 60%);
  margin: 22px auto 0;
}
.hero-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- Bausteine */

h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 4vw, 28px); line-height: 1.2;
  text-wrap: balance; margin-bottom: 8px;
}
h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.section { padding: 46px 0 0; }
.section > .sub {
  color: var(--muted); max-width: 580px; margin-bottom: 26px; text-wrap: pretty;
}
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 3px 16px rgba(46, 90, 66, 0.07);
}

/* Açaí-Tropfenkante – dasselbe Motiv wie auf den Aufstellern und in der
   Gäste-Ansicht. Nur auf der Anfrage-Karte, sonst nutzt es sich ab. */
.card.drip { position: relative; overflow: hidden; padding-top: 46px; }
.card.drip::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background: url("/img/drip.svg") center / 100% 100% no-repeat;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fdfdf8;
  border: none; border-radius: 99px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 13px 26px; cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--green-soft); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.ghost {
  background: transparent; color: var(--green);
  border: 1px solid var(--line); font-weight: 500;
}
.btn.ghost:hover { border-color: var(--green); background: transparent; }
.btn.wide { width: 100%; }

.btn:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green-soft); outline-offset: 2px;
}

/* ------------------------------------------------------------- So läuft es */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding-top: 38px; }
.step .n {
  position: absolute; top: 0; left: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fdfdf8;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.step p { font-size: 14.5px; color: var(--muted); }

/* ----------------------------------------------------------------- Nutzen */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards .card { padding: 22px 20px; }
.cards .card p { font-size: 14.5px; color: var(--muted); }
.cards .card .ico { font-size: 22px; line-height: 1; margin-bottom: 12px; display: block; }
.cards .card.berry { border-left: 4px solid var(--berry); }
.cards .card.leaf  { border-left: 4px solid var(--green); }
.cards .card.gold  { border-left: 4px solid var(--star); }

/* ---------------------------------------------------------------- Leistung */

.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.incl li {
  list-style: none; font-size: 15px; color: var(--text);
  padding-left: 26px; position: relative; line-height: 1.5;
}
.incl li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.incl li span { color: var(--muted); }

/* ------------------------------------------------------------ Fairness-Box */

.fair {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 24px 24px;
  border: 1px solid var(--line);
}
.fair p { font-size: 15px; color: #41544a; }
.fair p + p { margin-top: 10px; }

/* ------------------------------------------------------------------ Formular */

label {
  display: block; font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.field { margin-bottom: 15px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  background: #fbfaf3;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body); font-size: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); }
textarea { min-height: 104px; resize: vertical; }
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e7d6e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.hint-small { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--green); }
.consent label {
  font-size: 13.5px; text-transform: none; letter-spacing: 0;
  color: var(--muted); margin: 0; line-height: 1.5;
}

/* Honigtopf: für Menschen unsichtbar, für ein Skript ein Pflichtfeld.
   Kein display:none – manche Bots überspringen versteckte Felder bewusst. */
.trap {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.error { color: var(--berry); font-size: 14px; margin-top: 12px; display: none; }
.error.show { display: block; }

.sent { text-align: center; padding: 14px 0 6px; }
.sent .ico { font-size: 40px; line-height: 1; }
.sent h2 { margin: 12px 0 8px; color: var(--green); }
.sent p { color: var(--muted); font-size: 15px; max-width: 380px; margin: 0 auto; }

/* -------------------------------------------------------------------- Fuss */

footer {
  margin-top: 54px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--muted);
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--green); text-decoration: underline;
}

/* ------------------------------------------------------------------ Dialog */

.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(26, 40, 32, 0.45);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: var(--surface); border-radius: var(--radius);
  width: min(620px, 100%); max-height: 86vh; display: flex; flex-direction: column;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 12px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 20px; margin: 0; }
.modal-close {
  background: none; border: 0; font-size: 26px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px;
}
.modal-body { padding: 18px 22px 24px; overflow-y: auto; font-size: 14.5px; }
.modal-body h3 { margin: 18px 0 4px; font-size: 14.5px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { color: var(--muted); margin-bottom: 8px; }
.modal-body .law { font-size: 12.5px; opacity: 0.8; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: var(--text); color: #fdfdf8;
  padding: 11px 20px; border-radius: 99px; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------- Klein */

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .cards { grid-template-columns: 1fr; }
  .incl { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .row .field { margin-bottom: 15px; }
  .section { padding-top: 38px; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

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