/* Das Mikrofon – CMS (helles Design) */
:root {
  --bg: #f6f4f1; --panel: #fff; --line: #e8e3dd; --line-2: #d9d2ca; --text: #1f1a16; --muted: #7a6f66;
  --o: #ff6a00; --o-d: #e25500; --o-l: #fff1e6; --grad: linear-gradient(100deg, #ff3b00, #ff7a00 50%, #ffc400);
  --green: #1f9d55; --red: #d93a3a; --radius: 14px; --shadow: 0 1px 2px rgba(30, 20, 10, .05), 0 6px 24px -12px rgba(30, 20, 10, .15);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--o-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.7rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 18px 0 8px; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.boot, .loading { padding: 40px; text-align: center; color: var(--muted); }
input, textarea, select { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus, .rte-area:focus { outline: none; border-color: var(--o); box-shadow: 0 0 0 3px rgba(255, 106, 0, .15); }
input[readonly] { background: #f8f6f3; color: var(--muted); }
textarea { resize: vertical; min-height: 90px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; transition: .15s; text-decoration: none !important; }
.btn:hover { border-color: var(--o); color: var(--o-d); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.primary { background: var(--o); border-color: var(--o); color: #fff; }
.btn.primary:hover { background: var(--o-d); border-color: var(--o-d); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--red); border-color: transparent; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--o-l); color: var(--o-d); }
.icon-btn.danger:hover { background: #fdeaea; color: var(--red); }
button.link { border: 0; background: none; color: var(--o-d); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* Anmeldung */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 80% 0%, #ffe0bd 0, transparent 45%), var(--bg); }
.auth-box { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 34px; box-shadow: 0 30px 60px -30px rgba(80, 40, 0, .35); border: 1px solid var(--line); }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-logo img { width: 46px; height: 46px; }
.auth-logo b { display: block; font-size: 1.15rem; }
.auth-logo span { color: var(--muted); font-size: .85rem; }
.auth h1 { font-size: 1.45rem; margin-bottom: 16px; }
.stack { display: grid; gap: 14px; }
.stack label, .f-label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.stack .btn { justify-content: center; padding: 12px; }
.note { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.note.ok { background: #e8f6ee; color: #135f35; }
.note.err { background: #fdeaea; color: #962424; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.side { width: 250px; flex: none; background: #1d1611; color: #e8ddd3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: #fff !important; text-decoration: none !important; }
.brand img { width: 38px; height: 38px; }
.brand b { display: block; font-size: 1.02rem; }
.brand span { font-size: .75rem; color: #b5a497; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; flex: 1; }
.side-nav a, .side-foot a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #d9cbbf; font-weight: 500; text-decoration: none !important; }
.side-nav a:hover, .side-foot a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active, .side-foot a.active { background: var(--grad); color: #1a0f07; font-weight: 700; }
.side-nav .badge { margin-left: auto; background: var(--o); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.side-nav a.active .badge { background: #1a0f07; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #8d7c6f; padding: 18px 12px 6px; }
.side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 2px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(246, 244, 241, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.topbar-title { flex: 1; }
.menu-btn { display: none; }
.content { padding: 28px; max-width: 1240px; width: 100%; }
@media (max-width: 900px) {
  .side { position: fixed; z-index: 60; left: 0; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  body.side-open .side { transform: none; }
  .menu-btn { display: inline-grid; }
  .content { padding: 18px 14px 60px; }
  .topbar { padding: 0 14px; }
  .hide-sm { display: none; }
}

/* Kopf / Werkzeuge */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; }
.page-head.sticky { position: sticky; top: 60px; z-index: 15; background: var(--bg); padding: 12px 0; margin-top: -12px; border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 4px; }
.row-end { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.wrap-gap { margin-top: 18px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 420px; }
.sel { width: auto !important; min-width: 150px; }
.sel.sm { min-width: 0; padding: 6px 8px !important; font-size: 13px; }
.hint { background: var(--o-l); border-radius: 10px; padding: 9px 14px; font-size: .88rem; color: #8a4a12; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.narrow { max-width: 560px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); display: grid; gap: 14px; justify-items: center; }

/* Übersicht */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.dash-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow); transition: .15s; text-decoration: none !important; }
.dash-card:hover { border-color: var(--o); transform: translateY(-2px); }
.dash-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--o-l); color: var(--o-d); margin-bottom: 8px; }
.dash-card.hl { background: var(--grad); border: 0; color: #1a0f07; }
.dash-card.hl .dash-ic { background: rgba(255, 255, 255, .45); color: #1a0f07; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; font-weight: 500; word-break: break-word; white-space: pre-line; }

/* Listen */
.list { display: grid; gap: 8px; }
.list-group { font-weight: 800; font-size: .8rem; letter-spacing: .14em; color: var(--muted); padding: 12px 4px 2px; }
.row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.row.off { opacity: .65; }
.row.clickable { cursor: pointer; } .row.clickable:hover { border-color: var(--o); }
.row.new { border-left: 4px solid var(--o); }
.row-thumb { width: 52px; height: 52px; flex: none; border-radius: 9px; overflow: hidden; background: #f1ece6; display: grid; place-items: center; color: #c2b5a9; }
.row-thumb.round { border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.avatar { font-weight: 800; color: var(--o-d); font-size: 1.2rem; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; }
.row-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main .muted { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: 2px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eee; color: #555; white-space: nowrap; }
.pill.green, .pill.st-finalist { background: #e3f5ea; color: #16683a; }
.pill.grey { background: #eeeae6; color: #6f655d; }
.pill.orange, .pill.st-neu { background: var(--o-l); color: var(--o-d); }
.pill.st-eingeladen { background: #e6effd; color: #2453a8; }
.pill.st-abgesagt { background: #fdeaea; color: #962424; }
@media (max-width: 600px) { .row { flex-wrap: wrap; } .row-main { flex-basis: calc(100% - 70px); } .row .pill { margin-left: 66px; } }

/* Bearbeiten */
.edit-form .hint { margin: 14px 0; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; margin-top: 14px; }
.edit-main, .edit-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 20px; }
.edit-side { position: sticky; top: 140px; }
@media (max-width: 1000px) { .edit-grid { grid-template-columns: 1fr; } .edit-side { position: static; } }
.f { display: grid; gap: 7px; min-width: 0; }
.req { color: var(--o); }
.f > .f-label { display: block; }
.f.i18n > .f-label .lang-tag::before { content: '🌐 DE'; font-size: 11px; font-weight: 700; color: var(--o-d); background: var(--o-l); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
[data-lang=en] .f.i18n > .f-label .lang-tag::before { content: '🌐 EN'; background: #e6effd; color: #2453a8; }
[data-lang=de] .lang-en, [data-lang=en] .lang-de { display: none; }
[data-lang=en] .f.i18n .lang-en input, [data-lang=en] .f.i18n .lang-en textarea, [data-lang=en] .f.i18n .lang-en .rte-area { background: #f7faff; }
.lang-switch { display: inline-flex; background: #ece6df; border-radius: 10px; padding: 3px; }
.lang-switch button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: 600 13px var(--font); cursor: pointer; color: var(--muted); }
.lang-switch button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 14px; }
.settings-grid .f-textarea { grid-column: 1 / -1; }

/* Schalter */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 999px; background: #d6cec6; position: relative; transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 106, 0, .3); }
.switch em { font-style: normal; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--o); }

/* Rich-Text */
.rte { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #faf8f5; border-bottom: 1px solid var(--line); }
.rte-bar button { border: 0; background: none; padding: 5px 9px; border-radius: 7px; cursor: pointer; font: 600 13px var(--font); color: #4a413a; min-width: 32px; }
.rte-bar button:hover { background: var(--o-l); color: var(--o-d); }
.rte-area { min-height: 180px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; line-height: 1.6; border: 0 !important; }
.rte-area:focus { box-shadow: none !important; }
.rte-area img { max-width: 100%; border-radius: 8px; }
.rte-area blockquote { border-left: 3px solid var(--o); margin: 10px 0; padding: 2px 12px; color: #5a5048; }
.rte-area h2 { font-size: 1.3rem; } .rte-area h3 { font-size: 1.1rem; }

/* Bildfelder */
.img-field { display: grid; gap: 10px; }
.img-field > img { width: 100%; max-height: 240px; object-fit: contain; background: repeating-conic-gradient(#f3efea 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 10px; border: 1px solid var(--line); }
.img-empty { display: grid; place-items: center; gap: 6px; height: 120px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: .88rem; }
.img-empty .ic { width: 28px; height: 28px; }
.img-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; background: #faf8f5; border: 1px solid var(--line); border-radius: 10px; word-break: break-all; }
.imgs-field { display: grid; gap: 12px; }
.imgs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.imgs-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f1ece6; cursor: grab; border: 2px solid transparent; }
.imgs-item.dragging { opacity: .4; border-color: var(--o); }
.imgs-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.imgs-del { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: .15s; }
.imgs-item:hover .imgs-del { opacity: 1; }
.imgs-del .ic { width: 14px; height: 14px; }
@media (hover: none) { .imgs-del { opacity: 1; } }
.dropzone { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 20px; border: 2px dashed var(--line-2); border-radius: 12px; background: #fdfbf9; color: var(--muted); text-align: center; margin-bottom: 16px; }
.dropzone.over { border-color: var(--o); background: var(--o-l); }

/* Medien */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.media-grid.big { max-height: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.media-item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; box-shadow: var(--shadow); }
.media-item:hover { border-color: var(--line-2); }
.media-item.on { border-color: var(--o); background: var(--o-l); }
.media-item.on::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--o); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.media-item img, .file-ic { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f1ece6; display: grid; place-items: center; color: var(--muted); }
.file-ic .ic { width: 34px; height: 34px; }
.media-item span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-actions { display: flex; justify-content: flex-end; margin-top: -6px; }
.picker .toolbar { margin-bottom: 12px; }
.picker .row-end { margin-top: 14px; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(30, 20, 12, .45); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); }
.modal.sm { width: min(460px, 100%); } .modal.lg { width: min(1000px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-body .stack .btn { justify-content: center; }
.confirm p { font-size: 1rem; margin-top: 0; }
.sub-detail { display: grid; gap: 16px; }
.sub-photo { max-height: 320px; border-radius: 12px; }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 200; background: #1d1611; color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .4); transition: .25s; max-width: calc(100% - 30px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* Show-Jahr-Auswahl & Übersicht */
.year-wrap { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 10px; color: var(--o); }
.year-wrap svg { width: 18px; height: 18px; }
.year-pick { font-weight: 600; max-width: 340px; }
.table-wrap { overflow-x: auto; }
table.shows { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.shows th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.shows td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.shows td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.shows tbody tr { cursor: pointer; }
table.shows tbody tr:hover { background: var(--o-l); }
table.shows tbody tr.sel { background: var(--o-l); box-shadow: inset 3px 0 0 var(--o); }
.ny-opts { display: grid; gap: 12px; }
.ny-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ny-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--o); }
.ny-opt .muted { font-size: .85rem; }
.ny-summary { margin: 0 0 16px; padding-left: 20px; line-height: 1.7; }
@media (max-width: 700px) { .year-wrap { margin-right: 4px; } .year-pick { max-width: 150px; } .topbar .btn.ghost span { display: none; } }
.pill.cat-kids { background: #e3f3fd; color: #1d6fa5; margin-right: 6px; }
.pill.cat-adults { background: var(--o-l); color: var(--o-d); margin-right: 6px; }

/* Teilnehmer-Portal */
.pre { white-space: pre-wrap; }
.pfa-text { white-space: pre-wrap; background: #faf6f2; border-radius: 10px; padding: 14px 16px; line-height: 1.55; }
.pfa-file { border: 1px solid var(--line, #e8ddd3); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; background: #fff; }
.pfa-file audio { width: 100%; height: 36px; }
.pfa-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pfa-photos figure { margin: 0; border: 1px solid var(--line, #e8ddd3); border-radius: 10px; overflow: hidden; background: #fff; }
.pfa-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pfa-photos figcaption { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 4px 6px 4px 10px; }
.panel .pf-drop { border: 2px dashed #f0b27a; border-radius: 10px; padding: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px 0; }
.panel .pf-drop.over { background: #fff4e6; }
.pf-progress { flex-basis: 100%; position: relative; height: 24px; border-radius: 999px; background: #f1e8e0; overflow: hidden; }
.pf-progress div { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #ff4d00, #ffb300); transition: width .2s; }
.pf-progress span { position: relative; padding: 0 10px; line-height: 24px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.panel .stack { display: grid; gap: 10px; }

.ws-grid { display: grid; grid-template-columns: 100px 1.25fr .8fr .8fr 1.3fr 1.5fr .85fr; gap: 8px 10px; align-items: center; margin: 10px 0 14px; }
.ws-grid > b { font-size: .8rem; color: var(--muted); }
.ws-n { font-weight: 700; font-size: .9rem; }
@media (max-width: 800px) { .ws-grid { grid-template-columns: 1fr 1fr; } .ws-grid > b { display: none; } .ws-n { grid-column: 1 / -1; margin-top: 8px; } }

/* Playback-Auswahl Vorrunde / Finale */
.zip-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pfa-file.chosen { border-color: var(--o); box-shadow: 0 0 0 1px var(--o) inset; }
.pf-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pf-pick { padding: 6px 12px; border-radius: 999px; background: rgba(127,127,127,.12); font-size: 13px; }
.pf-pick.set { background: rgba(225,48,108,.14); }
.panel.attn { border-color: var(--o); box-shadow: 0 0 0 1px var(--o) inset; }
.approve-tbl th { width: 150px; text-align: left; white-space: nowrap; }
.approve-tbl td { vertical-align: middle; }
.approve-tbl td:last-child { white-space: nowrap; }
.approve-tbl select { max-width: 320px; }

/* Zuschneiden */
.crop { display: flex; flex-direction: column; gap: 12px; }
.crop-ratios { display: flex; flex-wrap: wrap; gap: 6px; }
.crop-stage { position: relative; align-self: center; overflow: hidden; touch-action: none; user-select: none; line-height: 0; background: #222; border-radius: 6px; }
.crop-stage img { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; pointer-events: none; }
.crop-sel { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); outline: 2px solid #fff; cursor: move;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 33.333% 33.333%; background-position: -1px -1px; }
.crop-h { position: absolute; width: 18px; height: 18px; background: #fff; border: 2px solid var(--o); border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.crop-h.nw { left: -2px; top: -2px; cursor: nwse-resize; } .crop-h.se { right: -2px; bottom: -2px; cursor: nwse-resize; }
.crop-h.ne { right: -2px; top: -2px; cursor: nesw-resize; } .crop-h.sw { left: -2px; bottom: -2px; cursor: nesw-resize; }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .f-pair { grid-template-columns: 1fr; } }
.rte-area a { color: var(--o); text-decoration: underline; cursor: pointer; }
.rte-area a[target="_blank"]::after { content: " ↗"; font-size: .8em; text-decoration: none; display: inline-block; margin-left: 2px; }
