/* uVideoCreater-Website – Ergänzungen zu site.css (ai.ugur.at). Nur Bausteine, die es dort
   nicht gibt; Farben, Abstände und Radien aus den Variablen von site.css. */

/* ---------- Barrierearmut ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #09090b;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.h2 {
  font-size: 28px;
  font-weight: 600;
}
.auth-card h1.h2 {
  margin-top: 0;
}
code {
  font-size: 0.92em;
  color: #e4e4e7;
}

/* ---------- Hero: Ablaufplan im Vorschaufenster ---------- */
.plan {
  display: grid;
  gap: 8px;
}
.plan .mini-model {
  justify-content: space-between;
}
.plan .mini-model .name {
  font-family: var(--font);
  font-size: 13px;
}
.plan .badge {
  font-size: 11.5px;
  padding: 2px 8px;
}

/* ---------- Ablauf als nummerierte Liste ---------- */
ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps code {
  font-size: 13px;
}
@media (min-width: 981px) {
  .flow .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 46px;
    right: -13px;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent-text);
    border-right: 2px solid var(--accent-text);
    transform: rotate(45deg);
    opacity: 0.7;
  }
}

/* ---------- Beispielvideo ---------- */
.video-frame {
  max-width: 920px;
  margin: 0 auto;
}
.video-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  aspect-ratio: 16 / 9;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(
      ellipse 60% 70% at 50% 40%,
      color-mix(in srgb, var(--glow) 55%, transparent),
      transparent 75%
    ),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 14px, transparent 14px 28px),
    var(--surface);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}
.video-placeholder .play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-fill));
  box-shadow:
    0 0 0 10px var(--accent-soft),
    0 18px 40px -10px var(--glow);
  color: #fff;
}
.video-placeholder .play .i {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
  margin-left: 4px;
}
.video-placeholder strong {
  font: 600 22px var(--font-display);
}
.video-placeholder small {
  color: var(--muted);
  font-size: 15px;
  max-width: 42ch;
}
.video-frame figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--subtle);
  font-size: 13.5px;
}
.video-frame video {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: #000;
}

/* ---------- Pflege: Text und Terminal nebeneinander ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.split .kicker {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.split h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
}
.split-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}
.checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 30px;
  color: #e4e4e7;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success-bg);
  box-shadow: inset 0 0 0 1.5px var(--success);
}
.checks li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: calc(0.3em + 4px);
  width: 4px;
  height: 7px;
  border: solid var(--success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.split .code pre {
  padding-right: 18px;
}

/* ---------- Sprachen ---------- */
.langs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.lang {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.lang-code {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font: 700 16px var(--mono);
  letter-spacing: 0.04em;
}
.lang b {
  display: block;
  margin-top: 16px;
  font: 600 19px var(--font-display);
}
.lang small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.note {
  margin-top: 22px;
  text-align: center;
  color: var(--subtle);
  font-size: 14px;
}

/* ---------- Download ---------- */
.download-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.card .download-card {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: transparent;
}
.download-state {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.download-state p {
  max-width: 56ch;
  color: #e4e4e7;
}
.download-latest {
  display: grid;
  gap: 20px;
}
.download-latest + .download-latest {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.download-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.download-head h3 {
  font-size: 22px;
  font-weight: 600;
}
.download-latest > .btn {
  justify-self: start;
}
.facts {
  display: grid;
  gap: 10px;
  margin: 0;
  font-size: 14.5px;
}
.facts div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}
.facts dt {
  color: var(--subtle);
}
.facts dd {
  margin: 0;
  color: #e4e4e7;
  min-width: 0;
}
.facts .sha {
  display: flex;
  align-items: center;
  gap: 10px;
}
.facts .sha code {
  overflow-wrap: anywhere;
  font-size: 12.5px;
}
.copy-inline {
  position: static;
  flex: none;
}
.notes {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.notes b {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.notes p {
  white-space: pre-line;
  color: #d4d4d8;
  font-size: 14.5px;
}
.older {
  margin-top: 24px;
}
.older summary {
  cursor: pointer;
  color: var(--accent-text);
  font-weight: 600;
}
.older .table-wrap {
  margin-top: 12px;
}
.sha-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.download-card .hint {
  margin-top: 22px;
}

/* ---------- Häufige Fragen ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}
.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

.cta-band code {
  color: #fff;
}

/* ---------- Konto und Verwaltung ---------- */
.card + .card {
  margin-top: 20px;
}
.card-body {
  padding: 22px;
}
.card-later {
  opacity: 0.85;
}
.row-actions {
  white-space: nowrap;
}
.cell-name .tag {
  margin-left: 4px;
}

/* ---------- Rechtstexte ---------- */
.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 24px;
}
.prose h2 {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 600;
}
.prose p,
.prose ul {
  margin-top: 10px;
  color: #d4d4d8;
}
.prose ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.platzhalter {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .langs {
    grid-template-columns: 1fr;
  }
  .download-card {
    padding: 22px;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .facts .sha {
    flex-wrap: wrap;
  }
}
