/* =========================================================
   SECTION MONSTERS – HeroAI-Shop-Audit
   css/audit.css

   Nutzt ausschließlich die Design-Tokens aus css/style.css
   (--bg, --panel, --text, --muted, --green, --purple, --radius-*, --ease).
   Eigener Namespace: .au-
   ========================================================= */

.audit-body {
  background: var(--bg);
  color: var(--text);
}

/* Eigener Platzhalter-Ton: hell genug zum Lesen, aber klar vom Eingabewert
   unterscheidbar. --faint bleibt ausschließlich Rahmen-/Trennlinien-Token. */
:root { --au-placeholder: rgba(242, 244, 239, .55); }

.au-main {
  width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 72px) 0 120px;
}

/* ---------- Eingabe ---------- */

.au-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.au-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 20px;
}

.au-title {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.au-grad {
  background: var(--purple-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.au-lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 58ch;
}

.au-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.au-inputwrap {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--faint);
  border-radius: var(--radius-md);
  padding: 0 18px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.au-inputwrap:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .18);
}

.au-inputwrap--error {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .16);
}

.au-inputprefix {
  color: var(--muted);
  font-size: 15px;
  user-select: none;
  padding-right: 2px;
}

.au-input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  padding: 18px 0;
  min-width: 0;
}

.au-input::placeholder { color: var(--au-placeholder); }

.au-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-md);
  padding: 18px 32px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #08080d;
  background: var(--green);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), opacity .2s;
}

.au-submit:hover:not(:disabled) { background: var(--green-bright); transform: translateY(-2px); }
.au-submit:disabled { opacity: .5; cursor: not-allowed; }
.au-submit:focus-visible { outline: 3px solid var(--purple-bright); outline-offset: 3px; }

.au-formhint {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  color: #fca5a5;
}

.au-trust {
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Fortschritt ---------- */

.au-progress { max-width: 620px; margin: 0 auto; }

.au-progress-inner {
  background: var(--panel);
  border: 1px solid var(--faint);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}

.au-spinner { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }

.au-spinner span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--purple-bright);
  animation: auBounce 1.2s infinite ease-in-out both;
}
.au-spinner span:nth-child(1) { animation-delay: -.32s; }
.au-spinner span:nth-child(2) { animation-delay: -.16s; }

@keyframes auBounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .45; }
  40%           { transform: scale(1);  opacity: 1; }
}

.au-progress-domain {
  font-size: 20px; font-weight: 800; margin: 0 0 28px; letter-spacing: -.01em;
}

.au-steps { list-style: none; margin: 0 0 28px; padding: 0; text-align: left; display: grid; gap: 12px; }

.au-steps li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--muted);
  transition: color .3s var(--ease);
}

.au-steps li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.au-steps li.is-active { color: var(--text); }
.au-steps li.is-active::before { border-color: var(--purple-bright); }

.au-steps li.is-done { color: var(--muted); }
.au-steps li.is-done::before {
  background: var(--green);
  border-color: var(--green);
}

.au-progress-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Ergebnis ---------- */

.au-result { max-width: 900px; margin: 0 auto; }

.au-rhead { text-align: center; margin-bottom: 44px; }

.au-rdomain {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.au-rmeta { font-size: 14px; color: var(--muted); margin: 0; }

.au-rsummary {
  font-size: 17px; line-height: 1.65; color: var(--muted);
  max-width: 62ch; margin: 20px auto 0;
}

/* Scores */

.au-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.au-score {
  background: var(--panel);
  border: 1px solid var(--faint);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  text-align: center;
}

.au-score-value {
  font-size: 52px; font-weight: 900; line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 6px;
}

.au-score-value small { font-size: 20px; font-weight: 700; color: var(--muted); }

.au-score--gut   .au-score-value { color: var(--green); }
.au-score--mittel .au-score-value { color: #fbbf24; }
.au-score--schwach .au-score-value { color: #f87171; }
.au-score--leer  .au-score-value { color: var(--muted); font-size: 30px; }

.au-score-label { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.au-score-note  { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

.au-score-bar {
  height: 6px; border-radius: 999px; background: rgba(242,244,239,.1);
  margin: 16px 0 0; overflow: hidden;
}
.au-score-bar i { display: block; height: 100%; border-radius: 999px; background: currentColor; }

/* Disclaimer – bewusst prominent, nicht kleingedruckt */

.au-disclaimer {
  background: linear-gradient(135deg, rgba(124,92,255,.14), rgba(168,85,247,.07));
  border: 1px solid rgba(124,92,255,.4);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 44px;
}

.au-disclaimer h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; margin: 0 0 10px;
}

.au-disclaimer h3::before { content: "ℹ️"; font-size: 18px; }

.au-disclaimer p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }

.au-disclaimer ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }

.au-disclaimer li {
  display: flex; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--muted);
}
.au-disclaimer li::before { content: "—"; color: var(--purple-bright); flex: 0 0 auto; }

.au-disclaimer-out {
  font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0; font-weight: 600;
}

/* Listen: Probleme / Empfehlungen */

.au-block { margin-bottom: 44px; }

.au-block-h {
  font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  margin: 0 0 20px; display: flex; align-items: baseline; gap: 12px;
}

.au-block-h span { font-size: 14px; font-weight: 600; color: var(--muted); }

.au-items { display: grid; gap: 12px; }

.au-item {
  display: flex; gap: 18px;
  background: var(--panel);
  border: 1px solid var(--faint);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.au-item-nr {
  flex: 0 0 auto;
  font-size: 13px; font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.au-item-body { flex: 1; min-width: 0; }

.au-item-title {
  font-size: 16px; font-weight: 700; margin: 0 0 6px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.au-item-text { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

.au-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

.au-tag--hoch    { background: rgba(248,113,113,.16); color: #fca5a5; }
.au-tag--mittel  { background: rgba(251,191,36,.16);  color: #fcd34d; }
.au-tag--niedrig { background: rgba(242,244,239,.1);  color: var(--muted); }
.au-tag--gering  { background: rgba(139,214,38,.16);  color: var(--green-bright); }
.au-tag--hoch-aufwand { background: rgba(242,244,239,.1); color: var(--muted); }

/* Lead-Formular */

.au-lead-card {
  background: var(--panel-2);
  border: 1px solid var(--faint);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
}

.au-lead-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; }
.au-lead-card > p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }

.au-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }

.au-field {
  background: var(--panel);
  border: 1px solid var(--faint);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text);
  font: inherit; font-size: 15px;
  outline: none;
  transition: border-color .25s var(--ease);
  min-width: 0;
}
.au-field::placeholder { color: var(--au-placeholder); }
.au-field:focus { border-color: var(--purple); }

.au-consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
  margin-bottom: 20px; cursor: pointer;
}

.au-consent input { margin-top: 3px; accent-color: var(--purple-bright); flex: 0 0 auto; width: 17px; height: 17px; }
.au-consent a { color: var(--text); text-decoration: underline; }
.au-consent--error { color: #fca5a5; }

.au-lead-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.au-lead-btn {
  border: 0; border-radius: var(--radius-md);
  padding: 15px 28px; font: inherit; font-size: 15px; font-weight: 700;
  color: #fff; background: var(--purple); cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.au-lead-btn:hover:not(:disabled) { background: var(--purple-bright); transform: translateY(-2px); }
.au-lead-btn:disabled { opacity: .55; cursor: not-allowed; }

.au-lead-msg { font-size: 14px; margin: 0; }
.au-lead-msg--ok    { color: var(--green-bright); }
.au-lead-msg--error { color: #fca5a5; }

/* Abschluss-CTA */

.au-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--faint);
}

.au-cta h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px; }
.au-cta p  { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; max-width: 54ch; margin-inline: auto; }

.au-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.au-btn-primary,
.au-btn-ghost {
  display: inline-block;
  border-radius: var(--radius-md);
  padding: 15px 30px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.au-btn-primary { background: var(--green); color: #08080d; }
.au-btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); }

.au-btn-ghost { border: 1px solid var(--faint); color: var(--text); }
.au-btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

.au-again {
  background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 14px; text-decoration: underline;
  cursor: pointer; margin-top: 26px;
}
.au-again:hover { color: var(--text); }

/* Fehlerzustand */

.au-error {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid rgba(248,113,113,.35);
  border-radius: var(--radius-lg); padding: 40px 34px;
}
.au-error h2 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.au-error p  { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }

/* ---------- Teaser auf der Startseite ---------- */

.au-teaser {
  width: var(--container);
  margin: 0 auto 120px;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(139,214,38,.08));
  border: 1px solid rgba(124,92,255,.34);
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 48px;
  align-items: center;
}

.au-teaser-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); margin: 0 0 16px;
}

.au-teaser h2 {
  font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -.025em;
  line-height: 1.06; margin: 0 0 16px; text-wrap: balance;
}

.au-teaser p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; max-width: 52ch; }

.au-teaser-media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
}

/* Platzhalter greift nur, solange das Bild keine Quelle hat. Bewusst per
   :has() statt über eine JS-Klasse: Die vorige Fassung versteckte das Bild
   mit display:none und wartete auf dessen onload – ein Bild ohne Layout-Box
   lädt aber nie, also blieb der Platzhalter für immer stehen. */
.au-teaser-media:not(:has(img[src])) {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--faint);
  display: grid; place-items: center;
  color: var(--muted); font-size: 13px;
}
.au-teaser-media:not(:has(img[src]))::after { content: "Bild folgt"; }

@media (max-width: 900px) {
  .au-teaser { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  .au-teaser-media { order: -1; max-width: 320px; }
}

@media (max-width: 720px) {
  .au-main { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
  .au-form { flex-direction: column; }
  /* In der Spaltenrichtung wirkt die flex-basis auf die HÖHE – ohne diesen
     Reset würde das Eingabefeld 340px hoch statt breit. */
  .au-inputwrap { flex: 0 0 auto; width: 100%; }
  .au-submit { width: 100%; }
  .au-progress-inner { padding: 36px 24px; }
  .au-disclaimer, .au-lead-card { padding: 24px 22px; }
  .au-item { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .au-spinner span { animation: none; opacity: .8; }
  .au-submit:hover, .au-lead-btn:hover, .au-btn-primary:hover, .au-btn-ghost:hover { transform: none; }
}
