/* ============================================================
   Happy Stompers – Line Dance Crew Vienna
   Western-Look in Logo-Türkis. Eine CSS-Datei für alle Seiten.
   ============================================================ */

:root {
    --tuerkis:        #14b6aa;   /* Logo-Farbe */
    --tuerkis-dunkel: #0c8077;
    --tuerkis-tief:   #073f3a;
    --creme:          #fff7e9;   /* Saloon-Pergament */
    --creme-dunkel:   #f3e6cd;
    --denim:          #355a7a;   /* Jeans aus den Gruppenbildern */
    --braun:          #8a5a2b;   /* Cowboystiefel-Leder */
    --braun-tief:     #4a2c12;   /* dunkler Absatz — Grund für Löschen-Knöpfe, siehe .btn-brown */
    --holz:           #b5793f;
    --tinte:          #20312f;
    --weiss:          #ffffff;
    --schatten:       0 10px 30px rgba(7, 63, 58, .18);
    --radius:         18px;
    --font-display:   "Rye", "Georgia", serif;
    --font-body:      "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--tinte);
    background: var(--creme);
    line-height: 1.6;
    /* Dezentes Holzdielen-/Pergament-Gefühl als Hintergrund */
    background-image:
        radial-gradient(circle at 20% 0%, rgba(20,182,170,.10), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(53,90,122,.08), transparent 45%);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: .5px; }

a { color: var(--tuerkis-dunkel); }

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

.container { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--font-body); font-weight: 800;
    border: none; border-radius: 999px;
    padding: .85em 1.6em; font-size: 1rem;
    cursor: pointer; text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, background .2s;
    box-shadow: 0 6px 0 rgba(0,0,0,.12);
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.btn-primary { background: var(--tuerkis); color: #fff; }
.btn-primary:hover { background: var(--tuerkis-dunkel); }
.btn-ghost { background: var(--creme); color: var(--tuerkis-tief); box-shadow: 0 6px 0 rgba(7,63,58,.15); border: 2px solid var(--tuerkis); }
/* Löschen-Knopf. Dunkler als das übrige Braun, und das ist der ganze Grund: Auf dem Knopf steht
   ein 🗑️-EMOJI, und Emojis bringen ihre eigene Farbe mit — `color` gilt für sie nicht. Der helle
   graue Kübel auf mittelbraunem Grund (--braun) kam auf rund 2,3:1 und war kaum zu erkennen
   (Rückmeldung 2026-08-03). Auf --braun-tief sind es rund 4,7:1. Heller zu werden hätte das
   Gegenteil bewirkt: Der Kübel ist selbst hell. */
.btn-brown { background: var(--braun-tief); color: #fff; }
.btn-brown:hover { background: var(--braun); }
.btn-lg { font-size: 1.15rem; padding: 1em 2em; }

/* ---------- Kopf / Navigation ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,247,233,.92);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--tuerkis);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--tuerkis-dunkel); text-decoration: none; }
.brand img { height: 44px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; font-weight: 700; color: var(--tinte); }
.nav a:hover { color: var(--tuerkis-dunkel); }
/* Aktuelle Seite im Menü markieren (gemeinsame Kopfleiste _nav.php, 2026-07). */
.nav a.cur { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--tuerkis-dunkel); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
    background:
        linear-gradient(180deg, rgba(20,182,170,.16), rgba(255,247,233,0) 70%);
}
.hero__logo { width: min(440px, 78vw); margin: 0 auto 1.2rem; filter: drop-shadow(0 14px 24px rgba(7,63,58,.18)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--tuerkis-tief); margin: .2rem 0; }
.hero .claim { font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 800; color: var(--denim); }
.hero .subclaim { max-width: 640px; margin: 1rem auto 1.8rem; font-size: 1.1rem; }
.hero__cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* Tanzende Stiefel-Emojis als Deko */
.boots { font-size: 2rem; display: inline-block; animation: kick 1.2s ease-in-out infinite; }
.boots:nth-child(2) { animation-delay: .2s; }
@keyframes kick { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }

/* ---------- Abschnitte ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-title { text-align: center; font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: var(--tuerkis-tief); margin-bottom: .4rem; }
.section-sub { text-align: center; max-width: 660px; margin: 0 auto 2.5rem; font-size: 1.1rem; color: #4a5b59; }

.band { background: var(--tuerkis-tief); color: var(--creme); }
.band .section-title, .band .section-sub { color: var(--creme); }
.band a { color: #8fe9df; }

/* Witzige Fakten-Karten */
.facts { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fact {
    background: var(--weiss); border-radius: var(--radius); padding: 1.6rem;
    box-shadow: var(--schatten); border-top: 6px solid var(--tuerkis);
    transition: transform .15s ease;
}
.fact:hover { transform: translateY(-6px) rotate(-1deg); }
.fact .emoji { font-size: 2.4rem; }
.fact h3 { font-size: 1.3rem; margin: .6rem 0 .3rem; color: var(--tuerkis-dunkel); }
.fact p { margin: 0; }

/* Coach-Block */
.coach { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.coach__img { border-radius: var(--radius); box-shadow: var(--schatten); border: 5px solid var(--weiss); transform: rotate(-2deg); }
.coach h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.speech { background: var(--creme); color: var(--tinte); border-radius: var(--radius); padding: 1.2rem 1.4rem; position: relative; box-shadow: var(--schatten); margin: 1rem 0; font-style: italic; }
.contact-card { display: inline-grid; gap: .5rem; margin-top: 1rem; }
.contact-card a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; font-size: 1.1rem; }

/* Galerie */
.gallery { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); background: #fff; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }

/* CTA / Mitmachen */
.join { text-align: center; }
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 2rem; text-align: left; }
.step { background: var(--weiss); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--schatten); position: relative; }
.step .num { position: absolute; top: -16px; left: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--tuerkis); color: #fff; display: grid; place-items: center; font-weight: 900; font-family: var(--font-display); }
.step h3 { margin: .6rem 0 .3rem; color: var(--tuerkis-dunkel); }

/* ---------- Footer ---------- */
.footer { background: var(--tinte); color: #d8e6e4; padding: 2.5rem 0; text-align: center; }
.footer img { height: 60px; margin: 0 auto 1rem; }
.footer a { color: #8fe9df; }
.footer small { color: #9fb4b1; }

/* ============================================================
   Interner Bereich – Login & Galerie
   ============================================================ */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 2.2rem; width: min(420px, 92vw); text-align: center; border-top: 8px solid var(--tuerkis); }
.login-card img { width: 200px; margin: 0 auto 1rem; }
.login-card h1 { font-size: 1.7rem; color: var(--tuerkis-tief); }
.field { text-align: left; margin: 1rem 0; }
.field label { font-weight: 800; display: block; margin-bottom: .3rem; }
.field input, .field textarea {
    width: 100%; padding: .8em 1em; font-size: 1rem; font-family: var(--font-body);
    border: 2px solid var(--creme-dunkel); border-radius: 12px; background: var(--creme);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--tuerkis); }
.alert { background: #ffe3e0; color: #a3261c; border-radius: 12px; padding: .8em 1em; margin: 1rem 0; font-weight: 700; }
.alert-info { background: #def4f1; color: #0c6058; }

/* Galerie-Kopf */
.intern-bar { background: var(--tuerkis-tief); color: var(--creme); position: sticky; top: 0; z-index: 50; }
.intern-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; flex-wrap: wrap; }
.intern-bar .brand { color: var(--creme); }
.intern-bar a { color: var(--creme); }

.video-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.video-card .thumb { position: relative; aspect-ratio: 16/9; background: var(--tuerkis-tief); cursor: pointer; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* PDF-Kacheln „fit-in" (contain) statt „fill": ganze erste Seite inkl. Überschrift sichtbar,
   weißer Hintergrund als Letterbox. Videos/Fotos bleiben randlos (cover). (Spez. 22, 2026-06) */
.video-card .thumb.is-pdf { background: #fff; }
.video-card .thumb.is-pdf img { object-fit: contain; }
.video-card .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .thumb .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(20,182,170,.92); color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .15s; }
.video-card .thumb:hover .play span { transform: scale(1.12); }
.video-card .badge { position: absolute; bottom: 8px; right: 8px; background: rgba(7,63,58,.85); color: #fff; padding: .15em .6em; border-radius: 8px; font-size: .8rem; font-weight: 800; }
.video-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.video-card h3 { font-family: var(--font-body); font-weight: 900; font-size: 1.15rem; margin: 0; color: var(--tuerkis-tief); }
.video-card p { margin: 0; font-size: .95rem; color: #4a5b59; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .82rem; color: #6b7d7a; font-weight: 700; }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }
.video-card .actions { display: flex; gap: .45rem; margin-top: .3rem; }
.video-card .actions .btn { flex: 1; justify-content: center; padding: .6em 1em; font-size: .92rem; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
/* Kompakte Icon-Leiste: alles in einer Zeile, nur Symbole -> spart Platz */
.video-card .actions-icons .btn { padding: .4em .3em; font-size: 1.15rem; line-height: 1; box-shadow: 0 3px 0 rgba(0,0,0,.12); }

.empty { text-align: center; padding: 4rem 1rem; color: #6b7d7a; }
.empty .emoji { font-size: 3rem; }

/* Galerie-Titel + Hauptbereich (als Klassen, damit Mobile-Regeln greifen) */
.intern-main { padding: 2rem 0 4rem; }
.gallery-title { font-family: 'Rye', serif; color: var(--tuerkis-tief); font-size: 2rem; margin: .2rem 0 1rem; }

/* Codec-Hinweis */
.note { background: #fff6dd; border: 2px dashed var(--holz); border-radius: 12px; padding: .9em 1.1em; font-size: .92rem; color: #6b4e1e; }

/* Einklappbarer Hinweis (spart Platz, v. a. am Handy) */
.note-collapse { padding: 0; }
.note-collapse summary { cursor: pointer; padding: .7em 1.1em; font-weight: 800; list-style: none; }
.note-collapse summary::-webkit-details-marker { display: none; }
.note-collapse summary::before { content: "ℹ️ "; }
.note-collapse summary::after { content: " ▸"; }
.note-collapse[open] summary::after { content: " ▾"; }
.note-collapse .note-body { padding: 0 1.1em .9em; }

/* Modal-Player */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(7,15,14,.92); display: none; place-items: center; padding: 1rem; }
.modal.open { display: grid; }
.modal__box { width: min(960px, 96vw); }
.modal video { width: 100%; max-height: 80vh; border-radius: 12px; background: #000; }
.modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .7rem; color: #fff; }
.modal__bar h3 { font-family: var(--font-body); font-weight: 900; margin: 0; font-size: 1.15rem; }
.modal__close { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* Upload-Fortschritt */
.progress { height: 16px; background: var(--creme-dunkel); border-radius: 999px; overflow: hidden; margin: .6rem 0; display: none; }
.progress.show { display: block; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--tuerkis), var(--tuerkis-dunkel)); transition: width .2s ease; }
.thumb-preview { width: 100%; max-width: 320px; border-radius: 12px; margin: .6rem auto; display: none; box-shadow: var(--schatten); }
.thumb-preview.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    /* Öffentliche Navigation: Hamburger-Dropdown */
    .nav { position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; background: var(--creme); padding: 1rem; gap: .4rem; border-bottom: 3px solid var(--tuerkis); display: none; }
    .nav.open { display: flex; }
    .nav a { padding: .6rem .4rem; border-radius: 10px; }
    .nav-toggle { display: block; }
    .coach { grid-template-columns: 1fr; }
    .coach__img { max-width: 360px; margin-inline: auto; }

    /* --- Interner Bereich: kompakte Kopfleiste mit Burger-Menü --- */
    .intern-bar .container { flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; position: relative; }
    .intern-bar .brand img { height: 30px; }
    .intern-bar .brand span { font-size: 1.05rem; }
    .intern-bar .nav-toggle { display: block; color: var(--creme); }
    /* Menü standardmäßig aus, klappt als Dropdown unter der Leiste auf */
    .intern-bar .nav {
        display: none;
        position: absolute; top: 100%; right: 0; left: 0; z-index: 60;
        flex-direction: column; align-items: stretch; gap: .25rem;
        background: var(--tuerkis-tief); padding: .5rem;
        border-top: 2px solid rgba(255,255,255,.15);
        box-shadow: 0 12px 26px rgba(0,0,0,.35);
    }
    .intern-bar .nav.open { display: flex; }
    .intern-bar .nav a { padding: .8rem .9rem; border-radius: 10px; color: var(--creme); font-weight: 700; }
    .intern-bar .nav a:not(.btn):active { background: rgba(255,255,255,.12); }
    .intern-bar .nav a.btn { text-align: center; }

    /* Admin-Dropdown im Burger-Menü: nicht schwebend, sondern eingerückt aufklappend (per Klick). */
    .intern-bar .nav-dd { width: 100%; }
    .intern-bar .nav-dd-toggle { width: 100%; justify-content: space-between; padding: .8rem .9rem; }
    .intern-bar .nav-dd-menu { position: static; min-width: 0; margin: .2rem 0 .2rem .8rem; box-shadow: none;
      background: rgba(0,0,0,.18); border: none; }
    /* Im Burger nur per Klick (.open) aufklappen – Hover/Fokus auf Touch unzuverlässig. */
    .intern-bar .nav-dd:hover .nav-dd-menu, .intern-bar .nav-dd:focus-within .nav-dd-menu { display: none; }
    .intern-bar .nav-dd.open .nav-dd-menu { display: flex; }

    /* Upload-Leiste am Handy/Tablet: zentriert wie ein Tipp-Button, „ziehen"-Hinweis weg (Touch kann
       keine Dateien ziehen) – so bleibt sie sehr flach und verschwendet keinen Platz. */
    .mm-drop { justify-content: center; text-align: center; padding: .7rem .9rem; }
    .mm-drop-hint { display: none; }
    .mm-drop-where { width: 100%; font-size: .82rem; }

    /* Galerie: Kopf straffen, enger gesetzt */
    .intern-main { padding: 1rem 0 3rem; }
    .gallery-title { font-size: 1.4rem; margin: .2rem 0 .7rem; }
    .video-grid { gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

    /* Player-Overlay kompakter, Buttons groß genug zum Tippen */
    .modal { padding: .5rem; }
    .modal__box { width: 100%; }
    .modal video { max-height: 72vh; }
    .modal__close { font-size: 2.4rem; padding: 0 .3rem; }

    /* Login-/Formularkarten kompakter */
    .login-card { padding: 1.6rem; }
    .login-card img { width: 160px; }
}

@media (max-width: 540px) {
    .video-grid { grid-template-columns: 1fr; }      /* eine Spalte, volle Breite */
    .video-card .actions { flex-wrap: wrap; }

    /* --- Admin-Benutzertabelle -> übersichtliche Karten (Anforderung 2026-06: schmales Layout
       "auf einen Blick"). Name als farbige Kopfzeile, E-Mail dezent darunter, Status als kompakte
       Zeilen, Aktionen als gleichmäßiges Tipp-Raster. --- */
    .utable thead { display: none; }
    .utable, .utable tbody, .utable tr, .utable td { display: block; width: 100%; }
    .utable tr { margin-bottom: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
    /* Generischer Fallback (gilt auch für die Dashboard-Tabellen): Label links, Wert rechts. */
    .utable td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem .9rem; border: none; text-align: left; }
    .utable td::before { content: attr(data-label); font-weight: 800; color: var(--tuerkis-tief); }

    /* Name = Kopfzeile der Karte (türkis, groß), kein Label davor */
    .utable td[data-label="Name"] { background: var(--tuerkis-tief); color: var(--creme); font-size: 1.1rem; font-weight: 900; padding: .7rem .9rem; border: none; }
    .utable td[data-label="Name"]::before { display: none; }
    .utable td[data-label="Name"] strong, .utable td[data-label="Name"] em { color: var(--creme); }

    /* E-Mail: direkt unter dem Namen, dezent, ohne Label */
    .utable td[data-label="E-Mail"] { padding: .45rem .9rem; border: none; color: #4a5b59; font-size: .9rem; word-break: break-all; }
    .utable td[data-label="E-Mail"]::before { display: none; }

    /* Status (Rolle/Passwort/Upload): kompakte Zeilen, Label links, Wert rechts */
    .utable td[data-label="Rolle"], .utable td[data-label="Passwort"], .utable td[data-label="Upload"] {
        display: flex; justify-content: space-between; align-items: center; gap: 1rem;
        padding: .4rem .9rem; border: none; font-size: .9rem;
    }
    .utable td[data-label="Rolle"]::before, .utable td[data-label="Passwort"]::before, .utable td[data-label="Upload"]::before {
        content: attr(data-label); font-weight: 800; color: var(--tuerkis-tief);
    }

    /* Aktionen: Buttons als gleichmäßiges 2-Spalten-Raster, gut tippbar, kein Label */
    .utable td[data-label="Aktionen"] { padding: .7rem .9rem 1rem; border: none; }
    .utable td[data-label="Aktionen"]::before { display: none; }
    .uactions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
    .uactions button { width: 100%; margin: 0; }
}

/* ============================================================
   Medienverwaltung (intern/media) – Ordner-Browser
   ============================================================ */
.mm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: 1rem 0; }
.mm-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-weight: 700; }
.mm-crumb a { text-decoration: none; }
.mm-crumb .mm-sep { color: #9bb0ad; }
.mm-crumb .mm-cur { color: var(--tuerkis-tief); }
.mm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.mm-tools .btn { padding: .45em .8em; font-size: .95rem; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.mm-select { font-family: var(--font-body); font-weight: 700; padding: .5em .7em; border-radius: 10px; border: 2px solid var(--tuerkis); background: var(--creme); color: var(--tuerkis-tief); }

/* PDF-Kachel (Stepsheets): kein Bild-Thumbnail -> Dokument-Optik (Verlauf) im 16:9-Rahmen.
   Das 📄-Symbol liefert der Play-Kreis, das "PDF"-Badge sitzt unten rechts. */
.mm-doc-thumb { position: absolute; inset: 0; background: linear-gradient(135deg, var(--creme), var(--creme-dunkel)); }

/* Vereinheitlichte Werkzeugleiste (Anforderung 2026-06): Suche (Spez. 20) + Sortierung +
   Ansichtsumschaltung (Spez. 21) in EINER Zeile statt drei. Gemeinsamer Rahmen, gleiche Feldhöhe für
   Suchfeld und Sortier-Select – dadurch einheitliche Optik statt unterschiedlicher Buttons/Rahmen. */
.mm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: 0 0 1rem;
  padding: .55rem .7rem; background: #fff; border: 2px solid var(--creme-dunkel); border-radius: 14px;
  box-shadow: 0 3px 0 rgba(7,63,58,.1); }
/* Einheitliches Feld (Suchfeld + Sortier-Select): gleiche Höhe, gleicher Rahmen. */
.mm-tb-field { font-family: var(--font-body); font-weight: 700; height: 2.5rem; padding: 0 .75em;
  border-radius: 10px; border: 2px solid var(--tuerkis); background: #fff; color: var(--tinte); }
/* Kombiniertes Suchfeld: Texteingabe + optionales Pulldown, optisch ein Feld. In der Medienansicht
   steht nur noch das Eingabefeld darin (die Bereichs-Umschaltung ist 2026-07-30 entfallen), auf der
   Tänze-Seite zusätzlich der Filter. Feste Breite (kein flex-grow) -> springt nicht in die volle
   Breite, wenn rechts Felder aus-/eingeblendet werden. */
.mm-searchbox { display: flex; align-items: stretch; flex: 0 1 360px; min-width: 170px; height: 2.5rem;
  border: 2px solid var(--tuerkis); border-radius: 10px; background: #fff; overflow: hidden; }
.mm-searchbox input[type="search"] { flex: 1 1 auto; min-width: 0; border: none; background: transparent;
  font-family: var(--font-body); font-weight: 700; padding: 0 .75em; color: var(--tinte); outline: none; }
.mm-searchbox select { flex: 0 0 auto; border: none; border-left: 2px solid var(--creme-dunkel);
  background: var(--creme); font-family: var(--font-body); font-weight: 700; color: var(--tuerkis-tief);
  padding: 0 .5em; cursor: pointer; outline: none; }
.mm-search-info { font-weight: 800; color: #6b7d7a; }

/* Ansichtsumschaltung „Explorer-Stil" (Spez. 21): Buttongruppe rechts in der Werkzeugleiste,
   gleiche Höhe wie die Felder. */
.mm-viewswitch { display: inline-flex; gap: .2rem; margin-left: auto; }
.mm-viewswitch .btn { height: 2.5rem; padding: 0 .65em; font-size: 1.05rem; line-height: 1; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.mm-viewswitch .btn.active { background: var(--tuerkis); color: #fff; border-color: var(--tuerkis); }

/* --- Modus „Groß": mehr Spalten, kompaktere Karten (Beschreibung ausgeblendet). --- */
.intern-main.view-lg .video-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.intern-main.view-lg .video-card h3 { font-size: 1rem; }
.intern-main.view-lg .video-card p { display: none; }
.intern-main.view-lg .video-card .body { padding: .6rem .7rem .8rem; gap: .35rem; }
.intern-main.view-lg .meta { font-size: .76rem; gap: .3rem .6rem; }

/* --- Modus „Liste": eine Zeile je Eintrag, kleines Vorschaubild + Titel + knappe Metadaten. --- */
.intern-main.view-list .video-grid { display: flex; flex-direction: column; gap: .4rem; }
.intern-main.view-list .video-card { flex-direction: row; align-items: center; }
.intern-main.view-list .video-card .thumb { width: 72px; min-width: 72px; height: 50px; aspect-ratio: auto; border-radius: 8px 0 0 8px; }
.intern-main.view-list .video-card .thumb .play span { width: 26px; height: 26px; font-size: .85rem; box-shadow: none; }
.intern-main.view-list .video-card .badge { display: none; }
.intern-main.view-list .video-card .body { flex-direction: row; align-items: center; gap: .9rem; padding: .35rem .8rem; flex: 1; min-width: 0; }
.intern-main.view-list .video-card p { display: none; }
.intern-main.view-list .video-card h3 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 40%; }
.intern-main.view-list .meta { margin-left: auto; }
.intern-main.view-list .video-card .actions { margin: 0; flex: 0 0 auto; }
/* Ordner ebenfalls als Zeilen (mit 📁). */
.intern-main.view-list .mm-folders { display: flex; flex-direction: column; gap: .4rem; }
.intern-main.view-list .mm-folder { flex-direction: row; align-items: center; gap: .9rem; text-align: left; padding: .5rem .9rem; }
.intern-main.view-list .mm-folder-icon { font-size: 1.8rem; }
.intern-main.view-list .mm-folder-info { margin-left: auto; }

/* --- Modus „Details": Raster/Ordner-Kacheln verbergen, stattdessen Tabelle (#mmDetails).
   Nur #mmGrid treffen, NICHT die globalen Suchergebnisse (#mmSearchResults ist ebenfalls .video-grid
   und muss bei einer „alle"-Suche sichtbar bleiben). --- */
.intern-main.view-details #mmGrid,
.intern-main.view-details .mm-folders { display: none; }
.mm-details { overflow-x: auto; }
.mm-dtable { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 0 rgba(7,63,58,.1); font-size: .9rem; }
.mm-dtable th, .mm-dtable td { padding: .5em .7em; text-align: left; border-bottom: 1px solid #eef2f1; white-space: nowrap; }
.mm-dtable thead th { background: var(--creme); color: var(--tuerkis-tief); font-weight: 900; position: sticky; top: 0; }
.mm-dtable th.sortable { cursor: pointer; user-select: none; }
.mm-dtable th.sortable:hover { color: var(--tuerkis); }
.mm-dtable th.num, .mm-dtable td.num { text-align: right; }
.mm-dtable tbody tr:hover { background: #f6fbfa; }
.mm-dtable td.name { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.mm-dtable td.name .ic { margin-right: .4rem; }
.mm-dtable .mm-d-link { background: none; border: 0; padding: 0; color: var(--tuerkis-tief); font-weight: 800; font-family: inherit; font-size: inherit; cursor: pointer; text-align: left; }
.mm-dtable .mm-d-link:hover { color: var(--tuerkis); text-decoration: underline; }
.mm-dtable tr.mm-d-folder td.name a { color: var(--tuerkis-tief); font-weight: 800; text-decoration: none; }
.mm-dtable td.acts { text-align: right; white-space: nowrap; }
.mm-dtable td.acts .btn { padding: .25em .45em; font-size: 1rem; box-shadow: 0 2px 0 rgba(0,0,0,.1); }

/* Kopier-Button bei Upload-Fehlern (Fehlermeldung an Nora senden). */
.mm-copy-err { margin-left: .6rem; font-size: .82rem; padding: .3em .7em; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.mm-uploads li { flex-wrap: wrap; }

/* Unterordner-Kacheln: bewusst KEINE Vorschaubilder, sondern großes Ordnersymbol + Name + Infobalken.
   So sind Ordner eindeutig von den Datei-Karten (mit Thumbnail) darunter zu unterscheiden. */
.mm-folders { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 1.2rem; }
.mm-folder { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; background: var(--creme); border-radius: 14px; padding: 1.1rem .7rem .8rem; box-shadow: var(--schatten); text-decoration: none; color: var(--tinte); border: 2px solid var(--creme-dunkel); transition: border-color .15s, transform .1s; }
.mm-folder:hover { border-color: var(--tuerkis); transform: translateY(-2px); }
.mm-folder-icon { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(7,63,58,.18)); }
.mm-folder-name { font-weight: 900; font-size: 1rem; color: var(--tuerkis-tief); word-break: break-word; }
.mm-folder-info { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; background: #fff; border-radius: 8px; padding: .2em .55em; font-size: .76rem; font-weight: 800; color: #4a5b59; }

/* „Eine Ebene zurück" (..)-Eintrag: nur in den Zeilen-Ansichten Liste/Details sinnvoll. In den
   Kachel-Ansichten XL/Groß übernimmt die Breadcrumb die Aufwärts-Navigation -> dort ausblenden
   (Anforderung 2026-06). */
.intern-main.view-xl .mm-folder-up,
.intern-main.view-lg .mm-folder-up { display: none; }
.mm-folder-up { border-style: dashed; }
.mm-folder-up .mm-folder-info { background: transparent; color: #6b7d7a; font-weight: 700; }
.mm-dtable tr.mm-d-up td.name a { color: #4a5b59; }

/* Upload-Leiste (Anforderung 2026-06): schlanke, einzeilige Leiste statt großem Kasten – spart Platz.
   Drag&Drop funktioniert weiter auf der ganzen Leiste; Klick/Tippen öffnet den Dateidialog. */
.mm-drop { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem;
  border: 2px dashed var(--tuerkis); border-radius: 12px; background: #fff; padding: .55rem .9rem;
  cursor: pointer; transition: background .15s, border-color .15s; margin-bottom: 1rem; }
.mm-drop:hover, .mm-drop.drag { background: var(--creme); border-color: var(--tuerkis-dunkel); }
.mm-drop-icon { font-size: 1.4rem; line-height: 1; }
.mm-drop-main { font-weight: 800; color: var(--tuerkis-tief); display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.mm-drop-where { font-weight: 700; color: #4a5b59; font-size: .9rem; }
.mm-drop-hint { font-size: .8rem; color: #6b7d7a; margin-left: auto; }
.mm-uploads { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.mm-uploads li { display: flex; justify-content: space-between; gap: 1rem; background: #fff; border-radius: 10px; padding: .4em .8em; font-size: .9rem; box-shadow: 0 3px 0 rgba(7,63,58,.1); }
.mm-up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-up-state { font-weight: 800; color: #6b7d7a; white-space: nowrap; }
.mm-up-state.done { color: var(--tuerkis-dunkel); }
.mm-up-state.skipped { color: #9a7b16; }
.mm-up-state.error { color: #a3261c; }
/* Detailzeile (Duplikat-Fundort / Fehlertext) – über die volle Breite unter Name+Status. */
.mm-up-detail { flex-basis: 100%; font-size: .82rem; color: #5b6b69; }
.mm-up-detail a { margin-left: .3rem; font-weight: 700; }
.mm-up-retry { margin-left: .6rem; font-size: .82rem; padding: .3em .7em; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.mm-uploads li.mm-up-skipped { background: #fdf7e6; }
.mm-uploads li.mm-up-error { background: #fdecea; }

/* Upload-Bilanz (Spez. 19): bleibende Sammelübersicht über der Upload-Liste. */
.mm-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1rem; background: #fff; border-radius: 12px; padding: .6em 1em; margin: 0 0 .6rem;
  box-shadow: 0 3px 0 rgba(7,63,58,.1); }
.mm-sum-counts { font-weight: 800; display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.mm-sum-counts .ok { color: var(--tuerkis-dunkel); }
.mm-sum-counts .skip { color: #9a7b16; }
.mm-sum-counts .fail { color: #a3261c; }
.mm-sum-actions { display: flex; gap: .4rem; }
.mm-sum-actions .btn { font-size: .82rem; padding: .3em .7em; }

/* Titel + ⓘ als zusammenhängende Gruppe (bleiben auch bei space-between nebeneinander). */
.brand-wrap { display: flex; align-items: center; gap: .5rem; }

/* Hilfe-Overlay (Desktop) + gemeinsamer Hilfe-Inhalt (auch auf der Standalone-Seite hilfe.php). */
.mm-help { background: #fff; border-radius: 14px; padding: 1.4rem 1.6rem; max-height: 85vh; overflow: auto; }
.mm-help-body h3 { color: var(--tuerkis-tief); margin: 1.3rem 0 .4rem; font-family: var(--font-body); font-weight: 900; font-size: 1.1rem; }
.mm-help-body p { margin: .4rem 0; }
.mm-help-body ul, .mm-help-body ol { margin: .3rem 0 .7rem; padding-left: 1.3rem; }
.mm-help-body li { margin: .25rem 0; }
.mm-help-body kbd { background: var(--creme-dunkel); border: 1px solid var(--holz); border-radius: 5px; padding: .05em .4em; font-weight: 800; font-size: .85em; }

/* Schließbare Hinweisboxen + ⓘ-Wiedereinblenden */
.mm-note { position: relative; padding-right: 2.4rem; }
.note-collapse.mm-note { padding-right: 0; }
.note-collapse.mm-note summary { padding-right: 2.4rem; }
.mm-note-x { position: absolute; top: .45rem; right: .55rem; background: none; border: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .55; padding: 0 .15em; }
.mm-note-x:hover { opacity: 1; }
/* Zähler-Badge: runder Kreis mit der Anzahl weggeklickter Hinweise (hebt sich von der dunklen Leiste ab). */
.mm-info-toggle { background: var(--tuerkis); border: 2px solid var(--creme); color: #fff; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-size: .9rem; font-weight: 900; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; flex: 0 0 auto; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.mm-info-toggle:hover { background: var(--tuerkis-dunkel); transform: scale(1.08); }

/* Roter Zähler-Badge am „Benutzer"-Link: zeigt, wie viele User auf Freischaltung warten
   (Anforderung 2026-06). Erscheint nur, wenn der Wert > 0 ist (serverseitig gesteuert). */
.nav-badge-wrap { position: relative; }
.nav-badge {
    display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35em;
    margin-left: .35rem; border-radius: 999px; background: #e8392b; color: #fff;
    font-size: .8rem; font-weight: 900; line-height: 1; border: 2px solid var(--creme);
    box-shadow: 0 2px 6px rgba(0,0,0,.3); vertical-align: middle;
}

/* User-/Status-Badge in der Kopfleiste (🛡️ Admin · 👤 User · 👥 Gast). */
.nav-user { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: var(--creme); padding: .25em .7em; border-radius: 999px; white-space: nowrap; }
.nav-user small { font-weight: 700; opacity: .8; }

/* Admin-Dropdown in der Kopfleiste (Anforderung 2026-06): Dashboard/Benutzer/Importieren/Admin-Hilfe
   unter EINEM Punkt „Administrator". Aufklappen per Hover/Fokus (Desktop) oder Klick (Touch). */
.nav-dd { position: relative; }
.nav-dd-toggle { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-body);
  font-weight: 700; color: var(--creme); background: none; border: none; cursor: pointer; padding: 0; font-size: 1rem; }
.nav-dd-caret { font-size: .7em; transition: transform .15s; }
.nav-dd:hover .nav-dd-caret, .nav-dd.open .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: 100%; right: 0; z-index: 70; display: none; min-width: 12rem;
  flex-direction: column; gap: .15rem; margin-top: .5rem; padding: .4rem;
  background: var(--tuerkis-tief); border: 2px solid rgba(255,255,255,.18); border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,.35); }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: flex; }
/* Unsichtbare „Brücke" über den Abstand Button↔Menü: ohne sie verliert :hover beim Mausweg nach unten
   den Kontakt und das Menü klappt zu, bevor man den ersten Eintrag erreicht (Anforderung 2026-06).
   Die Brücke gehört zum Menü -> .nav-dd:hover bleibt durchgehend aktiv. Etwas höher als margin-top
   (.5rem), damit kein Sub-Pixel-Loch entsteht. */
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.nav-dd-menu a { padding: .5rem .7rem; border-radius: 8px; color: var(--creme); font-weight: 700; white-space: nowrap; }
.nav-dd-menu a:hover { background: rgba(255,255,255,.12); }
/* Trenner-Überschrift im Admin-Menü (gruppiert „Ansicht testen", Anforderung 2026-06). */
.nav-dd-sep { margin: .35rem .3rem .1rem; padding-top: .35rem; border-top: 1px solid rgba(255,255,255,.18);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }

/* Banner bei aktiver Admin-Ansichtsumschaltung (Anforderung 2026-06): deutlich abgesetzt (gelb),
   damit klar ist, dass man nicht „echt" als User/Gast unterwegs ist, mit schnellem Rückweg. */
.viewas-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  background: #fff2c2; border: 2px solid #e0a92e; border-radius: 12px; padding: .7em 1em; margin: 0 0 1rem;
  color: #5a4410; font-weight: 700; }
.viewas-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.viewas-actions a { display: inline-block; padding: .35em .7em; border-radius: 999px; font-weight: 800;
  background: #fff; border: 2px solid #e0a92e; color: #5a4410; white-space: nowrap; }
.viewas-actions a:hover { background: #fde8b0; }
.viewas-actions a.viewas-back { background: var(--tuerkis-tief); border-color: var(--tuerkis-tief); color: #fff; }
.viewas-actions a.viewas-back:hover { background: var(--tuerkis-dunkel); }

/* Auswahl-Checkbox auf der Datei-Karte (Admin, für Sammel-Aktionen). Sitzt im .thumb (position:relative). */
.mm-check { position: absolute; top: .4rem; left: .4rem; background: rgba(255,255,255,.85); border-radius: 6px; padding: .15em .25em; display: flex; z-index: 2; }
.mm-check input { width: 1.1rem; height: 1.1rem; cursor: pointer; }

/* Sammel-Leiste (schwebt unten). env(safe-area-inset-bottom): am iPhone nicht hinter dem
   Home-Indikator kleben (2026-07). */
.mm-bulk { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: #fff; border: 2px solid var(--tuerkis); border-radius: 14px; padding: .6rem .9rem; box-shadow: var(--schatten); max-width: calc(100vw - 2rem); }
.mm-bulk[hidden] { display: none; }
.mm-bulk span { font-weight: 800; }

/* Lightbox-Inhalt */
.mm-lb-body { display: grid; place-items: center; position: relative; }
.mm-lb-body img, .mm-lb-body video { max-width: 100%; max-height: 80vh; border-radius: 12px; background: #000; }

/* Bild-Lightbox nutzt das ganze Fenster (skaliert hoch UND runter, Seitenverhältnis bleibt).
   Vorher begrenzte die 960px-Box die Bildbreite, daher wirkte das Foto „fix" und nutzte breite
   Fenster nicht aus (Anforderung 2026-06). Nur für Bilder (Klasse mm-lb-image), nicht für Videos. */
#mmLightbox.mm-lb-image .modal__box { width: auto; max-width: 96vw; }
/* Bei Bildern KEINE Titelleiste -> mehr Höhe fürs Foto (v. a. Handy-Querformat, wo Browser-Leisten
   schon viel wegnehmen). Der Titel erscheint stattdessen temporär als Overlay über dem Bild. */
#mmLightbox.mm-lb-image .modal__bar { display: none; }
/* max-height doppelt: ältere Browser nehmen vh, moderne das dynamische dvh (zieht die ein-/ausfahrende
   Browser-Leiste am Handy korrekt ab, sodass das Bild nicht teilweise verdeckt wird). */
#mmLightbox.mm-lb-image .mm-lb-body img { max-width: 96vw; max-height: 90vh; max-height: 90dvh; }

/* Echtes Vollbild (Fullscreen-API, v. a. Android): Browser-Leisten verschwinden, Bild füllt den Schirm. */
#mmLightbox:fullscreen { padding: 0; background: #000; }
#mmLightbox:fullscreen .modal__box { width: 100vw; max-width: 100vw; }
#mmLightbox:fullscreen .mm-lb-body img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; border-radius: 0; }

/* Temporärer Titel über dem Bild (blendet nach kurzer Zeit aus, kommt bei Tipp/Mausbewegung zurück).
   Ersetzt die feste Titelleiste, damit am Handy nicht Browser-Leiste + Titel + Bild übereinander
   gestapelt werden (Anforderung 2026-06). */
.mm-lb-caption { position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: .8rem 3.4rem .9rem 1rem; /* rechts Platz für die ×-Schaltfläche */
  background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,0));
  color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.25;
  opacity: 0; transition: opacity .4s; pointer-events: none; }
.mm-lb-caption.show { opacity: 1; }
/* Schließen-Button als immer erreichbares Overlay (die feste Titelleiste mit dem × ist bei Bildern weg). */
.mm-lb-x { position: absolute; top: .5rem; right: .5rem; z-index: 4;
  width: 2.6rem; height: 2.6rem; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(0,0,0,.5); color: #fff; font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; }
.mm-lb-x:hover { background: rgba(0,0,0,.78); }

/* Blätter-Pfeile in der Bild-Lightbox (Tastatur ←/→ bzw. Wischen am Handy, Anforderung 2026-06).
   Nur Bilder werden durchgeblättert – Videos/PDFs nicht.
   position:fixed -> Pfeile sitzen IMMER am Fensterrand (gleiche Breite-Position), unabhängig vom
   Bildformat. Vorher hingen sie am Bildrand und wanderten bei Hoch-/Querformat. */
.mm-lb-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 3rem; height: 3rem; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  /* Standardmäßig ausgeblendet; per JS (.mm-nav-show) bei Mausbewegung eingeblendet. */
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.mm-lb-nav:hover { background: rgba(0,0,0,.72); }
.mm-lb-nav.prev { left: 1rem; }
.mm-lb-nav.next { right: 1rem; }
/* Maus bewegt sich über der Lightbox -> Pfeile zeigen (Anforderung 2026-06: nur bei Mouseover). */
#mmLightbox.mm-nav-show .mm-lb-nav { opacity: 1; pointer-events: auto; }
/* Touch-Geräte (kein Hover/Mouseover) -> Pfeile KOMPLETT ausblenden: dort wird gewischt, und am
   Fensterrand fixiert lägen sie sonst v. a. bei Hochformat-Fotos mitten im Bild (Anforderung 2026-06). */
@media (hover: none) {
  #mmLightbox .mm-lb-nav { display: none; }
}
@media (max-width: 600px) {
  /* Am Handy kleiner & dezenter – das Wischen ist dort die Hauptgeste. */
  .mm-lb-nav { width: 2.4rem; height: 2.4rem; font-size: 1.6rem; background: rgba(0,0,0,.35); }
}

/* ============================================================
   Mobile Feinschliff (2026-07)
   ============================================================ */

/* iPhone als installierte Web-App: Durch black-translucent + viewport-fit=cover liegt die Seite
   UNTER der iOS-Statusleiste (Uhr/Empfang) — ohne Polster überdeckte diese die Menüzeile.
   env(safe-area-inset-top) ist im Safari-Tab/auf Android 0 und in der Web-App genau die
   Statusleisten-Höhe: Die (dunkle) Kopfleiste wächst nach oben und hinterlegt die Uhr farbig,
   der Inhalt (Logo/Menü) beginnt darunter. Gilt für beide Leisten (intern + Homepage). */
.intern-bar, .topbar { padding-top: env(safe-area-inset-top, 0px); }

/* Lightbox/Modal: Schließen-Button, Titelzeile und Bild-Overlay ebenfalls unter die Statusleiste
   schieben (das Modal liegt fixed über der ganzen Seite, inkl. Statusleisten-Bereich). */
.modal { padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }
.mm-lb-x { top: calc(.5rem + env(safe-area-inset-top, 0px)); }
.mm-lb-caption { padding-top: calc(.8rem + env(safe-area-inset-top, 0px)); }
/* Im echten Vollbild (Fullscreen-API, Android) gibt es keine Statusleiste — dort wieder randlos. */
#mmLightbox:fullscreen .mm-lb-x { top: .5rem; }
#mmLightbox:fullscreen .mm-lb-caption { padding-top: .8rem; }

/* Touch-Geräte: Mindest-Tippflächen (~44 px Apple-Richtwert) für die kompakten Icon-Buttons der
   Karten, die Ansichtsumschaltung und die Auswahl-Checkboxen – am Desktop bleiben sie kompakt. */
@media (hover: none) {
  .video-card .actions-icons .btn { min-height: 2.6rem; min-width: 2.6rem; justify-content: center; }
  .mm-viewswitch .btn { min-width: 2.6rem; }
  .mm-check { padding: .3em .4em; }
  .mm-check input { width: 1.35rem; height: 1.35rem; }
  .mm-dtable td.acts .btn { min-height: 2.3rem; min-width: 2.3rem; justify-content: center; }
}

@media (max-width: 540px) {
  /* Werkzeugleiste am Handy zweizeilig statt gequetscht: Suchfeld volle Breite oben,
     Sortierung + Ansichtsumschaltung als zweite Zeile darunter. */
  .mm-searchbox { flex: 1 1 100%; }
  .mm-search-info { order: 3; flex-basis: 100%; }
  #mmSortSel { flex: 1 1 auto; min-width: 0; }

  /* User-Status-Badge im Burger-Menü: linksbündig mit etwas Luft statt Pillen-Optik mitten im Menü. */
  .intern-bar .nav .nav-user { margin: .2rem .4rem .3rem; align-self: flex-start; }

  /* Ordner-Kacheln: zwei Spalten passen aufs Handy (statt sehr schmaler 150px-Autofill-Spalten). */
  .mm-folders { grid-template-columns: repeat(2, 1fr); }

  /* Sammel-Leiste: volle Breite unten, Buttons gut tippbar. */
  .mm-bulk { left: .5rem; right: .5rem; transform: none; max-width: none; justify-content: center; }
}

/* ============================================================
   TÄNZE & SONGS (Spezifikation 24)
   Songliste unter einem Stepsheet-Treffer bzw. auf der Seite „Tänze & Songs".
   Die Musik-Schaltflächen sind bewusst großzügig: sie werden fast immer am Handy getippt.
   ============================================================ */
.hsd-songs { list-style: none; margin: .5rem 0 0; padding: .55rem .2rem 0; border-top: 1px dashed rgba(7,63,58,.18); display: flex; flex-direction: column; gap: .35rem; }
.hsd-song { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .3rem .4rem; border-radius: 10px; }
/* Der Song, der zur Sucheingabe passt — sonst sucht man ihn in einer Liste mit fünf Einträgen. */
.hsd-song.is-hit { background: rgba(20,182,170,.13); }
.hsd-song-txt { display: flex; flex-direction: column; gap: .05rem; min-width: 0; flex: 1 1 55%; }
.hsd-song-title { font-weight: 800; font-size: .93rem; color: var(--tuerkis-tief); }
.hsd-song-artist { font-size: .84rem; color: #4a5b59; }
.hsd-song-meta { font-size: .78rem; color: #6b7d7a; font-weight: 700; }
.hsd-song-links { display: flex; gap: .35rem; margin-left: auto; }
.hsd-link { display: inline-flex; align-items: center; gap: .3rem; padding: .38em .8em; border-radius: 999px; font-size: .82rem; font-weight: 800; text-decoration: none; color: #fff; white-space: nowrap; min-height: 2.1rem; }
.hsd-spotify { background: #1db954; }
.hsd-apple   { background: #1a1a1c; }
.hsd-link:hover { filter: brightness(1.08); }
/* Link vorhanden, aber NICHT bestätigt: er kann auf eine fremde Coverversion zeigen. Vorher nur
   blasser mit dünnem weißem Strich innen und obendrein nur für Admins — am Rechner kaum, am Handy
   gar nicht zu erkennen (Rückmeldung 2026-08-02). Jetzt ein brauner Ring AUSSEN, der sich von der
   Markenfarbe abhebt, und ein „≈" im Text; die Deckkraft bleibt voll, sonst wirkt der Knopf defekt.
   Sitzt am KNOPF (.is-weak, je App) statt an der Songzeile: Spotify kann bestätigt sein und Apple
   nicht — vorher wurden beide gleich markiert. */
.hsd-link.is-weak { box-shadow: 0 0 0 2px var(--braun); border: 1px solid rgba(255,255,255,.5); }
.hsd-song.is-unsure .hsd-song-title::after { content: " ?"; color: var(--braun); font-weight: 900; }

@media (max-width: 540px) {
  /* Am Handy Text oben, Schaltflächen darunter in voller Breite — nebeneinander wird es zu eng. */
  .hsd-song-txt { flex: 1 1 100%; }
  .hsd-song-links { margin-left: 0; width: 100%; }
  .hsd-link { flex: 1; justify-content: center; }
}

/* ============================================================
   TANZ-STREIFEN auf den Medienkacheln (1.17.0, für alle Angemeldeten).
   Zugeklappt eine Zeile, aufgeklappt Songs + Gegenstücke — siehe mmDance in media.js.
   Bewusst zurückhaltend gestaltet: Der Streifen ist eine Auskunft, keine Aktion, und darf den
   Knöpfen darunter nicht die Aufmerksamkeit nehmen.
   ============================================================ */
.mm-dance { margin: .5rem 0 0; }
.mm-dance-head {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    padding: .4rem .6rem; border: 1px dashed rgba(20,182,170,.5); border-radius: 12px;
    background: rgba(20,182,170,.07); color: var(--tuerkis-tief);
    font-family: inherit; font-size: .85rem; font-weight: 800; text-align: left;
    cursor: pointer; min-height: 2.2rem;   /* Fingergröße am Handy */
}
.mm-dance-head:hover { background: rgba(20,182,170,.14); }
.mm-dance-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Anzahlen (🎵 3 · 🎬 2) — zugeklappt die eigentliche Auskunft, deshalb nicht schrumpfen lassen. */
.mm-dance-zahl { flex: 0 0 auto; font-size: .8rem; font-weight: 800; color: var(--tuerkis-dunkel);
                 background: rgba(255,255,255,.7); border-radius: 999px; padding: .05em .55em; }
.mm-dance-caret { transition: transform .15s; }
.mm-dance-head.offen { border-style: solid; }
.mm-dance-head.offen .mm-dance-caret { transform: rotate(180deg); }
.mm-dance-body { padding: 0 .2rem; }
/* Die Songliste bringt ihren eigenen Trennstrich mit — im Aufklapper wäre er doppelt. */
.mm-dance-body .hsd-songs { border-top: 0; padding-top: .3rem; }
.mm-dance-links, .mm-dance-admin { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
/* Gegenstücke tragen ihren Dateinamen — der kann lang sein, darf die Kachel aber nicht sprengen. */
.mm-dance-go { font-size: .82rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* In der Detailtabelle sitzt der Streifen in der Namenszelle und darf sie nicht breit ziehen. */
#mmDetails .mm-dance { max-width: 22rem; }

/* Liste der Seite „Tänze & Songs": eine Karte je Tanz, am Handy einspaltig. */
.tz-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 1rem; }
.tz-loading { color: #6b7d7a; font-weight: 700; }
.tz-card { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: .9rem 1.1rem 1rem; }
.tz-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.tz-card h3 { font-family: var(--font-body); font-weight: 900; font-size: 1.15rem; margin: 0; color: var(--tuerkis-tief); flex: 1 1 auto; }
.tz-tag { font-size: .72rem; background: var(--creme-dunkel); color: var(--braun); padding: .1em .55em; border-radius: 999px; vertical-align: middle; }
.tz-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.tz-btn { padding: .45em 1em; font-size: .88rem; }
.tz-note { margin: .35rem 0 0; font-size: .86rem; color: #6b7d7a; font-weight: 700; }

@media (max-width: 540px) {
  /* Am Handy Titel oben, Schaltflächen darunter über die volle Breite. */
  .tz-card h3 { flex: 1 1 100%; }
  .tz-actions { width: 100%; }
  .tz-btn { flex: 1 1 auto; justify-content: center; }
}

/* Markierungen („zu prüfen") auf den Tanz-Karten — bewusst dezent, sie sind Arbeitshinweise
   für Admins und sollen die Liste für alle anderen nicht zerreißen. */
/* Der eben bearbeitete Tanz leuchtet kurz auf — in einer Liste mit 300 Karten findet man ihn
   sonst auch dann nicht wieder, wenn die Seite richtig hinscrollt. */
.tz-card.tz-eben-bearbeitet { box-shadow: 0 0 0 3px var(--tuerkis), var(--schatten); transition: box-shadow .4s; }
.tz-flags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.tz-flag { font-size: .74rem; font-weight: 800; color: var(--braun); background: var(--creme-dunkel); border-radius: 999px; padding: .12em .6em; cursor: help; }
/* Geprüfter Tanz: Die Markierungen bleiben ablesbar, rufen aber nicht mehr nach Arbeit —
   sonst widerspricht die Karte dem grünen „geprüft" direkt daneben (Rückmeldung 2026-08-03). */
.tz-flags.is-reviewed .tz-flag { color: #7d8a88; background: rgba(0,0,0,.05); font-weight: 700; }

/* Bearbeiten-Dialog der Tanzliste (nur Admin). Zweispaltiges Raster, das am Handy einspaltig wird. */
.tz-tag-ok { background: rgba(20,182,170,.18); color: var(--tuerkis-dunkel); }
.tz-ed { background: #fff; border-radius: 12px; padding: 1.1rem; max-height: 78vh; overflow-y: auto; }
.tz-ed h4 { margin: 1.1rem 0 .3rem; font-size: .95rem; color: var(--tuerkis-tief); }
.tz-ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem .7rem; }
.tz-ed-grid label { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; font-weight: 800; color: #4a5b59; }
.tz-ed-grid label small { font-weight: 600; color: #6b7d7a; }
.tz-ed-grid input, .tz-ed-grid select { padding: .45em .6em; border: 1px solid #d8dedd; border-radius: 8px; font: inherit; font-size: .92rem; }
.tz-ed-wide { grid-column: 1 / -1; }
.tz-ed-song { border: 1px solid #e4eae9; border-radius: 12px; padding: .6rem .7rem; margin-bottom: .6rem; }
.tz-ed-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .8rem; }
.tz-ed-link { color: #97a3a1; font-weight: 700; }
.tz-ed-link.ok { color: var(--tuerkis-dunkel); }
.tz-ed-btn { padding: .35em .8em; font-size: .82rem; }
.tz-ed-assets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.tz-ed-assets li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; }
.tz-ed-assets .tz-x { padding: .1em .5em; }
.tz-ed-add { position: relative; margin-top: .35rem; }
.tz-ed-add input { width: 100%; padding: .45em .6em; border: 1px solid #d8dedd; border-radius: 8px; font: inherit; font-size: .92rem; }
.tz-ed-hits { position: absolute; z-index: 5; left: 0; right: 0; background: #fff; border: 1px solid #d8dedd; border-radius: 10px; box-shadow: var(--schatten); max-height: 240px; overflow-y: auto; }
.tz-ed-hits button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .45em .7em; font: inherit; font-size: .9rem; cursor: pointer; }
.tz-ed-hits button:hover { background: var(--creme); }
.tz-ed-hits small { display: block; color: #6b7d7a; font-size: .76rem; }
.tz-ed-cands { margin-top: .5rem; border-top: 1px dashed #e4eae9; padding-top: .5rem; }
/* Trefferliste „Version suchen": Cover, Titel/Interpret, Plattform und Hörprobe in einer Zeile. */
.tz-cand { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; border: 1px solid #e4eae9; background: #fff; border-radius: 10px; padding: .35rem .5rem; margin-bottom: .3rem; font: inherit; cursor: pointer; }
.tz-cand:hover { border-color: var(--tuerkis); background: rgba(20,182,170,.06); }
.tz-cand img, .tz-cand-noart { width: 40px; height: 40px; border-radius: 6px; background: var(--creme-dunkel); flex: 0 0 auto; }
.tz-cand-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tz-cand-txt strong { font-size: .9rem; }
.tz-cand-txt small { color: #6b7d7a; font-size: .78rem; }
.tz-cand-tag { font-size: .72rem; font-weight: 800; color: #6b7d7a; }
.tz-cand-play { font-size: 1.1rem; padding: 0 .3rem; }
.tz-ed-status { min-height: 1.2em; margin: .5rem 0 0; color: #a3261c; font-weight: 700; }
/* „Geprüft am … von …" im Bearbeiten-Dialog — Auskunft, kein Bedienelement. */
.tz-ed-reviewed { margin: .4rem 0 0; padding: .45rem .7rem; border-radius: 12px;
                  background: rgba(20,182,170,.1); color: var(--tuerkis-tief); font-weight: 700; font-size: .9rem; }
.tz-ed-foot { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }

/* Stepsheet-Betrachter (intern/stepsheet.php) — nur am Handy im Einsatz.
   Die Kopfzeile bleibt beim Scrollen stehen; ohne sie gäbe es als Home-Bildschirm-App keinen
   sichtbaren Weg zurück. Das Polsterung oben berücksichtigt die Statusleiste des iPhones. */
.ss-body { margin: 0; background: #2b2b2b; }
.ss-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .5rem;
  padding: calc(env(safe-area-inset-top, 0px) + .5rem) .6rem .5rem;
  background: var(--gruen-dunkel, #073f3a); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ss-title { flex: 1; margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 44 px ist die kleinste Fläche, die sich am Handy zuverlässig treffen lässt — genau darum
   geht es hier ja (Rückmeldung 2026-07-31: Wischen vom Rand ist mit Hülle Glückssache). */
.ss-btn { min-width: 44px; min-height: 44px; border: 0; border-radius: .5rem;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.25rem; font-weight: 800;
  cursor: pointer; }
.ss-btn:active { background: rgba(255,255,255,.3); }
.ss-back { font-size: 1.35rem; }
.ss-pages { display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: .6rem .4rem calc(env(safe-area-inset-bottom, 0px) + 1.2rem); }
.ss-page { max-width: 100%; background: #fff; border-radius: .25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.ss-msg { color: #e8e8e8; font-weight: 700; text-align: center; padding: 2rem 1rem; }
.ss-msg a { color: #7fe3d8; }
.ss-hint { color: #cfd8d6; font-size: .84rem; font-weight: 700; margin: .2rem 0 0; }

/* Vorschau des Excel-Rück-Imports. Die Zahlen stehen bewusst groß und zuerst — sie beantworten
   die eigentliche Frage („greift das, was ich erwarte?"); die Einzelliste darunter ist für die
   Stichprobe gedacht und deshalb in der Höhe begrenzt und scrollbar. */
.tz-imp-zahlen { display: flex; flex-wrap: wrap; gap: .4rem .9rem; list-style: none;
  margin: .6rem 0; padding: .6rem .8rem; border-radius: .5rem; background: rgba(20,182,170,.1); }
.tz-imp-zahlen strong { font-size: 1.15rem; color: var(--tuerkis-dunkel); }
.tz-imp-ops { max-height: 40vh; overflow-y: auto; margin: .6rem 0 0; padding-left: 1.1rem;
  font-size: .88rem; }
.tz-imp-ops li { margin-bottom: .35rem; }
.tz-imp-feld { margin-left: .3rem; color: #6b7d7a; }
.tz-imp-feld s { opacity: .7; }
.tz-imp-fehler { margin: .6rem 0; padding: .55rem .8rem; border-radius: .5rem;
  background: rgba(163,38,28,.09); color: #a3261c; font-size: .88rem; }
.tz-imp-fehler ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* „🫒 Olivia" — Songvorschlag von Olivia. Ist ein eigenes Feld (source), keine Bemerkung, und
   deshalb für alle Mitglieder sichtbar (Anforderung 2026-07-30). */
.hsd-olive { font-size: .74rem; font-weight: 800; color: var(--tuerkis-dunkel); background: rgba(20,182,170,.14);
  border-radius: 999px; padding: .1em .5em; margin-left: .35em; white-space: nowrap; vertical-align: middle; }


/* ---- Abstimmung „Wollen wir diesen Tanz lernen?" (Anforderung 2026-08-02) --------------------
   Nur in gekennzeichneten Ordnern sichtbar. Zwei Trefferflächen in einem Element: 👍 gibt die
   Stimme ab, die Zahl daneben öffnet die Namensliste — am Handy gibt es kein Mouseover, der
   Tooltip allein wäre dort unerreichbar. Beide bewusst mindestens 28px hoch (Fingerkuppe). */
.mm-vote-note { border-style: solid; border-color: var(--tuerkis, #14b6aa); background: rgba(20,182,170,.10); color: #0d4f4a; }
.mm-votebox { display: inline-flex; align-items: center; gap: .15rem; }
.mm-vote, .mm-vote-n {
  border: 1px solid rgba(0,0,0,.14); background: #fff; cursor: pointer; font: inherit; font-weight: 800;
  line-height: 1; padding: .28em .5em; min-height: 28px; color: inherit;
}
.mm-vote   { border-radius: 999px 0 0 999px; font-size: .95rem; }
.mm-vote-n { border-radius: 0 999px 999px 0; border-left: none; min-width: 2ch; text-align: center; color: #6b7d7a; }
.mm-vote:hover, .mm-vote-n:hover { background: #f2fbfa; }
/* Eigene Stimme deutlich hervorheben – man muss auf einen Blick sehen, wofür man schon gestimmt hat. */
.mm-vote.is-on { background: var(--tuerkis, #14b6aa); border-color: var(--tuerkis, #14b6aa); }
/* Beendete Abstimmung / Gast: Ergebnis bleibt lesbar, der Knopf wirkt nur nicht mehr bedienbar. */
.mm-vote[disabled] { cursor: default; opacity: .5; }
.mm-vote[disabled]:hover { background: #fff; }
/* In der Details-Tabelle sitzt das Element in einer schmalen Zahlenspalte. */
.mm-dtable .mm-votebox { justify-content: flex-end; }


/* ---- Musik-Knopf ohne hinterlegten Link (Rückmeldung 2026-08-02) ---------------------------
   Führt in die SUCHE der App statt zum Song. Bisher stand das nur im title-Tooltip: am Handy
   also nirgends, am Rechner nur beim Darüberfahren. Jetzt Umriss statt Vollfläche — zusammen mit
   der Lupe im Text und dem Klartext in der Songzeile drei unabhängige Merkmale.
   Höhere Spezifität als .hsd-song.is-unsure (drei Klassen + Reihenfolge), sonst gewänne dort
   deren gestrichelter weißer Rahmen. Innenabstand um die Rahmenstärke verringert, damit die
   Knöpfe genauso groß bleiben wie die gefüllten daneben. */
.hsd-song .hsd-link.is-search {
  background: #fff; border: 2px dashed; padding: calc(.38em - 2px) calc(.8em - 2px); opacity: 1;
}
/* Text dunkler als die Markenfarbe – #1db954 auf Weiß wäre zu blass zum Lesen. */
.hsd-song .hsd-spotify.is-search { color: #12813a; border-color: #1db954; }
.hsd-song .hsd-apple.is-search   { color: #1a1a1c; border-color: #8a8a90; }
.hsd-song .hsd-link.is-search:hover { background: #f5faf7; filter: none; }

/* Nur-für-Admins-Ordner (Anforderung 2026-08-02): deutlich anderer Ton als der türkise
   Abstimmungs-Balken, damit ein Admin die beiden Zustände nicht verwechselt. */
.mm-hidden-note { border-style: solid; border-color: var(--braun); background: rgba(138,90,43,.10); color: #5a3a18; }

/* ============================================================
   KEIN AUTOMATISCHES ZOOMEN BEIM ANTIPPEN VON FELDERN (Rückmeldung 2026-08-04)
   iOS vergrößert die Seite, sobald man in ein Feld tippt, dessen Schrift KLEINER ALS 16 px ist —
   danach steht man in der zu breiten Ansicht und muss von Hand herauszoomen. Besonders beim
   Suchfeld störend, weil man dort ständig hineintippt.

   Wichtig: Formularfelder erben die Schriftgröße NICHT von <body>. Ohne eigene Angabe gilt der
   Standard des Browsers (~13 px) — genau deshalb zoomte auch das Suchfeld, das nur font-family
   gesetzt hatte.

   Bewusst NICHT über <meta viewport user-scalable=no> gelöst: Das verbietet auch das absichtliche
   Vergrößern und ist eine Zumutung für alle, die schlechter sehen. iOS ignoriert es ohnehin.

   Nur für Berührungsbedienung, damit die Feinabstimmung am Rechner unverändert bleibt.
   ============================================================ */
@media (pointer: coarse) {
    input, select, textarea,
    .mm-searchbox input[type="search"], .mm-searchbox select,
    .tz-ed-grid input, .tz-ed-grid select, .tz-ed-add input,
    .field input, .field select { font-size: 16px; }
}

/* ============================================================
   VIDEO KÜRZEN (1.25.0) — Editor in /intern/media/ (video-cut.js), nur Admins am PC.
   Feste Breiten für Zeitangaben (tabular-nums) und eine reservierte Höhe für Meldungen, damit
   kein Knopf springt, wenn sich Zahlen oder Meldungen ändern (globale UI-Regel 22.09.2026).
   ============================================================ */
.vc-box { width: min(1100px, 98vw); }
.vc-body { background: #fff; border-radius: 12px; padding: 1rem 1.2rem 1.1rem; max-height: calc(100dvh - 5rem); overflow-y: auto; }
/* Videohöhe so begrenzt, dass Streifen, Knöpfe UND die Meldungen darunter ohne Scrollen sichtbar bleiben
   (Test an 1280×900: bei 52vh lag die Frage zum Original unterhalb des Bildschirms). */
.vc-body video { display: block; width: 100%; max-height: max(160px, calc(100dvh - 590px)); border-radius: 10px; background: #000; }
.vc-strip { position: relative; height: 64px; margin: .9rem 0 .4rem; border-radius: 8px; overflow: visible;
    background: #1c2b29; cursor: pointer; touch-action: none; user-select: none; }
.vc-strip canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 8px; pointer-events: none; }
.vc-strip canvas.vc-marken { top: auto; bottom: 0; height: 10px; border-radius: 0 0 8px 8px; }
.vc-dim { position: absolute; top: 0; bottom: 0; background: rgba(7, 15, 14, .68); pointer-events: none; }
.vc-dim#vcDimL { border-radius: 8px 0 0 8px; }
.vc-dim#vcDimR { width: auto; border-radius: 0 8px 8px 0; }
.vc-bereich { position: absolute; top: 0; bottom: 0; border-top: 3px solid #ffd666; border-bottom: 3px solid #ffd666; pointer-events: none; box-sizing: border-box; }
.vc-kopf { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: #ff4d3d; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.vc-griff { position: absolute; top: -8px; bottom: -8px; width: 16px; margin-left: -8px; background: #ffd666; border: 2px solid #7a5a00;
    border-radius: 5px; cursor: ew-resize; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.vc-griff::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 14px; margin-top: -7px;
    border-left: 2px solid #7a5a00; border-right: 2px solid #7a5a00; }
.vc-zeilen { display: grid; gap: .45rem; margin: .8rem 0 .3rem; }
.vc-reihe { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.vc-reihe .btn { padding: .45em .9em; font-size: .95rem; box-shadow: 0 3px 0 rgba(7,63,58,.15); }
.vc-lbl { width: 4.2em; font-weight: 900; color: var(--tuerkis-tief); }
.vc-zeit { width: 5.6em; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.05rem; }
.vc-info { min-height: 1.4em; margin: .5rem 0 .2rem; font-weight: 800; color: var(--tuerkis-tief); font-variant-numeric: tabular-nums; }
.vc-klein { margin: .2rem 0 .6rem; font-size: .85rem; color: #6b7d7a; }
.vc-aktionen { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.vc-aktionen #vcSpeichern { margin-left: auto; }
/* Feste Breite: Der Knopf heißt mal „Schließen", mal „Vorgang abbrechen" — er darf dabei nicht wachsen. */
.vc-abbr { min-width: 12.5em; justify-content: center; }
/* Nur hier gedimmt — eine allgemeine .btn:disabled-Regel hätte das Aussehen anderer Seiten verändert. */
.vc-body .btn:disabled, .vc-knopf:disabled { opacity: .45; cursor: default; transform: none; }
.vc-hinweis { min-height: 1.3em; margin: .5rem 0 0; color: #a3261c; font-weight: 700; }
.vc-status { min-height: 4.2em; margin-top: .3rem; }
.vc-zeile { padding: .6rem .8rem; border-radius: 10px; background: var(--creme); font-weight: 800; font-variant-numeric: tabular-nums; }
.vc-zeile.fehler { background: #fde8e6; color: #a3261c; }
.vc-ergebnis { padding: .8rem 1rem; border-radius: 10px; background: #e7f7f5; border: 2px solid var(--tuerkis); }
.vc-ergebnis p { margin: .2rem 0 .6rem; }
.vc-ergebnis-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.vc-erledigt { font-weight: 800; color: var(--tuerkis-tief); }
