/* =========================================================================
   Sommerfest 2026 — Mitbringbuffet
   ========================================================================= */

:root {
  --c-bg-1:   #ffe9b8;
  --c-bg-2:   #ffb27a;
  --c-bg-3:   #ff7b6b;
  --c-bg-4:   #c66a8d;

  --c-card:        #ffffff;
  --c-card-soft:   #fff7ed;
  --c-text:        #2a2230;
  --c-text-soft:   #6e6478;
  --c-border:      #f0e2d2;
  --c-border-soft: #faecd5;

  --c-sun:    #ffb84d;
  --c-accent: #ff6b6b;
  --c-ok:     #2bb673;
  --c-warn:   #e07a1f;
  --c-err:    #c0392b;

  --c-w: #ec5b8a;   /* Frau   */
  --c-m: #2f7fff;   /* Mann   */
  --c-p: #8a55d6;   /* Paar   */

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;

  --shadow-sm: 0 2px 6px  rgba(40,20,40, .06);
  --shadow-md: 0 8px 24px rgba(40,20,40, .10);
  --shadow-lg: 0 14px 40px rgba(40,20,40, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--c-text);
  background:
    radial-gradient(1200px 600px at 90% -100px, #fff3c4 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #ffd1a8 0%, transparent 55%),
    linear-gradient(180deg, var(--c-bg-1) 0%, #fff5e1 35%, #ffffff 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 30px 16px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #ff9a4d 0%, #ff6b6b 60%, #c66a8d 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,232,150,.65) 0%, transparent 60%);
  pointer-events: none;
}
.hero-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.hero-sun {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
}
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -.02em;
  font-weight: 800;
}
.hero h1 span { font-weight: 400; opacity: .85; }
.hero-sub {
  margin: 6px 0 0;
  opacity: .92;
  font-size: clamp(14px, 2.5vw, 17px);
  font-weight: 500;
}

/* ---------- NAV ---------- */
.topnav {
  display: flex;
  gap: 8px;
  padding: 14px 4px 0;
  flex-wrap: wrap;
}
.topnav a {
  flex: 1;
  min-width: 140px;
  text-align: center;
  text-decoration: none;
  color: var(--c-text);
  background: var(--c-card);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.topnav a:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.topnav a.active {
  background: linear-gradient(135deg, #ff9a4d, #ff6b6b);
  color: #fff;
  border-color: transparent;
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 14px;
}
.stat {
  background: var(--c-card);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
}
.stat-sub { font-size: .55em; color: var(--c-text-soft); font-weight: 600; }
.stat-lbl { color: var(--c-text-soft); font-size: 13px; margin-top: 4px; }

/* ---------- LEGEND ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 6px 4px 16px;
  font-size: 13px;
  color: var(--c-text-soft);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item.ok { color: var(--c-ok); font-weight: 600; }
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 999px;
}
.dot-w { background: var(--c-w); }
.dot-m { background: var(--c-m); }
.dot-p { background: var(--c-p); }

/* ---------- CARDS / TEILNEHMER GRID ---------- */
.teilnehmer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.card {
  position: relative;
  display: block;
  color: var(--c-text);
  background: var(--c-card);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--card-accent, #ddd);
}
.card.sex-w { --card-accent: var(--c-w); }
.card.sex-m { --card-accent: var(--c-m); }
.card.sex-p { --card-accent: var(--c-p); }

.card.done {
  background: linear-gradient(180deg, #f1faf2 0%, #ffffff 100%);
  border-color: #c8ebd5;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.sex-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--c-card-soft);
  color: var(--c-text);
}
.card.sex-w .sex-badge { background: #ffe1ec; color: var(--c-w); }
.card.sex-m .sex-badge { background: #d9e7ff; color: var(--c-m); }
.card.sex-p .sex-badge { background: #ece1ff; color: var(--c-p); }
.sex-badge.big { width: 52px; height: 52px; font-size: 26px; }
.sex-badge.big.sex-w { background: #ffe1ec; color: var(--c-w); }
.sex-badge.big.sex-m { background: #d9e7ff; color: var(--c-m); }
.sex-badge.big.sex-p { background: #ece1ff; color: var(--c-p); }

.check {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--c-ok);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 14px;
}

.card-name {
  font-weight: 700;
  font-size: 17px;
  margin-top: 8px;
  word-break: break-word;
}
.card-meta {
  color: var(--c-text-soft);
  font-size: 13px;
  margin-bottom: 8px;
}
.card-cta {
  margin-top: 6px;
  padding: 8px 10px;
  text-align: center;
  background: var(--c-card-soft);
  color: var(--c-warn);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.card-beitraege {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.card-beitraege li {
  padding: 6px 8px;
  background: #f6fbf7;
  border-radius: var(--r-sm);
  margin-bottom: 4px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  word-break: break-word;
}
.card-beitraege .emoji { flex: 0 0 auto; }

/* ---------- FORM / EINTRAGEN ---------- */
.user-headline {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--c-card);
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  margin: 22px 0 14px;
  box-shadow: var(--shadow-sm);
}
.user-name { font-size: 22px; font-weight: 800; }
.user-meta { color: var(--c-text-soft); font-size: 14px; }

.eigene-info {
  background: #effaf2;
  border: 1px solid #c8ebd5;
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.eigene-info ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.eigene-info li { padding: 4px 0; display: flex; gap: 8px; align-items: flex-start; }
.eigene-info em { font-style: normal; color: var(--c-text); }
.eigene-info .hint { color: var(--c-text-soft); font-size: 13px; margin-top: 6px; }

.overview-block, .form-block {
  background: var(--c-card);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.overview-block h2, .form-block h2 { margin: 0 0 4px; font-size: 20px; }
.lead { color: var(--c-text-soft); margin: 0 0 12px; font-size: 14px; }

.kat-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.kat-card {
  background: var(--c-card-soft);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}
.kat-card.voll { border-color: #f4c4a8; background: #fff1e3; }
.kat-card summary,
.kat-card .kat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.kat-card summary::-webkit-details-marker { display: none; }
.kat-card .kat-label { flex: 1; }
.kat-card .kat-count {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  color: var(--c-text-soft);
  font-weight: 700;
}
.kat-card.voll .kat-count { background: var(--c-warn); color: #fff; border-color: var(--c-warn); }
.kat-flag {
  background: var(--c-warn); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.kat-card ul {
  margin: 0;
  padding: 6px 12px 12px 30px;
  font-size: 14px;
}
.kat-card li { padding: 2px 0; }
.kat-card .empty { padding: 4px 12px 12px; color: var(--c-text-soft); font-size: 13px; margin: 0; }

/* großes Grid auf der Übersichtsseite */
.kat-overview.big-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.kat-card.open { background: var(--c-card); }
.kat-list {
  list-style: none !important;
  padding: 0 12px 12px !important;
  margin: 0;
}
.kat-list li {
  display: flex; gap: 10px; justify-content: space-between;
  padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--c-card-soft); margin-top: 6px;
}
.kat-list .who { font-weight: 700; }
.kat-list .what { color: var(--c-text-soft); text-align: right; }

/* Kategorie-Picker im Formular */
.kat-picker { border: none; padding: 0; margin: 0 0 16px; }
.kat-picker legend {
  font-weight: 700; padding: 0; margin-bottom: 8px;
}
.kat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.kat-option {
  position: relative;
  cursor: pointer;
}
.kat-option input { position: absolute; opacity: 0; pointer-events: none; }
.kat-option-inner {
  background: var(--c-card-soft);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all .15s ease;
}
.kat-option:hover .kat-option-inner {
  background: #fff1d9;
  transform: translateY(-1px);
}
.kat-option input:checked + .kat-option-inner {
  background: linear-gradient(135deg, #ffe5b8, #ffd2a8);
  border-color: var(--c-accent);
  box-shadow: 0 2px 10px rgba(255,107,107,.18);
}
.kat-option .lbl { font-size: 13px; font-weight: 600; }
.kat-option .cnt { font-size: 11px; color: var(--c-text-soft); }
.kat-option.disabled { cursor: not-allowed; }
.kat-option.disabled .kat-option-inner {
  background: #f6e8da;
  opacity: .55;
  filter: grayscale(.4);
}

.emoji { font-size: 18px; line-height: 1; }
.emoji.big { font-size: 28px; }

.text-input {
  display: block;
  margin-bottom: 14px;
}
.text-input span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.text-input small { color: var(--c-text-soft); font-weight: 400; }
.text-input input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}
.text-input input:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-color: transparent;
}

.form-rules {
  background: var(--c-card-soft);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--c-text-soft);
  margin-bottom: 16px;
}
.rule-line { padding: 4px 0; display: flex; gap: 8px; align-items: center; }
.rule-line strong { color: var(--c-text); }

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.actions.center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #ff9a4d, #ff6b6b);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,107,107,.32);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: var(--c-card-soft);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

.error {
  background: #fdecea;
  color: var(--c-err);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid #f5c6c1;
  margin-bottom: 14px;
  font-weight: 600;
}

/* ---------- Danke ---------- */
.thanks {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 30px 22px;
  margin: 22px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.thanks-icon { font-size: 56px; }
.thanks h2 { margin: 8px 0 4px; font-size: 26px; }
.thanks-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 18px auto;
  max-width: 700px;
  text-align: left;
}
.thanks-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--c-card-soft);
  padding: 12px 14px;
  border-radius: var(--r-md);
}
.thanks-rules {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  margin: 12px 0 22px;
  color: var(--c-text-soft);
  font-size: 14px;
}

/* ---------- Page Heads ---------- */
.page-head {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px;
  margin: 22px 0 14px;
  box-shadow: var(--shadow-sm);
}
.page-head h2 { margin: 0 0 4px; font-size: 22px; }

/* ---------- FOOTER ---------- */
footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
}
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.rule {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; gap: 12px; align-items: center;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.rule-icon { font-size: 26px; }
.rule strong { color: var(--c-text); }
.copy {
  text-align: center;
  color: var(--c-text-soft);
  font-size: 12px;
  padding: 8px 0;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .page { padding: 14px 12px 50px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 12px 6px; }
  .teilnehmer-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .card { padding: 12px; }
  .card-name { font-size: 15px; }
  .kat-grid { grid-template-columns: repeat(3, 1fr); }
  .kat-option .lbl { font-size: 12px; }
  .actions { flex-direction: column-reverse; }
  .btn { width: 100%; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 720px; }
}

/* ---------- INFO-BANNER auf der Startseite ---------- */
.info-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin: 14px 0 16px;
  background: linear-gradient(135deg, #fff4e0, #ffe9d4);
  border: 1px solid #ffd9a8;
  border-radius: var(--r-md);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
}
.info-banner .info-icon {
  font-size: 28px; line-height: 1;
  flex: 0 0 auto;
}
.info-banner strong { color: var(--c-warn); }

/* ---------- ADMIN-SEITE ---------- */
.admin-head {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px;
  margin: 22px 0 14px;
  box-shadow: var(--shadow-sm);
}
.admin-head h2 { margin: 0 0 4px; font-size: 22px; }

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.pn-vorlage {
  flex: 1;
  min-width: 220px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}
.pn-vorlage summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  list-style: none;
}
.pn-vorlage summary::-webkit-details-marker { display: none; }
.pn-vorlage textarea {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--c-border);
  padding: 12px 16px;
  font-family: -apple-system, sans-serif;
  font-size: 13.5px;
  background: var(--c-card-soft);
  resize: vertical;
}
.pn-vorlage small { display: block; padding: 6px 16px 12px; color: var(--c-text-soft); }
.pn-vorlage code {
  background: #fff1d9;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .92em;
}

.admin-table-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table thead {
  background: var(--c-card-soft);
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--c-text-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--c-border);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border-soft);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr.done { background: #f6fbf7; }
.admin-table tbody tr:hover { background: #fff7e8; }

.admin-table .check.small {
  width: 22px; height: 22px; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-ok); color: #fff; border-radius: 999px; font-weight: 700;
}
.admin-table .pending {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f0e6d6; color: var(--c-text-soft); border-radius: 999px;
  font-weight: 700;
}
.admin-table .sex-badge {
  width: 26px; height: 26px;
}
.admin-table .sex-w { background: #ffe1ec; color: var(--c-w); }
.admin-table .sex-m { background: #d9e7ff; color: var(--c-m); }
.admin-table .sex-p { background: #ece1ff; color: var(--c-p); }

.link-cell {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: var(--c-card-soft);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12.5px;
  cursor: pointer;
  word-break: break-all;
  transition: background .12s ease;
}
.link-cell:hover { background: #fff1d9; }
.link-cell:active { background: #ffe5b8; }

.beitraege-cell { max-width: 260px; }
.b-tag {
  display: inline-block;
  background: var(--c-card-soft);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--c-border-soft);
}
.muted { color: var(--c-text-soft); }

/* ---------- SYNC-SEITE ---------- */
.diff-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.diff-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}
.diff-pill.diff-add    { background: #e3f9ed; color: #1e7a3f; border-color: #b8e7c8; }
.diff-pill.diff-update { background: #fff3d9; color: #a06012; border-color: #f4d99a; }
.diff-pill.diff-remove { background: #fdecea; color: #b53028; border-color: #f5c6c1; }
.diff-pill.diff-keep   { background: var(--c-card-soft); color: var(--c-text-soft); border-color: var(--c-border); }

.diff-block {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.diff-block h3 { margin: 0 0 4px; font-size: 18px; }
.diff-block ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.diff-block li {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--c-card-soft);
  margin-bottom: 6px;
  font-size: 14.5px;
}
.diff-block-add    { border-left: 4px solid var(--c-ok); }
.diff-block-update { border-left: 4px solid var(--c-warn); }
.diff-block-remove { border-left: 4px solid var(--c-err); }
.diff-block-add li    { background: #f0fbf4; }
.diff-block-update li { background: #fff7e6; }
.diff-block-remove li { background: #fef2f0; }
.diff-block .warn {
  color: var(--c-err);
  font-weight: 600;
  font-size: 13px;
  margin-left: 8px;
}

.confirm-form {
  background: var(--c-card);
  border: 2px solid var(--c-accent);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}

.success-block {
  background: #effaf2;
  border: 1px solid #c8ebd5;
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 14px;
}
.success-block h3 { margin: 0 0 8px; color: var(--c-ok); font-size: 22px; }
.success-block ul { padding-left: 22px; margin: 8px 0 14px; }
.success-block li { padding: 4px 0; font-size: 14.5px; }

.file-input {
  display: block;
  margin-bottom: 16px;
}
.file-input span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.file-input input[type="file"] {
  display: block;
  padding: 12px;
  border: 2px dashed var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-card-soft);
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.file-input input[type="file"]:hover {
  border-color: var(--c-accent);
  background: #fff7e8;
}
.file-input small {
  display: block;
  margin-top: 6px;
  color: var(--c-text-soft);
  font-size: 13px;
  line-height: 1.5;
}
.file-input code {
  background: var(--c-card-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12.5px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 8px 12px;
  background: var(--c-card-soft);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
  font-size: 14.5px;
}
.info-list code {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
  font-family: ui-monospace, monospace;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2a2230;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- print: für Admin-Tokenliste ---------- */
@media print {
  .topnav, footer, .admin-actions, .info-banner, .stats, .toast { display: none !important; }
  body { background: #fff; }
  .hero { background: #444 !important; box-shadow: none; }
  .admin-table { font-size: 11px; }
  .admin-table .link-cell { background: #fff; border: 0; padding: 0; font-size: 10.5px; }
}

