:root {
  --blau: #1a3c6e;
  --braun: #8a6d1f;
  --rot: #a83232;
  --grau: #666666;
  --rand: #dcdcdc;
  --bg: #f7f7f8;
  --text: #1c1c1e;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: #12141a;
  color: #fff;
}
.topbar .brand { color: #fff; font-weight: bold; text-decoration: none; font-size: 16px; }
.topbar nav a { color: #cfd3dc; text-decoration: none; margin-right: 16px; }
.topbar nav a:hover { color: #fff; }
.content { max-width: 1100px; margin: 0 auto; padding: 24px; }

h1 { margin: 0 0 4px; }
.meta { color: #555; margin: 0 0 16px; }
.hinweis { color: #666; font-size: 13px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.aktionen-gruppe { display: flex; gap: 8px; flex-wrap: wrap; }
.aktionen-gruppe form { display: inline; }

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--rand);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: #f0f0f0; }
.btn-primary { background: var(--blau); color: #fff; border-color: var(--blau); }
.btn-primary:hover { background: #143257; }
.btn-danger { background: #fff; color: var(--rot); border-color: var(--rot); }
.btn-danger:hover { background: #fdecec; }

.btn-icon {
  border: 1px solid var(--rand);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 7px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  display: inline-block;
}
.btn-icon:disabled { opacity: 0.3; cursor: default; }
form.inline { display: inline; }

.tabelle { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rand); font-size: 13px; }
.tabelle th { background: #eee; font-size: 12px; text-transform: uppercase; color: #555; }
.tabelle .aktionen { white-space: nowrap; }

.tabelle-punkte tr.block-header td { color: #fff; font-weight: bold; }
.tabelle-punkte tr.farbe-blau td { background: var(--blau); }
.tabelle-punkte tr.farbe-braun td { background: var(--braun); }
.tabelle-punkte tr.farbe-rot td { background: var(--rot); }
.tabelle-punkte tr.farbe-grau td { background: var(--grau); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #e5e5e5; font-size: 12px; }
.badge-final { background: #d7f2dd; color: #1c6b32; }
.badge-in-planung { background: #fdf2d0; color: #8a6d1f; }
.badge-archiviert { background: #e5e5e5; color: #555; }
.badge-hinweis { background: #7a1f0f; color: #fff; font-weight: bold; }

/* Hinweis-Box (geteiltes Muster): großes Icon links, Text rechts, beide
   vertikal zueinander zentriert. planungshinweis = interner Vermerk (nie im
   Export), warnhinweis = wichtiger Hinweis, der auch final erscheinen soll. */
.hinweis-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 7px 11px;
  border-radius: 4px;
  color: #fff;
}
.hinweis-flex .icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.hinweis-flex .text { font-size: 12px; font-weight: bold; flex: 1; }

.planungshinweis { background: #7a1f0f; }
.warnhinweis-admin { background: #8a4b0f; }

.planungshinweis-label { color: #7a1f0f !important; font-weight: bold; }
.planungshinweis-label textarea { border-color: #7a1f0f !important; background: #fff6f4; }
.warnhinweis-label { color: #8a4b0f !important; font-weight: bold; }
.warnhinweis-label textarea { border-color: #8a4b0f !important; background: #fff9f2; }

.tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; background: #eee; }
.tag-event { background: #dbe8ff; color: #1a3c6e; }
.tag-livestream { background: #ffe0e0; color: #a83232; }
.tag-beides { background: #e2d9ff; color: #4b2e9e; }

.anmerkung { color: #777; }

.info-box {
  background: #fff;
  border-left: 4px solid var(--rot);
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 4px;
}
.info-box p { margin: 4px 0; }

.formular { display: flex; flex-direction: column; gap: 14px; max-width: 640px; background: #fff; padding: 20px; border-radius: 8px; }
.formular-schmal { max-width: 420px; }
.formular label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #444; }
.formular input[type="text"],
.formular input[type="date"],
.formular input[type="time"],
.formular input[type="number"],
.formular select,
.formular textarea {
  padding: 8px 10px;
  border: 1px solid var(--rand);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.formular-spalten { display: flex; gap: 16px; }
.formular-spalten label { flex: 1; }
.formular-aktionen { display: flex; gap: 10px; }
.inline-label { flex-direction: row !important; align-items: center; gap: 6px !important; }
fieldset { border: 1px solid var(--rand); border-radius: 6px; padding: 12px; }
legend { font-size: 12px; color: #666; padding: 0 6px; }
.zustaendig-zeile { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.zustaendig-zeile label { flex: 1; flex-direction: row; align-items: center; gap: 6px; }
.zustaendig-zeile input[type="text"] { width: 200px; padding: 4px 8px; }
.zustaendig-zeile select { padding: 6px 8px; border: 1px solid var(--rand); border-radius: 6px; }
.zeile-block { display: block !important; padding: 3px 0; }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 24px; }
.zwei-spalten section { background: #fff; padding: 16px; border-radius: 8px; }

.personen-bereich { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 24px; }
.personen-bereich h2 { margin-top: 0; }
.personen-bereich h3 { font-size: 14px; color: #555; margin-bottom: 8px; }

/* ÖPNV-Chips im BVG-Stil (Punkt 6): S-Bahn = Ellipse, U-Bahn/Tram = eckig,
   Bus = abgerundetes Rechteck — unterscheidbare Formen wie auf BVG-Plänen. */
.oepnv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: #fff;
  padding: 3px 10px;
  margin: 2px 4px 2px 0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}
.oepnv-bus { border-radius: 8px; }
.oepnv-s-bahn { border-radius: 50%; min-width: 34px; padding: 3px 14px; }
.oepnv-u-bahn, .oepnv-tram { border-radius: 2px; }
.formular-inline { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.formular-inline select { padding: 6px 8px; border: 1px solid var(--rand); border-radius: 6px; }

.tag-match { background: #fff0d6; color: #8a5a1f; }
.tag-cue { background: #d6f5e8; color: #1c7a54; }

.fehler-box {
  background: #fdecec;
  border-left: 4px solid var(--rot);
  color: #7a1f1f;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .zwei-spalten { grid-template-columns: 1fr; }
}
