/* =====================================================================
   Veranstaltungen · Admin-Backend · Raiffeisenbank Main-Spessart eG
   Design-Tokens, Layout, Komponenten
   ===================================================================== */

:root {
  /* Farben – VR-CI */
  --blue:        #002d67;   /* Ultramarin: Struktur, Überschriften, Sidebar */
  --blue-dark:   #001f4a;
  --blue-mid:    #1b4d8f;   /* Links, sekundäre Aktionen */
  --blue-soft:   #e6edf7;   /* getönte Flächen */
  --blue-tint:   #f3f6fb;
  --orange:      #ff6600;   /* nur Primär-CTA und aktive Zustände */
  --orange-dark: #e65c00;
  --orange-soft: #fff1e6;

  --ink:         #1d2433;
  --ink-2:       #3b4557;
  --muted:       #6b7688;
  --line:        #dfe5ee;
  --line-strong: #c3cddc;
  --bg:          #f4f6fa;
  --surface:     #ffffff;

  --green:       #1f9d55;  --green-soft: #e6f6ec;
  --amber:       #c97a00;  --amber-soft: #fff4e0;
  --red:         #d64545;  --red-soft:   #fdecec;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0, 45, 103, .05);
  --shadow-pop:  0 12px 32px -8px rgba(0, 45, 103, .25);
  --ring:        0 0 0 3px rgba(0, 45, 103, .16);

  --font: "GenosGFG", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --content-max: 1240px;
}

/* ------------------------------------------------------------ Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; color: var(--blue); line-height: 1.2; font-weight: 700; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p  { margin: 0 0 1em; }
a  { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }
small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.text-muted   { color: var(--muted); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-small   { font-size: 13px; }
.nowrap       { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icons (SVG-Sprite via <use>) */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

/* ------------------------------------------------------------ App-Rahmen */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--blue);           /* blaue Linie ganz oben */
}
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; max-width: 240px; object-fit: contain; }
.brand-sep { width: 1px; height: 30px; background: var(--line-strong); }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; color: var(--blue); font-size: 16px; }
.brand-text span   { display: block; color: var(--muted); font-size: 12px; }
.topbar-spacer { flex: 1; }

.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  font-weight: 700; font-size: 14px;
}
.user-chip-text { line-height: 1.15; }
.user-chip-text strong { display: block; font-size: 14px; }
.user-chip-text span   { font-size: 12px; color: var(--muted); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: var(--radius-sm);
  color: var(--blue); cursor: pointer; place-items: center;
}
.nav-toggle:hover { background: var(--blue-tint); }

.sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0; z-index: 35;
  width: var(--sidebar-w);
  background: var(--blue); color: #fff;
  display: flex; flex-direction: column;
  padding: 18px 12px;
  overflow-y: auto;
}
.nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: rgba(255, 255, 255, .8); font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav a.is-active { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav a .icon { opacity: .9; }
.nav-group { margin-top: 18px; padding: 0 14px 8px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.sidebar-foot { margin-top: auto; padding: 16px 14px 4px; font-size: 12px; color: rgba(255, 255, 255, .5); }

.overlay { display: none; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 34; background: rgba(0, 31, 74, .45); }

.main {
  margin-left: var(--sidebar-w);
  padding: 28px 32px 56px;
}
.main-inner { max-width: var(--content-max); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-pop); }
  body.nav-open .overlay { display: block; }
  .main { margin-left: 0; padding: 20px 16px 48px; }
  .user-chip-text { display: none; }
  .brand-text span { display: none; }
}
@media (max-width: 560px) {
  .brand-sep, .brand-text { display: none; }
  .topbar { padding: 0 12px; gap: 10px; }
  .brand { min-width: 0; flex: 1; }
  .brand img { max-width: min(200px, 48vw); }
  .wordmark { font-size: 12px; }
}
@media (max-width: 640px) {
  .session-list li > :nth-child(3) { grid-column: 1 / -1; }
  .session-list li .btn { width: 100%; }
}

/* ------------------------------------------------------------ Seitenkopf */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb .icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: 10px;
  font-weight: 700; font-size: 15px; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary   { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-tint); }
.btn-ghost     { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-danger    { background: var(--surface); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-icon { display: inline-grid; place-items: center; vertical-align: middle; width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 9px; color: var(--muted); background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.btn-icon:hover { text-decoration: none; }
.btn-icon:hover { background: var(--blue-tint); color: var(--blue); }
.btn-icon.danger:hover { background: var(--red-soft); color: var(--red); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------ Karten */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card-body { padding: 22px 24px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: var(--blue-tint); border-radius: 0 0 var(--radius) var(--radius); }
.card.tone-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.card.tone-blue h2, .card.tone-blue h3 { color: #fff; }
.card.tone-soft { background: var(--blue-soft); border-color: var(--blue-soft); }

/* ------------------------------------------------------------ Raster / Abstände */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 1100px) { .grid-main-side { grid-template-columns: 1fr; } }
@media (max-width: 760px)  { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }

/* ------------------------------------------------------------ Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); }
.stat-value { font-size: 32px; font-weight: 700; color: var(--blue); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stat-sub   { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.stat.accent { border-left: 4px solid var(--orange); }

/* ------------------------------------------------------------ Formulare */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 700; font-size: 14px; color: var(--blue); margin-bottom: 6px; }
/* Schalter/Checkboxen direkt im Feld: Flex-Layout behalten (sonst rutscht der Text unter die Pille) */
.field > label.switch { display: inline-flex; font-weight: 400; font-size: inherit; color: inherit; margin-bottom: 0; }
.field > label.check  { display: flex; font-weight: 400; font-size: inherit; color: inherit; margin-bottom: 0; }
.switch > span:last-child strong { display: block; color: var(--blue); font-size: 14px; }
.switch > span:last-child .hint { margin-top: 2px; }
.field .req { color: var(--orange); }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.error-text { display: block; color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002d67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--bg); color: var(--muted); }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.input-group { display: flex; }
.input-group .input { border-radius: 10px 0 0 10px; }
.input-group .btn   { border-radius: 0 10px 10px 0; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; cursor: pointer; }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-inline { display: flex; gap: 20px; flex-wrap: wrap; }

.switch { position: relative; display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 400; line-height: 1.4; }
.switch .track { margin-top: 1px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }

.form-section { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { margin-bottom: 4px; }
.form-section > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ------------------------------------------------------------ Tabellen */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--blue-tint); white-space: nowrap; }
.table tbody tr:hover { background: var(--blue-tint); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.actions, .table th.actions { text-align: right; white-space: nowrap; }
.table td.actions > * { vertical-align: middle; }
.table td.actions form { display: inline; }
.table .cell-main { font-weight: 700; color: var(--ink); }
.table .cell-sub  { color: var(--muted); font-size: 13px; }
.table a.row-link { color: var(--ink); font-weight: 700; }
.table a.row-link:hover { color: var(--blue); }
.table.compact th, .table.compact td { padding: 8px 12px; }

/* ------------------------------------------------------------ Badges, Fortschritt */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.badge-green { background: var(--green-soft); color: #14703c; }
.badge-amber { background: var(--amber-soft); color: #8a5300; }
.badge-red   { background: var(--red-soft);   color: #9a2b2b; }
.badge-blue  { background: var(--blue-soft);  color: var(--blue); }
.badge-grey  { background: #eceff4; color: var(--ink-2); }
.badge-orange{ background: var(--orange-soft); color: #b34700; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.progress { height: 8px; background: var(--blue-soft); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; }
.progress.is-full > span { background: var(--orange); }
.progress.is-high > span { background: var(--amber); }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ------------------------------------------------------------ Meldungen */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1px solid; font-size: 14.5px; margin-bottom: 18px; }
.alert .icon { flex: none; margin-top: 1px; }
.alert-info    { background: var(--blue-soft);   border-color: #c9d8ee; color: var(--blue); }
.alert-success { background: var(--green-soft);  border-color: #b9e3c8; color: #14703c; }
.alert-warning { background: var(--amber-soft);  border-color: #ffd9a8; color: #7a4a00; }
.alert-error   { background: var(--red-soft);    border-color: #f5c2c2; color: #8a2020; }
.alert ul { margin: 4px 0 0 18px; padding: 0; }

.toasts { position: fixed; top: calc(var(--topbar-h) + 14px); right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px 14px 16px; border-radius: 12px; border-left: 4px solid var(--blue);
  background: var(--surface); box-shadow: var(--shadow-pop); font-size: 14.5px;
  animation: toast-in .25s ease;
}
.toast.hide { opacity: 0; transform: translateX(12px); transition: opacity .25s, transform .25s; }
.toast-success { border-left-color: var(--green); }
.toast-error   { border-left-color: var(--red); }
.toast-warning { border-left-color: var(--amber); }
.toast-info    { border-left-color: var(--blue-mid); }
.toast-close { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; display: grid; place-items: center; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ Leerzustände */
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--line-strong); }
.empty h3 { color: var(--ink-2); margin-bottom: 6px; }
.empty p { max-width: 42ch; margin: 0 auto 18px; }

/* ------------------------------------------------------------ Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tabs a:hover { color: var(--blue); text-decoration: none; }
.tabs a.is-active { color: var(--blue); border-bottom-color: var(--orange); }
.tabs .count { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--blue-soft); font-size: 12px; }

/* ------------------------------------------------------------ Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 200px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop);
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink); font-size: 14px; text-align: left; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--blue-tint); text-decoration: none; }
.dropdown-menu .danger { color: var(--red); }
.dropdown-menu hr { margin: 6px 0; }

/* ------------------------------------------------------------ Dialog */
dialog.modal {
  border: 0; border-radius: 14px; padding: 0; max-width: 520px; width: calc(100% - 32px);
  box-shadow: var(--shadow-pop); color: var(--ink);
}
dialog.modal::backdrop { background: rgba(0, 31, 74, .5); }
.modal-head { padding: 20px 24px 0; }
.modal-body { padding: 14px 24px 22px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--blue-tint); }

/* ------------------------------------------------------------ Listen mit Terminen */
.session-list { list-style: none; margin: 0; padding: 0; }
.session-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.session-list .date-tile, .session-card .date-tile { align-self: start; }
.session-list li:last-child { border-bottom: 0; }
.date-tile { text-align: center; background: var(--blue-soft); border-radius: 10px; padding: 8px 4px; line-height: 1.1; }
.date-tile .d { font-size: 22px; font-weight: 700; color: var(--blue); }
.date-tile .m { font-size: 12px; color: var(--blue-mid); font-weight: 700; }
.session-meta { min-width: 0; }
.session-meta .t { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-meta .s { color: var(--muted); font-size: 13.5px; }
.session-fill { min-width: 150px; }
@media (max-width: 640px) { .session-list li { grid-template-columns: 56px 1fr; } .session-fill { grid-column: 2; } }

/* ------------------------------------------------------------ Login */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-panel { background: var(--blue); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px 64px; position: relative; overflow: hidden; }
.auth-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--orange); }
.auth-panel .claim { color: var(--orange); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.auth-panel h1 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 20px; max-width: 16ch; }
.auth-panel p { color: rgba(255, 255, 255, .75); font-size: 17px; max-width: 42ch; }
.auth-panel .ring { position: absolute; right: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .logo { height: 44px; width: auto; margin-bottom: 36px; }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); margin-bottom: 26px; }
.auth-foot { margin-top: 40px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { padding: 40px 28px; min-height: 0; }
  .auth-panel h1 { font-size: 28px; }
  .auth-panel .ring { display: none; }
}

/* ------------------------------------------------------------ Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ Druck */
@media print {
  .topbar, .sidebar, .overlay, .toasts, .page-actions, .btn { display: none !important; }
  .main { margin: 0; padding: 0; }
  .card { border: 0; box-shadow: none; }
}

/* ------------------------------------------------------------ Veranstaltungsformular */
.subnav { position: sticky; top: var(--topbar-h); z-index: 20; display: flex; gap: 6px; padding: 10px 0 12px; margin: -6px 0 14px; background: var(--bg); overflow-x: auto; }
.subnav a { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.subnav a:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.subnav a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
section.card { scroll-margin-top: calc(var(--topbar-h) + 64px); }

.input-prefix { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line-strong); border-right: 0; border-radius: 10px 0 0 10px; background: var(--blue-tint); color: var(--muted); font-size: 14px; }
.input-group .input-prefix + .input { border-radius: 0 10px 10px 0; }

.session-row { padding: 20px 24px; border-top: 1px solid var(--line); }
.session-row:first-child { border-top: 0; }
.session-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.session-row-head strong { color: var(--blue); font-size: 16px; }
.session-deleted-note { display: none; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: #8a2020; font-size: 14px; }
.session-row.is-deleted .session-deleted-note { display: flex; }
.session-row.is-deleted .session-fields { display: none; }
.session-row.is-deleted .session-row-head { opacity: .55; }
.series-only { display: none; }
form.is-series .series-only { display: block; }
form.is-series .card-head .series-only { display: inline-flex; }

.placeholder-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--blue-tint); }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--blue); border-radius: var(--radius-pill); padding: 3px 10px; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.chip:hover { border-color: var(--blue); background: var(--blue-soft); }

.default-text { margin-top: 8px; font-size: 13.5px; }
.default-text summary { color: var(--blue-mid); cursor: pointer; font-weight: 700; }
.default-text pre { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--blue-tint); white-space: pre-wrap; font: inherit; color: var(--ink-2); }

.sticky-actions { position: sticky; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -6px 24px -12px rgba(0, 45, 103, .25); }

/* ------------------------------------------------------------ Veranstaltungsdashboard */
.session-cards { display: flex; flex-direction: column; }
.session-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 20px 24px; border-top: 1px solid var(--line); align-items: start; }
.session-card:first-child { border-top: 0; }
.session-card.is-cancelled { opacity: .6; }
.session-card h3 { font-size: 17px; }
.session-card-body { min-width: 0; }
.session-card-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 12px; color: var(--muted); font-size: 13.5px; }
.session-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.session-card .date-tile .m { font-size: 11px; }
@media (max-width: 640px) { .session-card { grid-template-columns: 1fr; } .session-card .date-tile { width: 64px; } }

.code-box { position: relative; }
.code-box pre { margin: 0; padding: 12px 14px 44px; border-radius: 10px; background: var(--blue-tint); border: 1px solid var(--line); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }
.code-box .btn { position: absolute; right: 10px; bottom: 10px; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); }

/* ------------------------------------------------------------ Formular-Builder */
.builder-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 46%); align-items: start; }
@media (max-width: 1200px) { .builder-grid { grid-template-columns: 1fr; } }
.builder-preview { position: sticky; top: calc(var(--topbar-h) + 20px); }
@media (max-width: 1200px) { .builder-preview { position: static; } }
.preview-frame { background: var(--surface); max-height: calc(100vh - var(--topbar-h) - 140px); overflow: auto; }
.builder-list { display: flex; flex-direction: column; }
.builder-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 24px; border-top: 1px solid var(--line); }
.builder-row:first-child { border-top: 0; }
.builder-row-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 260px; flex-wrap: wrap; }
.builder-label { max-width: 320px; font-weight: 700; color: var(--blue); }
.builder-options-inline { max-width: 260px; }
.builder-row-switches { display: flex; gap: 18px; }
.switch-sm { font-size: 13.5px; }
.switch-sm .track { width: 36px; height: 22px; }
.switch-sm .track::after { width: 16px; height: 16px; }
.switch-sm input:checked + .track::after { transform: translateX(14px); }
.switch input:disabled + .track { opacity: .5; }
.builder-custom { display: block; padding: 18px 24px; background: var(--blue-tint); }
.builder-custom + .builder-custom { border-top: 1px solid var(--line); }
.builder-custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.builder-custom-grid .field { margin-bottom: 12px; }
.builder-custom-grid .field label { font-size: 13px; margin-bottom: 4px; }
@media (max-width: 700px) { .builder-custom-grid { grid-template-columns: 1fr; } .builder-custom-grid .span-2 { grid-column: auto; } }
.builder-row-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.builder-empty { padding: 24px; }
.card-body.is-muted { opacity: .55; }

/* ------------------------------------------------------------ Teilnehmer: Terminwechsel, Tabelle, Drawer */
.session-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.session-switch a { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.25; }
.session-switch a small { font-weight: 400; color: var(--muted); font-size: 12px; }
.session-switch a:hover { text-decoration: none; border-color: var(--blue); }
.session-switch a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.session-switch a.is-active small { color: rgba(255, 255, 255, .75); }

.reg-table tr.status-cancelled td { color: var(--muted); }
.reg-table tr.status-cancelled .row-link { color: var(--muted); text-decoration: line-through; }
.reg-table tr.is-current td { background: var(--blue-soft); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(0, 31, 74, .35); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(560px, 100vw);
  background: var(--surface); box-shadow: var(--shadow-pop);
  transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--blue); padding-top: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.detail-head h2 { font-size: 22px; }
.detail-head p { margin: 4px 0 0; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.detail-box { padding: 14px 16px; border-radius: 10px; background: var(--red-soft); border: 1px solid #f5c2c2; margin-bottom: 18px; }
.detail-box p { margin: 4px 0 10px; }
.detail-section { padding: 18px 0; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.detail-section .field { margin-bottom: 12px; }
.detail-section .field label { font-size: 13px; margin-bottom: 4px; }
.detail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.detail-list li { padding: 10px 12px; border-radius: 8px; background: var(--blue-tint); }
.detail-list .badge { margin-right: 6px; }
.detail-danger { text-align: right; }
body.drawer-open { overflow: hidden; }

/* Manuelle Anmeldung: Formular-Renderer im Backend */
.card .rf { font-size: 15px; }
.card .rf .rf-section { margin-bottom: 26px; }

/* ------------------------------------------------------------ Check-in (Tablet/Handy) */
.checkin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.checkin-title { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 260px; }
.checkin-title h1 { font-size: 22px; }
.checkin-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.checkin-progress { display: flex; align-items: center; gap: 14px; }
.ring { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--blue-soft); }
.ring-fg { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset .35s ease; }
.checkin-progress.is-complete .ring-fg { stroke: var(--green); }
.ring-text { display: flex; flex-direction: column; line-height: 1.1; margin-left: -6px; }
.ring-text strong { font-size: 26px; color: var(--blue); }
.ring-text span { font-size: 13px; color: var(--muted); }
.checkin-chips { display: flex; gap: 6px; flex-wrap: wrap; max-width: 220px; }

.checkin-toolbar { position: sticky; top: var(--topbar-h); z-index: 20; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 10px 0 12px; background: var(--bg); }
.checkin-search { position: relative; flex: 1; min-width: 240px; }
.checkin-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.checkin-search input { width: 100%; min-height: 52px; padding: 12px 48px 12px 46px; font-size: 18px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.checkin-search input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.checkin-search .btn-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.checkin-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.chip-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.checkin-walkin { margin-bottom: 14px; }

.checkin-list { display: flex; flex-direction: column; gap: 8px; }
.checkin-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; transition: background .15s, border-color .15s; }
.checkin-item.is-done { background: var(--green-soft); border-color: #b9e3c8; }
.checkin-item.is-waitlist { border-left: 4px solid var(--amber); }
.checkin-main { display: flex; align-items: center; gap: 12px; }
.checkin-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.checkin-name strong { font-size: 18px; color: var(--ink); }
.checkin-item.is-done .checkin-name strong { color: #14703c; }
.check-btn {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface);
  color: transparent; display: grid; place-items: center; cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.check-btn .icon { width: 26px; height: 26px; stroke-width: 3; }
.check-btn:hover { border-color: var(--blue); }
.check-btn.is-checked { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.02); }
.check-btn:active { transform: scale(.94); }
.check-btn-sm { width: 40px; height: 40px; }
.check-btn-sm .icon { width: 20px; height: 20px; }
.checkin-all { flex: none; }
.checkin-companions { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 2px 64px; }
.checkin-companion { display: flex; align-items: center; gap: 10px; font-size: 16px; }
@media (max-width: 640px) {
  .checkin-companions { margin-left: 0; padding-left: 12px; border-left: 2px solid var(--line); }
  .checkin-toolbar .btn { width: 100%; }
}

/* ------------------------------------------------------------ Kopfbereich: Profil-Link */
a.user-chip { color: inherit; text-decoration: none; padding: 4px 8px 4px 4px; border-radius: 10px; }
a.user-chip:hover { background: var(--blue-tint); text-decoration: none; }
a.chip-btn { text-decoration: none; display: inline-flex; align-items: center; }
a.chip-btn:hover { text-decoration: none; border-color: var(--blue); }

/* ------------------------------------------------------------ Anlage-Assistent */
.wizard { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1000px) { .wizard { grid-template-columns: 1fr; } }
.wizard-side { position: sticky; top: calc(var(--topbar-h) + 24px); }
@media (max-width: 1000px) { .wizard-side { position: static; } }
.wizard-side h1 { font-size: 24px; }
.wizard-steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wizard-steps button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--ink-2); }
.wizard-steps button small { display: block; font-size: 12.5px; color: var(--muted); }
.wizard-steps li.is-active button { background: var(--blue); color: #fff; }
.wizard-steps li.is-active button small { color: rgba(255, 255, 255, .75); }
.wizard-step-no { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); font-weight: 700; font-size: 14px; }
.wizard-step-no .icon { display: none; }
.wizard-steps li.is-active .wizard-step-no { border-color: #fff; }
.wizard-steps li.is-done .wizard-step-no { background: var(--orange); border-color: var(--orange); color: #fff; }
.wizard-steps li.is-done .wizard-step-no span { display: none; }
.wizard-steps li.is-done .wizard-step-no .icon { display: block; stroke-width: 3; }
.wizard-defaults { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); font-size: 13.5px; }
.wizard-defaults ul { margin: 6px 0 8px 18px; padding: 0; }
.wizard-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.wizard-progress .progress { flex: 1; height: 6px; }
.wizard-progress .progress > span { background: var(--orange); }
.wizard-panel .card-body h2 { font-size: 22px; }
.input-lg { min-height: 52px; font-size: 18px; }
@media (max-width: 1000px) { .wizard-steps { flex-direction: row; overflow-x: auto; } .wizard-steps button small { display: none; } .wizard-defaults { display: none; } }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented span { display: block; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; }
.segmented small { display: block; color: var(--muted); font-size: 13px; }
.segmented input:checked + span { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.segmented input:focus-visible + span { box-shadow: var(--ring); }
@media (max-width: 560px) { .segmented { grid-template-columns: 1fr; } }

.wz-sessions { display: flex; flex-direction: column; gap: 12px; }
.wz-session { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-tint); }
.wz-session-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--blue); }
.wz-session-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.wz-session-grid .field { margin-bottom: 10px; }
.wz-session-grid .field label { font-size: 13px; margin-bottom: 4px; }
.wz-more { font-size: 14px; }
.wz-more summary { cursor: pointer; color: var(--blue-mid); font-weight: 700; padding: 6px 0; }
.wz-more summary:hover { text-decoration: underline; }

.wz-block { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wz-block:last-of-type { border-bottom: 0; }
.wz-block-text .hint { margin-top: 2px; }
.stepper { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 2px; background: var(--surface); }
.stepper input { width: 52px; border: 0; text-align: center; font: inherit; font-size: 18px; font-weight: 700; color: var(--blue); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .btn-icon { width: 34px; min-height: 34px; }
.stepper [data-step-down] .icon { transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-field { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: all .12s; }
.chip-field b { color: var(--orange); display: none; }
.chip-field[data-state="on"], .chip-field[data-state="required"], .chip-field.is-locked { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-field[data-state="required"] b, .chip-field.is-locked b { display: inline; color: #ffb27a; }
.chip-field.is-locked { cursor: default; opacity: .85; }
.chip-field:not(.is-locked):hover { border-color: var(--blue); }

.wz-customs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.wz-custom { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-tint); }
.wz-custom-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0 14px; }
.wz-custom-grid .wz-options { grid-column: 1 / -1; }
.wz-custom-grid .field { margin-bottom: 10px; }
.wz-custom-grid .field label { font-size: 13px; margin-bottom: 4px; }
@media (max-width: 640px) { .wz-custom-grid { grid-template-columns: 1fr; } }
.wz-review h3 { font-size: 15px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .wz-review.grid-2 { grid-template-columns: 1fr; } }

/* Assistent: Termin-Gruppen */
.wz-group { padding: 12px 0 2px; border-top: 1px dashed var(--line-strong); }
.wz-group:first-of-type { border-top: 0; padding-top: 0; }
.wz-group-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.wz-session-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wz-session-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wz-session-grid.cols-plz { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 2fr); }
form:not(.is-series) .wz-session-grid.cols-3 > .series-only { display: none; }
.wz-end .row .input { flex: 1; }
.wz-end-add .btn { min-height: 44px; }
@media (max-width: 760px) { .wz-session-grid.cols-3, .wz-session-grid.cols-2, .wz-session-grid.cols-plz { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .wz-session-grid.cols-3, .wz-session-grid.cols-2, .wz-session-grid.cols-plz { grid-template-columns: 1fr; } }

/* Check-in: Kontaktperson ohne Teilnahme */
.check-btn.is-contact { border-style: dashed; color: var(--muted); cursor: default; }
.check-btn.is-contact .icon { stroke-width: 2; width: 22px; height: 22px; }
.detail-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.wz-session .session-deleted-note { margin-bottom: 8px; }
.wz-session.is-deleted .wz-group { display: none; }
.wz-session.is-deleted .session-deleted-note { display: flex; }
.wz-session.is-deleted .wz-session-head { opacity: .6; }

/* ------------------------------------------------------------ Veranstaltungsseite: Kopf + Tabs */
.event-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.event-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.event-tabs::-webkit-scrollbar { display: none; }
.event-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; white-space: nowrap; }
.event-tabs a:hover { color: var(--blue); text-decoration: none; }
.event-tabs a.is-active { color: var(--blue); border-bottom-color: var(--orange); }

/* Wortmarke als Logo-Fallback */
.wordmark { display: inline-block; font-weight: 700; color: var(--blue); font-size: 13px; line-height: 1.15; }
.auth-card .logo { margin-bottom: 36px; }
.auth-card .logo .wordmark { font-size: 18px; }

/* Titelbild-Upload */
.image-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.image-preview { width: 280px; max-width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--blue-tint); }
.image-preview.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; }
input[type="file"].input { padding: 9px 12px; }

/* ------------------------------------------------------------ Hilfe */
.help-grid { grid-template-columns: minmax(0, 1fr) 240px; align-items: start; }
@media (max-width: 1000px) { .help-grid { grid-template-columns: 1fr; } .help-nav { order: -1; } }
.help-nav { position: sticky; top: calc(var(--topbar-h) + 20px); }
@media (max-width: 1000px) { .help-nav { position: static; } }
.help-toc { display: flex; flex-direction: column; gap: 2px; }
.help-toc a { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.help-toc a:hover { background: var(--blue-tint); text-decoration: none; color: var(--blue); }
.help-content .card { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.help-content h2 { margin-bottom: 10px; }
.help-content h3 { margin: 18px 0 6px; font-size: 15px; }
.help-content p, .help-content li { color: var(--ink-2); line-height: 1.6; }
.help-content ul, .help-content ol { margin: 0 0 14px 20px; padding: 0; }
.help-content li { margin-bottom: 6px; }
.help-code { margin: 8px 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--blue-tint); border: 1px solid var(--line); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.help-faq dt { font-weight: 700; color: var(--blue); margin-top: 14px; }
.help-faq dd { margin: 4px 0 0; color: var(--ink-2); line-height: 1.6; }

.checks-list { list-style: none; margin: 0; padding: 0; }
.checks-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checks-list li:last-child { border-bottom: 0; }
.checks-list .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; margin-top: 1px; }
.checks-list .ok { background: var(--green); } .checks-list .bad { background: var(--red); }
