/* Corporate Design Transport-Express J. Grünhäuser (www.te-jg.de) */
:root {
  --orange: #F5680E;
  --orange-dark: #EC430F;
  --dark: #252525;
  --gray: #666;
  --light: #f5f5f5;
  --border: #ddd;
  --green: #1a7a2e;
  --red: #c11c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: var(--light);
  min-height: 100vh;
}

/* Kopfzeile: obere Leiste mit Logo, darunter die Navigations-Buttons.
   Weisser Grund, weil das Firmenlogo dunkel gesetzt ist. */
.topbar {
  background: #fff;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.topbar .logo img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 62vw;
}
.topbar .kopf-titel {
  font-size: 0.78rem;
  color: var(--gray);
  text-align: right;
  line-height: 1.25;
}

.accent-bar { height: 4px; background: var(--orange); }

/* Navigationsleiste mit echten Buttons */
.navbar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.navbar a {
  flex: 1 1 auto;
  min-width: 110px;
  text-align: center;
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.navbar a:hover { border-color: var(--orange); color: var(--orange-dark); }
.navbar a.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.navbar a.abmelden { color: var(--gray); font-weight: 500; }
.navbar a.abmelden:hover { border-color: var(--red); color: var(--red); }

@media (min-width: 700px) {
  .navbar a { flex: 0 0 auto; min-width: 0; }
}

main { max-width: 640px; margin: 0 auto; padding: 1rem; padding-bottom: 4rem; }

h1 { font-size: 1.35rem; margin: 0.8rem 0 0.2rem; }
h2 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
.subtitle { color: var(--gray); font-size: 0.85rem; margin-bottom: 1rem; }

.card {
  background: #fff; border-radius: 10px; padding: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 1rem;
}

label { display: block; font-size: 0.85rem; color: var(--gray); margin: 0.7rem 0 0.25rem; }
input, select, textarea {
  width: 100%; padding: 0.65rem 0.7rem; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }

.btn {
  display: inline-block; width: 100%; text-align: center;
  background: var(--orange); color: #fff; border: none; cursor: pointer;
  font-size: 1.05rem; font-weight: 600; padding: 0.8rem 1rem;
  border-radius: 8px; margin-top: 1rem; text-decoration: none;
}
.btn:hover { background: var(--orange-dark); }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--dark); border: 1px solid var(--border); }
.btn.secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn.small { width: auto; font-size: 0.85rem; padding: 0.45rem 0.8rem; margin-top: 0; }
.btn.danger { background: var(--red); }

.error-msg { color: var(--red); font-size: 0.9rem; margin-top: 0.6rem; min-height: 1.2em; }
.success-msg { color: var(--green); font-size: 0.9rem; margin-top: 0.6rem; }

.center-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 1rem;
}
.center-page .card { width: 100%; max-width: 400px; }
/* Logo-Kopf auf den Anmeldeseiten */
.logo-block {
  text-align: center;
  margin-bottom: 1.2rem;
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 4px solid var(--orange);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.logo-block img { width: 100%; max-width: 260px; height: auto; display: inline-block; }
.logo-block p { color: var(--gray); font-size: 0.88rem; margin-top: 0.6rem; }

/* Checklisten-Assistent */
.progress { display: flex; gap: 4px; margin: 0.8rem 0; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--border); }
.progress i.done { background: var(--orange); }

.check-item {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.8rem; margin-bottom: 0.7rem;
}
.check-item .label { font-weight: 600; font-size: 0.98rem; }
.check-item .hint { color: var(--gray); font-size: 0.8rem; margin-top: 0.15rem; }
.choice-row { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.choice-row button {
  flex: 1; padding: 0.6rem; font-size: 0.95rem; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff;
  cursor: pointer; color: var(--dark); font-family: inherit;
}
.choice-row button.sel-ok { background: var(--green); border-color: var(--green); color: #fff; }
.choice-row button.sel-bad { background: var(--red); border-color: var(--red); color: #fff; }
.choice-row button.sel-na { background: var(--gray); border-color: var(--gray); color: #fff; }
.mangel-box { margin-top: 0.6rem; }
.mangel-box textarea { min-height: 60px; }
.photo-list { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.photo-list img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }

.wizard-nav { display: flex; gap: 0.6rem; margin-top: 1rem; }
.wizard-nav .btn { margin-top: 0; }

/* Unterschrift */
#sig-canvas {
  width: 100%; height: 180px; background: #fff;
  border: 1.5px dashed var(--border); border-radius: 10px; touch-action: none;
}

/* Zusammenfassung / Ergebnis */
.result-banner { padding: 1rem; border-radius: 10px; font-weight: 700; text-align: center; font-size: 1.1rem; }
.result-banner.ok { background: #e6f4e9; color: var(--green); }
.result-banner.bad { background: #fbe7e7; color: var(--red); }
.summary-row { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--light); font-size: 0.92rem; }
.summary-row span:first-child { color: var(--gray); }

/* Tabellen / Listen */
.list-row {
  background: #fff; border-radius: 10px; padding: 0.8rem; margin-bottom: 0.6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.list-row .info { flex: 1; min-width: 180px; }
.list-row .info strong { font-size: 0.98rem; }
.list-row .info small { display: block; color: var(--gray); font-size: 0.8rem; margin-top: 0.1rem; }
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge.ok { background: #e6f4e9; color: var(--green); }
.badge.bad { background: #fbe7e7; color: var(--red); }
.badge.pending { background: #fff3e6; color: var(--orange-dark); }
.badge.disabled { background: #eee; color: var(--gray); }

.filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.filter-row input { flex: 1; min-width: 120px; }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.tabs button {
  flex: 1; padding: 0.55rem; border: 1px solid var(--border); background: #fff;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--gray); font-family: inherit;
}
.tabs button.active { background: var(--dark); color: #fff; border-color: var(--dark); }

@media (min-width: 700px) {
  .topbar { padding: 0.7rem 2rem; }
}
