/* Farben & Schrift wie ricon.de/bandabstreifer */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #2e2e2e;
  --surface: #383838;
  --surface-hover: #424242;
  --border: rgba(245, 245, 245, 0.14);
  --text: #f5f5f5;
  --muted: #b4b6b7;
  --blue: #016c9b;
  --blue-hover: #0281b8;
  --blue-soft: rgba(1, 108, 155, 0.18);
  --error: #ff8a80;
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 48px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
a { color: inherit; }

.enter { animation: enter 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .enter { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--muted); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--text); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue-hover); background: var(--blue-soft); }
:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 2px; }

/* ---------- Intro ---------- */
.intro { text-align: center; padding: 32px 0; display: grid; justify-items: center; gap: 20px; }
.intro .logo { height: 40px; width: auto; opacity: 0.9; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 520px; }

/* ---------- Frage ---------- */
.progress { height: 4px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--blue); transition: width 0.4s ease; }
.step-count { color: var(--muted); font-size: 0.8rem; margin: 10px 0 24px; letter-spacing: 0.02em; }
.question h2 { margin-bottom: 6px; }
.description { color: var(--muted); }
.answer { margin-top: 24px; display: grid; gap: 14px; }

.options { display: grid; gap: 10px; }
.option {
  font: inherit;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.option:hover { background: var(--surface-hover); border-color: rgba(245, 245, 245, 0.28); }
.option.selected { background: var(--blue-soft); border-color: var(--blue-hover); }
.option .key {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
}
.option.selected .key { background: var(--blue); border-color: var(--blue); color: #fff; }
.option .icon { flex: none; }

input, textarea {
  font: inherit;
  width: 100%;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s;
}
input::placeholder, textarea::placeholder { color: #8a8c8d; }
input:focus, textarea:focus { outline: none; border-color: var(--blue-hover); }
textarea { resize: vertical; }

.field { display: grid; gap: 6px; }
.field > span, .field-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field em { font-weight: 400; font-style: normal; }
.field-label { margin-top: 6px; }

.unit-input { display: flex; align-items: center; gap: 10px; max-width: 280px; }
.unit-input span { color: var(--muted); font-weight: 600; }
.unit-input input { appearance: textfield; -moz-appearance: textfield; }
.unit-input input::-webkit-inner-spin-button, .unit-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.85rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}
.chip:hover { border-color: var(--blue-hover); background: var(--blue-soft); }

.privacy-note, .consent { font-size: 0.78rem; color: var(--muted); }
.error { color: var(--error); font-size: 0.9rem; }
.hint { font-size: 0.75rem; color: var(--muted); text-align: right; }
@media (pointer: coarse) { .hint, .option .key { display: none; } }

.nav { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.spacer { flex: 1; }

/* ---------- Ergebnis ---------- */
.eyebrow { color: var(--blue-hover); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.result > h2 { margin-bottom: 24px; }
.products { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product.primary { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.product-img { background: #fff; aspect-ratio: 16 / 10; position: relative; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 18px; display: grid; gap: 10px; align-content: start; }
.product-body p { color: var(--muted); font-size: 0.92rem; }
.badge {
  justify-self: start;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: #7cc4e6;
}
.product.primary .badge { background: var(--blue); color: #fff; }
.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 0.88rem; }
.reasons li::before { content: '✓'; color: #7cc4e6; font-weight: 700; margin-right: 8px; }

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: grid; gap: 4px;
  font-size: 0.92rem;
}

.section-title { margin: 36px 0 14px; }
.cta-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cta {
  font: inherit;
  text-align: left;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid; gap: 4px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.cta:hover { background: var(--blue-hover); }
.cta:active { transform: scale(0.99); }
.cta strong { font-size: 1.05rem; }
.cta span { font-size: 0.88rem; opacity: 0.85; }
.cta:nth-child(2) { background: var(--surface); border: 1px solid var(--border); }
.cta:nth-child(2):hover { background: var(--surface-hover); }

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid; gap: 14px;
}
.lead-form input, .lead-form textarea { background: var(--bg); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }

.thanks {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  border: 1px solid var(--blue);
  display: grid; gap: 6px;
}

.specialist {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; gap: 18px; align-items: flex-start;
}
.avatar {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.2rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.specialist-info { display: grid; gap: 2px; }
.specialist .name { font-weight: 600; font-size: 1.1rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.specialist-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.result > .nav { margin-top: 24px; }

@media (max-width: 520px) {
  #app { padding: 24px 16px 32px; }
  .specialist { flex-direction: column; }
  .grid-2 { grid-template-columns: 1fr; }
}
