/* LetsPlayDarts Eventplanung – Farben aus dem Logo */
[hidden] { display: none !important; }
:root {
  --rot: #BB0024;
  --rot-dunkel: #8A001B;
  --anthrazit: #212121;
  --gruen: #007A00;
  --gelb: #FFAE00;
  --grund: #F3F3F1;
  --karte: #FFFFFF;
  --linie: #E2E2DE;
  --linie-hell: #ECECE8;
  --text-2: #5F5F5A;
  --warn-text: #8E1B1B;
  --ok-text: #1D6B3E;
  --radius: 12px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--anthrazit); background: var(--grund); font-size: 15px; line-height: 1.45; }
a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: 36px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }

/* Layout */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.nav { flex: 1 1 220px; max-width: 100%; background: var(--anthrazit); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.nav .logo { display: block; width: 172px; margin: 0 10px 6px; }
.nav .sub { font-size: 12px; color: #B5B5B5; padding: 0 10px 18px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600; }
.nav a.item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 500; }
.nav a.item:hover { background: #2E2E2E; color: #fff; }
.nav a.item.on { background: var(--rot); font-weight: 600; }
.nav .foot { margin-top: auto; padding: 20px 10px 0; font-size: 13px; color: #B5B5B5; display: flex; flex-direction: column; gap: 8px; }
.nav .foot a { color: #fff; }
.nav .foot button { background: none; border: 0; color: #fff; text-decoration: underline; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px; }
.wrap { max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 800px) {
  .nav { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; gap: 4px; }
  .nav .logo { width: 120px; margin: 0 8px 0 4px; }
  .nav .sub { display: none; }
  .nav a.item { min-height: 40px; padding: 0 10px; font-size: 14px; }
  .nav a.item svg { display: none; }
  .nav .foot { margin: 0 0 0 auto; padding: 0 6px; flex-direction: row; gap: 12px; }
  .main { padding: 16px; }
  h1 { font-size: 28px; }
}

/* Bausteine */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.eyebrow { font-size: 14px; color: var(--text-2); font-weight: 500; }
.card { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); }
.card.pad { padding: 18px 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 20px; border-top: 1px solid var(--linie-hell); }
a.row { color: var(--anthrazit); text-decoration: none; }
a.row:hover { background: #F7F7F5; color: var(--anthrazit); }
.grow { flex: 1 1 260px; min-width: 0; }
.muted { color: var(--text-2); font-size: 14px; }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.warn { color: var(--warn-text); font-weight: 700; }
.okc { color: var(--ok-text); font-weight: 700; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-2 { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-1 { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi .num { font-family: var(--font-head); font-size: 42px; font-weight: 700; line-height: 1.1; }
.kpi.dark { background: var(--anthrazit); border-color: var(--anthrazit); color: #fff; }
.kpi.dark .muted { color: #D6D6D6; }

.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-big { font-size: 15px; padding: 6px 14px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.k-offer { background: #EDEDED; color: #3A3A3A; }
.k-follow { background: #FFF1D6; color: #7A4B00; }
.k-invoice, .k-pay { background: #FBE2E2; color: #8E1B1B; }
.k-past { background: #E6E0FA; color: #4B2E9E; }
.k-staff { background: #DCEBFF; color: #0B4A9E; }

.datebox { width: 54px; flex: 0 0 54px; text-align: center; border: 1px solid var(--linie); border-radius: 8px; padding: 4px 0; background: #fff; }
.datebox .wd, .datebox .mo { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; }
.datebox .d { font-family: var(--font-head); font-size: 24px; font-weight: 700; line-height: 1; }

/* Buttons & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--rot); color: #fff; }
.btn:hover { background: var(--rot-dunkel); color: #fff; }
.btn.ghost { background: #fff; color: var(--anthrazit); border-color: #C9C9C4; }
.btn.ghost:hover { background: var(--grund); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.link { background: none; border: 0; color: var(--text-2); padding: 0 8px; text-decoration: underline; font-weight: 500; }
.btn.danger { background: #fff; color: var(--warn-text); border-color: #E3B4B4; }
form.inline { display: inline; }
label { font-size: 13px; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 4px; }
.label { font-size: 13px; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #C9C9C4; border-radius: 8px; font: inherit; background: #fff; color: var(--anthrazit);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #FFAE00; outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.form-grid .wide { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; background: #fff; }
legend { font-family: var(--font-head); font-size: 20px; font-weight: 700; padding: 0 6px; }
.hint { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }

.flash { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.flash.ok { background: #DDF3E6; color: #1D6B3E; }
.flash.error { background: #FBE2E2; color: #8E1B1B; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #C9C9C4; background: #fff; color: var(--anthrazit); text-decoration: none; font-weight: 600; font-size: 14px; }
.tab .n { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: #EDEDED; }
.tab.on { background: var(--anthrazit); color: #fff; border-color: var(--anthrazit); }
.tab.on .n { background: #fff; color: var(--anthrazit); }
.tab:hover { color: var(--anthrazit); }
.tab.on:hover { color: #fff; }

.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; min-width: 820px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--linie); }
table.list td { padding: 12px 16px; border-top: 1px solid var(--linie-hell); vertical-align: middle; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: #F7F7F5; }

.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid #C9C9C4; background: #fff; color: var(--anthrazit); font: inherit; font-weight: 600; cursor: pointer; }
.step .num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #EDEDED; }
.step.done { background: var(--anthrazit); border-color: var(--anthrazit); color: #fff; }
.step.done .num, .step.on .num { background: #fff; color: var(--anthrazit); }
.step.on { background: var(--rot); border-color: var(--rot); color: #fff; cursor: default; }
.step.lost { border-style: dashed; }

dl.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 22px; }
dl.facts dt { font-size: 13px; color: var(--text-2); font-weight: 600; }
dl.facts dd { margin: 2px 0 0; font-weight: 600; white-space: pre-line; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; gap: 12px; }
.timeline .dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--anthrazit); margin-top: 6px; }
.timeline .dot.note { background: var(--gelb); }
.bar { height: 8px; background: var(--linie-hell); border-radius: 4px; overflow: hidden; }
.bar > div { height: 8px; background: var(--anthrazit); border-radius: 4px; }

/* Kalender */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); }
.cal .dh { padding: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-2); border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: #FAFAF8; }
.cal .day { min-height: 110px; padding: 6px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: #fff; display: flex; flex-direction: column; gap: 4px; }
.cal .day.other { background: #F7F7F5; color: #9A9A95; }
.cal .day.today .dn { background: var(--rot); color: #fff; }
.cal .dn { font-size: 13px; font-weight: 700; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cal a.ev { display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) { .cal .day { min-height: 70px; } .cal a.ev { white-space: normal; } }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--anthrazit); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.login-card img { width: 220px; align-self: center; }
.copy { display: flex; gap: 8px; }
.copy input { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nächste Events: Datum | Text | Status | Personal, auf dem Handy zweizeilig */
.ev-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; align-items: center; gap: 6px 16px; }
@media (max-width: 640px) {
  .ev-row { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .ev-row .ev-text { grid-column: 2 / -1; }
  .ev-row .pill { grid-column: 2; justify-self: start; }
  .ev-row .ev-staff { grid-column: 3; }
}
@media (min-width: 1000px) { .wide-kpi { grid-column: span 2; } }

/* Mitarbeiter */
.cat { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.cat-A { background: var(--anthrazit); color: #fff; }
.cat-B { background: #BB0024; color: #fff; }
.cat-C { background: #FFAE00; color: #212121; }
.ans { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ans-yes { background: #E3F1E3; color: #004B00; }
.ans-no { background: #F6E1E5; color: #8A001B; }
.ans-asked { background: #FFF1D1; color: #5C3F00; }
.staff-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EDEDEA; flex-wrap: wrap; }
.staff-row .who { flex: 1 1 140px; min-width: 0; }
.staff-row form { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid #C9C9C4; border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 34px; color: var(--anthrazit); }
.seg button + button { border-left: 1px solid #C9C9C4; }
.seg button[aria-pressed="true"].yes { background: #007A00; color: #fff; }
.seg button[aria-pressed="true"].no { background: #BB0024; color: #fff; }
.seg button[aria-pressed="true"].asked { background: #FFAE00; color: #212121; }
.staff-group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin-top: 12px; }
