:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --ink: #1b2733;
  --muted: #5a6675;
  --line: #e6eaef;
  --blue: #3b82d6;
  --blue-hover: #2c63b0;
  --blue-deep: #1b5fb8;
  --green: #1d6e48;
  --green-bright: #2f9e6a;
  --warn: #a5641a;
  --amber: #d98a2b;
  --danger: #c25450;
  --danger-ink: #9a3b38;
  --dark: #142029;
  --font: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
body.layout-landing {
  background: linear-gradient(160deg, #e8f0f7 0%, #d4e4f2 40%, #c8dbe8 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
body.layout-admin { background: var(--bg); overflow: hidden; height: 100vh; }
body.layout-login {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); }
.wrap { max-width: 960px; margin: 0 auto; padding: 28px 20px 60px; }
.wrap-narrow { max-width: 480px; margin: 0 auto; padding: 32px 20px; width: 100%; }

/* Fixed env badge like Kühlwagen */
.env-badge {
  position: fixed; bottom: 12px; right: 12px; z-index: 2147483647;
  background: #c0392b; color: #fff;
  font: 700 11px/1 system-ui, -apple-system, sans-serif;
  letter-spacing: 1.5px; padding: 7px 11px; border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0,0,0,.3); pointer-events: none; user-select: none;
}

/* —— Public booking header —— */
.bq-header {
  background: var(--dark); padding: 16px 24px;
  display: flex; align-items: center; gap: 16px;
}
.bq-header img { height: 36px; width: auto; display: block; flex-shrink: 0; }
.bq-header .sep { width: 1px; height: 32px; background: #2a3d4d; flex-shrink: 0; }
.bq-header .t { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.bq-header .s { font-size: 12px; color: #7d8a97; }
.bq-header a.back {
  margin-left: auto; color: #9aa6b2; font-size: 13px; font-weight: 600; text-decoration: none;
}
.bq-header a.back:hover { color: #fff; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* —— Landing —— */
.landing-brand { text-align: center; margin-bottom: 40px; animation: fadeUp .5s ease; }
.landing-brand img {
  height: 52px; width: auto; display: block;
  margin: 0 auto 20px;
}
.landing-eyebrow {
  font-size: 13px; font-weight: 600; color: #5a7a9a;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.landing-brand h1 {
  margin: 0; font-size: 26px; font-weight: 800;
  color: var(--dark); letter-spacing: -.5px;
}
.landing-stack {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeUp .5s ease .05s both;
}
.landing-link {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid #c8dbe8; border-radius: 16px;
  padding: 22px 24px; text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(59, 130, 214, .08);
  transition: border-color .15s, box-shadow .15s;
}
.landing-link:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(59, 130, 214, .15);
}
.landing-link.admin:hover {
  border-color: var(--green-bright);
  box-shadow: 0 4px 20px rgba(47, 158, 106, .15);
}
.landing-ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--blue);
}
.landing-link.admin .landing-ico { background: var(--green-bright); }
.landing-link .t { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.landing-link .s { font-size: 13px; color: #6a8a9a; }
.landing-link .chev { margin-left: auto; color: var(--blue); flex-shrink: 0; }
.landing-link.admin .chev { color: var(--green-bright); }
.foot-landing { margin-top: 32px; color: #8a9aaa; font-size: 12px; text-align: center; }

/* —— Intro / cards —— */
.intro-bar {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
  animation: fadeIn .35s ease;
}
.intro-bar .ico {
  width: 36px; height: 36px; border-radius: 10px; background: #e9f1fb;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.intro-bar p { margin: 0; font-size: 13.5px; color: #3a4854; line-height: 1.6; }
.intro-bar strong { color: var(--dark); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  animation: fadeIn .35s ease;
}
.card.form-card { padding: 28px; }
.card-title { font-size: 17px; font-weight: 800; color: var(--dark); margin: 0 0 4px; }
.card-sub { font-size: 13px; color: #8a96a3; margin: 0 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff !important; border: none;
  border-radius: 11px; padding: 13px 28px;
  font-weight: 700; font-size: 14.5px; font-family: inherit;
  cursor: pointer; text-decoration: none !important; transition: background .12s;
}
.btn:hover { background: var(--blue-hover); }
.btn.green { background: var(--green-bright); }
.btn.green:hover { background: #228a56; }
.btn.warn { background: var(--danger); }
.btn.warn:hover { background: #b03c39; }
.btn.ghost {
  background: #f6f8fb; color: #3a4854 !important; border: 1px solid var(--line);
  padding: 9px 14px; font-size: 13px; border-radius: 10px;
}
.btn.ghost:hover { background: #eef2f7; }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }

.flash {
  border-radius: 9px; padding: 11px 14px; margin-bottom: 16px;
  font-size: 13px; font-weight: 500; border: 1px solid transparent;
}
.flash.warn, .flash.err {
  background: #fbecec; border-color: #e8bcbb; color: var(--danger-ink);
}
.flash.ok { background: #e7f5ee; border-color: #b8dfcb; color: var(--green); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1000; max-width: min(420px, calc(100% - 32px));
  padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 28px rgba(20, 32, 41, .18);
  animation: toastIn .35s ease; pointer-events: none;
}
.toast.ok { background: var(--dark); color: #fff; }
.toast.warn { background: #fff7e8; color: var(--warn); border: 1px solid #f0d9a8; }

label.field {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px;
}
label.field .opt { color: #b0b8c4; font-weight: 400; }
input, textarea, select {
  width: 100%; padding: 11px 13px; border: 1.5px solid #d7dde4; border-radius: 10px;
  font: inherit; font-size: 14px; color: var(--ink); background: #fff;
  transition: border-color .12s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue);
}
textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span2 { grid-column: span 2; }
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
}
.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 16px; cursor: pointer;
}
.check input {
  width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--blue); cursor: pointer;
}
.check a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid #f0f2f5;
}
.form-foot .hint { font-size: 12px; color: #9aa6b2; }

/* —— Calendar (Kacheln wie Kühlwagen-Buchungsseite) —— */
.cal-toolbar {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.cal-toolbar h2 {
  margin: 0; font-size: 16px; font-weight: 700; color: var(--dark);
  min-width: 160px; text-align: center;
}
.cal-toolbar .nav-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: #f6f8fb; cursor: pointer; font-size: 18px; color: #3a4854;
  display: flex; align-items: center; justify-content: center; line-height: 1; font-family: inherit;
}
.cal-toolbar .nav-btn:hover { background: #eef2f7; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow {
  text-align: center; font-size: 11px; font-weight: 700; color: #9aa6b2; padding: 4px 2px;
}
.cal-dow.wknd { font-weight: 600; color: #b0b8c4; }

/* Flächige Kacheln: Rahmen nur bei Heute, nicht dauerhaft grün umrandet */
.cal-day {
  text-align: center; padding: 7px 2px; border-radius: 9px; font-size: 13.5px;
  font-weight: 500; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  background: #f0f9f4; color: #1d6e48;
  transition: filter .1s;
  font-family: inherit;
  appearance: none; -webkit-appearance: none;
}
.cal-day.empty {
  background: transparent; border: none; cursor: default; min-height: 36px;
  pointer-events: none;
}
.cal-day.past {
  background: #f6f8fb; color: #c8d0d8; opacity: .45;
  cursor: not-allowed; border-color: transparent;
}
.cal-day.booked {
  background: #fbecec; color: #c25450; border-color: transparent; cursor: not-allowed;
}
.cal-day.requested {
  background: #fdf3e6; color: #d98a2b; border-color: transparent; cursor: not-allowed;
}
.cal-day.today:not(.sel-start):not(.sel-end):not(.sel-both):not(.in-range) {
  border: 2px solid #3b82d6;
}
.cal-day.in-range {
  background: #e9f1fb; color: #1b5fb8; border-color: transparent; font-weight: 500;
}
.cal-day.sel-start,
.cal-day.sel-end,
.cal-day.sel-both {
  background: #3b82d6; color: #fff; border-color: transparent; font-weight: 700;
  box-shadow: none;
}
.cal-day:not(.empty):not(.past):not(.booked):not(.requested):not(.sel-start):not(.sel-end):not(.sel-both):hover {
  filter: brightness(.94);
}

.cal-legend {
  display: flex; align-items: center; gap: 18px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid #f0f2f5; flex-wrap: wrap; font-size: 12px; color: #5a6675;
}
.leg {
  width: 14px; height: 14px; border-radius: 4px; display: inline-block;
  margin-right: 6px; vertical-align: middle; border: 1px solid transparent;
}
.leg.free { background: #f0f9f4; border-color: #b8dfcb; }
.leg.booked { background: #fbecec; border-color: #e8bcbb; }
.leg.requested { background: #fdf3e6; border-color: #f5c49a; }
.leg.selected { background: #3b82d6; }
.leg.range { background: #e9f1fb; border-color: #c8d9f0; }

.cal-sync {
  margin-top: 12px; font-size: 12px; color: #9aa6b2; min-height: 1.2em; text-align: center;
}

.sel-strip {
  display: none; background: #e9f1fb;
  border: 1px solid #c8d9f0; border-radius: 12px;
  padding: 13px 18px; margin-bottom: 20px;
  align-items: center; justify-content: space-between; gap: 14px;
  animation: fadeIn .2s;
}
.sel-strip.show { display: flex; }
.sel-strip .sel-main { display: flex; align-items: center; gap: 12px; }
.sel-strip .sel-label { font-size: 14px; font-weight: 700; color: var(--blue-deep); }
.sel-strip .sel-hint { font-size: 12px; color: #4a7ab8; margin-top: 1px; }
.sel-strip .reset-btn {
  background: rgba(59,130,214,.15); border: none; border-radius: 8px;
  padding: 6px 12px; font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--blue-deep); cursor: pointer;
}
.sel-strip .reset-btn:hover { background: #d8e8f8; }

.conflict {
  display: none; background: #fbecec; border: 1px solid #e8bcbb; border-radius: 9px;
  padding: 11px 14px; margin-top: 16px; font-size: 13px; color: var(--danger-ink); font-weight: 500;
}
.conflict.show { display: block; }

.success-wrap {
  max-width: 560px; margin: 60px auto; padding: 0 20px; text-align: center;
  animation: fadeIn .4s;
}
.success-ico {
  width: 72px; height: 72px; border-radius: 50%; background: #e7f5ee;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 36px; color: var(--green-bright);
}
.success-wrap h1 { font-size: 24px; font-weight: 800; color: var(--dark); margin: 0 0 12px; }
.success-wrap > p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 28px; }
.success-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; text-align: left;
}
.success-card .cap {
  font-size: 11px; font-weight: 700; color: #8a96a3;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px;
}
.success-card .k { font-size: 11px; color: #9aa6b2; margin-bottom: 2px; }
.success-card .v { font-size: 14px; font-weight: 700; color: var(--ink); }
.success-card .v.mono { font-family: var(--mono); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* —— Admin login (centered card) —— */
.login-screen { width: 100%; max-width: 400px; padding: 24px 20px; }
.login-screen .logo-row {
  text-align: center; margin-bottom: 28px;
}
.login-screen .logo-row img { height: 44px; width: auto; margin: 0 auto 14px; display: block; }
.login-screen h1 {
  margin: 0; font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -.3px;
}
.login-screen .sub { font-size: 13px; color: #7a8794; margin-top: 6px; }
.login-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px; box-shadow: 0 4px 24px rgba(20,32,41,.06);
}
.login-card label.field { margin-top: 14px; }
.login-card label.field:first-of-type { margin-top: 0; }
.login-hint { margin-top: 16px; font-size: 12px; color: #9aa6b2; text-align: center; }

/* —— Admin shell —— */
.admin-app {
  display: flex; height: 100vh; width: 100%; overflow: hidden;
}
.admin-side {
  width: 248px; flex-shrink: 0; background: var(--dark);
  display: flex; flex-direction: column; padding: 18px 14px; color: #cdd6df;
}
.side-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 8px 20px; text-decoration: none; color: inherit;
}
.side-brand:hover { text-decoration: none; opacity: .95; }
.side-brand img { height: 36px; width: auto; display: block; flex-shrink: 0; }
.side-brand .name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.side-brand .role { font-size: 11px; color: #7d8a97; font-weight: 500; }
.admin-side nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 11px; border: none; border-radius: 10px;
  background: transparent; color: #cdd6df; cursor: pointer;
  text-align: left; font-family: inherit; font-size: 14px; font-weight: 600;
  text-decoration: none !important; transition: background .12s;
}
.side-link:hover { filter: brightness(1.12); background: rgba(255,255,255,.04); text-decoration: none !important; color: #fff; }
.side-link.active { background: rgba(59,130,214,.22); color: #fff; }
.side-link .badge {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  background: var(--amber); color: #fff; padding: 1px 7px; border-radius: 20px;
}
.side-divider { height: 1px; background: #1e2e3b; margin: 6px 8px; }
.side-vehicle {
  margin-top: auto; background: #1b2a36; border-radius: 13px; padding: 12px 14px;
}
.side-vehicle .cap {
  font-size: 10.5px; font-weight: 600; color: #7d8a97;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 7px;
}
.side-vehicle .vn { font-size: 13px; font-weight: 700; color: #eaeff4; }
.side-vehicle .meta { font-family: var(--mono); font-size: 11px; color: #8b97a3; margin-top: 1px; }
.side-logout {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid #1e2e3b;
}
.side-logout a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border-radius: 9px; color: #6a7885; font-size: 13px; font-weight: 600;
  text-decoration: none !important;
}
.side-logout a:hover { background: #1b2a36; color: #cdd6df; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-top {
  height: 70px; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 0 24px; gap: 12px;
}
.admin-top .titles h1 {
  margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.3px;
}
.admin-top .titles .sub { font-size: 12.5px; color: #7a8794; margin-top: 1px; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-actions .today-box { text-align: right; margin-right: 4px; }
.admin-actions .today-box .k { font-size: 11px; color: #8a96a3; font-weight: 500; }
.admin-actions .today-box .v { font-family: var(--mono); font-size: 13px; color: #3a4854; }
.btn-csv {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f0f5fc; color: #1b5fb8; border: 1px solid #c8d9f0;
  border-radius: 10px; padding: 9px 13px; font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none !important;
}
.btn-csv:hover { background: #e9f1fb; text-decoration: none !important; }
.admin-body {
  flex: 1; overflow: auto; padding: 24px 28px 60px;
}
.admin-side nav { overflow-y: auto; flex: 1; min-height: 0; }

/* Dashboard tiles */
.dash { max-width: 1180px; }
.dash-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 18px;
}
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.tile .cap {
  font-size: 11.5px; font-weight: 600; color: #8a96a3;
  text-transform: uppercase; letter-spacing: .5px;
}
.tile .big {
  font-family: var(--mono); font-size: 30px; font-weight: 500;
  margin-top: 8px; color: var(--ink); line-height: 1.1;
}
.tile .big span { font-size: 18px; color: #9aa6b2; }
.tile .big-text {
  font-size: 21px; font-weight: 700; margin-top: 8px;
}
.tile .note { font-size: 12px; margin-top: 8px; font-weight: 600; }
.tile .note.green { color: var(--green-bright); }
.tile .note.amber { color: var(--amber); }
.tile .note.muted { color: #7a8794; font-weight: 500; }
.tile .bar {
  height: 6px; background: #eef2f6; border-radius: 4px; margin-top: 10px; overflow: hidden;
}
.tile .bar > i { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.dash-split {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px;
}
@media (max-width: 900px) { .dash-split { grid-template-columns: 1fr; } }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.panel-head a { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; }
.handover-row {
  display: flex; align-items: center; gap: 13px; padding: 11px 8px;
  border-radius: 10px; text-decoration: none !important; color: inherit;
}
.handover-row:hover { background: #f6f8fb; }
.handover-date {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; background: #e9f1fb;
}
.handover-date .dd { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--blue-deep); line-height: 1; }
.handover-date .mon { font-size: 9px; color: var(--blue-deep); text-transform: uppercase; font-weight: 600; }
.handover-row .who { font-size: 13.5px; font-weight: 600; }
.handover-row .what { font-size: 12px; color: #8a96a3; }
.tag-pill {
  font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 20px;
  background: #e9f1fb; color: var(--blue-deep); margin-left: auto; flex-shrink: 0;
}
.tag-pill.out { background: #e7f5ee; color: var(--green); }
.tag-pill.in { background: #fdf3e6; color: #8a5a16; }
.anf-kachel {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  text-decoration: none !important; color: inherit; display: block;
  transition: border-color .15s, box-shadow .15s; cursor: pointer;
}
.anf-kachel:hover {
  border-color: var(--blue); box-shadow: 0 2px 12px rgba(59,130,214,.1); text-decoration: none !important;
}
.anf-kachel.hot { border-color: #f5c49a; }
.anf-kachel .row {
  display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid #f0f2f5;
}
.anf-kachel .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.einsatz {
  background: linear-gradient(155deg, #1f5fb0, #2c74cf); border-radius: 14px;
  padding: 20px; color: #fff;
}
.einsatz .cap { font-size: 12px; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }
.einsatz .who { font-size: 19px; font-weight: 700; margin-top: 7px; }
.einsatz .note { font-size: 13px; opacity: .9; margin-top: 3px; }
.empty-hint { text-align: center; padding: 26px; color: #9aa6b2; font-size: 13px; }
.coming {
  background: #fff; border: 1px dashed #d7dde4; border-radius: 14px; padding: 40px 28px; text-align: center;
}
.coming h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--dark); }
.coming p { margin: 0; color: #8a96a3; font-size: 14px; line-height: 1.55; max-width: 420px; margin-inline: auto; }
.kunden-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.kunde-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.kunde-card .name { font-size: 15px; font-weight: 700; }
.kunde-card .meta { font-size: 12.5px; color: #8a96a3; margin-top: 4px; }
.kunde-card a.mini {
  display: inline-block; margin-top: 10px; background: #f0f2f5; border-radius: 9px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: #1b5fb8; text-decoration: none;
}
.kunde-card a.mini:hover { background: #e9f1fb; }
.bel-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; max-width: 1100px; }
.bel-seg { display: flex; background: #f0f2f5; border-radius: 10px; padding: 3px; gap: 2px; }
.bel-seg a {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none !important; color: #5a6675;
}
.bel-seg a.active { background: #fff; color: var(--dark); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.bel-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bel-nav a {
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: #3a4854; text-decoration: none !important;
}
.bel-nav a:hover { background: #eef2f7; }
.bel-nav a.bel-today { margin-left: auto; color: #3b82d6; font-size: 12.5px; }
.bel-title { font-size: 15px; font-weight: 700; margin: 0 4px; color: var(--dark); min-width: 0; text-align: center; }

/* Belegung Monat — Kühlwagen-Raster mit Chips */
.bel-month-wrap {
  max-width: 1100px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
}
.bel-month-label { font-size: 13px; font-weight: 700; color: #3a4854; margin-bottom: 8px; }
.bel-dows {
  display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px;
}
.bel-dow { font-size: 10px; font-weight: 600; color: #8a96a3; padding: 0 5px; }
.bel-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 78px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.bel-cell {
  padding: 5px 6px; background: #fff; overflow: hidden;
  border-right: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; min-height: 0;
}
.bel-cell:nth-child(7n) { border-right: none; }
.bel-cell.out { background: #fafbfc; }
.bel-daynum {
  font-family: var(--mono); font-size: 11px; font-weight: 400; color: #9aa6b2;
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.bel-daynum.today { font-weight: 700; color: #fff; background: #3b82d6; }
.bel-chips { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; }
.bel-chip {
  display: block; cursor: pointer; font-size: 10px; line-height: 15px; padding: 1px 5px;
  border-radius: 3px; border-left: 3px solid; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-weight: 600; text-decoration: none !important;
}
.bel-chip:hover { filter: brightness(.97); }
.bel-more { font-size: 10px; color: #9aa6b2; padding-left: 3px; }
.bel-heute-pill {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  background: #3b82d6; color: #fff;
}
.bel-day-panel { margin-bottom: 12px; overflow: hidden; }
.bel-day-panel .panel-head { gap: 12px; }
.bel-bar {
  width: 4px; height: 36px; border-radius: 4px; flex-shrink: 0; background: #3b82d6;
}
.bel-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 720px) {
  .bel-grid { grid-auto-rows: 64px; }
  .bel-month-wrap { padding: 14px; }
  .bel-chip { font-size: 9px; padding: 1px 3px; }
}
.stammdaten-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; }
@media (max-width: 720px) { .stammdaten-grid { grid-template-columns: 1fr; } }

/* Request cards like Kühlwagen */
.req-grid { display: flex; flex-direction: column; gap: 14px; }
.req-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.req-card .head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.req-card .name { font-size: 16px; font-weight: 700; color: var(--dark); }
.req-card .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.req-card .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px;
}
@media (max-width: 720px) { .req-card .grid { grid-template-columns: 1fr; } }
.req-card .k { font-size: 11px; color: #9aa6b2; margin-bottom: 2px; }
.req-card .v { font-size: 14px; font-weight: 600; color: var(--ink); }
.req-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.req-actions .btn { flex: 1; min-width: 140px; }
.reject-box {
  display: none; margin-top: 12px; padding: 12px;
  background: #fafbfc; border: 1px solid var(--line); border-radius: 10px;
}
.reject-box.open { display: block; }

table.data {
  width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
table.data th, table.data td {
  padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
table.data th {
  background: #f6f8fb; color: #7a8794; font-size: 11px;
  text-transform: uppercase; letter-spacing: .4px; font-weight: 700;
}
table.data tr:last-child td { border-bottom: none; }
.badge-pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.badge-pill.laufend { background: #e7f5ee; color: var(--green); }
.badge-pill.abgeschlossen { background: #f0f2f5; color: #5a6675; }
.badge-pill.bestätigt { background: #e9f1fb; color: #1b5fb8; }

.muted { color: var(--muted); font-size: 13px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.chip {
  padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; text-decoration: none !important;
  background: #fff; color: #5a6675; border: 1px solid var(--line);
}
.chip.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip:hover { text-decoration: none !important; }

.bel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; border-bottom: 1px solid #f0f2f5; text-decoration: none !important; color: inherit;
  transition: background .12s;
}
.bel-row:last-child { border-bottom: none; }
.bel-row.booked:hover { background: #f6f8fb; }
.bel-row.requested { background: #fffaf3; }
.bel-row.requested:hover { background: #fdf3e6; }
.bel-row.empty { font-size: 12.5px; color: #c8d0d8; font-style: italic; padding: 14px 20px; }
.bel-row .mono { font-size: 12px; color: #8a96a3; }
.bel-row strong { font-size: 13.5px; font-weight: 600; color: var(--dark); }
.year-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.year-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  text-decoration: none !important; color: inherit; display: block;
}
.year-card:hover { border-color: #c8d9f0; }
.yc-title { font-weight: 700; font-size: 15px; }
.yc-meta { font-size: 12.5px; color: #8a96a3; margin: 6px 0 10px; }
.yc-bar { height: 8px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.yc-bar span { display: block; height: 100%; background: #3b82d6; border-radius: 99px; }
.yc-pct { font-size: 11.5px; color: #7a8794; margin-top: 8px; }

table.data tr.click-row { cursor: pointer; }
table.data tr.click-row:hover td { background: #f7fafc; }
table.data tr.click-row.is-open td { background: #e9f1fb; }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(20,32,41,.45); z-index: 60;
  display: flex; justify-content: flex-end;
}
.drawer {
  width: min(440px, 100%); height: 100%; background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.12);
  display: flex; flex-direction: column; animation: fadeIn .2s;
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 4px 0 0; font-size: 18px; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 10px; background: #f0f2f5; color: #3a4854;
  display: flex; align-items: center; justify-content: center; text-decoration: none !important; font-size: 16px;
}
.drawer-body { padding: 18px 20px 40px; overflow: auto; flex: 1; }
.drawer-body .grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 8px;
}
.drawer-body .k { font-size: 11px; color: #9aa6b2; margin-bottom: 2px; }
.drawer-body .v { font-size: 14px; font-weight: 600; }
.drawer-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f2f5; }
.drawer-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mail-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mail-chip {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 9px;
  background: #f0f5fc; color: #1b5fb8; font-size: 13px; font-weight: 600; text-decoration: none !important;
}
.mail-chip.warn { background: #fff7f0; color: #9a3b38; }
.extra-line {
  display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px;
}
.extra-line span:first-child { flex: 1; }

@media (max-width: 800px) {
  body.layout-admin { height: auto; overflow: auto; }
  .admin-app { flex-direction: column; height: auto; min-height: 100vh; }
  .admin-side { width: 100%; }
  .side-vehicle { display: none; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .drawer { width: 100%; }
}
