@charset "UTF-8";
/* Fahrdienst Jacob Portal – Farben wie fahrdienst-jacob.de. Keine externen Schriften (Datenschutz). */
:root {
  --lime: #AECB3E; --purple: #393185; --on-lime: #2E2872;
  --bg: #F3F5EC; --surface: #FFFFFF; --surface-2: #F4F6EC;
  --ink: #2F2F3A; --muted: #5E5F6E; --line: #DCE0CC;
  --sel-soft: #E9E7F6; --lime-soft: #EEF4D4; --lime-ink: #4B5A12;
  --danger: #B3372C; --danger-soft: #F8E3E0;
  --font: Ubuntu, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); }
a { color: var(--purple); }
h1, h2 { color: var(--purple); line-height: 1.2; margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
code, .mono { font-family: Consolas, "Ubuntu Mono", monospace; }
.muted { color: var(--muted); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

.topbar { background: var(--lime); padding: 12px 16px; }
.topbar-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { color: #fff; text-decoration: none; font-size: 22px; letter-spacing: -.01em; }
.logo b { font-weight: 700; }
.logo span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--on-lime); margin-left: 8px; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a, .nav .linkbtn { color: var(--on-lime); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 5px; font-size: 15px; }
.nav a[aria-current="page"] { background: var(--purple); color: #fff; }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; cursor: pointer; font: inherit; }

.main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 16px; }
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 5px; padding: 18px; }
.card.narrow { max-width: 440px; width: 100%; margin: 24px auto; }
.card.narrow h1 { margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; gap: 8px; }
.form label { font-weight: 500; margin-top: 4px; }
input[type=text], input[type=password], input[type=search], input[type=time], textarea {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 5px;
  background: var(--surface); color: var(--ink); font: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--sel-soft); }
.btn { min-height: 44px; padding: 0 16px; border-radius: 5px; border: 1.5px solid transparent; font: inherit; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer; margin-top: 6px; }
.btn.primary { background: var(--lime); color: var(--on-lime); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--purple); }
.btn.danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn:hover { filter: brightness(1.04); }

.flash { padding: 10px 14px; border-radius: 5px; border-left: 5px solid var(--lime); background: var(--lime-soft); color: var(--lime-ink); }
.flash-error { border-left-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.flash-info { border-left-color: var(--purple); background: var(--sel-soft); color: var(--purple); }

.search { display: flex; gap: 8px; align-items: center; }
.search input { min-width: 260px; }
.search .btn { margin-top: 0; }
@media (max-width: 600px) { .search { width: 100%; } .search input { min-width: 0; flex: 1; } }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { color: var(--purple); border-bottom-color: var(--lime); }
.count { font-family: Consolas, monospace; font-size: 13px; background: var(--surface-2); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }

.tablewrap { overflow-x: auto; background: var(--surface); border: 1.5px solid var(--line); border-radius: 5px; }
table.list { width: 100%; border-collapse: collapse; min-width: 760px; }
.list th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.list tbody tr:hover { background: var(--surface-2); }
.list .when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.list .when b { font-size: 18px; color: var(--purple); }
.list .route { font-size: 14px; }
.tag { font-size: 12px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); white-space: nowrap; }
.empty { color: var(--muted); padding: 24px 0; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.pill-angefragt { background: var(--lime-soft); color: var(--lime-ink); }
.pill-bestaetigt { background: var(--sel-soft); color: var(--purple); }
.pill-abgelehnt, .pill-storniert { background: var(--danger-soft); color: var(--danger); }

.details { margin: 0; }
.details div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.details div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 500px) { .details div { grid-template-columns: 1fr; gap: 2px; } }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
