/* Verwaltung – baut auf stil.css auf */

.verwaltung .marke small { font: .75rem var(--sans); color: var(--leise); margin-left: .4em; letter-spacing: .05em; text-transform: uppercase; }
.verwaltung .kopf nav { align-items: center; flex-wrap: wrap; }
.v-haupt { padding-bottom: 64px; }
.v-haupt h2 { font: 400 1.35rem/1.2 var(--serif); margin: 0 0 .8rem; }
.v-haupt h3 { font: 600 1rem/1.2 var(--sans); margin: 0 0 .8rem; }
.leise { color: var(--leise); }
small.leise { font-size: .8rem; font-family: var(--sans); }
form.inline { display: inline; margin: 0; }

.v-karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px;
  padding: 20px 22px; margin: 0 0 22px;
}
.schmal-box { max-width: 30rem; margin: 40px auto; }
.schmal-box h1 { font: 400 2rem/1.1 var(--serif); margin: 0 0 1rem; }
.v-spalten { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.v-spalten.zwei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
.v-spalten > .v-karte { margin: 0; }
.album-bearbeiten, .text-bearbeiten { margin-bottom: 32px; }
.text-bearbeiten { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
@media (max-width: 860px) { .text-bearbeiten { grid-template-columns: 1fr; } }

/* Formulare */
.v-formular { display: flex; flex-direction: column; gap: 14px; }
.v-formular label, .v-neu label, .gemini label { display: flex; flex-direction: column; gap: 5px; font-size: .875rem; color: var(--leise); }
.zeile { display: flex; gap: 12px; flex-wrap: wrap; }
.zeile > label { flex: 0 0 auto; }
.zeile > .lang { flex: 1 1 220px; }
input:not([type=file]):not([type=hidden]), textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--grund);
  border: 1px solid var(--linie); border-radius: 4px; padding: .55em .7em; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }
.schreibfeld { font: 1.05rem/1.7 var(--serif); min-height: 24rem; }
input[type=month], input[type=date] { color-scheme: dark; }
.v-neu { display: flex; flex-direction: column; gap: 12px; }

.knopf {
  display: inline-block; font: 600 .95rem/1 var(--sans); padding: .75em 1.2em; border-radius: 4px; cursor: pointer;
  background: var(--akzent); color: #1a1408; border: 1px solid var(--akzent); text-decoration: none; align-self: flex-start;
}
.knopf:hover { filter: brightness(1.08); }
.knopf:disabled { opacity: .5; cursor: wait; }
.knopf.zweit { background: transparent; color: var(--text); border-color: var(--leise); }
.knopf.gefahr { background: transparent; color: #f08a7a; border-color: #8a3b30; }
.link { background: none; border: 0; padding: 0; color: var(--akzent); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.link.gefahr, .gefahr { color: #f08a7a; }
.kopf nav .link { color: var(--leise); text-decoration: none; font-size: 1rem; }
.kopf nav .link:hover { color: var(--text); }
.knoepfe { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.meldung { padding: .8em 1em; border-radius: 4px; margin: 0 0 18px; border: 1px solid; }
.meldung.fehler { border-color: #8a3b30; background: #2a1512; color: #f4b2a7; }
.meldung.ok { border-color: #3c6b45; background: #142319; color: #a9dbb3; }
.meldung.hinweis { border-color: var(--linie); background: var(--flaeche); color: var(--leise); font-size: .9rem; }
.wichtig { border-color: var(--akzent); }
.codes { columns: 2; font-size: 1.15rem; padding-left: 1.4em; }
.codes code { background: none; letter-spacing: .05em; }
.gefahrenzone { border-color: #4a2621; margin-top: 40px; max-width: 40rem; }

/* Einrichtung */
.qr { background: #fff; width: 220px; padding: 0; border-radius: 6px; margin: 10px 0; }
.qr svg { display: block; width: 100%; height: auto; }
.geheimnis { font-size: 1rem; letter-spacing: .08em; word-break: break-all; }

/* Listen in der Übersicht */
.v-abschnittskopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 14px; }
.v-abschnittskopf h2 { margin: 0; }
.v-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.v-liste a { display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 4px; text-decoration: none; }
.v-liste a:hover { background: var(--flaeche); }
.v-liste img, .v-liste .platz { width: 72px; height: 48px; object-fit: cover; border-radius: 3px; flex: none; background: var(--flaeche-hell); }
.v-liste .platz.text { display: grid; place-items: center; font: 1.4rem var(--serif); color: var(--leise); }
.v-liste span { display: flex; flex-direction: column; min-width: 0; }
.v-liste small { color: var(--leise); font-size: .8rem; }

/* Ablagefeld */
.ablage { border: 2px dashed var(--linie); text-align: center; transition: border-color .15s, background .15s; }
.ablage.drueber { border-color: var(--akzent); background: #2a241b; }
.ablage p { margin: .4em 0; }
.ablage.klein { padding: 14px; margin: 12px 0; }
.warteschlange { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; font-size: .85rem; }
.warteschlange li { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 10px; align-items: center; padding: 4px 0; border-top: 1px solid var(--linie); }
.warteschlange .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warteschlange progress { width: 90px; accent-color: var(--akzent); }
.warteschlange .ok .zustand { color: #a9dbb3; }
.warteschlange .fehler { grid-template-columns: minmax(0, 1fr); }
.warteschlange .fehler progress { display: none; }
.warteschlange .fehler .zustand { color: #f4b2a7; }

/* Medien im Album */
.v-medien { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.v-medien li { position: relative; background: var(--flaeche); border: 2px solid transparent; border-radius: 4px; overflow: hidden; }
.v-medien li.ist-titel { border-color: var(--akzent); }
.v-medien li.ist-titel::before { content: "Titelbild"; position: absolute; left: 6px; top: 6px; background: var(--akzent); color: #1a1408; font-size: .7rem; padding: .15em .5em; border-radius: 2px; font-weight: 600; }
.v-medien img, .v-medien .platz { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: grid; place-items: center; color: var(--leise); font-size: .8rem; }
.abzeichen { position: absolute; right: 6px; top: 6px; background: rgb(0 0 0 / .6); font-size: .7rem; padding: .15em .5em; border-radius: 2px; }
.v-medium-leiste { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 10px; font-size: .78rem; }
/* Beschreibung unter dem Bild; ✦ = von Gemini geschrieben */
.v-bildtext { position: relative; padding: 0 8px 8px; }
.v-bildtext textarea { width: 100%; font: inherit; font-size: .78rem; line-height: 1.35; padding: 5px 7px; resize: vertical; min-height: 3.2em; }
.v-bildtext.ki textarea { border-left: 3px solid var(--akzent); }
.v-bildtext button { position: absolute; right: 12px; bottom: 11px; font-size: .72rem; opacity: .75; }
.v-bildtext.gespeichert textarea { outline: 2px solid #5a9a5a; }
.v-medium-leiste span { flex: 1 1 100%; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.textbild img { width: 100%; border-radius: 4px; }
.gemini .knoepfe { margin-top: 12px; }
.gemini-status { min-height: 1.4em; margin: 10px 0 0; }

.protokoll { font: .8rem/1.5 ui-monospace, "DejaVu Sans Mono", monospace; overflow-x: auto; }
.protokoll div { display: grid; grid-template-columns: 10.5rem 8.5rem 7rem 1fr; gap: 10px; padding: 2px 0; border-bottom: 1px solid var(--linie); white-space: nowrap; }
@media (max-width: 700px) { .protokoll div { grid-template-columns: 1fr; white-space: normal; padding: 6px 0; } }

details summary { cursor: pointer; margin: 14px 0 6px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; max-width: min(92vw, 40rem);
  background: #e9e4da; color: #151412; padding: .8em 1.2em; border-radius: 5px; box-shadow: 0 8px 30px rgb(0 0 0 / .4);
  transition: opacity .4s; font-size: .95rem;
}
.toast.fehler { background: #f4b2a7; color: #2a1512; }
.toast.weg { opacity: 0; }

/* Gäste, Einreichungen, Freigaben */
.zaehler { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 99px; background: var(--akzent); color: #1a1408; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.4em; margin-left: .2em; }
.falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.haken { flex-direction: row !important; align-items: flex-start; gap: 10px !important; color: var(--text) !important; font-size: .9rem !important; }
.haken input { margin-top: .25em; width: auto; flex: none; accent-color: var(--akzent); }
.haken a { color: var(--akzent); }
select { font: inherit; color: var(--text); background: var(--grund); border: 1px solid var(--linie); border-radius: 4px; padding: .55em .7em; width: 100%; }
.schmal-form { max-width: 44rem; }
.neu-knoepfe { margin: 8px 0 26px; }
.st { padding: 0 .45em; border-radius: 3px; background: var(--flaeche-hell); }
.st-offen { color: #f3d08d; } .st-freigegeben { color: #a9dbb3; } .st-abgelehnt { color: #f4b2a7; } .st-entwurf { color: var(--leise); }
.v-medien.klein { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 22px; }
.abschicken .haken span { line-height: 1.5; }
.freigabe h2 { margin-top: .3em; }
.pruef-text { max-height: 22rem; overflow: auto; background: var(--grund); padding: 14px 18px; border-radius: 4px; font-size: 1rem; margin-bottom: 16px; }
.v-medien.pruef { margin: 14px 0; }
.v-medien.pruef a { display: block; }
.warnung { flex: 1 1 100%; color: #f3d08d; }
.exif { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; margin: 4px 0 0; flex: 1 1 100%; color: var(--leise); font-size: .72rem; }
.exif dt { color: var(--text); }
.exif dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grund { margin: 12px 0; display: flex; flex-direction: column; gap: 5px; font-size: .875rem; color: var(--leise); }
.freigabe.erledigt { opacity: .55; }
.freigabe.erledigt [data-freigeben], .freigabe.erledigt [data-ablehnen] { display: none; }
.v-zwischen { margin-top: 40px; }
.v-tabelle { display: flex; flex-direction: column; gap: 2px; }
.v-zeile { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) auto; gap: 16px; align-items: center; padding: 12px 14px; background: var(--flaeche); border-radius: 4px; }
.v-zeile.hervor { border-left: 3px solid var(--akzent); }
@media (max-width: 760px) { .v-zeile { grid-template-columns: 1fr; } }

/* Bühne */
.buehnenbild { margin: 0 0 22px; }
.buehnenbild img { display: block; width: 100%; height: auto; border-radius: 6px; background: #111; }
.buehnenbild figcaption { margin-top: 6px; font-size: .85rem; color: var(--leise); }

/* Korrekturlesen: Hinweise unter dem Formular / in der Freigabe */
.pruefung { margin-top: 14px; font-size: .9375rem; }
.pruefung:empty { display: none; }
.pruefung .pr-kopf { margin: 0 0 8px; font-weight: 600; }
.pruefung ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pruefung li { padding: 10px 12px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche-hell); line-height: 1.5; }
.pruefung .pr-art { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--linie); font-size: .75rem; letter-spacing: .03em; }
.pruefung .pr-alt { font: inherit; color: #e2a59a; text-decoration: line-through; text-decoration-color: rgb(226 165 154 / .6); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.pruefung span.pr-alt { cursor: default; }
.pruefung .pr-neu { color: #a8d5a2; font-weight: 600; }
.pruefung small { display: block; color: var(--leise); margin-top: 2px; }
.pruefung .pr-knoepfe { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.knopf.klein { padding: 5px 12px; font-size: .875rem; }

/* Bühne: Stadtansichten */
.stadt-liste { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.stadt-liste li { display: grid; gap: 4px; font-size: .875rem; }
.stadt-liste img { width: 100%; height: auto; border-radius: 6px; background: linear-gradient(#5c86c9, #a9c3e6); }
.stadt-liste small { display: block; color: var(--leise); }
.stadt-liste button { justify-self: start; }

.knopf[hidden] { display: none; }

/* Haken-Liste (Text mit Alben verknüpfen) */
.v-haken { border: 1px solid var(--linie, rgba(0,0,0,.15)); border-radius: 8px; padding: .6rem .9rem .8rem; margin: 0 0 1rem; }
.v-haken legend { padding: 0 .4rem; font-weight: 600; }
.v-hakenliste { max-height: 13rem; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .15rem .9rem; }
.v-hakenliste label { display: flex; gap: .5rem; align-items: baseline; font-weight: 400; margin: 0; }
.v-hakenliste input { flex: none; width: auto; }

/* Besen: fast gleiche Fotos */
.doppler-gruppe { border-top: 1px solid var(--linie); padding: 14px 0 4px; }
.doppler-reihe { display: flex; gap: 12px; overflow-x: auto; }
.doppler-reihe figure { margin: 0; flex: 0 0 210px; border: 2px solid transparent; border-radius: 5px; padding: 4px; opacity: .55; }
.doppler-reihe figure.bleibt { border-color: var(--akzent, #c9a25b); opacity: 1; }
.doppler-reihe img { display: block; width: 100%; height: 150px; object-fit: contain; background: #0006; }
.doppler-reihe figcaption { font-size: .8rem; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.doppler-reihe small { color: var(--leise); word-break: break-word; }

/* Video zuschneiden */
.v-schnitt { width: min(860px, 94vw); max-height: 94vh; border: 1px solid var(--linie); border-radius: 8px; background: var(--grund, #1d1b18); color: inherit; padding: 18px 22px; }
.v-schnitt::backdrop { background: #000a; }
.v-schnitt h2 { margin: 0 0 4px; }
.v-schnitt .bild { background: #000; border-radius: 4px; }
.v-schnitt video { display: block; width: 100%; max-height: 52vh; transition: opacity .15s linear; }
.v-schnitt .regler { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.v-schnitt .regler label { display: flex; align-items: center; gap: 10px; flex: 1 1 420px; }
.v-schnitt .regler b { min-width: 4.5em; font-variant-numeric: tabular-nums; }
.v-schnitt input[type=range] { flex: 1; }
.v-schnitt .knoepfe { margin-top: 14px; }
.v-schnitt select { width: auto; }
.v-bildschnitt .bild { display: flex; justify-content: center; background: #000; }
.v-bildschnitt canvas { display: block; max-width: 100%; touch-action: none; }

/* Sprachen (verwaltung/sprachen.php) */
.sprachtabelle th, .sprachtabelle td { text-align: start; vertical-align: top; }
.sprachtabelle .stand-gut { color: #9fd49a; }
.sprachtabelle .stand-mittel { color: #e7c98a; }
.sprachtabelle .stand-offen { color: #e0a070; }
.sprachtabelle .stand-leer { opacity: .7; }
.v-formular .v-haken-einzeln { display: flex; gap: 8px; align-items: baseline; }
.v-formular .v-haken-einzeln input { width: auto; flex: none; }
