:root {
  --bg: #071a2e;
  --bg-brand: #0b2641;
  --panel: #0e2c4a;
  --panel-2: #123557;
  --line: #1e4668;
  --line-soft: rgba(126, 200, 214, 0.14);
  --text: #e4eef5;
  --muted: #8ba6ba;
  --accent: #3aa9b4;
  --accent-light: #9fe3ee;
  --accent-ink: #04202b;
  --warn: #e8b96a;
  --radius: 10px;
  --wrap: 1160px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-light);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
}

/* ---------- Kopfzeile ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 26, 46, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wm-2 {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav > a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.nav > a:hover {
  color: var(--text);
  background: rgba(126, 200, 214, 0.08);
}

.lang {
  display: flex;
  margin-left: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.lang a,
.lang span {
  padding: 6px 10px;
  text-decoration: none;
  color: var(--muted);
}

.lang a:hover {
  color: var(--text);
  background: rgba(126, 200, 214, 0.08);
}

.lang [aria-current] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.bars {
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn[disabled] {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-small {
  min-height: 34px;
  padding: 4px 12px;
  font-size: 0.85rem;
}

/* ---------- Start ---------- */

.hero {
  position: relative;
  padding: 72px 0 84px;
  background:
    radial-gradient(900px 480px at 78% 40%, rgba(58, 169, 180, 0.16), transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg-brand);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  margin: 14px 0 18px;
}

.lead {
  font-size: 1.12rem;
  color: #c3d5e2;
  max-width: 36em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.plate {
  position: relative;
  max-width: 425px;
  margin: 0 auto;
  background: var(--bg-brand);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--accent);
}

.tick.tl {
  top: -7px;
  left: -7px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.tick.tr {
  top: -7px;
  right: -7px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.tick.bl {
  bottom: -7px;
  left: -7px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.tick.br {
  bottom: -7px;
  right: -7px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.hero-video {
  max-width: 648px;
  margin-top: 64px;
  text-align: center;
}

.hero-video .kicker {
  margin-bottom: 12px;
}

@media (min-width: 861px) {
  #features,
  #download {
    min-height: 85vh;
    display: flex;
    align-items: center;
  }

  /* Gesperrter Download ist kurz – keine künstliche Höhe (die Galerie hat nur eine Reihe und braucht nie eine) */
  #download:has(.dl-locked) {
    min-height: 0;
  }
}

/* ---------- Abschnitte ---------- */

.section {
  padding: 84px 0;
}

.section.alt {
  background: #091f36;
  border-block: 1px solid var(--line-soft);
}

.head {
  max-width: 46em;
  margin-bottom: 36px;
}

.head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 10px 0 12px;
}

.head p:not(.kicker) {
  color: var(--muted);
}

.sub {
  font-size: 1.2rem;
  margin: 56px 0 20px;
}

.note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Video ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(58, 169, 180, 0.22), transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-brand);
}

.video iframe,
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lokales Vorschaubild (Standbild aus dem Promovideo), leicht abgedunkelt, damit der Play-Knopf gut lesbar bleibt */
.video-poster {
  display: block;
  object-fit: cover;
  filter: brightness(0.72);
  transition: filter 0.15s ease;
}

.video:hover .video-poster {
  filter: brightness(0.85);
}

.video-play .play-label {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.video-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.play-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.play-icon::before {
  content: "";
  margin-left: 6px;
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent var(--accent-ink);
}

.video-play:hover .play-icon {
  transform: scale(1.06);
  background: var(--accent-light);
}

/* ---------- Funktionen ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.93rem;
  color: #b4c8d6;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.steps li {
  padding: 20px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  font-size: 0.9rem;
  color: #b4c8d6;
}

.steps li:last-child {
  border-right: 0;
}

.steps .n {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.steps b {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin: 6px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.formats {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--panel);
}

.formats th,
.formats td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.formats tr:last-child td {
  border-bottom: 0;
}

.formats th {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.formats code {
  font-family: var(--mono);
  color: var(--accent-light);
}

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
}

.shot-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background: var(--panel);
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.shot-frame:hover {
  border-color: var(--accent);
}

a.shot-frame {
  cursor: zoom-in;
}

/* Bildwechsel: das neue Bild liegt über dem alten und wird sanft eingeblendet */
.shot-frame img.incoming {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.shot-frame img.incoming.shown {
  opacity: 1;
}

.shot figcaption {
  transition: opacity 0.35s ease;
}

.shot figcaption.fading {
  opacity: 0;
}

/* ---------- Großansicht ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  touch-action: pan-y;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(3, 12, 22, 0.93);
}

.lb-figure {
  margin: 0;
  padding: 56px 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lb-image {
  max-width: min(100%, calc(100vw - 144px));
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.lb-figure figcaption {
  text-align: center;
  font-size: 0.95rem;
}

.lb-count {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.lb-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(14, 44, 74, 0.9);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover {
  border-color: var(--accent);
}

.lb-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-close {
  top: 12px;
  right: 12px;
  font-size: 1.6rem;
}

.shot-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg-brand);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Download ---------- */

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.dl-info,
.dl-action {
  padding: 28px;
}

.dl-action {
  border-left: 1px solid var(--line);
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--warn);
  color: var(--warn);
}

.spec {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 24px;
  font-size: 0.95rem;
}

.spec dt {
  color: var(--muted);
}

.spec dd {
  margin: 0;
}

.hash-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hash {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-light);
  overflow-wrap: anywhere;
}

.hash.pending {
  color: var(--muted);
  border-style: dashed;
}

.file-info {
  width: 100%;
  font-size: 0.93rem;
}

.file-info summary {
  cursor: pointer;
  color: var(--accent-light);
  padding: 4px 0;
}

.file-info[open] summary {
  margin-bottom: 14px;
}

.file-info .spec {
  margin-bottom: 16px;
}

.dl-via {
  margin-top: -6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.hash-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hash-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.88rem;
}

/* Startanleitung nach dem Download-Klick */
.dl-start {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.dl-start h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-bottom: 8px;
}

.dl-start h3:focus {
  outline: none;
}

.dl-start h3:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

.start-intro {
  color: var(--muted);
  font-size: 0.93rem;
}

.start-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.start-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.start-step svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.start-step h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.start-step h4 .n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-family: var(--mono);
}

.start-step p {
  color: #c3d5e2;
  font-size: 0.93rem;
}

.start-step p + p,
.start-step p + .start-hash {
  margin-top: 10px;
}

.start-step code {
  font-family: var(--mono);
  color: var(--accent-light);
  overflow-wrap: anywhere;
}

.start-step .start-more {
  color: var(--muted);
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 600px) {
  .dl-start {
    padding: 20px;
  }

  .start-step {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
}

.verify {
  margin-top: 20px;
  padding: 22px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: #b4c8d6;
}

.verify h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.verify pre {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-light);
  overflow-x: auto;
}

.verify ol {
  margin: 0;
  padding-left: 1.3em;
}

.verify p + ol {
  margin-top: 12px;
}

.verify li + li {
  margin-top: 6px;
}

.verify p + p,
.verify pre + p {
  margin-top: 12px;
}

.dl-locked {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
}

.dl-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 46em;
}

.spec-row {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-block: 18px;
  border-block: 1px solid var(--line);
  font-size: 0.95rem;
}

.spec-row dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.spec-row dd {
  margin: 2px 0 0;
}

.dl-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 28px;
  align-items: end;
}

.back-short {
  display: none;
}

/* ---------- Handbuch und Kontakt ---------- */

.docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.doc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}

a.doc:hover {
  border-color: var(--accent);
  color: var(--text);
}

.doc.locked {
  border-style: dashed;
}

.doc-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc-title {
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.doc-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Kontaktformular ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-mail {
  font-weight: 600;
  overflow-wrap: anywhere;
  color: var(--text);
}

.form-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 2px;
}

.field .opt {
  font-weight: 400;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.field [aria-invalid="true"] {
  border-color: #e07a6b;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.err {
  font-size: 0.85rem;
  color: #f0a093;
}

.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.seg span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--bg);
}

.seg input:checked + span {
  border-color: var(--accent);
  background: rgba(58, 169, 180, 0.16);
  color: var(--text);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-actions .btn[disabled] {
  border-style: solid;
  cursor: progress;
}

.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.form-status.success {
  border: 1px solid var(--accent);
  background: rgba(58, 169, 180, 0.12);
}

.form-status.error {
  border: 1px solid #e07a6b;
  background: rgba(224, 122, 107, 0.1);
}

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

@media (max-width: 600px) {
  .contact-form {
    padding: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field-foot {
    flex-direction: column;
    gap: 2px;
  }
}

/* ---------- Hinweis und Fuß ---------- */

.disclaimer {
  padding: 48px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--muted);
}

.disclaimer h2 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.disclaimer p {
  max-width: 62em;
}

.official {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
}

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 30px;
  font-size: 0.88rem;
  color: var(--muted);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--text);
}

/* ---------- Rechtliche Hinweise ---------- */

.prose {
  max-width: 800px;
}

.prose h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.prose h3 {
  font-size: 1rem;
  color: var(--accent-light);
  margin: 22px 0 8px;
}

.prose p {
  color: #c3d5e2;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

/* ---------- Fehlerseite 404 ---------- */

.not-found {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  padding: 24px 0;
}

/* Das ganze Bild ist der Link zur Startseite; es passt immer vollständig in den sichtbaren Bereich */
.nf-image {
  display: block;
  width: min(100%, 640px, calc(100vh - 190px));
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease;
}

/* Die 404-Seite übernimmt exakt den Bildhintergrund (#0a1d2e), damit das Bild ohne Kante in die Seite übergeht */
.page-404 {
  background: #0a1d2e;
}

.page-404 .top {
  background: rgba(10, 29, 46, 0.86);
}

.nf-image img {
  width: 100%;
  height: auto;
}

.nf-image:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .nf-image {
    transition: none;
  }

  .nf-image:hover {
    transform: none;
  }
}

/* ---------- Sprachwahl an der Wurzel ---------- */

.chooser {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg-brand);
  text-align: center;
}

.chooser main {
  padding: 24px;
}

.chooser img {
  width: 260px;
  margin: 0 auto 20px;
}

.chooser .cta {
  justify-content: center;
}

.chooser p {
  color: var(--muted);
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

}

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav:not(.nav-static) {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 18px;
    background: #071a2e;
    border-bottom: 1px solid var(--line);
  }

  .js .nav.open {
    display: flex;
  }

  .nav > a {
    padding: 12px;
  }

  .nav .lang {
    margin: 10px 0 0;
    align-self: flex-start;
  }

  html:not(.js) .top-row {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  html:not(.js) .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-art {
    order: -1;
  }

  .plate {
    max-width: 260px;
    padding: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .dl {
    grid-template-columns: 1fr;
  }

  .dl-action {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .back-long {
    display: none;
  }

  .back-short {
    display: inline;
  }

  .spec-row,
  .dl-actions {
    grid-template-columns: 1fr;
  }

  .dl-locked {
    padding: 20px;
  }

  .cards,
  .docs {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .shot figcaption {
    font-size: 0.8rem;
  }

  .shot-empty {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    padding: 0 8px;
    text-align: center;
  }

  .dl-info,
  .dl-action,
  .verify {
    padding: 20px;
  }

  .spec {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .spec dd {
    margin-bottom: 10px;
  }

  .btn {
    width: 100%;
  }

  .btn-small {
    width: auto;
  }

  .play-icon {
    width: 64px;
    height: 64px;
  }

  .formats th,
  .formats td {
    padding: 10px;
  }

  .formats td:first-child {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .lb-figure {
    padding: 64px 8px 88px;
  }

  .lb-image {
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 200px);
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .lb-prev {
    left: calc(50% - 60px);
  }

  .lb-next {
    right: calc(50% - 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-frame img.incoming,
  .shot figcaption {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .play-icon {
    transition: none;
  }
}
