:root {
  /* Farbwelt: tiefes Nachtblau, helles Blaupapier, warmer Signalton */
  --navy: #0e1733;
  --navy-2: #16255a;
  --blue: #2743c9;
  --blue-dark: #1c31a0;
  --blue-soft: #e7ebfb;
  --paper: #f3f5fb;
  --surface: #ffffff;
  --sunk: #eaeef9;
  --line: #dbe1f2;
  --line-soft: #e8ecf7;
  --ink: #121b38;
  --muted: #626c8c;
  --flame: #ff5a36;
  --flame-soft: #ffe9e3;
  --good: #157a55;
  --good-soft: #e2f4ec;
  --warn: #9a6206;
  --warn-soft: #fdf0dc;
  --bad: #c02d18;
  --bad-soft: #fdeae6;
  --sans: Carlito, Calibri, Candara, "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 0.7rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 48ch; }

/* -------------------------------------------------------------- kopfzeile */

.topbar { background: var(--navy); color: #eef1fb; position: sticky; top: 0; z-index: 20; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 62px; padding: 10px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(140deg, var(--flame), #ff8a4c);
  display: inline-block;
}
.topnav { display: flex; gap: 6px; font-size: 0.94rem; flex-wrap: wrap; }
.topnav a { color: #b9c2e2; padding: 6px 12px; border-radius: 999px; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); text-decoration: none; }
.topnav a.active { color: var(--navy); background: #fff; }

/* ---------------------------------------------------------------- flächen */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card + .card { margin-top: 16px; }
.card.sunk { background: var(--sunk); border-color: transparent; }
.card.plain { background: transparent; border: none; border-radius: 0; padding: 22px 0; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  border-radius: 8px; padding: 10px 18px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background 0.14s ease, transform 0.08s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.flame { background: var(--flame); border-color: var(--flame); }
.btn.flame:hover { background: #e8451f; border-color: #e8451f; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn.ghost:hover { background: var(--sunk); border-color: var(--muted); }
.btn.danger { background: transparent; color: var(--bad); border-color: #f0c9c1; font-weight: 600; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { padding: 6px 12px; font-size: 0.87rem; }

/* ---------------------------------------------------------------- inputs */

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 0.83rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }

input, select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { min-height: 90px; resize: vertical; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

/* ------------------------------------------------------------------ tags */

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--sunk); color: var(--muted); white-space: nowrap;
}
.tag.accent { background: var(--blue-soft); color: var(--blue-dark); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

/* ============================================================ landingpage */

.hero {
  background: radial-gradient(120% 130% at 12% 0%, #1d2f74 0%, var(--navy) 55%, #0a0f24 100%);
  color: #fff;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -140px; top: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.42), transparent 62%);
  pointer-events: none;
}
.hero .inner { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.02em;
  color: #ffd9cf; background: rgba(255, 90, 54, 0.18); padding: 5px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 4rem; max-width: 16ch; letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--flame); }
.hero .lead { color: #c2cbe8; margin-top: 18px; font-size: 1.15rem; }

.hero-search {
  display: grid; grid-template-columns: 1fr 200px auto; gap: 8px;
  margin-top: 34px; max-width: 700px;
  background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px;
}
.hero-search input, .hero-search select {
  background: #fff; border: none; border-radius: 8px; padding: 13px 14px; font-size: 1rem;
}
.hero-search input:focus, .hero-search select:focus { box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.35); }
.hero-search .btn { border-radius: 8px; padding: 13px 24px; }

.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.quick button {
  font: inherit; font-size: 0.88rem; font-weight: 600; color: #c2cbe8; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 6px 15px;
}
.quick button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.quick button.on { color: var(--navy); background: #fff; border-color: #fff; }

.band { padding: 52px 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.band-head .link { font-size: 0.9rem; font-weight: 600; color: var(--blue); }

.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pick {
  display: flex; flex-direction: column; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.pick:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--blue); }
.pick-art {
  aspect-ratio: 16 / 10; padding: 18px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(145deg, var(--c1, #2743c9), var(--c2, #16255a));
}
.pick-art .cat { font-size: 0.8rem; font-weight: 700; opacity: 0.85; }
.pick-art .when { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; }
.pick-art .when small { display: block; font-size: 0.85rem; font-weight: 400; opacity: 0.82; letter-spacing: 0; }
.pick-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pick-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.pick-meta { font-size: 0.9rem; color: var(--muted); }
.pick-price { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--blue-dark); }

.cat-0 { --c1: #2743c9; --c2: #16255a; }
.cat-1 { --c1: #7b2ff7; --c2: #2a1a6b; }
.cat-2 { --c1: #0f8a8a; --c2: #10344f; }
.cat-3 { --c1: #ff5a36; --c2: #7a1f2c; }

/* ------------------------------------------------------- terminliste */

.event-list { display: flex; flex-direction: column; gap: 10px; }

.event-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; color: inherit;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.event-row:hover { text-decoration: none; border-color: var(--blue); background: #fbfcff; }

.event-date {
  text-align: center; background: var(--blue-soft); border-radius: 8px; padding: 8px 6px; line-height: 1.1;
}
.event-date .day { font-size: 1.75rem; font-weight: 700; color: var(--blue-dark); letter-spacing: -0.03em; }
.event-date .month { font-size: 0.78rem; font-weight: 600; color: var(--blue-dark); }
.event-date .time { font-size: 0.76rem; color: var(--muted); }

.event-main .title { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; }
.event-main .meta { font-size: 0.9rem; color: var(--muted); }

.event-price { text-align: right; white-space: nowrap; }
.event-price .value { font-size: 1.1rem; font-weight: 700; }
.event-price .note { font-size: 0.8rem; color: var(--muted); }

/* -------------------------------------------------------------- eventseite */

.event-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.event-layout .cart { position: sticky; top: 86px; }

.event-hero {
  background: linear-gradient(145deg, var(--c1, #2743c9), var(--c2, #16255a));
  color: #fff; border-radius: var(--radius); padding: 34px; margin-bottom: 16px;
}
.event-hero h1 { font-size: 2.8rem; margin: 10px 0 8px; letter-spacing: -0.035em; }
.event-hero .kicker { font-size: 0.84rem; font-weight: 700; background: rgba(255,255,255,0.18); display: inline-block; padding: 4px 12px; border-radius: 999px; }
.event-hero .sub { font-size: 1.12rem; opacity: 0.9; }
.event-hero .facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 22px; font-size: 0.98rem; }
.event-hero .facts .label { display: block; font-size: 0.78rem; opacity: 0.7; }

.prose { max-width: 62ch; white-space: pre-line; }

/* ------------------------------------------------------------- ticketzeile */

.ticket-row {
  display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.ticket-row + .ticket-row { margin-top: 10px; }
.ticket-row .info { flex: 1 1 220px; min-width: 0; }
.ticket-row .info .name { font-size: 1.02rem; font-weight: 700; }
.ticket-row .price { margin-left: auto; font-size: 1.05rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket-row.locked { background: var(--sunk); border-color: transparent; }
.qty select { width: 68px; }

/* ------------------------------------------------------------------ stats */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .value { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.stat .label { color: var(--muted); font-size: 0.86rem; }

/* -------------------------------------------------------------- dashboard */

.dash { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: start; padding-top: 22px; }
/* Grid-Kinder duerfen nicht von breiten Tabellen aufgeblasen werden. */
.dash > * { min-width: 0; }
.event-layout > * { min-width: 0; }
body { overflow-x: hidden; }
.side { position: sticky; top: 86px; }
.side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.side nav button {
  text-align: left; background: transparent; border: none; border-radius: 8px;
  padding: 8px 12px; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.side nav button:hover { background: var(--sunk); color: var(--ink); }
.side nav button.active { background: var(--blue); color: #fff; }

/* ---------------------------------------------------------------- tabellen */

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 620px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.8rem; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; }
tr > *:last-child { padding-right: 0; }

/* ----------------------------------------------------------------- notice */

.notice { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 11px 14px; font-size: 0.92rem; }
.notice.bad { background: var(--bad-soft); border-color: #f4d2ca; color: var(--bad); }
.notice.good { background: var(--good-soft); border-color: #c6e6d8; color: var(--good); }
.notice.info { background: var(--blue-soft); border-color: #cdd6f6; color: var(--blue-dark); }

/* ------------------------------------------------------------------ modal */

.modal-back {
  position: fixed; inset: 0; background: rgba(14, 23, 51, 0.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 44px 16px; overflow-y: auto; z-index: 40;
}
.modal { background: var(--surface); border-radius: 12px; width: min(640px, 100%); padding: 26px; }

/* ----------------------------------------------------------------- ticket */

.ticket-stub {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.ticket-stub .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.09em; color: var(--blue-dark); }

.hidden { display: none !important; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------ schritte/cta */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 12px;
  background: var(--blue-soft); color: var(--blue-dark); font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  background: linear-gradient(135deg, var(--navy), #24357d 70%, #3a2470);
  color: #fff; border-radius: 14px; padding: 36px 38px; margin: 12px 0 52px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c2cbe8; margin: 8px 0 0; max-width: 48ch; }

.site-foot { background: var(--navy); color: #b9c2e2; padding: 46px 0 40px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-cols h4 { font-size: 0.82rem; color: #8f9ac2; margin: 0 0 10px; font-weight: 700; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; }
.foot-cols li { margin-bottom: 7px; }
.foot-cols li a:hover { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.foot-note { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #8f9ac2; }

footer.site { margin-top: 52px; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

/* ---------------------------------------------------------------- responsiv */

@media (max-width: 960px) {
  .hero { padding: 54px 0 60px; }
  .hero h1 { font-size: 2.7rem; }
  .hero-search { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 26px; }
  .event-layout { grid-template-columns: 1fr; }
  .event-layout .cart { position: static; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: static; }
  .side nav { flex-direction: row; overflow-x: auto; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .event-hero { padding: 22px; }
  .event-hero h1 { font-size: 2rem; }
  .event-row { grid-template-columns: 66px 1fr; gap: 14px; padding: 14px; }
  .event-price { grid-column: 2; text-align: left; margin-top: 4px; }
}

/* ====================================================== diagramm und balken */

.chart-scroll { overflow-x: auto; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; min-width: 430px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; border-bottom: 2px solid var(--line); }
.bar { width: 100%; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--blue), #4560e0); min-height: 3px; }
.bar-col:hover .bar { background: linear-gradient(180deg, var(--flame), #ff8a4c); }
.bar-label { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.occ { margin-bottom: 16px; }
.occ:last-child { margin-bottom: 0; }
.occ-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.occ-head .small.muted { margin-left: 8px; }
.occ-track { height: 8px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.occ-track.mini { height: 5px; margin-top: 5px; }
.occ-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #5a76ff); }

/* ================================================================= scanner */

.scanner {
  position: relative; margin-top: 14px; border-radius: 12px; overflow: hidden;
  background: #000; aspect-ratio: 4 / 3; max-width: 520px;
}
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame {
  position: absolute; inset: 16% 18%; border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px; box-shadow: 0 0 0 2000px rgba(14, 23, 51, 0.35);
}
.scan-line {
  position: absolute; left: 18%; right: 18%; top: 16%; height: 2px;
  background: var(--flame); box-shadow: 0 0 12px rgba(255, 90, 54, 0.9);
  animation: scanmove 2.2s ease-in-out infinite;
}
@keyframes scanmove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(68vw * 0.75 * 0.68)); }
}
@media (min-width: 560px) {
  @keyframes scanmove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(260px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .scan-line { animation: none; }
}

.ticket-qr { border-radius: 6px; background: #fff; flex-shrink: 0; }
@media (max-width: 560px) {
  .ticket-stub { flex-wrap: wrap; }
  .ticket-qr { width: 76px; height: 76px; }
}

/* ============================================================ einlass-seite */

.scan-page { background: var(--paper); }
.scan-top { background: var(--navy); color: #fff; }
.scan-top .small { color: #b9c2e2; }

.verdict { border-radius: 12px; padding: 20px; color: #fff; }
.verdict.good { background: linear-gradient(140deg, #157a55, #0f5c3f); }
.verdict.bad { background: linear-gradient(140deg, #c02d18, #8f2011); }
.verdict-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.verdict .small { opacity: 0.88; }

/* ================================================== veranstalter-portal */

.portal { background: var(--paper); }

/* Feste Leiste am rechten Rand, ueber die volle Hoehe. */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 244px;
  background: var(--navy);
  color: #c6cee9;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  overflow-y: auto;
  z-index: 30;
}

.rail-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em;
}
.rail-brand:hover { text-decoration: none; }
.rail-brand .mark { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(140deg, var(--flame), #ff8a4c); }

.rail-user { padding: 14px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; }
.rail-label { font-size: 0.76rem; color: #8f9ac2; }
.rail-name { font-weight: 700; color: #fff; }

.rail nav { display: flex; flex-direction: column; gap: 3px; }
.rail nav button {
  display: flex; align-items: center; gap: 11px;
  text-align: left; width: 100%;
  background: transparent; border: none; border-radius: 9px;
  padding: 10px 12px;
  font: inherit; font-size: 0.95rem; font-weight: 600; color: #b9c2e2; cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.rail nav button .ic { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.rail nav button .ic svg { width: 18px; height: 18px; }
.rail nav button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.rail nav button.active { background: var(--blue); color: #fff; }
.rail nav button.active .ic { opacity: 1; }

.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.rail-link { font-size: 0.88rem; color: #8f9ac2; }
.rail-link:hover { color: #fff; }
.rail-foot .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.rail-foot .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }

.portal-main { margin-left: 244px; min-height: 100vh; }
.portal-inner { max-width: 1080px; margin: 0 auto; padding: 30px 30px 60px; min-width: 0; }
.portal-inner > section { min-width: 0; }

@media (max-width: 1000px) {
  /* Auf schmalen Geräten wandert die Leiste nach unten, wie eine App-Leiste. */
  .rail {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; height: auto;
    flex-direction: row; align-items: center; gap: 10px;
    padding: 8px 12px;
    overflow-x: auto; overflow-y: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .rail-brand, .rail-user, .rail-foot .rail-link { display: none; }
  .rail nav { flex-direction: row; gap: 4px; }
  .rail nav button { white-space: nowrap; padding: 8px 12px; }
  .rail-foot { margin: 0; }
  .rail-foot .btn { margin-top: 0 !important; white-space: nowrap; }
  .portal-main { margin-left: 0; padding-bottom: 76px; }
  .portal-inner { padding: 20px 18px 40px; }
}

/* Plattformverwaltung setzt sich farblich vom Veranstalterportal ab. */
.rail-admin { background: #14162e; }
.rail-admin nav button.active { background: var(--flame); }
.rail-admin .rail-user { background: rgba(255, 90, 54, 0.14); }
