/* Sektionen der Verkaufsseite */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 1rem + 7vw, 7rem) var(--space-section);
  overflow: hidden;
}

/* Teal-Lichtkegel hinter dem Hero: Tiefe ohne Gradient-Blob-Klischee */
.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.hero__title {
  font-size: var(--text-hero);
  margin-bottom: var(--space-md);
}

/* Der Skalensprung trägt die Hierarchie */
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 48ch;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.hero__proof svg {
  flex-shrink: 0;
  color: var(--success);
}

/* ---------- App-Mock (Menüleisten-Szene) ---------- */

.mock {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.mock:hover {
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-4px);
}

@media (max-width: 940px) {
  .mock {
    transform: none;
  }
  .mock:hover {
    transform: translateY(-4px);
  }
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--input);
  border-bottom: 1px solid var(--border);
}

.mock__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-hover);
}

.mock__status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--danger);
}

.mock__rec {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--danger);
  animation: pulse 1.6s var(--ease-out-quart) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.82); }
}

.mock__body {
  padding: var(--space-lg) var(--space-md);
}

/* Waveform aus reinem CSS, animiert über transform (compositor-freundlich) */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
  margin-bottom: var(--space-lg);
}

.wave span {
  width: 4px;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent);
  transform-origin: center;
  animation: wave 1.2s var(--ease-out-quart) infinite;
}

/* Versetzte Delays, damit die Balken nicht im Gleichschritt laufen.
   Steht hier statt als inline style, damit die CSP kein 'unsafe-inline' braucht. */
.wave span:nth-child(1)  { animation-delay: 0s; }
.wave span:nth-child(2)  { animation-delay: 0.10s; }
.wave span:nth-child(3)  { animation-delay: 0.22s; }
.wave span:nth-child(4)  { animation-delay: 0.06s; }
.wave span:nth-child(5)  { animation-delay: 0.30s; }
.wave span:nth-child(6)  { animation-delay: 0.14s; }
.wave span:nth-child(7)  { animation-delay: 0.26s; }
.wave span:nth-child(8)  { animation-delay: 0.04s; }
.wave span:nth-child(9)  { animation-delay: 0.18s; }
.wave span:nth-child(10) { animation-delay: 0.34s; }
.wave span:nth-child(11) { animation-delay: 0.12s; }
.wave span:nth-child(12) { animation-delay: 0.28s; }
.wave span:nth-child(13) { animation-delay: 0.02s; }
.wave span:nth-child(14) { animation-delay: 0.20s; }
.wave span:nth-child(15) { animation-delay: 0.32s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.16); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.mock__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.mock__text {
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-height: 5.5rem;
}

.mock__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Aufreger / Problem ---------- */

.problem {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.problem__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  max-width: 20ch;
}

.problem__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 860px) {
  .problem__body {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.problem__body p + p {
  margin-top: var(--space-md);
}

.problem strong {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 -0.5em 0 var(--accent-soft);
}

/* ---------- Ablauf (3 Schritte) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
  margin-top: var(--space-xl);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-top: var(--space-lg);
  border-top: 2px solid var(--border);
  transition: border-color var(--duration-normal) var(--ease-out-quart);
}

.step:hover {
  border-top-color: var(--accent);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--space-xs);
}

.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.step kbd {
  display: inline-block;
  padding: 0.1em 0.5em;
  font-family: var(--font-body);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border-hover);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Features (Bento) ---------- */

.section__head {
  max-width: 42ch;
  margin-bottom: var(--space-xl);
}

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.section__sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

.card {
  position: relative;
  grid-column: span 2;
  padding: var(--space-lg);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-quart);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* Grid brechen: die zwei wichtigsten Karten sind breiter */
.card--wide {
  grid-column: span 3;
}

.card--feature {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--surface);
  padding: var(--space-xl);
}

@media (max-width: 860px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .card,
  .card--wide,
  .card--feature {
    grid-column: span 1;
  }
  .card--feature {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
  }
}

.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-md);
}

.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Vorher/Nachher-Beispiel für Cleanup */
.cleanup-demo {
  display: grid;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.cleanup-demo__row {
  padding: var(--space-md);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cleanup-demo__row b {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2xs);
}

.cleanup-demo__row--raw b { color: var(--text-secondary); }
.cleanup-demo__row--raw span { color: var(--text-secondary); }
.cleanup-demo__row--clean { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.cleanup-demo__row--clean b { color: var(--accent-hover); }

/* ---------- Datenschutz / Du hast den Schalter ---------- */

.privacy {
  position: relative;
  background: var(--text);
  border-block: 1px solid var(--text);
  overflow: hidden;
}

.privacy::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(27, 138, 153, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.privacy .eyebrow {
  color: var(--secondary);
}

.privacy__title {
  font-size: var(--text-2xl);
  color: var(--bg);
  max-width: 22ch;
  margin-bottom: var(--space-md);
}

.privacy__lead {
  font-size: var(--text-lg);
  color: var(--text-muted-on-dark);
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}

.privacy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 860px) {
  .privacy__grid {
    grid-template-columns: 1fr;
  }
}

/* Zwei Zustände, klar unterscheidbar: der lokale ist der Standard und wird
   optisch bevorzugt, der API-Pfad ist gleichwertig erklärt statt abgewertet. */
.mode {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(238, 235, 228, 0.16);
  background: rgba(238, 235, 228, 0.04);
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-normal) var(--ease-out-quart);
}

.mode:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 235, 228, 0.32);
}

.mode--local {
  border-color: var(--accent);
  background: rgba(27, 138, 153, 0.14);
}

.mode__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.mode__badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: #3A3F42;
}

.mode__badge--muted {
  background: rgba(238, 235, 228, 0.16);
  color: var(--bg);
}

.mode h3 {
  font-size: var(--text-lg);
  color: var(--bg);
}

.mode__lead {
  font-size: var(--text-sm);
  color: var(--text-muted-on-dark);
  margin-bottom: var(--space-md);
}

.mode__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--bg);
}

.mode__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.mode__list svg {
  flex-shrink: 0;
  margin-top: 0.25em;
}

.mode--local .mode__list svg { color: var(--success); }
.mode--api .mode__list svg { color: var(--secondary); }

.mode__foot {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(238, 235, 228, 0.16);
  font-size: var(--text-xs);
  color: var(--text-muted-on-dark);
}

/* Ehrlichkeits-Notiz: gehört sichtbar hierher, nicht ins Kleingedruckte */
.privacy__note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px dashed rgba(238, 235, 228, 0.28);
  border-radius: var(--radius-md);
}

.privacy__note svg {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--secondary);
}

.privacy__note p {
  font-size: var(--text-sm);
  color: var(--text-muted-on-dark);
  max-width: none;
}

.privacy__note b {
  color: var(--bg);
}

/* Links auf dunklen Flächen brauchen den aufgehellten Teal, sonst 2.61:1.
   :not(.btn) ist wichtig: sonst faerbt die Regel auch den CTA-Button um und
   macht aus weisser Schrift auf Teal ein unlesbares Teal auf Teal. */
.privacy a:not(.btn),
.final a:not(.btn) {
  color: var(--accent-on-dark);
}

.privacy a:not(.btn):hover,
.final a:not(.btn):hover {
  color: var(--bg);
}

/* ---------- Vergleich ---------- */

.compare {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
  font-size: var(--text-base);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare__table th,
.compare__table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare__table thead th {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--surface);
}

.compare__table thead th:last-child {
  color: var(--accent);
}

.compare__table tbody tr:last-child td {
  border-bottom: none;
}

.compare__table tbody tr:hover {
  background: var(--accent-soft);
}

.compare__table td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  width: 30%;
}

.compare__table td:last-child {
  font-weight: 500;
}

.compare__note {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .compare__wrap {
    overflow-x: auto;
  }
  .compare__table {
    min-width: 560px;
  }
}

/* ---------- Preis ---------- */

.pricing__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 940px) {
  .pricing__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.price-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--input);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.price-card__badge {
  position: absolute;
  top: 0;
  right: var(--space-lg);
  transform: translateY(-50%);
  padding: 0.4rem 1rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3A3F42;
  background: var(--secondary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.price-card__old {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
}

.price-card__now {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-block: var(--space-2xs) var(--space-xs);
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2rem + 5vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  /* Das negative Tracking zieht auch hinter dem letzten Zeichen. Hier wieder rausrechnen,
     sonst klebt „einmalig" am €-Zeichen. */
  padding-right: 0.04em;
  color: var(--text);
}

.price-card__unit {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent-hover);
}

.price-card__sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.price-card__list {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.price-card__list svg {
  flex-shrink: 0;
  margin-top: 0.3em;
  color: var(--success);
}

.price-card .btn {
  width: 100%;
}

.pricing__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.pricing__body p + p {
  margin-top: var(--space-md);
}

.pricing__body {
  color: var(--text-secondary);
}

/* ---------- Betriebssystem-Wahl (Pflicht vor dem Kauf) ----------
   Muss VOR dem Checkout entschieden sein: der Kaufabschluss legt fest,
   welche Installer-Datei ausgeliefert wird. Radiogroup statt reinem JS-Toggle,
   damit Semantik und Tastaturbedienung ohne Zusatzaufwand stimmen. */

.os-picker {
  margin: var(--space-lg) 0;
  padding: 0;
  border: none;
}

.os-picker__legend {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2xs);
}

.os-picker__required {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.os-picker__hint {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.os-picker__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.os-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-out-quart),
    background-color var(--duration-fast) var(--ease-out-quart);
}

.os-option:hover {
  border-color: var(--border-hover);
}

/* Radio bleibt im Accessibility-Baum und per Tab erreichbar, ist aber
   visuell durch die Karte selbst ersetzt. Kein display:none (haette den
   Fokus mitgenommen), sondern auf 1px zusammengeschrumpft. */
.os-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.os-option input:focus-visible ~ .os-option__icon {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.os-option:has(input:checked),
.os-option.is-checked {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.os-option__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out-quart);
}

.os-option:has(input:checked) .os-option__icon,
.os-option.is-checked .os-option__icon {
  color: var(--accent-hover);
}

.os-option__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.os-option__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.os-option__meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.os-picker__error {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, var(--input));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  border-radius: var(--radius-sm);
  animation: os-error-in var(--duration-normal) var(--ease-out-expo);
}

@keyframes os-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 420px) {
  .os-picker__options {
    grid-template-columns: 1fr;
  }
}

/* ---------- Unternehmer-Erklaerung (Pflicht vor dem Kauf) ----------
   Verkauf ist auf Unternehmer beschraenkt (AGB § 1 Abs. 3). Ohne diese
   Bestaetigung entstuende ein Vertrag mit unklarem Verbraucherstatus,
   deshalb dieselbe Blockier-Mechanik wie beim OS-Schalter. */

.biz-declare {
  margin: 0 0 var(--space-lg);
}

.biz-declare__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

.biz-declare__row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.biz-declare__box {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0.1em;
  color: transparent;
  background: var(--input);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-sm);
  transition:
    background-color var(--duration-fast) var(--ease-out-quart),
    border-color var(--duration-fast) var(--ease-out-quart),
    color var(--duration-fast) var(--ease-out-quart);
}

.biz-declare__row input:checked ~ .biz-declare__box {
  color: var(--input);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.biz-declare__row input:focus-visible ~ .biz-declare__box {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.biz-declare__text {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--text-secondary);
}

.biz-declare__error {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, var(--input));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  border-radius: var(--radius-sm);
  animation: os-error-in var(--duration-normal) var(--ease-out-expo);
}

/* ---------- Garantie ---------- */

.guarantee {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
}

.guarantee__seal {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--input);
  background: var(--accent);
  border-radius: var(--radius-full);
}

.guarantee h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xs);
}

.guarantee p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ---------- Ehrlichkeit ---------- */

.honest__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  list-style: none;
  padding: 0;
}

@media (max-width: 860px) {
  .honest__list {
    grid-template-columns: 1fr;
  }
}

.honest__list li {
  padding-left: var(--space-md);
  border-left: 2px solid var(--secondary);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.honest__list b {
  display: block;
  font-size: var(--text-base);
  color: var(--text);
  margin-bottom: var(--space-2xs);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.faq details {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out-quart);
}

.faq details[open] {
  border-color: var(--accent);
}

.faq details:hover {
  border-color: var(--border-hover);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--accent);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ---------- Schluss-CTA ---------- */

.final {
  position: relative;
  padding-block: var(--space-2xl);
  background: var(--text);
  overflow: hidden;
}

.final::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  translate: -50% 0;
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(27, 138, 153, 0.30) 0%, transparent 66%);
  pointer-events: none;
}

.final__inner {
  text-align: center;
}

.final__title {
  font-size: var(--text-2xl);
  color: var(--bg);
  margin-bottom: var(--space-md);
  margin-inline: auto;
  max-width: 18ch;
}

.final__lead {
  color: var(--text-muted-on-dark);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  max-width: 46ch;
}

/* Kein --accent-Override hier: das setzte den Button auf 3.91:1 zurueck.
   Der Default aus base.css (--accent-hover) ist barrierefrei. */

.final__note {
  margin-top: var(--space-md);
  margin-inline: auto;
  font-size: var(--text-sm);
  color: var(--text-muted-on-dark);
}

/* ---------- Scroll-Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Blick in die App: Showcase (History-Fenster + Screenshots)
   ============================================================ */
.showcase .section__sub { max-width: 46ch; }

/* --- Nachgebautes App-Fenster (History) --- */
.appwin {
  max-width: 720px;
  margin: var(--space-lg) auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 22px 45px -22px rgba(58, 63, 66, 0.4),
              0 6px 16px -10px rgba(58, 63, 66, 0.25);
}
.appwin__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  background: #2b2c2b;
  position: relative;
}
.appwin__dot { width: 12px; height: 12px; border-radius: 50%; }
.appwin__dot--r { background: #ff5f57; }
.appwin__dot--y { background: #febc2e; }
.appwin__dot--g { background: #28c840; }
.appwin__bar-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: var(--text-sm); color: #cfd0cd; font-weight: 500;
}
.appwin__body { display: flex; }

/* Seitenleiste */
.appwin__side {
  width: 172px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--space-md) var(--space-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.appwin__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  color: var(--text); font-size: 1.05rem;
  padding: 4px 8px var(--space-md);
}
.appwin__logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center; flex-shrink: 0;
}
.appwin__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.appwin__navitem {
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500;
}
.appwin__navitem.is-active {
  background: var(--accent-soft); color: var(--accent-hover);
  box-shadow: inset 3px 0 0 var(--accent);
}
.appwin__navitem--foot { margin-top: auto; }

/* Hauptbereich */
.appwin__main { flex: 1; padding: var(--space-lg); min-width: 0; }
.appwin__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); color: var(--text); margin: 0;
}
.appwin__lead { color: var(--text-secondary); font-size: var(--text-sm); margin: 4px 0 var(--space-md); }
.appwin__hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.appwin__hist li {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 52px 14px 16px;
}
.appwin__hist time { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 4px; }
.appwin__hist p { margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
/* Kopier-Icon rein aus CSS (zwei überlappende Rechtecke) */
.appwin__copy {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid var(--border-hover);
}
.appwin__copy::before, .appwin__copy::after {
  content: ""; position: absolute; border: 1.5px solid var(--text-muted); border-radius: 3px;
}
.appwin__copy::before { width: 9px; height: 11px; left: 8px; top: 6px; }
.appwin__copy::after { width: 9px; height: 11px; left: 11px; top: 9px; background: var(--surface); }
.appwin__cap {
  text-align: center; color: var(--text-secondary);
  font-size: var(--text-sm); padding: var(--space-sm) var(--space-md) var(--space-md);
}

/* --- Die vier Screenshots --- */
.shots {
  max-width: 720px;
  margin: var(--space-xl) auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md) var(--space-lg);
}
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px -18px rgba(58, 63, 66, 0.35);
}
.shot figcaption { margin-top: var(--space-sm); color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.5; }
.shot figcaption b { display: block; color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .appwin__side { display: none; }
  .appwin__body { min-height: 0; }
  .shots { grid-template-columns: 1fr; }
}

/* ---------- Systemvoraussetzungen in der Preiskarte ----------
   Bewusst auffaellig direkt ueber der Systemauswahl: IQspeakr laeuft nicht
   auf Intel-Macs. Wer das erst nach dem Kauf merkt, will sein Geld zurueck. */
.sysreq {
  margin: var(--space-lg) 0 var(--space-md);
  padding: var(--space-md) var(--space-md) calc(var(--space-md) - 2px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.sysreq__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.sysreq__head svg { color: var(--accent); flex: none; }

.sysreq__list { margin: 0; font-size: var(--text-sm); }

.sysreq__list > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 4px var(--space-sm);
  padding: 5px 0;
}

.sysreq__list > div + div { border-top: 1px solid var(--border); }

.sysreq__list dt { font-weight: 600; color: var(--text); }
.sysreq__list dd { margin: 0; color: var(--text-secondary); line-height: 1.45; }
.sysreq__list dd b { color: var(--text); font-weight: 600; }

.sysreq__note {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.sysreq__note b { color: var(--text); }

@media (max-width: 520px) {
  .sysreq__list > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Hinweis-Ueberschrift ueber den Systemanforderungen ---------- */
.sysreq__warn {
  margin: var(--space-lg) 0 var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--danger);
}

.sysreq__warn + .sysreq { margin-top: 0; }

/* ---------- Rueckfrage vor dem Kauf ----------
   Native <dialog>: bringt Fokusfang, Escape und Hintergrund-Sperre mit,
   ohne eine Zeile JavaScript dafuer. */
.confirm-dlg {
  max-width: 30rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--input);
  color: var(--text);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.4);
}

.confirm-dlg::backdrop {
  background: rgba(58, 63, 66, 0.55);
  backdrop-filter: blur(2px);
}

.confirm-dlg form { padding: var(--space-lg); }

.confirm-dlg__warn {
  margin-bottom: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--danger);
}

.confirm-dlg__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.confirm-dlg .sysreq__list { font-size: var(--text-sm); }

.confirm-dlg__hint {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.confirm-dlg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.confirm-dlg__actions .btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 420px) {
  .confirm-dlg__actions { flex-direction: column-reverse; }
}
