:root {
  /* Marken-Farben: Standardwerte im Stil von qundg.de; pro Kunde überschrieben durch brand.php?format=css */
  --brand: #cdea0e;
  --brand-ink: #212529;
  --brand-soft: #f5fad0;
  --brand-mark: #cdea0e;
  --accent: #b91d47;
  --accent-ink: #ffffff;
  --accent-soft: #f8e6ea;
  --ink: #212529;
  --muted: #5f6e7d;
  --line: #e3e6e8;
  --bg: #f6f6f3;
  --card-bg: #ffffff;
  --danger: #b3413a;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(33, 37, 41, 0.08), 0 4px 16px rgba(33, 37, 41, 0.06);
  /* Alt-Namen (werden im restlichen Stylesheet verwendet) */
  --green-900: #1b1e21;
  --green-700: #212529;
  --green-600: var(--accent);
  --green-500: var(--accent);
  --green-100: var(--brand-soft);
  --amber-500: var(--brand);
  color-scheme: light;
}

@font-face { font-family: "Handschrift"; src: url("../assets/handschrift.woff2") format("woff2"); font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body { padding-bottom: env(safe-area-inset-bottom); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; }
p { line-height: 1.5; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 0.95rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  background: #fff;
  color: var(--ink);
  border-bottom: 3px solid var(--brand);
  box-shadow: var(--shadow);
}
.topbar-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand-logo { flex-shrink: 0; display: block; height: 28px; width: auto; max-width: 150px; object-fit: contain; }
.app-name { padding-left: 10px; border-left: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.group-badge {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--brand-soft); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; font-size: 0.85rem;
}
.group-badge strong { font-size: 0.95rem; letter-spacing: 0.03em; }

main#app { max-width: 640px; margin: 0 auto; padding: 16px; padding-bottom: 90px; }

.screen { display: none; animation: fade 0.15s ease-out; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.intro-card { text-align: left; }
.center-card { text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 600;
  padding: 13px 18px; border-radius: 12px; border: none;
  cursor: pointer; min-height: 48px;
  transition: transform 0.05s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.btn-secondary { background: var(--green-100); color: var(--green-800, var(--green-700)); }
.btn-ghost { background: transparent; color: var(--green-700); border: 1px solid var(--line); }
.btn-danger-text { background: none; border: none; color: var(--danger); font-size: 0.85rem; padding: 4px 6px; cursor: pointer; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; }

.row-form { display: flex; gap: 8px; }
.row-form input { flex: 1; }

input[type="text"], input[type="number"], input[type="password"], textarea {
  width: 100%;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 76px; }
input:focus, textarea:focus { outline: 2px solid var(--green-500); outline-offset: 1px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.error-text { color: var(--danger); font-size: 0.9rem; margin-top: 8px; }

.code-display {
  font-size: 2.1rem; font-weight: 800; letter-spacing: 0.05em;
  color: var(--green-700); background: var(--green-100);
  border-radius: 12px; padding: 16px; margin: 16px 0; word-break: break-all;
}
.qr-holder { display: flex; justify-content: center; margin: 12px 0 18px; min-height: 130px; }
.qr-holder img, .qr-holder canvas { border-radius: 8px; }

.step-dots {
  display: flex; gap: 6px; justify-content: center; padding: 4px 0 14px;
  flex-wrap: wrap;
}
.step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  background: white; border: 1px solid var(--line); color: var(--muted);
  cursor: pointer;
}
.step-dot.active { background: var(--green-600); color: white; border-color: var(--green-600); }
.step-dot.done { background: var(--green-100); color: var(--green-700); border-color: var(--green-500); }

.step-header { margin-bottom: 6px; }
.step-eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--green-600); font-weight: 700; }

.chip-list { list-style: none; padding: 0; margin: 6px 0 0; }
.chip-list li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  background: var(--green-100); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  font-size: 0.95rem;
}
.chip-list li span.item-text { flex: 1; }
.empty-hint { color: var(--muted); font-size: 0.9rem; font-style: italic; padding: 6px 2px; }

.starter-cards { display: grid; gap: 10px; margin: 10px 0; }
.starter-card {
  background: var(--green-100); border-left: 4px solid var(--amber-500);
  padding: 12px 14px; border-radius: 8px; font-style: italic; color: var(--green-900);
}

.checklist { list-style: none; margin: 10px 0; padding: 0; }
.checklist li { display: flex; gap: 10px; margin-bottom: 8px; font-size: 0.95rem; }
.checklist li::before { content: "•"; color: var(--green-600); font-weight: 900; }

.photo-input-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.photo-thumb { position: relative; width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .remove-photo {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: white; border: none; font-size: 12px; line-height: 1; cursor: pointer;
}
.add-photo-btn {
  width: 74px; height: 74px; border-radius: 10px; border: 2px dashed var(--line);
  background: #fafcfa; color: var(--muted); font-size: 1.6rem; cursor: pointer;
}

.geo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.geo-status { font-size: 0.88rem; color: var(--muted); }
.geo-status.ok { color: var(--green-600); font-weight: 600; }
.geo-status.err { color: var(--danger); flex-basis: 100%; }

.location-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.location-card .loc-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.location-card .loc-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.location-card h3 { font-size: 1rem; margin-bottom: 4px; }
.location-card .loc-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.location-card .loc-field-label { font-weight: 600; font-size: 0.85rem; margin-top: 6px; }
.location-card a.map-link { font-size: 0.85rem; }

.step-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px; padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, rgba(246,248,245,0));
  z-index: 15;
}
.step-nav .btn { flex: 1; }
.step-nav #btn-overview { flex: 0.7; }

.overview-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.overview-section { margin-bottom: 10px; }
.overview-section h2 { margin-bottom: 8px; }

.reflection-question { margin-bottom: 16px; }
.reflection-question .q-label { font-weight: 700; margin-bottom: 6px; display: block; }
.thanks-box { text-align: center; padding: 20px 0; }
.thanks-box .big-check { font-size: 2.4rem; margin-bottom: 8px; }

.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: white; padding: 10px 18px; border-radius: 999px;
  font-size: 0.9rem; z-index: 50; box-shadow: var(--shadow);
}

/* Workshop-Menü (Verteiler-Seite) */
.part-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; cursor: pointer; text-align: left;
  font-family: inherit; box-shadow: var(--shadow);
}
.part-card:active { transform: scale(0.99); }
.part-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.part-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.part-title { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.part-desc { font-size: 0.88rem; color: var(--muted); }
.part-arrow { font-size: 1.2rem; color: var(--green-600); flex-shrink: 0; }

.presentation-card { padding: 0; overflow: hidden; }
.presentation-frame { width: 100%; height: 70vh; min-height: 380px; border: none; display: block; }

.audio-card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.audio-title { font-weight: 700; }
.audio-heard-toggle { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.audio-card audio { width: 100%; }

code { background: var(--green-100); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }

@media (min-width: 700px) {
  main#app { padding-top: 24px; }
}

/* Texte aus dem Admin-Backend */
.card .muted p:last-child, #text-body p:last-child, .info-box p:last-child { margin-bottom: 0; }
.checklist li span { flex: 1; }
.topbar-title .app-name:empty { display: none; }

.audio-img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }

/* Agenda / Zeitleiste */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-item { display: grid; grid-template-columns: 56px 20px 1fr; column-gap: 8px; position: relative; }
.agenda-time { text-align: right; padding-top: 15px; font-weight: 700; font-size: 0.95rem; color: var(--green-700); font-variant-numeric: tabular-nums; line-height: 1.2; }
.agenda-time small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.agenda-rail { position: relative; }
.agenda-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); }
.agenda-item.first .agenda-rail::before { top: 22px; }
.agenda-item.last .agenda-rail::before { bottom: auto; height: 22px; }
.agenda-item.first.last .agenda-rail::before { display: none; }
.agenda-dot { position: absolute; left: 50%; top: 16px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--green-600); border: 3px solid var(--bg); box-sizing: border-box; }
.agenda-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left; font-family: inherit; color: var(--ink);
  background: var(--card-bg); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px;
  margin: 6px 0 10px; box-shadow: var(--shadow); width: 100%;
}
button.agenda-card { cursor: pointer; }
button.agenda-card:active { transform: scale(0.99); }
.agenda-item-title { font-weight: 700; font-size: 1.02rem; }
.agenda-place { font-size: 0.85rem; color: var(--muted); }
.agenda-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.45; white-space: pre-line; }
.agenda-link { margin-top: 4px; font-size: 0.88rem; font-weight: 700; color: var(--green-600); }
.agenda-item.break .agenda-card { background: var(--green-100); box-shadow: none; border: 1px dashed #b9d6a6; }
.agenda-item.break .agenda-item-title { font-weight: 600; }
.agenda-item.break .agenda-dot { background: var(--amber-500); border-color: var(--bg); }
.agenda-item.now .agenda-card { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(6, 26, 177, 0.12), var(--shadow); }
.agenda-item.now .agenda-dot { background: var(--amber-500); border-color: var(--green-600); width: 22px; height: 22px; margin-left: -11px; top: 13px; }
.agenda-item.now .agenda-time { color: var(--green-600); }
.agenda-item.past { opacity: 0.55; }
.agenda-now-badge { align-self: flex-start; background: var(--green-600); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; }
.agenda-empty { display: block; }

/* Agenda: mehrere Tage, Programm-Arten */
.agenda-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; -webkit-overflow-scrolling: touch; }
.agenda-chip {
  flex: 1 0 auto; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #fff; border: 1px solid var(--line); color: var(--green-700); border-radius: 14px;
  padding: 9px 14px; font-family: inherit; cursor: pointer; position: relative;
}
.agenda-chip-title { font-weight: 700; font-size: 0.95rem; }
.agenda-chip-date { font-size: 0.78rem; opacity: 0.8; }
.agenda-chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.agenda-chip.today::after { content: ""; position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); }
.agenda-day-head { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px; }
.agenda-day-title { font-weight: 800; font-size: 1.12rem; }
.agenda-day-date { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
.agenda-day-goal { font-size: 0.92rem; margin-top: 8px; line-height: 1.45; }

.agenda-kind {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--kind, var(--muted));
}
.agenda-item.kind-input { --kind: #2f55a4; }
.agenda-item.kind-work { --kind: #1f9a91; }
.agenda-item.kind-discussion { --kind: #c0505c; }
.agenda-item.kind-energizer { --kind: #7a62a8; }
.agenda-item.kind-input .agenda-card, .agenda-item.kind-work .agenda-card,
.agenda-item.kind-discussion .agenda-card, .agenda-item.kind-energizer .agenda-card { border-left: 5px solid var(--kind); }

/* Einheitlicher Zurück-Button (immer oben links, gleiche Größe) */
.back-row { margin-bottom: 12px; }
.back-row .btn { min-height: 40px; }

/* Kopfzeile hat immer dieselbe Höhe (Code-Badge bricht nicht um), damit der Zurück-Button überall gleich sitzt */
.group-badge { white-space: nowrap; flex-shrink: 0; }
.topbar-title { min-width: 0; }
.topbar-title .app-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar { min-height: 58px; box-sizing: border-box; }

/* Meine Peer-Group */
.peer-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--green-100); }
.peer-photo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); border: 2px dashed var(--line); background: #f7fbfd; }
.peer-photo-empty span { font-size: 2.4rem; }
.peer-photo-empty p { margin: 4px 0 0; }
.peer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; align-items: stretch; }
.peer-actions .btn-danger-text { align-self: center; }
.hint-text { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }

/* Workshop-Timer */
.timer-view { --tc: #0b4fd0; --tc-text: #fff; display: grid; gap: 14px; }
.tcolor-blue { --tc: #0b4fd0; --tc-text: #fff; }
.tcolor-yellow { --tc: #f4c400; --tc-text: #14163a; }
.tcolor-green { --tc: #14966a; --tc-text: #fff; }
.tcolor-purple { --tc: #7a62a8; --tc-text: #fff; }
.tcolor-red { --tc: #c0505c; --tc-text: #fff; }
.tcolor-orange { --tc: #e8821c; --tc-text: #fff; }
.timer-main, .timer-rules { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.timer-main { border-top: 8px solid var(--tc); text-align: center; }
.timer-status { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.timer-chip { background: var(--green-100); color: var(--green-700); padding: 3px 12px; border-radius: 999px; font-weight: 700; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.06em; }
.timer-chip[data-status="running"] { background: var(--tc); color: var(--tc-text); }
.timer-chip[data-status="paused"] { background: #fff1c2; color: #7a5a00; }
.timer-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 4px; }
.timer-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.timer-dots i.done { background: var(--tc); opacity: 0.55; }
.timer-dots i.current { background: var(--tc); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12); }
.timer-phase { font-size: 1.35rem; font-weight: 800; margin-top: 8px; line-height: 1.2; }
.timer-clock { font-size: clamp(4rem, 22vw, 7.5rem); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--tc); letter-spacing: -0.02em; margin: 4px 0; }
.tcolor-yellow .timer-clock { color: #14163a; text-shadow: 0 0 0 #000; }
.timer-bar { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 12px; }
.timer-bar span { display: block; height: 100%; background: var(--tc); border-radius: 999px; transition: width 0.3s linear; width: 0; }
.timer-hint { font-size: 1rem; color: var(--ink); min-height: 1.4em; }
.timer-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.timer-steps li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f3f6fa; font-size: 0.92rem; color: var(--muted); }
.timer-steps li.current { background: var(--tc); color: var(--tc-text); font-weight: 700; }
.timer-steps li.done { opacity: 0.5; text-decoration: line-through; }
.timer-rules h3 { margin: 0 0 8px; font-size: 1.05rem; }
.timer-rules ul, .timer-rules ol { margin: 0; padding-left: 22px; }
.timer-rules p.rule-main { font-weight: 700; padding: 10px 12px; margin: 0 0 12px; border-left: 5px solid var(--amber-500); background: var(--green-100); border-radius: 8px; line-height: 1.4; }
.timer-rules li { margin-bottom: 8px; line-height: 1.4; }
.timer-rules p { margin: 0 0 8px; }
.timer-rules[hidden] { display: none; }
@media (min-width: 820px) {
  .timer-view.has-rules { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

/* Vollbild (Beamer) */
.timer-fullscreen { background: var(--bg, #fff); padding: 24px; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer-fullscreen > div:not(.timer-brand):not(.timer-controls) { width: 100%; max-width: 1500px; }
.timer-fullscreen .timer-view { width: 100%; max-width: 1500px; }
.timer-fullscreen .timer-clock { font-size: clamp(6rem, 24vh, 18rem); }
.timer-fullscreen .timer-phase { font-size: clamp(1.8rem, 5vh, 3.4rem); }
.timer-fullscreen .timer-hint { font-size: clamp(1.1rem, 2.6vh, 2rem); }
.timer-fullscreen .timer-steps li { font-size: clamp(1rem, 2.2vh, 1.6rem); }
.timer-fullscreen .timer-rules li, .timer-fullscreen .timer-rules p { font-size: clamp(1rem, 2.35vh, 1.9rem); }
.timer-fullscreen .timer-rules h3 { font-size: clamp(1.3rem, 3vh, 2.2rem); }
.timer-sound-row { display: flex; justify-content: center; margin-top: 12px; }

/* Gruppen-Auswahl für die Reflexion: „Beitreten“ steht vorn */
.start-hint { background: rgba(255, 255, 255, 0.9); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 0.95rem; color: var(--green-900); }
.start-hint[hidden] { display: none; }
#screen-start.join-first.active { display: flex; flex-direction: column; }
#screen-start.join-first #card-join { order: 1; }
#screen-start.join-first #card-create { order: 2; }
#screen-start.join-first .intro-card { order: 0; }
#screen-start.join-first .start-hint { order: 0; }

/* Standort-Karte */
.map-stage { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-canvas { height: 62vh; min-height: 340px; }
.map-stage.map-fullscreen { display: flex; flex-direction: column; border-radius: 0; border: none; }
.map-stage.map-fullscreen .map-canvas { flex: 1; height: auto; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; font-size: 0.85rem; }
.map-legend-item { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.map-legend-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px; background: #f4f7fb; }
.map-nogps .map-strip { border-radius: 12px; }
.map-strip-item { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; max-width: 250px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px 6px 6px; cursor: pointer; font-family: inherit; text-align: left; }
.map-strip-item img, .map-strip-ph { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--green-100); font-size: 1.4rem; }
.map-strip-txt { display: flex; flex-direction: column; font-size: 0.82rem; line-height: 1.25; min-width: 0; }
.map-strip-txt b { font-size: 0.86rem; }
.map-stage.map-fullscreen .map-strip-item img, .map-stage.map-fullscreen .map-strip-ph { width: 66px; height: 66px; }

/* Foto-Pins */
.map-pin-wrap { background: none; border: none; }
.map-pin { position: relative; width: 64px; height: 74px; }
.map-pin-inner { width: 60px; height: 60px; margin: 2px; border-radius: 12px; border: 4px solid #0b4fd0; background: #fff; overflow: hidden; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; position: relative; }
.map-pin-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-pin-tip { position: absolute; left: 50%; bottom: 3px; margin-left: -8px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid #0b4fd0; }
.map-pin-count { position: absolute; right: 2px; bottom: 2px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0 6px; }
.leaflet-container { font-family: inherit; }
.map-popup { font-size: 0.9rem; }
.map-popup p { margin: 6px 0 0; line-height: 1.35; }
.mp-group { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mp-address { font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.mp-photos { display: flex; flex-wrap: wrap; gap: 4px; }
.mp-photos img { width: 104px; height: 78px; object-fit: cover; border-radius: 6px; display: block; }

/* Standort-Karte in der App */
select { width: 100%; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: inherit; color: var(--ink); }
.map-card .field { margin-bottom: 8px; }
.map-actions { margin-bottom: 10px; }
.map-canvas { height: 58vh; min-height: 320px; }
#screen-map .map-strip { -webkit-overflow-scrolling: touch; }

/* Foto wird geladen (Platzhalter in der Foto-Reihe) */
.photo-thumb.photo-loading { display: flex; align-items: center; justify-content: center; background: var(--surface-2, #f3f3f3); }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green-600, #1f7a3f); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Adress-Suche + Karten-Picker im Standort-Formular */
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr-row input { flex: 1; min-width: 0; }
.addr-row .btn { white-space: nowrap; }
.geo-results { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.geo-results-title { font-size: 0.8rem; color: var(--muted); }
.geo-result { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; cursor: pointer; font-family: inherit; color: inherit; }
.picker-map { height: 340px; margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.picker-pin { background: none; border: none; font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }

/* ---------- Zukunfts-Spiel (Slotmaschine) ---------- */
.future-steps { display: flex; gap: 8px; margin: 10px 0 8px; flex-wrap: wrap; }
.future-step { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.future-step.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.future-step.done { color: var(--green-600); border-color: var(--green-600); }
.future-intro p:last-child { margin-bottom: 0; }

.slot-machine { background: linear-gradient(180deg, var(--green-700), var(--green-900, var(--green-700))); color: #fff; position: relative; padding-top: 22px; }
.slot-lamps { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.slot-lamps i { width: 11px; height: 11px; border-radius: 50%; background: var(--amber-500, #ffd633); box-shadow: 0 0 8px rgba(255, 221, 51, 0.8); opacity: 0.85; }
.slot-machine.is-spinning .slot-lamps i { animation: slot-blink 0.5s infinite alternate; }
.slot-machine.is-spinning .slot-lamps i:nth-child(even) { animation-delay: 0.25s; }
@keyframes slot-blink { from { opacity: 0.2; } to { opacity: 1; } }

.slot-rows { display: flex; flex-direction: column; gap: 14px; }
.slot-row { display: flex; align-items: flex-end; gap: 10px; }
.slot-row .slot-reel { flex: 1; min-width: 0; }
.slot-reel { margin-bottom: 4px; }
.slot-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; opacity: 0.85; margin-bottom: 6px; }
.slot-window { position: relative; height: 92px; overflow: hidden; border-radius: 14px; background: #fff; color: var(--ink, #0b1f5c); border: 4px solid var(--amber-500, #ffd633); box-shadow: inset 0 8px 14px -8px rgba(0, 0, 0, 0.35), inset 0 -8px 14px -8px rgba(0, 0, 0, 0.35); }
.slot-window::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 2px dashed rgba(11, 79, 208, 0.18); pointer-events: none; }
.slot-strip { will-change: transform; }
.slot-cell { height: 84px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 12px; font-size: clamp(1.1rem, 5vw, 1.5rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.slot-cell.slot-empty { color: #b8c3e0; font-size: 2rem; }
.slot-window.spinning .slot-cell { filter: blur(1.2px); }
.slot-window.landed { animation: slot-land 0.7s ease-out; }
@keyframes slot-land { 0% { box-shadow: 0 0 0 0 rgba(255, 221, 51, 0.95); } 100% { box-shadow: 0 0 0 16px rgba(255, 221, 51, 0); } }
.slot-reel.is-locked .slot-window { border-color: #9fb3e8; }
.slot-lock { flex: none; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.slot-lock.on { background: var(--amber-500, #ffd633); border-color: var(--amber-500, #ffd633); }
.slot-lock:disabled { opacity: 0.4; cursor: default; }

.future-sentence { font-size: 1.15rem; line-height: 1.55; margin: 14px 0 0; text-align: center; }
.future-sentence .fs-pick { color: var(--amber-500, #ffd633); }
.future-final { font-size: 1.3rem; background: rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 14px; }
.future-hint { margin-top: 12px; font-size: 0.95rem; opacity: 0.95; }
.future-hint p { margin: 0 0 6px; }
.future-fixed { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; font-size: 1rem; margin-bottom: 12px; }
.future-fixed .fs-pick { color: var(--amber-500, #ffd633); }
.future-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.slot-machine .btn-secondary { background: rgba(255, 255, 255, 0.18); color: #fff; }
.slot-machine .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.slot-machine .btn-primary { background: var(--amber-500, #ffd633); color: #0b1f5c; font-weight: 800; }
.btn-xl { min-height: 56px; font-size: 1.1rem; }
.btn-link { background: none; border: none; color: #fff; text-decoration: underline; font-size: 0.85rem; cursor: pointer; padding: 4px; font-family: inherit; }
@media (prefers-reduced-motion: reduce) { .slot-window.landed, .slot-machine.is-spinning .slot-lamps i { animation: none; } }

/* PDF-Dokumente (z. B. Personas) */
.doc-card { display: flex; gap: 14px; align-items: flex-start; }
.doc-icon { font-size: 2rem; line-height: 1; flex: none; }
.doc-body { flex: 1; min-width: 0; }
.doc-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.doc-body p { margin: 0 0 10px; }
.doc-body .btn { text-decoration: none; display: inline-flex; align-items: center; margin-top: 4px; }
.doc-thumb { flex: none; width: 104px; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); background: #fff; }
.doc-thumb img { display: block; width: 100%; height: auto; }
@media (max-width: 380px) { .doc-thumb { width: 84px; } }

/* Abschnitts-Überschrift im Menü */
.menu-divider { margin: 22px 4px 10px; padding-top: 12px; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.menu-divider:first-child { margin-top: 4px; border-top: none; padding-top: 0; }
.menu-divider-title { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700, var(--ink)); }
.menu-divider-text { font-size: 0.9rem; color: var(--muted); }

/* Orientierungspunkt (z. B. der Veranstaltungsort) auf der Standort-Karte */
.leaflet-tooltip.picker-home-label { font-weight: 700; color: #b3141b; border: none; border-radius: 6px; padding: 2px 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.leaflet-tooltip.picker-home-label::before { display: none; }

/* „Wir brauchen Hilfe“ im Standort-Scouting – bewusst dezent */
.help-btn { display: flex; flex-direction: row; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 auto 12px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #b3141b; border: 1.5px solid rgba(179, 20, 27, 0.55); text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.help-btn[hidden] { display: none; }
.help-btn:active { background: #fff; }
.help-number { font-size: 0.78rem; font-weight: 500; color: var(--muted); }

/* Live-Dokumentation (Teilnehmende) */
.livedoc-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; }
.livedoc-filter[hidden] { display: none; }
.livedoc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .livedoc-grid { grid-template-columns: repeat(3, 1fr); } }
.livedoc-tile { position: relative; padding: 0; border: none; border-radius: 12px; overflow: hidden; background: #dfe6f3; cursor: pointer; aspect-ratio: 1 / 1; }
.livedoc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.livedoc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 0.74rem; line-height: 1.25; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 12, 30, 0.94); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 56px; }
.lightbox.open { display: flex; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.lb-img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 6px; }
.lb-caption { color: #fff; text-align: center; font-size: 0.95rem; max-width: 640px; }
.lb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: none; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 2rem; cursor: pointer; border-radius: 10px; }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-open { position: absolute; bottom: 14px; color: #cfe1ff; font-size: 0.85rem; }

.livedoc-session { font-size: 1rem; margin: 18px 2px 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.livedoc-count { font-size: 0.78rem; font-weight: 500; opacity: 0.8; }
.livedoc-session:first-child { margin-top: 4px; }

.livedoc-files { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.livedoc-grid + .livedoc-files { margin-top: 10px; }
.livedoc-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 12px; text-decoration: none; color: var(--ink, inherit); box-shadow: 0 1px 4px rgba(0, 50, 120, 0.12); }
.livedoc-file-icon { font-size: 1.8rem; line-height: 1; flex: none; }
.livedoc-file-text { display: flex; flex-direction: column; min-width: 0; }
.livedoc-file-title { font-weight: 700; overflow-wrap: anywhere; }
.livedoc-file-meta { font-size: 0.8rem; color: var(--muted); }

/* ---------- Kopf der Startseite & Fußzeile (neutrale Marke) ---------- */
.brand-hero { padding: 22px 4px 16px; }
.hero-eyebrow { font-family: "Handschrift", "Segoe Print", cursive; color: var(--accent); font-size: 1.7rem; line-height: 1.1; margin-bottom: 4px; transform: rotate(-1.5deg); transform-origin: left; }
.hero-title { margin: 0; font-size: clamp(1.9rem, 8.5vw, 2.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
.hero-title { background: linear-gradient(transparent 64%, var(--brand-mark) 64%); display: inline; padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.powered-by { text-align: center; padding: 22px 16px calc(26px + env(safe-area-inset-bottom)); font-size: 0.8rem; }
.powered-by a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }

.info-box { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; margin-bottom: 14px; color: var(--ink); }

/* QR-Code-Fenster (Zentrale und Admin) */
.qr-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 20, 25, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.qr-box { background: #fff; color: var(--ink); border-radius: 16px; padding: 20px; max-width: 420px; width: 100%; max-height: 100%; overflow: auto; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.qr-box h2 { margin: 0 0 12px; overflow-wrap: anywhere; }
.qr-img canvas { width: 100%; max-width: 300px; height: auto; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
.qr-url { font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; margin: 10px 0 14px; }
.qr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.qr-note-opt { display: block; margin-top: 12px; font-size: 0.88rem; }
