/* smilestore – Einverständniserklärung Landingpage */
:root {
  --navy: #39364e;
  --text: #3a3a39;
  --muted: #77757f;
  --orange: #f27a2a;
  --orange-dark: #dd6514;
  --logo-orange: #ec6300;
  --beige: #eddfcb;
  --blush: #faefed;
  --sand: #ebebe7;
  --light: #f8f8f8;
  --line: #dcd9d3;
  --white: #fff;
  --error: #c0392b;
  --radius: 14px;
  --head: "Josefin Sans", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --body: "Source Sans Pro", "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--sand); font-size: 13px; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--orange); }

.header { background: var(--white); border-bottom: 1px solid var(--sand); position: sticky; top: 0; z-index: 10; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { color: var(--text); display: block; width: 190px; }
.logo svg { display: block; width: 100%; height: auto; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  font: 600 13px/1 var(--body); letter-spacing: .08em;
  border: 0; background: transparent; color: var(--text);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(242,122,42,.14), transparent 60%),
    linear-gradient(180deg, var(--blush), var(--white));
  padding: 64px 0 120px;
}
.kicker {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .14em;
  color: var(--orange); font-size: 14px; margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--head); font-weight: 400; color: var(--navy);
  font-size: clamp(30px, 5vw, 48px); line-height: 1.12; margin: 0;
  text-transform: uppercase; max-width: 760px;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
.divider { display: block; width: 44px; height: 2px; background: var(--orange); margin: 22px 0; }
.hero__text { max-width: 620px; margin: 0; font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--beige); color: var(--orange);
  font: 600 14px/1 var(--head);
}
.steps b { font-weight: 600; color: var(--navy); font-size: 15px; }

/* ---------- Card ---------- */
.formwrap { margin-top: -72px; padding-bottom: 80px; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(57,54,78,.25), 0 2px 6px rgba(57,54,78,.05);
  overflow: hidden;
}
.card__body { padding: 36px 48px 40px; }
.bar {
  background: var(--orange); color: var(--white);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
  padding: 22px 48px;
}
.bar h2, .bar span {
  font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: .04em;
  font-size: 24px; margin: 0;
}
.bar span { opacity: .9; font-size: 20px; }
.bar--soft { background: var(--navy); }

.eyebrow {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em;
  color: var(--navy); font-size: 19px; font-weight: 400; margin: 0 0 14px; padding: 0;
}
.eyebrow--section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--sand); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.req { color: var(--orange); font-style: normal; }

/* Fragen */
.grid-before { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px 56px; }
.questions { display: grid; gap: 26px; }
.q legend { font-size: 18px; color: var(--text); padding: 0; margin-bottom: 12px; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-block; min-width: 84px; text-align: center;
  padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 600; color: var(--navy); transition: .15s;
}
.pill input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--white); }
.pill input:focus-visible + span { outline: 3px solid rgba(242,122,42,.35); outline-offset: 2px; }
.pill:hover span { border-color: var(--orange); }

.inline-field { display: flex; align-items: center; gap: 10px; margin-top: 12px; max-width: 320px; }
.inline-field span { white-space: nowrap; color: var(--muted); }
.inline-field[hidden] { display: none; }

.source { background: var(--light); border-radius: 12px; padding: 22px 24px; align-self: start; }
.source__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.field--compact { margin-top: 14px; }
.field--compact[hidden] { display: none; }

/* Checkboxen */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid var(--orange); border-radius: 5px;
  background: var(--white); display: grid; place-items: center; cursor: pointer; transition: .15s;
}
.check input::after {
  content: ""; width: 6px; height: 11px; border: solid var(--white); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px); opacity: 0;
}
.check input:checked { background: var(--orange); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid rgba(242,122,42,.35); outline-offset: 2px; }
.check--block { margin-top: 18px; font-size: 16px; }
.textlink { color: var(--orange); font-weight: 600; white-space: nowrap; margin-left: 4px; }

.consent-text {
  margin: 32px 0 6px; padding: 20px 24px; border-left: 3px solid var(--orange);
  background: var(--blush); border-radius: 0 10px 10px 0; font-size: 17px;
}

/* Felder */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field__label { font-size: 14px; font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.field--wide { grid-column: 1 / -1; }
.field-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"] {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .15s, box-shadow .15s; min-height: 48px;
}
input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,122,42,.15); }
.inline-field input { padding: 8px 12px; min-height: 40px; }

/* Unterschrift */
.sign { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--sand); }
.sign--simple { grid-template-columns: 1fr 1.6fr; align-items: end; }
.sign__place, .sign__pad { display: flex; flex-direction: column; gap: 6px; }
.place-date { display: flex; flex-direction: column; gap: 8px; }
.today { display: block; padding: 12px 14px; background: var(--light); border-radius: 10px; color: var(--muted); min-height: 48px; }
.pad { position: relative; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--white); height: 170px; }
.pad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; border-radius: 12px; }
.pad::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 42px; border-bottom: 1px solid var(--sand); pointer-events: none; }
.pad__hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; color: var(--muted); pointer-events: none; }
.pad.is-signed .pad__hint { opacity: 0; }
.pad__clear {
  position: absolute; top: 10px; right: 10px; font: 600 13px var(--body); color: var(--navy);
  background: var(--light); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.pad__clear:hover { background: var(--sand); }

/* Fehler */
.is-invalid input[type="text"], .is-invalid input[type="email"], .is-invalid input[type="tel"], .is-invalid input[type="date"],
input.is-invalid { border-color: var(--error); }
.is-invalid .pill span, .is-invalid.check input, .is-invalid .pad { border-color: var(--error); }
fieldset.is-invalid legend, .check.is-invalid > span { color: var(--error); }

/* Absenden */
.submit { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.muted { color: var(--muted); font-size: 14px; margin: 0; }
.error { color: var(--error); font-weight: 600; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 16px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  background: var(--orange); color: var(--white); border: 0; border-radius: 999px;
  padding: 18px 38px 16px; cursor: pointer; transition: background .15s, transform .15s;
  box-shadow: 0 10px 24px -10px rgba(242,122,42,.7);
}
.btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--light); }

.success { text-align: center; padding: 64px 32px; }
.success__icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  background: var(--orange); color: var(--white); font-size: 30px;
}
.success h2 { font-family: var(--head); font-weight: 400; color: var(--navy); text-transform: uppercase; font-size: 32px; margin: 0 0 10px; }
.success p { max-width: 520px; margin: 0 auto 28px; }

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

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.8); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; padding-bottom: 26px; }
.footer nav { display: flex; gap: 22px; }
.footer a { text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.footer a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-before, .sign, .sign--simple { grid-template-columns: 1fr; }
  .card__body { padding: 28px 24px 32px; }
  .bar { padding: 18px 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topbar__inner { justify-content: center; gap: 16px; }
  .logo { width: 150px; }
  .hero { padding: 40px 0 100px; }
  .hero h1 { font-size: 26px; }
  .fields { grid-template-columns: 1fr; }
  .card__body { padding: 24px 18px 28px; }
  .bar { padding: 16px 18px; }
  .bar h2 { font-size: 20px; }
  .bar span { font-size: 16px; }
  .source { padding: 18px; }
  .btn { width: 100%; }
}
