/* Bandplaner – Farben wie jennyandthegang.de */
:root {
  --red: #fd281b;
  --red-btn: #d91a0f;
  --red-dark: #a8140b;
  --bg: #0b0b0c;
  --surface: #151415;
  --surface-2: #1d1b1c;
  --line: #2c2a2b;
  --text: #f6f4f1;
  --mute: #b0a9a5;
  --ok: #3fb96b;
  --maybe: #f0b429;
  --no: #fd5a4f;
  --open: #6f6966;
  --display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--text); text-decoration-color: rgba(253, 40, 27, .7); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(28px, 6vw, 40px); }
h2 { font-size: 20px; letter-spacing: .06em; }
p { margin: 0 0 .8em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.center { text-align: center; }
.warntext { color: var(--maybe); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 40px; min-height: 70vh; }

/* Kopfleiste */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 12, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand {
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.brand__star { color: var(--red); margin-right: 6px; font-size: .8em; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 10px; border-radius: 6px; text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mute);
}
.nav a.is-active, .nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { box-shadow: inset 0 -2px 0 var(--red); }
@media (max-width: 520px) {
  .top__inner { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .nav { width: calc(100% + 32px); margin: 0 -16px; padding: 4px 10px 6px; }
  .nav a { flex: 1; text-align: center; padding: 8px 6px; font-size: 15px; }
}

.foot { padding: 24px 16px calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); text-align: center; }

/* Meldungen */
.flash { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 18px; border: 1px solid; }
.flash--ok { background: rgba(63, 185, 107, .12); border-color: rgba(63, 185, 107, .45); }
.flash--warn { background: rgba(240, 180, 41, .12); border-color: rgba(240, 180, 41, .5); }
.flash--err { background: rgba(253, 40, 27, .13); border-color: rgba(253, 40, 27, .55); }
.warn { color: var(--maybe); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--red-btn); border-radius: 6px;
  background: var(--red-btn); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--mute); color: var(--text); }
.linkbtn {
  background: none; border: 0; padding: 0; color: var(--mute); cursor: pointer;
  font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--text); }
.linkbtn--danger { color: var(--no); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
@media (max-width: 520px) { .actions .btn { flex: 1 1 100%; } }

/* Formulare */
.form { display: grid; gap: 14px; }
.form--wide { gap: 18px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: #101011; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  font: 16px/1.4 var(--body);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(253, 40, 27, .22); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--red); }
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; text-align: left; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 15px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.check--big { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: minmax(0, 1fr); } .grid3 { gap: 8px; } }
fieldset { margin: 0; min-width: 0; }
legend { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; padding: 0 6px; }
.row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.inline { display: inline; }
.danger { margin-top: 28px; text-align: center; }

/* Karten & Boxen */
.card, .box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 0 0 18px; display: grid; gap: 12px;
}
.box > h2 { margin-bottom: 0; }
.card.narrow { max-width: 440px; margin: 6vh auto; }
.box--admin { border-color: rgba(240, 180, 41, .35); background: linear-gradient(180deg, rgba(240, 180, 41, .06), transparent 120px), var(--surface); }
.box--admin > h2, .box--admin > legend { color: var(--maybe); }
.empty { text-align: center; padding: 40px 16px; color: var(--mute); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Übersicht */
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pagehead h1 { margin: 0; }
.todo {
  display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 16px;
  background: rgba(253, 40, 27, .12); border: 1px solid rgba(253, 40, 27, .55); border-radius: var(--radius);
  text-decoration: none;
}
.todo span { color: var(--mute); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg a { padding: 8px 14px; text-decoration: none; color: var(--mute); font-size: 14px; }
.seg a.is-on { background: var(--surface-2); color: var(--text); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--mute); white-space: nowrap; }
.chip.is-on { color: var(--text); border-color: var(--mute); background: var(--surface-2); }

.month {
  font-size: 18px; color: var(--red); letter-spacing: .1em;
  margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.gig {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start;
  padding: 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--open); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: border-color .15s, background-color .15s;
}
.gig:hover { color: var(--text); background: var(--surface-2); }
.gig--bestaetigt { border-left-color: var(--ok); }
.gig--option { border-left-color: var(--maybe); }
.gig--anfrage { border-left-color: #6aa7ff; }
.gig--abgesagt { opacity: .55; border-left-color: var(--line); }
.gig--abgesagt .gig__title { text-decoration: line-through; }
.gig__date { display: grid; justify-items: center; line-height: 1; padding-top: 2px; }
.gig__day { font-family: var(--display); font-weight: 700; font-size: 30px; }
.gig__wd { font-size: 13px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.gig__body { min-width: 0; display: grid; gap: 4px; }
.gig__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gig__title { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .02em; line-height: 1.15; overflow-wrap: anywhere; }
.gig__meta { color: var(--mute); font-size: 14px; }
.gig__me { display: grid; justify-items: end; gap: 4px; }
.gig__melabel { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
@media (max-width: 520px) {
  .gig { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .gig__me { grid-column: 2; display: flex; align-items: center; justify-items: start; gap: 8px; }
  .gig__day { font-size: 26px; }
}

.dots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dot {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 11px; font-weight: 700; text-transform: uppercase; color: #0b0b0c;
  background: var(--open);
}
.dot--ja { background: var(--ok); }
.dot--vielleicht { background: var(--maybe); }
.dot--nein { background: var(--no); }
.dot--offen { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1px var(--open); }

.badge, .type, .tag, .ans {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.badge--anfrage { background: rgba(106, 167, 255, .16); color: #9cc4ff; }
.badge--option { background: rgba(240, 180, 41, .16); color: var(--maybe); }
.badge--bestaetigt { background: rgba(63, 185, 107, .18); color: #6fdc96; }
.badge--abgesagt { background: var(--surface-2); color: var(--mute); }
.type { background: var(--surface-2); color: var(--mute); }
.tag { background: rgba(240, 180, 41, .16); color: var(--maybe); }
.tag--off { background: var(--surface-2); color: var(--mute); }
.ans { border: 1px solid; }
.ans--ja { color: #6fdc96; border-color: rgba(63, 185, 107, .5); }
.ans--vielleicht { color: var(--maybe); border-color: rgba(240, 180, 41, .5); }
.ans--nein { color: var(--no); border-color: rgba(253, 90, 79, .5); }
.ans--offen { color: var(--mute); border-color: var(--line); }

/* Detail */
.back { margin: 0 0 12px; font-size: 14px; }
.back a { color: var(--mute); text-decoration: none; }
.detail { margin-bottom: 18px; }
.detail__top { display: flex; gap: 6px; margin-bottom: 10px; }
.detail h1 { overflow-wrap: anywhere; }
.facts { display: grid; gap: 10px; margin: 0; }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.facts dt { color: var(--mute); font-size: 14px; padding-top: 1px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.text { overflow-wrap: anywhere; }

.answer { display: grid; gap: 14px; }
.answer__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
  display: grid; place-items: center; min-height: 54px; padding: 6px;
  border: 1px solid var(--line); border-radius: 6px; background: #101011;
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); text-align: center; line-height: 1.1;
}
.pick input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.pick--ja input:checked + span { background: var(--ok); border-color: var(--ok); color: #08130c; }
.pick--vielleicht input:checked + span { background: var(--maybe); border-color: var(--maybe); color: #1a1303; }
.pick--nein input:checked + span { background: var(--no); border-color: var(--no); color: #1a0504; }

.members, .comments, .blocks, .userlist { list-style: none; margin: 0; padding: 0; }
.members li, .blocks li, .userlist li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.members li:last-child, .blocks li:last-child, .userlist li:last-child { border-bottom: 0; }
.members__who, .blocks li > div, .userlist li > div:first-child { display: grid; gap: 2px; min-width: 0; }
.members__note { font-size: 14px; color: var(--text); font-style: italic; }
.members__block { font-size: 13px; color: var(--maybe); }
.ans-select { width: auto; min-height: 36px; padding: 4px 8px; font-size: 14px; }
.ans-select.ans--ja { color: #6fdc96; } .ans-select.ans--nein { color: var(--no); }
.ans-select.ans--vielleicht { color: var(--maybe); } .ans-select.ans--offen { color: var(--mute); }
.userlist li.is-off { opacity: .55; }
.userlist__actions { display: grid; justify-items: end; gap: 6px; text-align: right; }

.comments li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.comments li.is-admin { border-left: 2px solid var(--maybe); padding-left: 12px; }
.comments__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }

.howto summary { cursor: pointer; color: var(--mute); }
.howto ol { padding-left: 20px; display: grid; gap: 10px; margin: 12px 0; }
.copyrow { display: flex; gap: 8px; margin-top: 6px; }
.copyrow input { font-size: 13px; }

@media (max-width: 520px) {
  .nav a { font-size: 14px; letter-spacing: .03em; padding: 8px 4px; }
  .pick span { font-size: 15px; letter-spacing: .02em; }
}
label, .grid2 > *, .grid3 > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
@media (max-width: 520px) { .grid3 input[type="time"] { padding: 10px 6px; font-size: 15px; } }
.gig__extras { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.gig__extras span { font-size: 12px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.files__name { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.files__ext { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; border-radius: 4px; background: var(--red-btn); color: #fff; }
.files__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
input[type="file"] { padding: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 32px; height: 32px; border-radius: 6px; flex: none; }
.members__ans { display: grid; justify-items: end; gap: 6px; text-align: right; }
.members__set summary { list-style: none; cursor: pointer; }
.members__set summary::-webkit-details-marker { display: none; }
.members__set[open] summary { color: var(--text); }
.members__set form { display: grid; gap: 8px; justify-items: end; margin-top: 6px; }
.members__set form p { margin: 0; }
.members__setrow { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.members__setrow .ans { background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; }
.members__setrow .ans.is-current { background: var(--surface-2); }
.members li { align-items: flex-start; }
