:root {
  --grund: #121214; --flaeche: #1c1c21; --rand: #2e2e36; --text: #ececf1; --leise: #9a9aa8;
  --akzent: #d6336c; --ok: #2f9e44; --warn: #f08c00; --fehler: #e03131;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 1.6rem; margin: 8px 0 16px; }
h2 { font-size: 1.15rem; margin: 28px 0 12px; }
img, video { max-width: 100%; display: block; border-radius: 8px; background: #000; }

.leiste { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.leiste .marke { font-weight: 700; color: var(--text); }
.leiste nav { display: flex; gap: 16px; flex-wrap: wrap; }

.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.karte.schmal { max-width: 360px; margin: 60px auto; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.zeile input[name=name] { flex: 1; min-width: 200px; }
.spalten { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.spalten > label { flex: 1; min-width: 200px; }
.einwilligung { margin: 4px 0 12px; padding: 12px; border: 1px dashed var(--rand); border-radius: 8px; }

label { display: block; margin-bottom: 12px; color: var(--leise); font-size: .9rem; }
label.haken { display: flex; align-items: center; gap: 8px; color: var(--text); margin-bottom: 0; }
.zeile label { margin-bottom: 0; }
input:not([type=checkbox]):not([type=file]), textarea, select {
  width: 100%; margin-top: 4px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--rand);
  background: #111114; color: var(--text); font: inherit;
}
.zeile select { width: auto; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--akzent); }

.knopf { background: var(--akzent); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.knopf:disabled { opacity: .4; cursor: not-allowed; }
.knopf.klein { padding: 6px 12px; font-size: .9rem; }
.link { background: none; border: 0; padding: 0; color: var(--akzent); font: inherit; cursor: pointer; }
.link.gefahr { color: var(--fehler); }
.leise { color: var(--leise); font-size: .88rem; }
.loeschen { margin-top: 40px; }

.meldung { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--ok); background: rgba(47,158,68,.12); }
.meldung.fehler { border-color: var(--fehler); background: rgba(224,49,49,.12); }
.meldung.hinweis { border-color: var(--warn); background: rgba(240,140,0,.12); }
.marker { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--rand); color: var(--leise); }
.marker.ok { border-color: var(--ok); color: #8ce99a; }
.marker.laeuft { border-color: var(--warn); color: #ffc078; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.kachel { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.kachel:hover { text-decoration: none; border-color: var(--akzent); }
.kachel img, .kachel video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.platzhalter { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 8px; background: #111114; border: 1px dashed var(--rand); color: var(--leise); font-size: .9rem; }
.platzhalter.laeuft, .platzhalter.wartet { animation: puls 1.6s ease-in-out infinite; }
.platzhalter.fehler { border-color: var(--fehler); color: var(--fehler); }
@keyframes puls { 50% { opacity: .45; } }

.bild { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.bild .foto { display: flex; flex-direction: column; gap: 10px; }
.bild .foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-items: start; }
.variante { display: flex; flex-direction: column; gap: 6px; }
.variante video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.variante.gewaehlt video { outline: 2px solid var(--ok); }
.fehlertext { color: var(--fehler); font-size: .8rem; word-break: break-word; }
.clips .neu { align-self: center; }
@media (max-width: 640px) { .bild { grid-template-columns: 1fr; } .bild .foto img { max-width: 220px; } }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.galerie figure { margin: 0; position: relative; }
.galerie img, .galerie video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.galerie figcaption { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; }
.text { max-width: 70ch; }

code { background: #111114; border: 1px solid var(--rand); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
code.key { display: inline-block; margin: 6px 0; padding: 6px 10px; font-size: 1rem; user-select: all; word-break: break-all; }
.aktionen { margin-top: 12px; gap: 20px; }
