/* hidden-Attribut muss IMMER gewinnen — auch gegen display:flex/grid der Komponenten */
[hidden] { display: none !important; }

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-tint: rgba(0, 113, 227, .08);
  --ok: #1d8a3e;
  --warn: #d70015;
  --line: #d2d2d7;
  --field: #f5f5f7;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px -14px rgba(0,0,0,.12);
  /* Animations-Leitsystem */
  --ease-std: cubic-bezier(.2,.7,.2,1);   /* Bewegung: Reveals, Slides, Hover-Lifts, Balken, Menüs */
  --ease-pop: cubic-bezier(.2,.9,.3,1.4); /* Pops: Haken, Badges, Stempel, Logo-Pops */
  --dur-hover: .18s;  --dur-in: .55s;  --dur-gross: 1.4s;  --stagger: 70ms;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  padding: 56px 20px 96px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; } /* wie die Startseite — App wirkt sonst eingeengt */

/* Topbar (Login aktiv) */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
/* Einheitliche Bereichs-Navigation: gleiche Links auf allen App-Seiten, aktive Seite hervorgehoben */
.topbar-nav { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.tb-link { font: inherit; font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 7px 13px; border-radius: 10px; transition: background var(--dur-hover) var(--ease-std), color var(--dur-hover) var(--ease-std); white-space: nowrap; }
.tb-link:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.tb-link.active { background: var(--accent-tint); color: var(--accent); font-weight: 700; }
.btn-dash { display: inline-flex; align-items: center; gap: 6px; }
.btn-dash svg { flex: none; }
/* Listimo-Logo links in der App-Topbar (order:-1, weil auth.js den Nutzer-Chip per prepend einfügt) */
.topbar-brand { order: -1; margin-right: auto; display: flex; align-items: center; }
.topbar-brand img { height: 25px; width: auto; display: block; }
.topbar .topbar-user { margin-right: 0; }
/* TOPBAR MOBIL (03.09.2026, Enes: „Head-Leiste auf dem Handy nicht optimal"): zwei ruhige Zeilen statt
   vier umgebrochener — Zeile 1: Logo · Credits · ⚡ · Avatar, Zeile 2: Bereichs-Navigation (seitlich
   wischbar) · Abmelden. Der Name steht im Gruß der Seite, die Sprachwahl schwebt unten links. */
@media (max-width: 640px) {
  body { padding: 18px 14px 84px; }
  .topbar { gap: 8px; row-gap: 10px; margin-bottom: 14px; }
  .topbar-brand img { height: 22px; }
  .topbar .topbar-user { order: 3; font-size: 0; gap: 0; }
  .topbar .topbar-user img { width: 30px; height: 30px; }
  .topbar #creditChip { order: 1; padding: 5px 10px; font-size: .76rem; }
  .topbar .btn-topup { order: 2; font-size: 0; padding: 7px 9px; }
  .topbar .btn-topup::before { content: "⚡"; font-size: .95rem; line-height: 1; }
  .topbar-nav { order: 4; flex: 1 1 calc(100% - 44px); min-width: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0; padding-bottom: 2px; }
  .topbar-nav::-webkit-scrollbar { display: none; }
  .tb-link { font-size: .78rem; padding: 6px 6px; }
  .topbar #logoutBtn { order: 5; font-size: 0; padding: 6px 9px; white-space: nowrap; }   /* nur das Symbol — der Text bleibt für Screenreader im DOM */
  .topbar #logoutBtn::before { content: "⏻"; font-size: .9rem; line-height: 1; }
  .topbar #langMount { display: none; }
  .hero-compact { margin-bottom: 16px; }
  .hero-compact p { font-size: .92rem; }
}
.btn-danger { color: #c93b3b; border: 1px solid rgba(201,59,59,.4); background: #fff; transition: background var(--dur-hover) var(--ease-std), color var(--dur-hover) var(--ease-std); }
.btn-danger:hover { background: #fdeaec; }
.wrap-narrow { max-width: 560px; }

/* Login / Registrierung */
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; font-weight: 600; }
.auth-form input {
  font: inherit; font-weight: 400;
  border: none; border-radius: 12px;
  padding: 12px 14px; background: var(--field);
}
.auth-form input:focus { outline: 2px solid var(--accent); }
.auth-form .btn-primary { margin-top: 6px; }

/* Profil: Avatar */
.avatar-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.avatar {
  position: relative;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--field);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; cursor: pointer; padding: 0;
  border: 3px solid #fff; box-shadow: var(--shadow);
  overflow: visible;
  transition: transform var(--dur-hover) var(--ease-std);
}
.avatar:hover { transform: scale(1.04); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-edit {
  position: absolute; bottom: -2px; right: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
#profilName { letter-spacing: -.01em; }

/* Profil: Einstellungen */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 560px) { .settings-grid { grid-template-columns: 1fr; } }

/* Gutschein-Einlösung im Dashboard: volle Grid-Breite unter den Kacheln */
.gutschein-zeile { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid rgba(0,0,0,.05); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); }
.gutschein-zeile .gz-icon { font-size: 1.15rem; }
.gutschein-zeile label { font-weight: 600; font-size: .92rem; margin: 0; }
.gutschein-zeile input { font: inherit; font-size: .95rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-transform: uppercase; flex: 0 1 200px; min-width: 140px; }
.gutschein-zeile input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.gutschein-zeile .msg { margin: 0; font-size: .85rem; }
@media (max-width: 560px) { .gutschein-zeile label { display: none; } .gutschein-zeile input { flex: 1; } }

/* Profil → „Deine Statistik": volle Kennzahlen-Übersicht im Look der Dashboard-Kacheln
   (weiße Karten mit Schatten, Icon, Hover-Anheben, gestaffeltes Einschweben) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.stat-zelle {
  background: var(--card); border: 1px solid rgba(0,0,0,.05); border-radius: 16px;
  padding: 16px 16px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
  transition: transform var(--dur-hover) var(--ease-std), box-shadow var(--dur-hover) var(--ease-std);
  animation: stat-rise var(--dur-in) var(--ease-std) both;
}
.stat-zelle:nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
.stat-zelle:nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.stat-zelle:nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
.stat-zelle:nth-child(5) { animation-delay: calc(var(--stagger) * 4); }
.stat-zelle:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.09); }
@keyframes stat-rise { from { opacity: 0; transform: translateY(14px); } }
.stat-zelle .stat-ico { font-size: 1.15rem; line-height: 1; margin-bottom: 5px; }
.stat-zelle b { display: block; font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-zelle span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.stat-breit { grid-column: 1 / -1; background: linear-gradient(135deg, #eef6ff, #f4fbf6); border-color: rgba(0, 113, 227, .16); }
.stat-breit b { color: var(--accent); font-size: 1.85rem; }
@media (prefers-reduced-motion: reduce) { .stat-zelle { animation: none; } .stat-zelle:hover { transform: none; } }
.settings-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.settings-grid input {
  font: inherit; font-weight: 400;
  border: none; border-radius: 12px;
  padding: 11px 14px; background: var(--field);
}
.settings-grid input:focus { outline: 2px solid var(--accent); }
.settings-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.settings-actions .msg { margin-top: 0; }
.settings-divider { height: 1px; background: #ececf0; margin: 22px 0 8px; }
/* Markenprofil als hervorgehobener Tipp (spart Zeit + bessere KI-Texte) */
.brand-tip { position: relative; border: 1px solid rgba(0,113,227,.28); background: linear-gradient(135deg, #f0f7ff, #f7fbff); border-radius: 16px; padding: 16px 18px; }
/* Roter Hinweis-Punkt an der Box selbst — Ziel des Punkts am Profil-Button */
.brand-tip .nav-punkt { top: 12px; right: 12px; }
.brand-tip-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.brand-tip-ico { font-size: 1.5rem; line-height: 1; flex: none; }
.brand-tip-title { font-weight: 700; font-size: 1rem; color: #0a5bbf; margin-bottom: 3px; }
.brand-tip-sub { font-size: .88rem; line-height: 1.5; color: #3a4a5c; }
.brand-tip-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 2px; }

/* Automatisches Aufladen */
.ar-optin {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  background: var(--field); border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  padding: 12px 14px; margin: 14px 0 4px; font-size: .9rem; line-height: 1.45;
}
.ar-optin input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--accent); cursor: pointer; flex: none; }
.ar-inline-num { width: 58px; padding: 2px 6px; font: inherit; font-size: .9rem; border: 1px solid rgba(0,0,0,.2); border-radius: 7px; text-align: center; }
.ar-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 14px 0 4px; font-size: .95rem; }
.ar-toggle input { width: auto; accent-color: var(--accent); cursor: pointer; }
.ar-fields { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.ar-fields label { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.ar-field-row { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); }
.ar-fields input[type="number"] { width: 80px; padding: 7px 10px; font: inherit; border: 1px solid rgba(0,0,0,.16); border-radius: 10px; }
.ar-fields select { padding: 7px 10px; font: inherit; border: 1px solid rgba(0,0,0,.16); border-radius: 10px; background: #fff; }

/* Topbar: Mini-Avatar + Name */
.topbar-user { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: .88rem; font-weight: 600; }
.topbar-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* Profil */
.credit-card { text-align: center; }
.credit-big { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 4px; }
.packages { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pkg {
  flex: 1 1 140px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--field); border-radius: 14px;
  padding: 18px 12px;
  transition: background var(--dur-hover) var(--ease-std);
}
.pkg:hover { background: var(--accent-tint); }
.pkg:disabled { opacity: .5; }
.pkg-credits { font-weight: 700; font-size: 1.05rem; }
.pkg-price { color: var(--muted); font-size: .9rem; }
.pkg-price small { font-size: .68rem; }
.pkg { position: relative; }
.pkg-pop { border: 2px solid var(--accent); }
.pkg-flag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .66rem; font-weight: 700;
  border-radius: 980px; padding: 2px 10px; white-space: nowrap;
}
.pkg-approx { display: block; color: var(--accent); font-size: .76rem; font-weight: 650; margin-top: 4px; }
.pkg { cursor: pointer; border: 2px solid transparent; }
.pkg-pop { border-color: var(--accent); }
/* Spar-Chip auf den Paket-Kacheln (Ersparnis vs. kleinstes Paket) */
.pkg-spar { display: inline-block; background: #e8f6ec; color: var(--ok); font-size: .7rem; font-weight: 700; border-radius: 980px; padding: 2px 10px; margin-top: 4px; }
.pkg-spar-leer { background: var(--field); color: var(--muted); }
/* Ausgewähltes Paket (Schritt 1 des Kaufs) deutlich markieren */
.pkg-selected { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.pkg-selected::after { content: "✓"; position: absolute; top: 8px; right: 10px; color: var(--accent); font-weight: 800; font-size: .95rem; }
/* Bestätigungs-Schritt vor der Bezahlung */
.buy-confirm { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ececf0; display: flex; flex-direction: column; gap: 12px; }
.buy-confirm-btn { align-self: flex-start; font-size: 1rem; padding: 12px 28px; }
.pay-badges { display: inline-flex; gap: 5px; vertical-align: -4px; margin: 0 4px; }
.pb {
  display: inline-flex; align-items: center; justify-content: center; height: 19px;
  padding: 0 6px; border: 1px solid rgba(0,0,0,.12); border-radius: 4px; background: #fff; font-style: normal;
}
.pb-visa { color: #1a1f71; font-weight: 800; font-size: .6rem; letter-spacing: .6px; font-style: italic; }
.pb-mc s { width: 10px; height: 10px; border-radius: 50%; display: inline-block; text-decoration: none; }
.pb-mc s:first-child { background: #eb001b; margin-right: -4px; }
.pb-mc s:last-child { background: #f79e1b; opacity: .92; }
/* Erstnutzer-Band im Dashboard: der Gratis-Bonus ist aktiv */
.bonus-band {
  background: #e7f5ec; border: 1px solid #cdebd8; color: #14532d;
  border-radius: 16px; padding: 14px 20px; margin-bottom: 14px;
  font-size: .92rem; text-align: center;
}
.bonus-band a { color: #14532d; font-weight: 700; }
/* Roter Hinweis-Punkt am Profil-Button (wie ungelesene Benachrichtigung):
   sichtbar, solange das Markenprofil leer ist */
.nav-mit-punkt { position: relative; }
.nav-punkt {
  position: absolute; top: -3px; right: -3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b30; box-shadow: 0 0 0 2px #fff;
}
/* Markenprofil-Tipp-Zeile: blau wie die Tipp-Box im Profil, wegklickbar */
.brand-band {
  position: relative;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f0f7ff, #f7fbff); border: 1px solid rgba(0,113,227,.25);
  border-radius: 16px; padding: 12px 42px 12px 18px; margin-bottom: 14px;
  font-size: .9rem; line-height: 1.45;
}
.brand-band .bb-text { flex: 1 1 320px; }
.brand-band .bb-text b { color: #0a5bbf; }
.bb-close {
  position: absolute; top: 8px; right: 10px;
  border: 0; background: none; cursor: pointer;
  font-size: 1.15rem; line-height: 1; color: var(--muted); padding: 4px;
  transition: color var(--dur-hover) var(--ease-std);
}
.bb-close:hover { color: #1d1d1f; }
/* Upgrade-Karte: Stufe nicht bezahlbar → ausgegraut + Fehlbetrag */
.qu-btn.qu-lack { opacity: .55; cursor: not-allowed; }
.qu-topup { align-self: center; }
.tx-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 12px; }
.tx-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid #ececf0; }
.tx-table td { padding: 10px; border-bottom: 1px solid #f4f4f6; vertical-align: top; }
.tx-table tr:last-child td { border-bottom: none; }
.tx-plus { color: var(--ok); font-weight: 700; }
.tx-minus { color: var(--warn); font-weight: 700; }
.error a { margin-left: 4px; }

/* Hero */
.hero { text-align: center; margin-bottom: 44px; }
.hero-compact { margin-bottom: 28px; }
.hero-compact h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.hero-compact p { font-size: 1rem; margin-top: 6px; }

/* ===== Wizard ===== */
.stepper {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 26px; flex-wrap: wrap;
}
.step-dot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; padding: 6px 14px; border-radius: 12px;
  cursor: pointer; transition: opacity var(--dur-hover) var(--ease-std);
}
.step-dot:disabled { opacity: .35; cursor: default; }
.step-dot .dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #e3e3e8; color: var(--muted);
  font-size: .85rem; font-weight: 600;
  transition: background var(--dur-hover) var(--ease-std), color var(--dur-hover) var(--ease-std), transform var(--dur-hover) var(--ease-std);
}
.step-dot.active .dot { background: var(--accent); color: #fff; transform: scale(1.15); }
.step-dot.done .dot { background: var(--ink); color: #fff; }
/* Erledigt-Häkchen poppt kurz auf, statt per font-size-Sprung zu erscheinen */
.step-dot.done .dot::before { content: "✓"; animation: dot-pop var(--dur-hover) var(--ease-pop); }
.step-dot.done .dot { font-size: 0; }
.step-dot.done .dot::before { font-size: .85rem; }
@keyframes dot-pop { from { transform: scale(0); } }
.dot-label { font-size: .72rem; color: var(--muted); font-weight: 500; }
.step-dot.active .dot-label { color: var(--accent); font-weight: 700; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: stepIn var(--dur-in) var(--ease-std); }
.step-panel.active.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }

.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.step-msg { margin-top: 14px; }

/* Schritt 1: Produkt-Typ-Karten */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .type-cards { grid-template-columns: 1fr; } }
.type-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 28px 20px;
  background: var(--field); border: 2px solid transparent; border-radius: 16px;
  cursor: pointer; transition: border-color var(--dur-hover) var(--ease-std), background var(--dur-hover) var(--ease-std), transform var(--dur-hover) var(--ease-std);
}
.type-card:hover { transform: translateY(-2px); }
.type-card input { display: none; }
.type-card:has(input:checked) { background: var(--accent-tint); border-color: var(--accent); }
.type-icon { font-size: 2rem; }
.type-title { font-weight: 700; font-size: 1.02rem; }
.type-card:has(input:checked) .type-title { color: var(--accent); }
.type-sub { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* Chip-Kosten-Tags */
.chip .chip-cost { font-style: normal; font-size: .74rem; color: var(--muted); margin-left: 2px; }
.chip:has(input:checked) .chip-cost { color: var(--accent); }

/* Live-Kosten in Schritt 4 */
.live-cost {
  margin-top: 20px; padding: 12px 16px;
  background: var(--field); border-radius: 12px;
  font-size: .92rem; color: var(--muted); text-align: center;
}
.live-cost strong { color: var(--ink); }

/* Schritt 5: Übersicht */
.summary-recap { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.summary-recap strong { color: var(--ink); }
.cost-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cost-table td { padding: 10px 6px; border-bottom: 1px solid #f0f0f2; }
.cost-table td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.cost-table .total-row td { border-bottom: none; border-top: 2px solid var(--ink); font-weight: 700; font-size: 1rem; padding-top: 14px; }
.balance-box { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-size: .93rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.balance-ok { background: #e8f6ec; color: var(--ok); }
.balance-bad { background: #fdeaec; color: var(--warn); }

/* Erweitert-Bereich (API-Key) */
.advanced { margin-top: 40px; }
.advanced summary { cursor: pointer; color: var(--muted); font-size: .85rem; padding: 8px 4px; }
.advanced[open] summary { margin-bottom: 12px; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.1;
}
.hero p { font-size: 1.2rem; color: var(--muted); margin-top: 10px; font-weight: 400; }

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.step-n {
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600;
}
.hint { font-size: .82rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.sub-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.block-label { margin: 28px 0 12px; }
.msg { font-size: .85rem; margin-top: 10px; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--warn); }

/* Buttons */
button { font: inherit; cursor: pointer; border: none; }
.btn-primary {
  background: var(--accent); color: #fff;
  border-radius: 980px;
  padding: 14px 32px;
  font-size: 1.05rem; font-weight: 500;
  transition: background var(--dur-hover) var(--ease-std);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: #b8d6f5; cursor: not-allowed; }
.btn-sm-pad { padding: 10px 22px; font-size: .92rem; text-decoration: none; display: inline-block; }
.btn-small {
  background: var(--field); color: var(--ink);
  border-radius: 980px;
  padding: 7px 15px;
  font-size: .82rem; font-weight: 500;
  transition: background var(--dur-hover) var(--ease-std);
  white-space: nowrap;
}
.btn-small:hover { background: #e8e8ed; }
.btn-small:disabled { color: var(--muted); background: var(--field); cursor: default; }
.btn-small.btn-blue { background: var(--accent); color: #fff; }
.btn-small.btn-blue:hover { background: var(--accent-hover); }
.linklike { background: none; color: var(--accent); font-size: .82rem; padding: 0; }
.linklike:hover { text-decoration: underline; }
a.btn-small { text-decoration: none; display: inline-flex; align-items: center; }

/* API-Key */
.key-card { padding: 22px 30px; }
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.key-head h2 { margin: 0; font-size: 1.05rem; }
.chip-status { font-size: .78rem; font-weight: 600; padding: 5px 14px; border-radius: 980px; white-space: nowrap; }
.chip-gray { background: var(--field); color: var(--muted); }
.chip-green { background: #e8f6ec; color: var(--ok); }
.chip-red { background: #fdeaec; color: var(--warn); }
.chip-amber { background: #fff4e0; color: #9a6a00; }
.key-row { display: flex; gap: 8px; flex-wrap: wrap; }
.key-row input {
  flex: 1 1 220px; font: inherit;
  border: none; border-radius: 12px;
  padding: 10px 14px; background: var(--field);
  font-family: ui-monospace, Consolas, monospace; font-size: .88rem;
}
.key-row input:focus { outline: 2px solid var(--accent); }

/* Upload */
.upload-zone {
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-hover) var(--ease-std), background var(--dur-hover) var(--ease-std);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-tint); }
.upload-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--field); color: var(--muted);
  font-size: 1.6rem; line-height: 48px;
  margin: 0 auto 12px;
}
#uploadPrompt strong { display: block; font-size: 1.05rem; font-weight: 600; }
#uploadPrompt span { color: var(--muted); font-size: .85rem; }
.preview-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.preview-grid img { max-height: 160px; max-width: 200px; border-radius: 12px; object-fit: contain; background: #fff; display: block; }
.thumb { position: relative; }
/* Foto-Scan: blaue Scan-Linie fährt über die Vorschaubilder, Zone glüht sanft —
   der Nutzer SIEHT, dass die KI das Bild gerade liest */
.upload-zone.scanning { border-color: var(--accent); animation: scan-glow 1.6s ease-in-out infinite; }
.upload-zone.scanning .thumb { overflow: hidden; border-radius: 12px; }
.upload-zone.scanning .thumb::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 113, 227, .16) 55%, rgba(0, 113, 227, .5) 97%, rgba(255, 255, 255, .9) 100%);
  animation: scan-sweep 1.5s cubic-bezier(.4, 0, .6, 1) infinite;
  pointer-events: none;
}
@keyframes scan-sweep {
  0% { transform: translateY(-105%); }
  60%, 100% { transform: translateY(240%); }
}
@keyframes scan-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 113, 227, 0); }
  50% { box-shadow: 0 0 26px rgba(0, 113, 227, .35); }
}
@media (prefers-reduced-motion: reduce) {
  .upload-zone.scanning, .upload-zone.scanning .thumb::after { animation: none; }
}
.thumb-x {
  position: absolute; top: -9px; right: -9px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 1rem; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: background var(--dur-hover) var(--ease-std);
}
.thumb-x:hover { background: var(--warn); }
.preview-count { flex-basis: 100%; text-align: center; font-size: .82rem; color: var(--muted); }
.scan-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* Schritt 2: Quelle wählen — eigene Fotos ODER per ASIN von Amazon übernehmen */
.src-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--field); border-radius: 14px; padding: 6px; margin-bottom: 20px;
}
.src-tab {
  font: inherit; font-weight: 600; font-size: .92rem;
  border: none; background: transparent; color: var(--muted);
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  transition: background var(--dur-hover) var(--ease-std), color var(--dur-hover) var(--ease-std), box-shadow var(--dur-hover) var(--ease-std);
}
.src-tab:hover { color: var(--ink); }
.src-tab.is-active { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.08); }


.asin-import {
  border: 1.5px solid var(--line); border-radius: 16px;
  padding: 22px 20px; background: var(--field);
}
.asin-lead { font-size: .92rem; color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.asin-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.asin-row #asinInput {
  flex: 1 1 260px; min-width: 200px; font: inherit;
  border: none; border-radius: 12px; padding: 12px 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.asin-row #asinInput:focus { outline: 2px solid var(--accent); }
.asin-mk-wrap { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.asin-mk-label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
/* Quell-Marktplatz nutzt dasselbe Flaggen-Dropdown wie Schritt 1, nur kompakter */
.asin-mk-dd { width: 230px; max-width: 230px; }
.asin-mk-dd .mk-trigger { background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 14px; }
.asin-mk-dd .mk-trigger:hover { background: #f5f5f7; }

@media (max-width: 560px) { .asin-mk-wrap, .asin-mk-dd { width: 100%; max-width: none; } }
.asin-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.asin-actions .hint { margin-top: 0; }
#asinMsg { margin-top: 14px; }
.import-note {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 12px;
  background: var(--accent-tint); color: var(--accent);
  font-size: .9rem; font-weight: 600; line-height: 1.5;
}

.hint-inline { font-weight: 400; text-transform: none; letter-spacing: 0; }
.highlights-text { font-size: .98rem; line-height: 1.5; margin-top: 10px; }
.desc-text { font-size: .95rem; line-height: 1.65; margin-top: 10px; white-space: pre-line; }
.search-terms { font-size: .92rem; line-height: 1.6; margin-top: 10px; font-family: ui-monospace, Consolas, monospace; background: var(--field); border-radius: 10px; padding: 12px 14px; word-break: break-word; }

/* Formular */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields label { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; font-weight: 600; }
.fields .span2 { grid-column: 1 / -1; }
.fields input, .fields textarea {
  font: inherit; font-weight: 400;
  border: none; border-radius: 12px;
  padding: 11px 14px; background: var(--field);
  resize: vertical;
}
.fields input:focus, .fields textarea:focus { outline: 2px solid var(--accent); }
.fields .hint { margin-top: 0; font-weight: 400; }

/* Foto-Scan: KI-vorausgefüllte Felder deutlich markieren (warmes Feld + Ring),
   Markierung verschwindet, sobald der Kunde das Feld bearbeitet. */
.fields input.scan-filled, .fields textarea.scan-filled {
  background: #fff7e8;
  box-shadow: inset 0 0 0 2px #e2a63a;
  transition: background .35s var(--ease-std), box-shadow .35s var(--ease-std);
}
/* Prüf-Gate: erzwingt die aktive Bestätigung der Vorschläge vor dem Weiter */
.scan-review {
  margin-top: 4px; border: 1px solid #ecd39a;
  background: linear-gradient(180deg, #fdf7ea, #fffdf8);
  border-radius: 14px; padding: 14px 16px;
}
.sr-head { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .92rem; color: #8a6410; }
.sr-ico { font-size: 1rem; }
.sr-text { font-size: .85rem; color: var(--muted); margin: 6px 0 12px; line-height: 1.45; }
.sr-check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.sr-check input { width: auto; margin-top: 2px; accent-color: #c9861f; flex: none; cursor: pointer; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

/* Marktplatz-Auswahl (Schritt 1): eigenes Dropdown im macOS-Stil,
   das native <select> bleibt versteckt als Formular-Datenquelle */
.market-row { margin-top: 26px; }
.market-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.market-row .hint { margin-top: 8px; font-weight: 400; display: block; }

.mk-dd { position: relative; max-width: 460px; }
.mk-trigger {
  display: flex; align-items: center; gap: 13px; width: 100%;
  font: inherit; text-align: left; cursor: pointer;
  background: var(--field); border: none; border-radius: 14px;
  padding: 11px 16px;
  transition: background var(--dur-hover) var(--ease-std);
}
.mk-trigger:hover { background: #e9e9ee; }
.mk-trigger:focus-visible { outline: 2px solid var(--accent); }
.mk-flag { flex: none; display: inline-flex; line-height: 0; }
.mk-flag svg { border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: block; }
.mk-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.mk-txt b { font-size: .95rem; font-weight: 600; line-height: 1.25; }
.mk-txt small { font-size: .78rem; color: var(--muted); font-weight: 400; line-height: 1.3; }
.mk-chev { color: var(--muted); flex: none; transition: transform var(--dur-hover) var(--ease-std); }
.mk-dd.open .mk-chev { transform: rotate(180deg); }

.mk-list {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0;
  list-style: none; margin: 0; padding: 6px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,.08); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  max-height: 320px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity var(--dur-hover) var(--ease-std), transform var(--dur-hover) var(--ease-std);
}
.mk-dd.open .mk-list { opacity: 1; transform: none; pointer-events: auto; }
.mk-opt {
  display: flex; align-items: center; gap: 13px; width: 100%;
  font: inherit; text-align: left; cursor: pointer;
  background: none; border: none; border-radius: 10px;
  padding: 9px 12px;
  transition: background var(--dur-hover) var(--ease-std), color var(--dur-hover) var(--ease-std);
}
.mk-opt:hover, .mk-opt:focus-visible { background: rgba(0,0,0,.05); outline: none; }
.mk-opt .mk-txt b { font-size: .92rem; }
.mk-check { margin-left: auto; color: var(--accent); font-weight: 700; visibility: hidden; flex: none; }
.mk-opt.sel .mk-check { visibility: visible; }

/* Bild-Chips */
.chip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 980px;
  background: var(--field); color: var(--ink);
  font-size: .88rem; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur-hover) var(--ease-std), color var(--dur-hover) var(--ease-std);
  user-select: none;
}
.chip input { display: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; }
.chip span::before { content: "＋"; font-size: .85em; color: var(--muted); }
.chip:has(input:checked) { background: var(--accent-tint); color: var(--accent); border-color: rgba(0,113,227,.35); }
.chip:has(input:checked) span::before { content: "✓"; color: var(--accent); font-weight: 700; }
.chip:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.chip em { font-style: normal; font-size: .78rem; opacity: .75; }

/* Segmented Control (Qualität) */
.seg {
  display: flex; gap: 4px;
  background: var(--field);
  border-radius: 14px;
  padding: 4px;
}
.seg-item { flex: 1; position: relative; cursor: pointer; }
.seg-item input { display: none; }
.seg-item .seg-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 6px; border-radius: 11px;
  transition: background var(--dur-hover) var(--ease-std), box-shadow var(--dur-hover) var(--ease-std);
  text-align: center;
}
.seg-item .seg-name { font-size: .88rem; font-weight: 600; }
.seg-item .seg-price { font-size: .74rem; color: var(--muted); }
.seg-item:has(input:checked) .seg-inner { background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.seg-item:has(input:checked) .seg-name { color: var(--accent); }
@media (max-width: 640px) { .seg { flex-wrap: wrap; } .seg-item { flex: 1 1 45%; } }

/* Set-Anzahl */
.set-qty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.set-qty label { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; }
.set-qty input {
  width: 76px; font: inherit; font-weight: 400; text-align: center;
  border: none; border-radius: 12px;
  padding: 10px 8px; background: var(--field);
}
.set-qty input:focus { outline: 2px solid var(--accent); }

/* CTA */
.cta-row { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 30px 0 10px; }
.cost-line { font-size: .95rem; color: var(--muted); }
.cost-line strong { color: var(--ink); }

/* Fortschritt */
#progressList { list-style: none; display: flex; flex-direction: column; }
#progressList li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .93rem; padding: 11px 12px;
  border-bottom: 1px solid #f0f0f2;
}
#progressList li:last-child { border-bottom: none; }
/* Aktive Zeile: sanft fließender Energie-Verlauf (JS patcht die Zeilen pro Poll
   nur noch — die Loops laufen dadurch ununterbrochen weiter) */
#progressList li.row-läuft {
  background: linear-gradient(90deg, rgba(0,113,227,.08), rgba(168,85,247,.05), rgba(0,113,227,.08));
  background-size: 200% 100%; border-radius: 10px; border-bottom-color: transparent;
  animation: ai-row-flow 2.4s linear infinite;
}
@keyframes ai-row-flow { to { background-position: -200% 0; } }
.status-wartet { color: var(--muted); }
.status-wartet::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid #d4d4da; margin-right: 8px; vertical-align: -1px;
}
.status-läuft { color: var(--accent); font-weight: 600; }
.status-läuft::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(0,113,227,.22); border-top-color: var(--accent);
  margin-right: 8px; vertical-align: -1.5px;
  animation: spin .8s linear infinite;
}
/* Gemeinsamer Spinner-Baustein für die ganze App */
.spinner { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-fertig { color: var(--ok); font-weight: 600; }
.status-fehlgeschlagen { color: var(--warn); font-weight: 600; }

/* ===== Ergebnis-Seite: Erfolgs-Hero + klar getrennte Sektionen ===== */
/* Einmal-Animationen sind hier okay: renderResults läuft genau einmal pro Lauf
   ("Neues Listing" lädt die Seite neu); nur das Bild-Grid wird bei Upgrades
   neu gerendert — dessen Entrance ist kurz und darf sich wiederholen. */
.done-hero { text-align: center; padding: 46px 16px 6px; }
.done-ring { position: relative; width: 64px; height: 64px; margin: 0 auto 18px; color: var(--ok); }
.done-ring::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,199,89,.3), transparent 70%);
  animation: done-glow 2.6s ease-in-out 1.1s infinite;
  opacity: 0;
}
@keyframes done-glow { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.done-ring svg { position: relative; width: 100%; height: 100%; display: block; }
.done-ring circle { stroke-dasharray: 161; stroke-dashoffset: 161; animation: done-draw .7s var(--ease-std) .15s forwards; }
.done-ring path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: done-draw .45s var(--ease-std) .75s forwards; }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
@keyframes rs-pop {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.done-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 8px;
  opacity: 0; animation: rs-pop .7s var(--ease-std) .35s forwards;
}
.done-sub {
  color: var(--muted); font-size: 1rem; max-width: 560px; margin: 0 auto 22px;
  opacity: 0; animation: rs-pop .7s var(--ease-std) .5s forwards;
}
.done-actions {
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
  opacity: 0; animation: rs-pop .7s var(--ease-std) .65s forwards;
}
/* Primär-Aktion ZIP: Glanz-Sweep beim Hover (wie die Landing-CTAs) —
   per transform statt left, damit er nicht auf dem Layout-Thread ruckelt */
.btn-zip { position: relative; overflow: hidden; }
.btn-zip::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: translateX(-180%) skewX(-20deg); transition: transform var(--dur-in) var(--ease-std); pointer-events: none;
}
.btn-zip:hover::after { transform: translateX(320%) skewX(-20deg); }
.btn-quiet {
  display: inline-flex; align-items: center; border: 1px solid rgba(0,0,0,.14);
  background: var(--card); color: var(--ink); border-radius: 980px;
  padding: 10px 20px; font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-hover) var(--ease-std), border-color var(--dur-hover) var(--ease-std);
}
.btn-quiet:hover { background: var(--field); border-color: rgba(0,0,0,.22); }
.done-hero .save-note {
  display: inline-block; margin: 18px auto 0;
  opacity: 0; animation: rs-pop .7s var(--ease-std) .85s forwards;
}
.folder-line {
  font-size: .76rem; color: var(--muted); max-width: 640px; margin: 10px auto 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Sektionen mit zentrierter Überschrift (Eyebrow + Headline wie auf der Landing) */
.rs-section { margin-top: 56px; }
.rs-head { text-align: center; margin-bottom: 24px; }
.rs-eyebrow { display: block; color: var(--accent); font-weight: 650; font-size: .88rem; margin-bottom: 4px; }
.rs-head h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.015em; }
/* Sektionen schweben beim Scrollen ein (JS setzt .in, mit Zeit-Fallback) */
.rs-fade { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-in) var(--ease-std), transform var(--dur-in) var(--ease-std); }
.rs-fade.in { opacity: 1; transform: none; }
/* Bild-Karten laufen gestaffelt ein — Delay ab dem 8. Kind gedeckelt statt auf 0 */
.grid figure { animation: card-rise var(--dur-in) var(--ease-std) both; }
.grid figure:nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
.grid figure:nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.grid figure:nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
.grid figure:nth-child(5) { animation-delay: calc(var(--stagger) * 4); }
.grid figure:nth-child(6) { animation-delay: calc(var(--stagger) * 5); }
.grid figure:nth-child(n+7) { animation-delay: calc(var(--stagger) * 6); }
@keyframes card-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
#nextMarkets { margin-top: 44px; }
@media (prefers-reduced-motion: reduce) {
  .done-ring::before, .done-ring circle, .done-ring path,
  .done-title, .done-sub, .done-actions, .done-hero .save-note, .grid figure { animation: none; }
  .done-ring circle, .done-ring path { stroke-dashoffset: 0; }
  .done-title, .done-sub, .done-actions, .done-hero .save-note { opacity: 1; }
  .rs-fade { opacity: 1; transform: none; transition: none; }
}

/* Ergebnis */
.title-text { font-size: 1.08rem; line-height: 1.5; font-weight: 600; margin-top: 10px; }
.meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: .84rem; flex-wrap: wrap; }
.byte-ok { color: var(--ok); font-weight: 600; }
.byte-over { color: var(--warn); font-weight: 700; }
ul.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
ul.bullets li { background: var(--card); border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow); }
ul.bullets .bullet-text { line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid figure { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.grid img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; border-radius: 10px; display: block; }
.grid .failed-box { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: #fdeaec; color: var(--warn); border-radius: 10px; padding: 16px; text-align: center; font-size: .86rem; }
.grid figcaption { margin-top: 10px; }
.fig-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .88rem; font-weight: 600; }
.res-badge { font-size: .7rem; font-weight: 600; color: var(--muted); background: var(--field); border-radius: 980px; padding: 3px 9px; white-space: nowrap; }
.fig-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.fig-actions .btn-small { padding: 5px 12px; font-size: .76rem; }

/* „Neu generieren" mit Hinweis: kleines Panel, das sich an der Karte (Listing-Bild)
   bzw. unter der Aktionsleiste (A+-Modul) öffnet — optionaler Freitext + Bestätigen */
.regen-panel { margin-top: 10px; padding: 10px; background: var(--field); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; animation: band-in .3s var(--ease-std); }
.regen-panel textarea {
  width: 100%; min-height: 60px; resize: vertical;
  font: inherit; font-size: .82rem; line-height: 1.4; color: var(--ink);
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
.regen-panel textarea:focus { outline: 2px solid var(--accent); }
.regen-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.regen-panel-note { font-size: .72rem; color: var(--muted); line-height: 1.35; }
.regen-panel-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.regen-panel .btn-small { padding: 5px 12px; font-size: .76rem; }
.ap-mod > .regen-panel { margin: -2px 0 14px; }
.ap-tile .regen-panel { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .regen-panel { animation: none; } }

.error { background: #fdeaec; color: var(--warn); font-size: .92rem; }
.warnbox { background: #fff4e0; color: #9a6a00; border-radius: 14px; padding: 13px 18px; margin-top: 16px; font-size: .88rem; }

/* ===== Einheitliches Banner-/Meldungs-Muster =====
   Grundzustand bleibt sichtbar (kein Verstecken per CSS) — die Klassen setzen
   nur die Bewegung obendrauf; JS (bandZeigen/bandVerbergen) steuert hidden. */
.band-in { animation: band-in .3s var(--ease-std); }
.band-out { animation: band-out var(--dur-hover) var(--ease-std) forwards; }
@keyframes band-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes band-out { to { opacity: 0; transform: translateY(-6px); } }
/* Ansichtswechsel Start-Auswahl ↔ Assistent ↔ Analyse: kurzer Fade + Rise */
.view-in { animation: view-in .35s var(--ease-std); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
/* Kurzer Zustands-Blip bei Button-Textwechseln (Kopiert ✓, ZIP-Feedback) */
.txt-blip { animation: txt-blip .15s var(--ease-std); }
@keyframes txt-blip { from { transform: scale(.92); opacity: .4; } }

/* Willkommens-Band: Kurzorientierung für neue Nutzer (index.html) */
.welcome-band {
  position: relative; background: var(--card); border-radius: 16px;
  padding: 14px 46px 14px 22px; margin-bottom: 22px;
  box-shadow: var(--shadow); text-align: center;
}
.wb-steps { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.wb-steps b {
  color: #fff; background: var(--accent); border-radius: 50%;
  width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; margin-right: 5px;
}
.wb-sep { color: #c7c7cc; }
.wb-credits { font-size: .86rem; margin-top: 9px; }
.wb-credits a { color: var(--accent); font-weight: 600; text-decoration: none; }
.wb-credits a:hover { text-decoration: underline; }
.wb-close {
  position: absolute; top: 6px; right: 10px; border: 0; background: none;
  font-size: 1.15rem; color: var(--muted); cursor: pointer; line-height: 1; padding: 4px 6px;
  transition: color var(--dur-hover) var(--ease-std);
}
.wb-close:hover { color: #1d1d1f; }

/* Dashboard nach dem Login (index.html) — aufgeräumt, mit Icons & feiner Tiefe */
.dash {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 26px;
}
/* Guthaben-Banner ganz oben im Dashboard: Kontostand + Aufladen + Auto-Aufladen-Tipp */
.credit-banner {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eef6ff, #f7fbff);
  border: 1px solid rgba(0,113,227,.22); border-radius: 18px; padding: 16px 20px;
}
.credit-banner.knapp { background: linear-gradient(135deg, #fff7e8, #fffdf6); border-color: rgba(232,163,61,.45); }
.cb-links { display: flex; align-items: center; gap: 12px; }
.cb-ico { font-size: 1.7rem; line-height: 1; flex: none; }
.cb-texte { display: flex; flex-direction: column; gap: 2px; }
.cb-titel { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.credit-banner.knapp .cb-titel { color: #b45309; }
.cb-sub { font-size: .84rem; color: var(--muted); font-weight: 600; max-width: 560px; line-height: 1.4; }
.cb-rechts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cb-btn { white-space: nowrap; }
/* Der Spar-Banner ist bewusst nicht einklappbar (Entscheidung 20.07.) */
@media (max-width: 700px) {
  .credit-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cb-rechts { width: 100%; }
}
/* Blätter-Leiste der Transaktionshistorie */
.tx-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.tx-pager button { min-width: 40px; }
.tx-pager button:disabled { opacity: .35; cursor: default; }
.tx-seite { font-size: .82rem; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.dash-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid rgba(0,0,0,.05); border-radius: 18px;
  padding: 20px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 3px;
  transition: transform var(--dur-hover) var(--ease-std), box-shadow var(--dur-hover) var(--ease-std);
}
.dash-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.09); }
.dash-ico {
  font-size: 1.1rem; line-height: 1; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt); margin-bottom: 10px;
}
.dash-num { font-size: 2rem; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.dash-link { font-size: .78rem; color: var(--accent); text-decoration: none; margin-top: 8px; font-weight: 650; }
.dash-link:hover { text-decoration: underline; }
.dash-sub { font-size: .78rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
/* „Zeit gespart"-Karte: dezenter Akzent + hervorgehobener Unnützwissen-Fakt */
.dash-card-time { background: linear-gradient(180deg, #f3f8ff, var(--card) 60%); border-color: rgba(0,113,227,.14); }
.dash-card-time .dash-ico { background: var(--accent-tint); }
.dash-card-time .dash-sub { color: var(--accent); font-weight: 600; }
/* Dezente gestaffelte Einblendung beim Erscheinen des Dashboards */
.dash-card { animation: dash-rise var(--dur-in) var(--ease-std) both; }
.dash-card:nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
.dash-card:nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.dash-card:nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
@keyframes dash-rise { from { opacity: 0; transform: translateY(16px); } }
/* MOBIL KOMPAKT (03.09.2026, Enes: „die Kacheln nehmen zu viel Platz auf dem Dashboard"):
   zwei Spalten, kleine Zahlen, keine Untertitel, die Zeit-Karte als schmale Zeile darunter. */
@media (max-width: 640px) {
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .credit-banner { padding: 12px 14px; border-radius: 14px; gap: 8px; }
  .cb-ico { font-size: 1.3rem; }
  .cb-titel { font-size: .95rem; }
  .cb-sub { font-size: .78rem; }
  .cb-btn { padding: 9px 14px; font-size: .88rem; }
  .dash-card { padding: 11px 12px; border-radius: 14px; gap: 1px; box-shadow: none; }
  .dash-card:hover { transform: none; }
  .dash-ico { width: 26px; height: 26px; border-radius: 8px; font-size: .9rem; margin-bottom: 6px; }
  .dash-num { font-size: 1.35rem; }
  .dash-label { font-size: .74rem; }
  .dash-sub { display: none; }
  .dash-link { margin-top: 4px; font-size: .72rem; }
  .dash-card-time { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; padding: 9px 12px; }
  .dash-card-time .dash-ico { margin-bottom: 0; }
  .dash-card-time .dash-num { font-size: 1.05rem; }
  .dash-card-time .dash-label { font-size: .74rem; }
  .gutschein-zeile { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-card { animation: none; }
  .dash-card:hover { transform: none; }
}

/* Text-Paket-Schalter (Schritt 4): Texte mitgenerieren oder nur Bilder */
.text-toggle { display: block; cursor: pointer; }
.text-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.text-toggle .tt-box {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--field); border: 2px solid transparent; border-radius: 14px;
  padding: 14px 18px; transition: border-color var(--dur-hover) var(--ease-std), background var(--dur-hover) var(--ease-std);
}
.text-toggle input:checked + .tt-box { border-color: var(--accent); background: #eaf3fd; }
.text-toggle input:focus-visible + .tt-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.tt-title { font-weight: 650; font-size: .95rem; }
.tt-title::after { content: " — aus"; font-weight: 400; color: var(--muted); }
.text-toggle input:checked + .tt-box .tt-title::after { content: " — an ✓"; color: var(--accent); }
.tt-sub { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* A+ Content-Schalter (Schritt 4): Premium-Opt-in im gleichen Muster wie der
   Text-Schalter, mit dezent goldenem Akzent und Modul-Badges */
.aplus-toggle .tt-box { border: 2px solid #e8dcc2; background: linear-gradient(135deg, #fdfaf3, #f7f2e6); }
.aplus-toggle input:checked + .tt-box { border-color: #c9a54c; background: linear-gradient(135deg, #fbf5e6, #f6edd7); }
.aplus-toggle input:focus-visible + .tt-box { outline: 2px solid #c9a54c; outline-offset: 2px; }
.aplus-toggle .tt-title::after { content: " — aus"; }
.aplus-toggle input:checked + .tt-box .tt-title::after { content: " — an ✓"; color: #a8842f; }
.aplus-toggle input:checked + .tt-box .chip-cost { color: #a8842f; }
.ap-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ap-badges span {
  font-size: .72rem; font-weight: 600; color: #7c6428;
  background: rgba(201, 165, 76, .14); border: 1px solid rgba(201, 165, 76, .3);
  border-radius: 999px; padding: 3px 10px;
}

/* A+ Content-Ergebnis: die 5 Module als Amazon-nahe Vorschau */
.ap-mod { margin-bottom: 16px; }
.ap-mod-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ap-type { font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ap-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-banner img { width: 100%; height: auto; border-radius: 10px; display: block; }
.ap-banner a { display: block; }
.ap-h { margin: 14px 0 4px; font-size: 1.05rem; letter-spacing: -.01em; }
.ap-p { font-size: .92rem; line-height: 1.55; }
.ap-alt { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.ap-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ap-tile img { width: 100%; height: auto; border-radius: 10px; display: block; }
.ap-tile h5 { margin: 10px 0 4px; font-size: .88rem; }
.ap-tile p { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.ap-tile-dl { margin-top: 8px; }
.ap-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.ap-row.rev { flex-direction: row-reverse; }
.ap-row-img { flex: none; width: min(300px, 100%); }
.ap-row-img img { width: 100%; height: auto; border-radius: 10px; display: block; }
.ap-row-txt { flex: 1; min-width: 220px; }
.ap-row-txt .ap-h { margin-top: 0; }
.ap-overlay { position: relative; }
.ap-overlay .ap-ov-text {
  position: absolute; top: 50%; left: 4%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(4px);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .95rem; max-width: 56%;
}
.ap-missing { background: #fdeaec; color: var(--warn); border-radius: 10px; padding: 26px 16px; text-align: center; font-size: .85rem; }
.ap-retry { border: 2px solid rgba(201, 165, 76, .35); background: linear-gradient(135deg, #fdfaf3, #f7f2e6); }
.ap-howto { margin-top: 4px; }
.ap-steps { margin: 10px 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }

/* Entwurf-Hinweis: angefangenes Listing fortsetzen (index.html).
   position/z-index: liegt im Zweifel ÜBER dem fixierten Cookie-Hinweis,
   damit Fortsetzen/Verwerfen immer klickbar sind. */
.draft-band {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff8e6; border: 1px solid #f0dfae; border-radius: 16px;
  padding: 14px 20px; margin-bottom: 14px;
  position: relative; z-index: 10000;
}
.db-icon { font-size: 1.2rem; flex: none; }
.db-text { flex: 1; min-width: 200px; font-size: .9rem; }
.db-actions { display: flex; gap: 8px; flex: none; }

/* Hinweis auf automatische Sicherung im Ergebnisbereich */
.save-note {
  background: #e7f5ec; color: #14532d; border-radius: 12px;
  padding: 10px 16px; font-size: .86rem; margin-bottom: 14px;
}
.save-note a { color: #14532d; font-weight: 600; }

/* Perspektiven-Tipp (Schritt 2): Der Kunde soll SOFORT sehen, dass mehrere
   Ansichten desselben Produkts erlaubt sind und das Ergebnis verbessern —
   deshalb eine eigene Box ÜBER der Upload-Zone statt grauem Kleintext. */
.persp-tipp {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, #eef6ff, #f4fbf6);
  border: 1px solid rgba(0, 113, 227, .18); border-radius: 14px;
  padding: 13px 16px; margin-bottom: 14px; font-size: .88rem; line-height: 1.5;
}
.persp-tipp .pt-icon { font-size: 1.35rem; line-height: 1; margin-top: 1px; }

/* Foto-Scan-Erklärung (Schritt 2) */
.scan-explain {
  background: var(--field); border-radius: 14px; padding: 16px 18px; margin-top: 16px;
}
.scan-explain-text { font-size: .88rem; line-height: 1.55; margin-bottom: 12px; }
.scan-explain .scan-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Zurück-Navigation oben (z.B. Profilseite) */
.back-row { display: flex; gap: 10px; margin-bottom: 18px; }

/* ===== KI-Arbeits-Animationen ===== */
/* "Energie-Lichter": fünf weiche, bunte Lichtpunkte (stark weichgezeichnet),
   die versetzt pulsieren und leicht treiben. Bewusst KEINE Kugel und keine
   Ringe — nur Licht. Jede Lampe hat eigene Periode/Phase, dadurch wirkt das
   Ganze organisch statt getaktet. */
.ai-orb-wrap { display: flex; justify-content: center; margin: 10px 0 18px; }
.ai-scene { position: relative; width: 210px; height: 120px; }
.ai-light {
  position: absolute; border-radius: 50%;
  filter: blur(16px); opacity: .35;
  animation: ai-light-pulse 2.8s ease-in-out infinite;
}
.ai-light:nth-child(1) { width: 74px; height: 74px; left: 22px;  top: 20px; background: #3b9dff; animation-duration: 2.6s; }
.ai-light:nth-child(2) { width: 60px; height: 60px; left: 80px;  top: 38px; background: #a855f7; animation-delay: .5s;  animation-duration: 3.1s; }
.ai-light:nth-child(3) { width: 48px; height: 48px; left: 128px; top: 16px; background: #ec4899; animation-delay: 1.1s; animation-duration: 2.9s; }
.ai-light:nth-child(4) { width: 40px; height: 40px; left: 58px;  top: 6px;  background: #22d3ee; animation-delay: 1.6s; animation-duration: 2.4s; }
.ai-light:nth-child(5) { width: 52px; height: 52px; left: 118px; top: 54px; background: #6366f1; animation-delay: .8s;  animation-duration: 3.4s; }
@keyframes ai-light-pulse {
  0%, 100% { transform: scale(.7) translateY(3px); opacity: .3; }
  50% { transform: scale(1.25) translateY(-3px); opacity: .95; }
}
.ai-heading { text-align: center; }
.ai-status {
  text-align: center; color: var(--muted); font-size: .93rem;
  min-height: 1.5em; margin: 6px 0 18px; transition: opacity .3s var(--ease-std);
}
/* Fortschrittsbalken: gefüllter Teil mit Licht-Sweep; solange die Schritte noch
   nicht feststehen, wandert ein Scanner-Segment (Klasse "indeterminate") */
.ai-bar {
  position: relative; height: 4px; border-radius: 2px; background: #eceef1;
  overflow: hidden; max-width: 460px; margin: 0 auto 22px;
}
.ai-bar i {
  display: block; height: 100%; width: 100%; border-radius: 2px; position: relative;
  background: linear-gradient(90deg, #0071e3, #a855f7);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-std);
}
.ai-bar i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transform: translateX(-100%);
  animation: ai-bar-sheen 1.6s ease-in-out infinite;
}
.ai-bar.indeterminate i { width: 34%; transform: none; animation: ai-bar-scan 1.5s ease-in-out infinite; }
/* Scanner-Segment ist 34% breit → 294% Eigenbreite entsprechen 100% der Spur */
@keyframes ai-bar-scan { from { transform: translateX(-100%); } to { transform: translateX(294%); } }
@keyframes ai-bar-sheen { to { transform: translateX(100%); } }

/* Einzelbild wird neu generiert/hochskaliert: Shimmer-Sweep + Puls über der Karte */
.grid figure { position: relative; }
.grid figure.working { overflow: hidden; }
.grid figure.working img {
  filter: blur(3px) saturate(.7) brightness(.96);
  transform: scale(.985);
  transition: filter .35s var(--ease-std), transform .35s var(--ease-std);
}
.grid figure.working::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.5) 45%, rgba(168,85,247,.28) 50%, rgba(255,255,255,.5) 55%, transparent 75%);
  animation: shimmer-sweep 1.5s ease-in-out infinite;
}
.grid figure.working::before {
  content: "✨"; position: absolute; z-index: 3; top: 38%; left: 50%; pointer-events: none;
  font-size: 2.1rem; animation: spark-pulse 1.2s ease-in-out infinite;
}
@keyframes shimmer-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes spark-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(-6deg); opacity: .75; }
  50% { transform: translate(-50%, -50%) scale(1.3) rotate(6deg); opacity: 1; }
}
/* Frisch erneuertes Bild: sanftes Aufpoppen */
.grid figure.fresh { animation: card-pop var(--dur-in) var(--ease-pop); }
@keyframes card-pop { from { transform: scale(.94); opacity: .3; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ai-light,
  .ai-bar i::after, .ai-bar.indeterminate i, #progressList li.row-läuft, .status-läuft::before,
  .grid figure.working::after, .grid figure.working::before, .grid figure.fresh { animation: none; }
  .ai-light { opacity: .7; }
  .ai-bar.indeterminate i { width: 34%; margin-left: 33%; }
}

/* Nach dem Ergebnis: alle Bilder auf eine höhere Qualitätsstufe heben */
.quality-upgrade { margin-top: 28px; }
.qu-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.qu-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font: inherit; color: var(--ink); cursor: pointer; text-align: left;
  background: var(--field); border: 2px solid transparent; border-radius: 14px;
  padding: 12px 18px; transition: border-color var(--dur-hover) var(--ease-std), background var(--dur-hover) var(--ease-std);
}
.qu-btn:hover { border-color: var(--accent); background: #eaf3fd; }
.qu-btn:disabled { opacity: .55; cursor: not-allowed; }
.qu-btn b { font-size: .95rem; }
.qu-btn small { font-size: .78rem; color: var(--muted); }

/* Nach dem Ergebnis: Listing direkt für weitere Marktplätze erstellen */
.next-markets { margin-top: 28px; }

/* Feedback-Karte am Ende des Ergebnisses: Sterne (RTL-Trick für Hover-Füllung
   von links) + optionale Nachricht. Erscheint einmal pro Listing. */
.fb-card { margin-top: 28px; text-align: center; }
.fb-h { font-size: 1.05rem; font-weight: 700; letter-spacing: -.012em; }
.fb-sub { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.fb-stars { display: inline-flex; gap: 6px; direction: rtl; margin-top: 12px; }
.fb-stars button {
  border: 0; background: none; cursor: pointer; padding: 2px;
  font-size: 2rem; line-height: 1; color: #d9d9de;
  transition: color var(--dur-hover) var(--ease-std), transform var(--dur-hover) var(--ease-pop);
}
.fb-stars button:hover,
.fb-stars button:hover ~ button,
.fb-stars button:focus-visible,
.fb-stars button:focus-visible ~ button,
.fb-stars button.on,
.fb-stars button.on ~ button { color: #e8a33d; }
.fb-stars button:hover { transform: scale(1.18); }
.fb-stars button:focus-visible { outline: none; }
.fb-mehr { max-width: 480px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 10px; }
.fb-mehr textarea { resize: vertical; min-height: 72px; }
.fb-danke { margin-top: 12px; }
.nm-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Nächster Schritt (nach dem Listing) */
.next-step { margin-top: 28px; }
.ns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.ns-item { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid #e5e5ea; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.ns-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -14px rgba(0,0,0,.25); }
.ns-item b { font-size: 15px; }
.ns-item span { font-size: 13px; color: #6e6e73; line-height: 1.45; }
.nm-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink);
  background: var(--field); border: 1px solid transparent; border-radius: 980px;
  padding: 8px 16px; cursor: pointer;
  transition: background var(--dur-hover) var(--ease-std), border-color var(--dur-hover) var(--ease-std);
}
.nm-chip:hover { background: #e9e9ee; border-color: var(--accent); }
.nm-chip svg { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* Rechts-/Info-Links am Seitenende */
.foot-legal { text-align: center; font-size: .78rem; color: var(--muted); margin: 44px 0 10px; }
.foot-legal a { color: var(--muted); text-decoration: none; margin: 0 7px; }
.foot-legal a:hover { text-decoration: underline; }

/* ===== "Warum diese Texte?" — Daten & Begründung (Ergebnis-Seite) =====
   Standardmäßig eingeklappte details-Karte; sachlicher Daten-Look:
   Zahlen-Kacheln wie im Listing-Check, nüchterne Tabelle, Platzierungs-Pills. */
.begr-card { padding: 0; overflow: hidden; }
.begr-card > details > summary { list-style: none; cursor: pointer; display: block; padding: 16px 20px; }
.begr-card > details > summary::-webkit-details-marker { display: none; }
.begr-summary { display: flex; align-items: center; gap: 12px; }
.begr-ico { font-size: 1.15rem; flex: none; }
.begr-sumtext { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.begr-sumlabel { margin: 0; }
.begr-sumtext .hint-inline { font-size: .8rem; color: var(--muted); }
.begr-chev { flex: none; color: var(--muted); transition: transform .25s var(--ease-std, ease); }
.begr-card details[open] .begr-chev { transform: rotate(180deg); }
.begr-card > details > summary:hover .begr-sumlabel { color: var(--ink, #1d1d1f); }
#begrBody { padding: 0 20px 20px; border-top: 1px solid #ececf0; }
.begr-basis { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.begr-block { margin-top: 18px; }
.begr-block h4 { font-size: .92rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.begr-block p { font-size: .88rem; line-height: 1.6; margin: 0; }
.begr-zahlen { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; }
.begr-zahl { flex: 1; min-width: 170px; background: var(--field, #f5f5f7); border: 1px solid #e8e8ed; border-radius: 10px; padding: 10px 12px; }
.begr-zahl b { display: block; font-size: 1.25rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.begr-zahl span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.begr-scroll { overflow-x: auto; }
.begr-tab { width: 100%; border-collapse: collapse; font-size: .85rem; }
.begr-tab th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.begr-tab th, .begr-tab td { padding: 8px 10px; border-bottom: 1px solid #ececf0; }
.begr-tab tbody tr:last-child td { border-bottom: 0; }
.begr-tab th.num, .begr-tab td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.begr-ort { display: inline-block; font-size: .72rem; font-weight: 650; border-radius: 980px; padding: 3px 10px; white-space: nowrap; }
.begr-ort.ok { color: var(--ok, #1d8a3e); background: rgba(29, 138, 62, .09); }
.begr-ort.aus { color: var(--muted); background: rgba(0, 0, 0, .05); }
.begr-kw { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; line-height: 1.55; }
.begr-ol { margin: 0 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; line-height: 1.55; }
.begr-fuss { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
.begr-check { border-top: 1px solid #ececf0; padding-top: 12px; margin-top: 18px; }
/* Marktprofil-Abschnitte (09/2026): kleine Uppercase-Labels, Pills für Lob-Themen und
   Titelmuster, „Chance“-Chip in der Synonym-Tabelle, wörtliche Beleg-Zitate. */
.begr-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; margin: 12px 0 6px; }
.begr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.begr-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; border-radius: 980px; padding: 4px 11px; background: var(--field, #f5f5f7); border: 1px solid #e8e8ed; font-variant-numeric: tabular-nums; white-space: nowrap; }
.begr-pill em { font-style: normal; font-weight: 500; color: var(--muted); }
.begr-lob .begr-pill { color: var(--ok, #1d8a3e); background: rgba(29, 138, 62, .08); border-color: rgba(29, 138, 62, .18); }
.begr-lob .begr-pill em { color: inherit; opacity: .75; }
.begr-muster .begr-pill { cursor: default; }
.begr-chance { display: inline-block; margin-left: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #0071e3); background: var(--accent-tint, rgba(0, 113, 227, .08)); border-radius: 980px; padding: 2px 8px; vertical-align: 1px; white-space: nowrap; }
.begr-tab td.begr-thema { font-weight: 600; }
.begr-zitat { display: block; margin-top: 5px; font-size: .8rem; font-style: italic; color: var(--muted); line-height: 1.45; max-width: 380px; overflow-wrap: anywhere; }
.begr-satz { font-size: .88rem; line-height: 1.6; margin: 12px 0 0; }
@media (max-width: 560px) {
  .begr-tab th, .begr-tab td { padding: 7px 6px; }
  .begr-card > details > summary { padding: 14px 16px; }
  #begrBody { padding: 0 16px 16px; min-width: 0; }
  /* Kacheln zu zweit je Reihe; breite Tabellen scrollen innerhalb von .begr-scroll —
     die Seite selbst bekommt nie eine waagerechte Scrollbar (.begr-card: overflow hidden) */
  .begr-zahl { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .begr-zahl b { font-size: 1.1rem; }
  .begr-scroll { max-width: 100%; -webkit-overflow-scrolling: touch; }
  .begr-tab-ks { min-width: 460px; }
  .begr-zitat { max-width: 240px; }
  .begr-pill { white-space: normal; }
}

/* ===== Reduzierte Bewegung: gestalteter Endzustand statt eingefrorener Anfang.
   Ergänzt die verteilten Blöcke oben; Farb-Transitions und funktionale
   Lade-Spinner bleiben bewusst erhalten. ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step-panel.active, .step-dot.done .dot::before,
  .band-in, .band-out, .view-in, .txt-blip { animation: none; }
  .step-dot .dot, .mk-list, .mk-chev, .ai-bar i,
  .fb-stars button, .btn-zip::after { transition: none; }
  .type-card:hover, .avatar:hover, .fb-stars button:hover { transform: none; }
}
