:root {
  --blau: #0047bb;
  --rot: #cd042e;
  --gruen: #19713a;
  --grau: #5b6472;
  --linie: #d5d9e0;
  --flaeche: #f4f6f9;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  color: #1c2330;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--flaeche); }
main { max-width: 860px; margin: 0 auto; padding: 1rem; }

.kopf { background: #fff; border-bottom: 4px solid var(--blau); position: sticky; top: 0; z-index: 5; }
.kopf-innen { max-width: 860px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marke { font-weight: bold; color: var(--blau); font-size: 1.15rem; margin-right: auto; }

.karte { background: #fff; border: 1px solid var(--linie); border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
h1, h2, h3 { margin: 0 0 .7rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: .95rem; color: var(--grau); margin-top: .8rem; }

label { display: block; font-size: .85rem; color: var(--grau); margin-bottom: .7rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: .25rem; padding: .45rem .55rem;
  font: inherit; color: inherit; border: 1px solid var(--linie); border-radius: 4px; background: #fff;
}
textarea { resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blau); outline-offset: -1px; }

.raster { display: grid; gap: 0 .8rem; }
.raster.zwei { grid-template-columns: 1fr 1fr; }
.raster.vier { grid-template-columns: repeat(4, 1fr); }
.raster.stimmen { grid-template-columns: repeat(3, 6rem) 1fr; align-items: center; }
.weitere-zeile { grid-template-columns: 1fr 16rem auto; align-items: center; margin-bottom: .4rem; }
.weitere-zeile input, .weitere-zeile select { margin-top: 0; }
@media (max-width: 640px) {
  .raster.zwei, .raster.vier, .weitere-zeile { grid-template-columns: 1fr; }
  .raster.stimmen { grid-template-columns: repeat(3, 1fr); }
}

.haken { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.haken-zeile { display: flex; align-items: center; gap: .4rem; color: inherit; font-size: 1rem; }
.haken-zeile input { width: auto; margin: 0; }

button, .knopf {
  display: inline-block; font: inherit; font-size: .9rem; padding: .45rem .9rem; cursor: pointer;
  border: 1px solid var(--linie); border-radius: 4px; background: #fff; color: inherit; margin: 0;
}
button:hover, .knopf:hover { border-color: var(--blau); }
button.primaer { background: var(--blau); border-color: var(--blau); color: #fff; }
button.gross { font-size: 1.05rem; padding: .7rem 1.4rem; }
button.klein { font-size: .8rem; padding: .25rem .6rem; }
button.gefahr { color: var(--rot); }
button:disabled { opacity: .6; cursor: wait; }
.werkzeuge { display: inline-flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.top-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.top { border-left: 4px solid var(--blau); }
.beschluss { border: 1px solid #f0c4cc; border-left: 4px solid var(--rot); background: #fff8f9; border-radius: 4px; padding: .7rem .9rem .1rem; margin-bottom: .7rem; }
.beschluss h3 { color: var(--rot); margin: 0; }
.b-ergebnis { font-weight: bold; font-size: .9rem; }

.hinweis { font-size: .85rem; color: var(--grau); margin: .3rem 0 .6rem; }
.ok { color: var(--gruen); }
.warnung { color: var(--rot); font-weight: bold; }
.meldung { padding: .6rem .8rem; border-radius: 4px; margin-bottom: .8rem; }
.meldung.fehler { background: #fdecef; border: 1px solid #f0b5c0; color: #7d0a20; }
.meldung ul { margin: .3rem 0 0; padding-left: 1.2rem; }

.zeile { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.titel-import { flex: 1; min-width: 16rem; }
.titel-import summary { cursor: pointer; color: var(--blau); font-size: .9rem; padding-top: .4rem; }
.abschluss { text-align: center; }
.einladung { border-style: dashed; }

.login { max-width: 380px; margin: 3rem auto; }
.login button { width: 100%; margin-top: .4rem; }
