/* uEdit – Startseite: eigene Ergänzungen zur Aurora-Vorlage (theme.css bleibt unverändert).
   Farben nur aus den theme.css-Tokens; Texte in --text / --muted-hi auf Glas oder Grund. */

/* Weiches Scrollen nur ohne Wunsch nach reduzierter Bewegung */
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Sprungmarke zum Inhalt (nur bei Tastaturfokus sichtbar) */
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  padding: 10px 16px; border-radius: 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--cyan); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Fokus sichtbar für Links und Knöpfe */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 999px; }
section[id], .station { scroll-margin-top: 84px; }

/* ---------- Hero ---------- */
.hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 62px); }
.hero-shot { margin: 48px 0 0; padding: 8px; overflow: hidden; }
.hero-shot img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* ---------- Kennzahlen ---------- */
.stats-sec { padding: 8px 0 0; }
.stats {
  list-style: none; margin: 0; padding: 22px 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px;
}
.stats li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stats strong { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.stats span { color: var(--muted-hi); font-size: 15px; }

/* ---------- Abschnittsköpfe ---------- */
.sec-head { max-width: 760px; margin: 0 0 36px; }
.sec-head .kicker { margin-top: 0; }

/* ---------- Vorteile (10 Karten) ---------- */
.benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.benefit { padding: 22px 22px 24px; min-width: 0; }
.benefit .ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
}
.benefit:nth-child(3n+1) .ico { color: var(--green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(110, 231, 183, .3); }
.benefit:nth-child(3n+2) .ico { color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(103, 232, 249, .3); }
.benefit:nth-child(3n) .ico { color: var(--violet); background: rgba(167, 139, 250, .12); border: 1px solid rgba(196, 181, 253, .3); }
.benefit p { margin: 0; color: var(--muted-hi); font-size: 15px; }

/* ---------- Signalstrecke: Aufzählungen und Bilder ---------- */
.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 28px; color: var(--muted-hi); font-size: 16px; }
.points li::before {
  content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.station .note { margin-top: 18px; }

.shot { margin: 0; padding: 8px; overflow: hidden; max-width: 100%; }
.shot img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; }
.shot-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Illustrationen (01, 05, 07) ---------- */
.illu { margin: 0; padding: 0; overflow: hidden; }
.illu-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.illu-name { font: 600 14px/1.2 var(--mono); color: var(--text); }
.illu-body { padding: 18px; display: grid; gap: 12px; }
.illu figcaption {
  padding: 10px 18px 14px; color: var(--muted-hi); font-size: 13px; border-top: 1px solid var(--line);
}
.chat { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 15px; max-width: 88%; }
.chat-user { justify-self: end; color: var(--text); background: rgba(34, 211, 238, .12); border: 1px solid rgba(103, 232, 249, .3); }
.chat-agent { justify-self: start; color: var(--muted-hi); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.approve {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(252, 211, 77, .35); background: rgba(7, 11, 24, .5);
}
.approve-q { color: var(--amber); font-weight: 600; font-size: 15px; }
.approve-actions { display: flex; gap: 8px; }
.fake-btn {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
}
.fake-btn.fake-primary { color: var(--ink); background: var(--grad); border-color: transparent; }

.tool-grid {
  list-style: none; margin: 0; padding: 18px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.tool-grid li {
  padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--text);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); overflow-wrap: anywhere;
}
.tool-grid li:nth-child(3n+1) { border-color: rgba(110, 231, 183, .3); }
.tool-grid li:nth-child(3n+2) { border-color: rgba(103, 232, 249, .3); }
.tool-grid li:nth-child(3n) { border-color: rgba(196, 181, 253, .3); }
.illu-hint { margin: 0; padding: 0 18px 16px; color: var(--cyan); font: 600 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.langs { display: flex; gap: 6px; }
.read-line { margin: 0; padding: 20px 18px 6px; color: var(--muted-hi); font-size: 17px; }
.read-line mark { color: var(--ink); background: var(--amber); border-radius: 4px; padding: 0 4px; }
.player { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px 18px 20px; }
.pbtn {
  display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 999px;
  font: 600 16px/1 var(--sans); color: var(--text); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
}
.pbtn-main { color: var(--ink); background: var(--grad); border-color: transparent; }

/* ---------- Weitere Funktionen ---------- */
#mehr .why-list h3 { font-size: 17px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; border-radius: var(--r-md); }
.table-wrap:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap thead th { color: var(--text); font-weight: 700; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.table-wrap tbody th { color: var(--text); font-weight: 600; }
.table-wrap tbody td { color: var(--muted-hi); }
.table-wrap tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
.cmp { min-width: 520px; }
.cmp tbody td:nth-child(2) { color: var(--green); font-weight: 600; }

/* ---------- Downloads (Teaser der Startseite, Status auch auf /download/) ---------- */
.dl-status { margin: 0 0 20px; color: var(--muted-hi); font-size: 16px; }
.dl-status.is-error { color: var(--amber); }
.dl-teaser { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Lizenz ---------- */
.license { white-space: pre-wrap; overflow-wrap: anywhere; padding: 22px; font-size: 14px; }

/* ---------- Drei Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 22px; min-width: 0; }
.step .node { flex: none; box-shadow: none; }
.step p { margin: 0; color: var(--muted-hi); font-size: 15px; }

/* ---------- Fußzeile ---------- */
.foot-text { min-width: 0; }
.foot-text p { margin: 0 0 4px; max-width: 70ch; }
.foot-name { color: var(--text); font-weight: 600; }

/* ---------- Responsiv ---------- */
/* Unterseiten (body[data-page]) haben keinen Menü-Knopf: Navigation unter 1181 px als umbrechende Zeile */
@media (max-width: 1180px) {
  .js body[data-page] .bar { flex-wrap: wrap; }
  .js body[data-page] .nav { display: flex; }
  /* Sprungmarken nicht unter der umbrechenden (höheren) Kopfzeile verstecken */
  .js body[data-page] section[id] { scroll-margin-top: 128px; }
}
@media (max-width: 1100px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  /* Signalstrecke einspaltig: bei vertauschten Stationen zuerst der Text, dann das Bild */
  .station.flip .right { grid-row: 1; margin-top: 0; }
  .station.flip .left { grid-row: 2; margin-top: 28px; }
  .shot-narrow { margin-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero-shot { margin-top: 32px; padding: 4px; }
  .hero-shot img { border-radius: 10px; }
  .stats { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit { padding: 18px; }
  .shot { padding: 4px; }
  .chat { max-width: 100%; }
  .table-wrap th, .table-wrap td { padding: 12px 14px; }
  .dl-teaser .btn { flex: 1 1 100%; }
  .step { padding: 18px; }
}

/* Keine Bewegung bei Wunsch nach reduzierter Bewegung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
