/* Fragebogen Kostprobe. Tokens wie packages/ui/src/tokens.css und mitalles.at/app. */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/app/fonts/anton-400-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/app/fonts/manrope-var-latin.woff2) format('woff2');
  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: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/app/fonts/manrope-var-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --red: #B23134;
  --coral: #E8503F;
  --coral-dark: #C93F30;
  --aqua: #22B4BF;
  --ink: #131415;
  --bone: #F6EBE0;
  --cream: #FBF6EF;
  --stone: #E5D8C8;
  --stone2: #CDBBA2;
  --text2: #5A524A;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
  --radius: 14px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bone);
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--stone);
}
.logo { display: block; width: 120px; height: auto; margin: 0 auto 10px; }
.progress { height: 6px; border-radius: 3px; background: var(--stone); overflow: hidden; max-width: 640px; margin: 0 auto; }
.progress-bar { height: 100%; width: 0; background: var(--coral); transition: width 0.3s ease; }

.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px calc(40px + env(safe-area-inset-bottom)); }
.loading { text-align: center; color: var(--text2); margin-top: 40px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 6px;
}
h1 { font-size: 34px; }
h2 { font-size: 26px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin: 0 0 4px;
}
.lead { color: var(--text2); margin: 0 0 18px; }

.q {
  border: 0;
  margin: 0 0 14px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 2px solid transparent;
  min-width: 0;
}
.q.sub { margin-left: 14px; border-left: 4px solid var(--aqua); }
.q.missing { border-color: var(--coral); }
.q legend, .q .qtitle {
  float: left;
  width: 100%;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 12px;
  padding: 0;
}
.q legend + * { clear: both; }
.missing-hint { color: var(--coral-dark); font-size: 14px; font-weight: 600; margin: 8px 0 0; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (min-width: 560px) { .scale { grid-template-columns: repeat(10, 1fr); } }
.scale-hint { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); margin: 6px 2px 0; }

.opt {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--stone2);
  border-radius: 12px;
  min-height: 52px;
  padding: 10px 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-weight: 600;
}
.scale .opt { font-size: 19px; font-weight: 800; padding: 0; }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.opt:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.opt:disabled { cursor: not-allowed; opacity: 0.55; }

.choices { display: grid; gap: 8px; }
.choices .opt { text-align: left; display: flex; align-items: center; gap: 10px; }
.choices .opt .box {
  flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid var(--stone2); background: #fff;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
}
.choices .opt[aria-pressed="true"] .box { border-color: var(--bone); background: var(--bone); color: var(--ink); }
.choices.radio .opt .box { border-radius: 50%; }

.opt.na {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
  background: transparent;
  border-style: dashed;
  font-weight: 600;
  font-size: 15px;
  color: var(--text2);
}
.opt.na[aria-pressed="true"] { background: var(--text2); border-color: var(--text2); border-style: solid; color: #fff; }

label.field { display: block; margin: 0 0 14px; font-weight: 700; }
label.field span.req { color: var(--coral-dark); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--stone2);
  border-radius: 12px;
  padding: 13px 14px;
  min-height: 52px;
}
textarea { min-height: 120px; resize: vertical; }
input.invalid { border-color: var(--coral); }
.field-error { display: block; color: var(--coral-dark); font-size: 14px; font-weight: 600; margin-top: 6px; }
.counter { display: block; text-align: right; font-size: 13px; color: var(--text2); font-weight: 500; margin-top: 4px; }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--cream); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px;
  font-weight: 500; font-size: 16px; cursor: pointer; border: 2px solid transparent;
}
.check.missing { border-color: var(--coral); }
.check input { flex: 0 0 26px; width: 26px; height: 26px; margin: 0; accent-color: var(--coral); }
.check a { color: var(--red); font-weight: 700; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.price-row { display: flex; gap: 8px; align-items: stretch; }
.price-row .euro { flex: 1; position: relative; }
.price-row .euro input { margin-top: 0; padding-right: 40px; font-size: 22px; font-weight: 800; }
.price-row .euro::after { content: "€"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 20px; color: var(--text2); }
.reveal {
  background: var(--ink); color: var(--bone); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 14px;
}
.reveal .big { font-family: var(--display); font-size: 28px; line-height: 1.15; letter-spacing: 0.01em; }
.reveal .you { color: var(--stone2); font-size: 15px; margin-top: 6px; }
.locked-note { font-size: 14px; color: var(--text2); margin: 8px 0 0; }

.nav { display: grid; gap: 10px; margin-top: 22px; }
.nav.two { grid-template-columns: 1fr 2fr; }
.btn {
  appearance: none; -webkit-appearance: none; font: inherit; font-weight: 800; font-size: 17px;
  min-height: 56px; border-radius: 14px; border: 2px solid var(--coral); background: var(--coral); color: #fff;
  cursor: pointer; padding: 12px 18px; touch-action: manipulation;
}
.btn:active { background: var(--coral-dark); border-color: var(--coral-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--stone2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.link-btn { background: none; border: 0; font: inherit; color: var(--text2); text-decoration: underline; padding: 10px 0; cursor: pointer; }

.error-box { background: #fff; border: 2px solid var(--coral); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0 0; font-weight: 600; }

.thanks { text-align: center; padding-top: 36px; }
.thanks h1 { font-size: 40px; margin-bottom: 14px; }
.thanks .claim { font-family: var(--display); font-size: 24px; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
.thanks .review { margin: 0 0 22px; }
.thanks .review p { margin: 0 0 14px; }
.thanks .review .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.thanks .accent { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--aqua); margin: 6px 0 22px; }

.q, .check, label.field { scroll-margin-top: 110px; }

.optional { font-size: 13px; color: var(--text2); font-weight: 500; }
