.admin-main { max-width: 820px; margin: 0 auto; padding: 16px; padding-bottom: 100px; }
.topbar-link { color: var(--muted); font-size: 0.88rem; text-decoration: none; white-space: nowrap; }

.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.admin-tab {
  flex-shrink: 0; border: 1px solid var(--line); background: #fff; color: var(--green-700);
  border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 0.92rem; cursor: pointer; font-family: inherit;
}
.admin-tab.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.info-box { background: var(--green-100); border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; margin-bottom: 14px; color: var(--green-900); }
.info-box p { margin: 0 0 6px; }
.info-box p:last-child { margin: 0; }

.admin-main select, .admin-main input[type="url"], .admin-main input[type="password"] {
  width: 100%; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font-family: inherit; color: var(--ink);
}
.admin-main input[type="password"]:focus, .admin-main select:focus { outline: 2px solid var(--green-500); outline-offset: 1px; }

.row { display: flex; gap: 10px; }
.row > .field { flex: 1; min-width: 0; }
.row > .field.narrow { flex: 0 0 76px; }

.item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.item-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 36px; height: 36px;
  cursor: pointer; font-size: 1rem; color: var(--green-700); font-family: inherit;
}
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.danger { color: var(--danger); }
.check-inline { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); cursor: pointer; margin-right: 6px; }

.add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.add-row select { flex: 1; min-width: 160px; }

details.step-edit { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
details.step-edit > summary { padding: 16px 18px; font-weight: 700; cursor: pointer; list-style-position: inside; }
details.step-edit > .step-edit-body { padding: 0 18px 8px; }

.file-line { font-size: 0.82rem; color: var(--muted); margin: 6px 0; word-break: break-all; }
.audio-edit audio { width: 100%; margin-top: 6px; }
.upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.upload-row input[type="file"] { flex: 1; min-width: 200px; font-size: 0.9rem; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--green-100); color: var(--green-900); }
.status-pill.off { background: #f1f1f1; color: var(--muted); }

.group-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.group-table th, .group-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.group-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.group-table a { color: var(--green-600); font-weight: 600; }

.savebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(6, 26, 113, 0.08);
}
.save-state { font-size: 0.9rem; color: var(--muted); }
.save-state.dirty { color: var(--green-600); font-weight: 700; }

.admin-main .hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.audio-thumb { display: block; max-width: 220px; max-height: 140px; border-radius: 8px; border: 1px solid var(--line); margin: 6px 0 10px; object-fit: cover; }

.sub-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fafbfd; }
.admin-main input[type="date"] { width: 100%; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: inherit; color: var(--ink); }

.day-card { background: #f4f7fb; }
.sub-heading { font-size: 0.95rem; margin: 12px 0 8px; color: var(--green-700); }
.narrow-date { flex: 0 0 170px; }
details.agenda-item-edit { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
details.agenda-item-edit > summary { padding: 11px 14px; cursor: pointer; font-weight: 600; font-size: 0.93rem; }
.agenda-item-body { padding: 4px 14px 12px; }

.peer-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--line); }

.timer-stage { padding: 4px 0 8px; }
.timer-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; align-items: center; }
.timer-sound { margin: 0 0 0 6px; }
.timer-fullscreen .timer-controls { margin-top: 20px; }
.timer-stage.timer-fullscreen { padding: 28px 36px; }

/* Beamer-Kopf: nur im Vollbild sichtbar (Key-Visual-Stil) */
.timer-brand { display: none; }
.timer-fullscreen .timer-brand {
  display: flex; justify-content: space-between; align-items: flex-start; width: 100%; max-width: 1500px; margin-bottom: 18px; color: #fff;
}
.timer-brand .tb-eyebrow { font-size: clamp(0.9rem, 2vh, 1.4rem); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.timer-brand .tb-rule { width: 54px; height: 4px; background: var(--amber-500); margin: 8px 0 12px; }
.timer-brand .tb-title { font-size: clamp(1.8rem, 5.2vh, 3.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.timer-brand .tb-logo { width: clamp(90px, 14vh, 170px); height: auto; flex-shrink: 0; }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 8px; }
.result-actions .btn { text-decoration: none; }
.result-csv { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.result-csv select { width: auto; min-width: 140px; }
.result-sum { margin-top: 10px; font-weight: 700; color: var(--green-700); font-size: 0.92rem; }
.res-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 8px 0 3px; }
.res-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.res-photos img { width: 84px; height: 62px; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--line); }
.res-list { margin: 0 0 6px; padding-left: 20px; }
.res-list li { margin-bottom: 4px; }

/* Standort-Karte (Toolbar im Admin; Rest in style.css) */
.map-toolbar .map-buttons { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }

.audio-group-title { font-size: 1.05rem; margin: 22px 2px 8px; }

/* Live-Dokumentation (Admin) */
.livedoc-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.livedoc-admin-item { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.livedoc-admin-item.is-hidden { opacity: 0.55; }
.livedoc-admin-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.livedoc-admin-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.livedoc-admin-fields input[type=text] { width: 100%; }

.livedoc-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 2px 8px; }
.livedoc-group-head h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }

.livedoc-admin-filetile { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #eef2fb; color: #0b1f5c; font-size: 2.2rem; line-height: 1; gap: 4px; }
.livedoc-admin-filetile small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; }

/* PDF-Export (Standorte) */
.pdf-export-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pdf-export-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pdf-export-info { min-width: 0; overflow-wrap: anywhere; font-size: 0.92rem; }

/* Marke & Design (Admin) */
.brand-logo-box { display: flex; align-items: center; justify-content: center; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.brand-logo-preview { max-width: 260px; max-height: 70px; width: auto; height: auto; }
.brand-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.brand-preview-accent { font-family: "Handschrift", cursive; font-size: 1.4rem; }
