/* Tyka Logistik – Lagerverwaltung (Basis: LPD-Eventplanung) */
[hidden] { display: none !important; }
:root {
  --rot: #2E3192;
  --rot-dunkel: #22256F;
  --anthrazit: #212121;
  --gruen: #007A00;
  --gelb: #FFAE00;
  --grund: #F3F3F1;
  --karte: #FFFFFF;
  --linie: #E2E2DE;
  --linie-hell: #ECECE8;
  --text-2: #666666;
  --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(--rot); 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: #C9CAE6; 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: rgba(255,255,255,.12); color: #fff; }
.nav a.item.on { background: #fff; color: var(--rot); font-weight: 700; }
.nav .foot { margin-top: auto; padding: 20px 10px 0; font-size: 13px; color: #C9CAE6; 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], input[type=tel], 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(--rot); }
.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; }

/* Personalbogen prüfen: Bild neben dem Formular */
.bogen { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.bogen-img { margin: 0; padding: 10px; }
.bogen-img img { width: 100%; height: auto; display: block; border-radius: 6px; }
@media (min-width: 1000px) {
  .bogen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bogen-img { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
}

/* Personal planen */
.plan { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.plan-map-card { padding: 0; overflow: hidden; }
.plan-map { height: 55vh; min-height: 320px; background: #E9E9E4; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; align-items: center; }
.plan-legend span { display: inline-flex; gap: 6px; align-items: center; }
.dot-c { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; }
.ring-yes { background: #fff; border: 3px solid #007A00; box-shadow: none; }
.ring-asked { background: #fff; border: 3px solid #FF8A00; box-shadow: none; }
.ring-no { background: #fff; border: 3px solid #9A9A95; box-shadow: none; }
.plan-list { padding: 6px 16px 16px; }
.plan-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; }
.plan-filter .tab { cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.plan-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #EDEDEA; flex-wrap: wrap; }
.plan-row .who { flex: 1 1 180px; min-width: 0; }
.plan-row.is-no { opacity: .6; }
.plan-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.plan-actions .role-sel { min-height: 34px; padding: 4px 8px; width: auto; }
.plan-kpis { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.plan-pop { display: flex; flex-direction: column; gap: 4px; min-width: 200px; font-family: var(--font); }
.plan-pop .plan-actions { margin-top: 6px; }
.ev-pin span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid #BB0024; font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
@media (min-width: 1100px) {
  .plan { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .plan-map-card { position: sticky; top: 16px; }
  .plan-map { height: calc(100vh - 140px); }
}

.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid #E3E3DE; border-top-color: #007A00; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* Status direkt im Event-Kopf ändern */
.status-select { width: auto; min-height: 42px; padding: 6px 36px 6px 14px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background-color: #fff; border: 2px solid var(--anthrazit); cursor: pointer; }

/* Angebot */
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 1150px) { .offer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-h { font-size: 15px; margin: 14px 0 6px; }
.veh-row, .board-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; align-items: end; padding: 8px 0; border-top: 1px solid #EDEDEA; }
.veh-row label, .board-row label { font-size: 12px; }
.veh-btns { display: flex; gap: 4px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-table td { padding: 4px 0; border-bottom: 1px solid #F0F0EC; }
.calc-table td.num { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.calc-table tr.grp td { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding-top: 10px; border-bottom: 0; }
.calc-sum { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--anthrazit); }
.calc-sum > div:first-child { display: flex; justify-content: space-between; font-size: 17px; }
.calc-price input { font-size: 20px; font-weight: 700; max-width: 200px; }

/* Zusatzleistungen am Event */
.extra-row { display: grid; grid-template-columns: 4.2em 1fr auto auto auto; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--linie-hell); }
.extra-row:first-of-type { margin-top: 10px; }
.extra-row input.qty { text-align: right; padding-left: 6px; padding-right: 8px; }
.extra-row input.price { width: 6em; text-align: right; }
.extra-row .sum { min-width: 5.5em; text-align: right; font-weight: 700; }
.extra-row .del { padding: 0 10px; }
@media (max-width: 560px) {
  .extra-row { grid-template-columns: 6em 1fr auto; }
  .extra-row input.qty { width: 4.2em; }
  .extra-row .what { grid-column: 2 / -1; }
  .extra-row .sum { justify-self: end; }
}
.extra-total { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--linie-hell); margin-top: 6px; }
.extra-total.grand { border-top: 2px solid var(--anthrazit); font-weight: 700; padding-top: 10px; }
.extra-add { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* Einstellungen: Katalog Zusatzleistungen */
.xcat-h, .xcat-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 7em minmax(0, 1fr) 12em 3em; gap: 6px 8px; align-items: center; }
.xcat-h { font-size: 13px; font-weight: 700; color: var(--text-2); padding: 0 2px 4px; }
.xcat-row { padding: 10px 0; border-top: 1px solid var(--linie-hell); }
.xcat-row .desc { grid-column: 1 / -1; font-size: 14px; min-height: 36px; }
.xcat-row .num { text-align: right; }
.xcat-row .chk { display: flex; justify-content: center; margin: 0; }
.xcat-row.off input:not([type=checkbox]), .xcat-row.off select { color: var(--text-2); background: #F7F7F5; }
.xcat-row.new { border-top: 2px dashed var(--linie-hell); }
@media (max-width: 700px) {
  .xcat-h { display: none; }
  .xcat-row { grid-template-columns: 1fr 6.5em; }
  .xcat-row select { grid-column: 1; }
}

/* Rechnungen */
.linkbtn { background: none; border: 0; padding: 0; color: var(--rot, #BB0024); text-decoration: underline; cursor: pointer; font: inherit; }
.inv-sum { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.inv-sum > div { display: flex; flex-direction: column; }
.inv-sum strong { font-size: 18px; }
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 5em 7.5em 8em 7em 2.6em; gap: 6px 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--linie-hell); }
.inv-line-h { font-size: 13px; font-weight: 700; color: var(--text-2); border-top: 0; padding-bottom: 2px; }
.inv-line .desc { display: flex; flex-direction: column; gap: 4px; }
.inv-line .desc .sub { font-size: 14px; min-height: 36px; }
.inv-line .num { text-align: right; }
.inv-line .tot { text-align: right; font-weight: 700; padding-top: 12px; }
.inv-totals { margin: 16px 0 0 auto; max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.inv-totals > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inv-totals .grand { border-top: 2px solid var(--anthrazit); padding-top: 8px; font-weight: 700; }
@media (max-width: 760px) {
  .inv-line-h { display: none; }
  .inv-line { grid-template-columns: 3.6em minmax(0, 1fr) 5.6em 2.6em; }
  .inv-line .desc { grid-column: 1 / -1; }
  .inv-line .tot { grid-column: 1 / -1; grid-row: 3; text-align: right; padding-top: 0; }
  .inv-line .rm { grid-column: 4; grid-row: 2; }
  .inv-line .num, .inv-line input { padding-left: 8px; padding-right: 8px; }
}

/* Zahlungseingang */
.pay-box { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-left: 4px solid #FFAE00; background: #FFF8E6; border-radius: 8px; }
.pay-box.late { border-left-color: var(--rot, #BB0024); background: #FBEFF1; }
.pay-box.done { border-left-color: #007A00; background: #EAF5EA; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pay-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pay-form > div { display: flex; flex-direction: column; }
.pay-form input[name=amount] { width: 9em; text-align: right; }
.inv-row .amt { text-align: right; min-width: 7.5em; }
.kpi .num.warn { color: var(--rot, #BB0024); }

/* Update deutlich sichtbar */
.update-banner { border: 2px solid #007A00 !important; box-shadow: 0 4px 14px rgba(0, 122, 0, .15); }
.update-banner .strong { font-size: 17px; }
.btn.big-install { background: #007A00; min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn.big-install:hover { background: #006400; }

/* ---------- Mitarbeiterportal (Handy) ---------- */
body.ma { background: #F3F3F1; min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.ma-top { background: #212121; padding: 12px 16px calc(12px); padding-top: calc(12px + env(safe-area-inset-top)); display: flex; justify-content: center; }
.ma-top img { height: 34px; }
.ma-main { max-width: 560px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ma-h1 { font-size: 26px; margin: 4px 0 0; }
.ma-h2 { font-size: 18px; margin: 14px 0 4px; display: flex; align-items: center; gap: 8px; }
.ma-badge { background: #BB0024; color: #fff; border-radius: 999px; font-size: 13px; padding: 1px 9px; }
.ma-card { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.ma-card h1, .ma-card h2 { margin: 0; }
.ma-card h2 { font-size: 17px; }
.ma-hint { border-left: 4px solid #FFAE00; }
.ma-ev { display: flex; flex-direction: row; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.ma-ev .grow, .ma-row .grow { flex: 1; min-width: 0; }
.ma-date { width: 52px; flex: 0 0 52px; text-align: center; background: #212121; color: #fff; border-radius: 10px; padding: 6px 0; line-height: 1.05; }
.ma-date .d { display: block; font-size: 22px; font-weight: 700; }
.ma-date .m { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ma-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ma-yesno .strong { grid-column: 1 / -1; }
.ma-yesno .btn { min-height: 52px; font-size: 17px; }
.btn.yes { background: #007A00; border-color: #007A00; color: #fff; }
.btn.no { background: #fff; border: 2px solid #BB0024; color: #BB0024; }
.btn.big { min-height: 52px; font-size: 17px; width: 100%; }
.ma-form { display: flex; flex-direction: column; gap: 6px; }
.ma-form label { margin-top: 6px; }
.ma-form input, .ma-form select { min-height: 48px; font-size: 17px; }
.ma-form .btn { margin-top: 10px; }
.ma-form .check, .ma-iban .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: inherit; }
.ma-form .check input { min-height: 0; width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; }
.ma-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ma-iban { border: 1px solid #E2E2DE; border-radius: 12px; padding: 10px 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ma-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.ma-facts dt { color: #6B6B66; }
.ma-facts dd { margin: 0; font-weight: 600; }
.ma-meet { border-left: 4px solid #BB0024; }
.ma-meet .big { font-size: 19px; }
.ma-team { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #EFEFEC; }
.ma-team:first-of-type { border-top: 0; }
.ma-row { flex-direction: row; align-items: center; justify-content: space-between; }
.ma-text h2 { font-size: 16px; margin-top: 8px; }
.ma-text p { margin: 0; }
.pre { white-space: pre-line; }
.center { text-align: center; }
.ma-nav { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #E2E2DE; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
.ma-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 10px; font-size: 12px; text-align: center; color: #3A3A3A; text-decoration: none; }
.ma-nav a span { font-size: 22px; }
.ma-nav a.on { color: #BB0024; font-weight: 700; }
/* Büro: Treffpunkte */
.meet-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-top: 1px solid #EFEFEC; flex-wrap: wrap; }
.meet-assign { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meet-assign label { margin: 0; color: inherit; font-weight: 600; }
.meet-assign select { width: auto; max-width: 60%; min-height: 34px; padding: 4px 8px; }
.ma-iban legend { font-size: 16px; font-weight: 700; padding: 0 6px; }
/* Reisekosten */
.ma-leg { border-top: 1px solid #EFEFEC; padding-top: 10px; margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.ma-bill { border-left: 4px solid #FFAE00; }
.ma-assure { background: #FFF6E0; border-radius: 10px; padding: 10px; margin-top: 8px; }
.ma-form textarea { font-size: 16px; }
.tr-card { display: flex; flex-direction: column; gap: 10px; }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-flags { margin: 0; padding: 8px 12px 8px 28px; background: #FFF6E0; border-radius: 8px; color: #7A4B00; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tr-legs, .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tr-legs th, .tr-legs td, .tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #EFEFEC; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6B6B66; }
.tr-actions { display: flex; flex-direction: column; gap: 8px; }
.ma-two > div { min-width: 0; }
.ma-form input, .ma-form select, .ma-form textarea { width: 100%; box-sizing: border-box; }
.plan-search { padding: 0 0 8px; }
.plan-search input { width: 100%; min-height: 40px; }
/* Umschalter für Thomas/Sandy */
.ma-top:has(.ma-switch) { justify-content: space-between; align-items: center; }
.ma-top:has(.ma-switch)::after { content: ''; width: 110px; }
.ma-switch { width: 110px; white-space: nowrap; box-sizing: border-box; text-align: center; color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-size: 14px; text-decoration: none; }
.tr-money .tbl td.r, .tr-money .tbl th.r { text-align: right; }
.tr-money .tbl tr.sec td { background: #F3F3F1; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6B6B66; padding-top: 8px; }
.tr-money .tbl input { width: 110px; min-height: 34px; padding: 4px 8px; text-align: right; }
.tr-money .tbl input:disabled { background: transparent; border-color: transparent; color: inherit; font-weight: 600; }
.tr-money > input[name=pay_note] { width: 100%; max-width: 520px; min-height: 36px; }
.run-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid #EFEFEC; }
.run-form input { min-height: 40px; }
.tbl td { vertical-align: top; }

/* Buchhaltung: großer Upload-Knopf */
.upload-card { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; border: 2px dashed #E2E2DE; }
.upload-big { font-size: 18px; padding: 18px 22px; justify-content: center; text-align: center; cursor: pointer; }
.upload-how { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.upload-how label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Tyka Logistik ---- */
.brand { font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: 2px; color: #fff; text-decoration: none; padding: 0 10px; line-height: 1; }
.brand span, .brand-pos span { display: block; font-size: 13px; letter-spacing: 3px; font-weight: 600; color: #9DB9E3; text-transform: uppercase; margin-top: 4px; }
.brand-pos { font-family: var(--font-head); font-weight: 700; font-size: 40px; letter-spacing: 3px; color: var(--anthrazit); }
.brand-pos span { color: var(--rot); }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #FFAE00; color: #212121; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.grp { border-top: 1px solid var(--linie-hell); }
.grp:first-of-type { border-top: 0; }
.grp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 20px 6px; }
.grp-head .who { font-weight: 700; font-size: 17px; }
.ls { display: grid; grid-template-columns: 28px minmax(130px, 170px) 1fr auto; gap: 6px 14px; align-items: start; padding: 10px 20px; }
.ls + .ls { border-top: 1px dashed var(--linie-hell); }
.ls input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; }
.ls .pos { font-size: 14px; }
.ls .pos div + div { margin-top: 2px; }
.issue { display: inline-block; background: #FBE2E2; color: #8E1B1B; border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 600; margin: 2px 4px 0 0; }
.hint-chip { display: inline-block; background: #FFF1D6; color: #7A4B00; border-radius: 6px; padding: 2px 8px; font-size: 13px; margin: 2px 4px 0 0; }
.actionbar { position: sticky; bottom: 0; background: #fff; border-top: 2px solid var(--anthrazit); padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-radius: 0 0 var(--radius) var(--radius); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tr.low td { background: #FFF6E5; }
.tbl tr.muted td { color: var(--text-2); }
.kind-h td { background: var(--grund); font-weight: 700; font-family: var(--font-head); font-size: 17px; }
.mini { width: 90px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.drop { border: 2px dashed #B9C9E2; border-radius: var(--radius); padding: 18px; background: #F6F9FE; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 700px) { .ls { grid-template-columns: 28px 1fr; } .ls > :nth-child(3), .ls > :nth-child(4) { grid-column: 2; } }
.tbl input.mini, input.mini { width: 90px; min-width: 70px; }
.tbl td input[type=text]:not(.mini) { min-width: 160px; }
@media (max-width: 700px) { .actionbar { position: static; } }

/* Logo Tyka Logistik GmbH: Blau #2E3192, Grau #666666 */
.nav .logo { display: block; width: 176px; margin: 0 8px 4px; }
.nav a.item.on svg { stroke: var(--rot); }
.login-card .logo-pos { width: 240px; max-width: 100%; align-self: center; }
.kpi.dark { background: var(--rot); border-color: var(--rot); }
.kpi.dark .muted { color: #D9DAF0; }
.tab.on { background: var(--rot); border-color: var(--rot); }
.kind-h td { color: var(--rot); }
@media (max-width: 800px) { .nav .logo { width: 110px; } }

/* Drag & Drop beim Hochladen */
.drop { position: relative; transition: background .15s, border-color .15s; }
.drop .drop-icon { color: var(--blau, #2E3192); display: none; }
.drop.js .drop-icon { display: block; }
.drop .file-btn { position: relative; overflow: hidden; cursor: pointer; }
.drop .file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:not(.js) .file-btn { overflow: visible; }
.drop:not(.js) .file-btn input { position: static; opacity: 1; }
.drop.js .nojs { display: none; }
.drop.over { border-color: #2E3192; background: #E6E8F7; }
.drop.over .drop-title::after { content: " – jetzt loslassen"; color: #2E3192; }
.up-list { list-style: none; margin: 0; padding: 0; flex-basis: 100%; display: none; }
.drop.has-list .up-list { display: block; }
.up-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 2px; border-top: 1px solid #DCE4F1; font-size: 14px; }
.up-list .i { width: 18px; text-align: center; font-weight: 700; flex: none; }
.up-list .ok .i { color: #007A00; }
.up-list .pruefen .i { color: #B26B00; }
.up-list .doppelt .i, .up-list .doppelt .t { color: #777; }
.up-list .fehler .i { color: #C00000; }
.up-list .wait .t { color: #555; }
.up-list .spin { animation: up-pulse 1s ease-in-out infinite; }
@keyframes up-pulse { 50% { opacity: .3; } }
.up-list .up-sum { font-size: 14px; padding-top: 8px; }
.linkbtn { background: none; border: 0; color: #2E3192; text-decoration: underline; cursor: pointer; font: inherit; padding: 0 4px; }
.drop-title .mt { display: none; }
.drop:not(.js) .drop-title .dt { display: none; }
.drop:not(.js) .drop-title .mt { display: inline; }
@media (max-width: 700px), (pointer: coarse) { .drop-title .dt { display: none; } .drop-title .mt { display: inline; } .drop.js .drop-icon { display: none; } }
