/* Newsletter Versand - dunkle Seitenleiste, heller Arbeitsbereich.
   Nach den beiden Entwuerfen: blaue Akzente, Karten, klare Tabellen. */
:root {
  --blau: #2563eb;
  --blau-dunkel: #1d4ed8;
  --blau-hell: #eff6ff;
  --seite: #0f172a;
  --seite-aktiv: #1e293b;
  --grund: #f1f5f9;
  --karte: #ffffff;
  --rand: #cbd5e1;
  --rand-leise: #e2e8f0;
  --text: #0f172a;
  --text-leise: #64748b;
  --gruen: #059669;
  --gruen-hell: #ecfdf5;
  --gelb: #d97706;
  --gelb-hell: #fffbeb;
  --rot: #dc2626;
  --rot-hell: #fef2f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--grund);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--blau); }

/* ----------------------------------------------------------- Gerüst */

.huelle { display: flex; min-height: 100vh; }

.seitenleiste {
  width: 248px;
  flex-shrink: 0;
  background: var(--seite);
  color: #e2e8f0;
  padding: 20px 14px;
}

.marke {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: #fff;
  padding: 4px 8px 22px;
}

.menue a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 2px;
  border-radius: 8px; color: #cbd5e1; text-decoration: none;
}
.menue a:hover { background: var(--seite-aktiv); color: #fff; }
.menue a.aktiv { background: var(--blau); color: #fff; font-weight: 600; }

.inhalt { flex: 1; min-width: 0; }

.kopfleiste {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 28px;
  background: var(--karte); border-bottom: 1px solid var(--rand-leise);
}
.kopfleiste h1 { margin: 0; font-size: 19px; }

.hauptteil { padding: 24px 28px 48px; }

.seitenkopf { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.seitenkopf h2 { margin: 0 0 2px; font-size: 26px; }
.seitenkopf p { margin: 0; color: var(--text-leise); font-size: 14px; }

/* ----------------------------------------------------------- Karten */

.karte {
  background: var(--karte); border: 1px solid var(--rand-leise);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 16px;
}
.karte h3 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 8px; }

.raster { display: grid; gap: 16px; }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.raster.drei { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.raster.kennzahlen { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.kennzahl .wert { font-size: 24px; font-weight: 700; margin-top: 2px; }
.kennzahl .bezeichnung { font-size: 13px; color: var(--text-leise); }
.kennzahl .zusatz { font-size: 12px; color: var(--text-leise); margin-top: 2px; }

/* ----------------------------------------------------------- Elemente */

.knopf {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--rand);
  background: var(--karte); color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.knopf:hover { border-color: var(--blau); color: var(--blau); }
.knopf.voll { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf.voll:hover { background: var(--blau-dunkel); color: #fff; }
.knopf.gefahr { color: var(--rot); border-color: #fecaca; }
.knopf.gefahr:hover { border-color: var(--rot); }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf.klein { padding: 6px 11px; font-size: 13px; }

label { display: block; margin-bottom: 14px; }
label > span.bez { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
label > span.hinweis { display: block; font-size: 12px; color: var(--text-leise); margin-top: 4px; }

input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="datetime-local"], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--rand);
  border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
textarea { min-height: 120px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

.haken { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.haken input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase;
  letter-spacing: .03em; color: var(--text-leise); padding: 0 10px 8px 0;
  border-bottom: 1px solid var(--rand-leise); font-weight: 600; }
td { padding: 10px 10px 10px 0; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
tr:last-child td { border-bottom: 0; }

.marke-zustand {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--rand-leise); color: var(--text-leise);
}
.marke-zustand.gut { background: var(--gruen-hell); color: var(--gruen); }
.marke-zustand.laeuft { background: var(--blau-hell); color: var(--blau); }
.marke-zustand.warnung { background: var(--gelb-hell); color: var(--gelb); }
.marke-zustand.fehler { background: var(--rot-hell); color: var(--rot); }

.balken { height: 9px; background: var(--rand-leise); border-radius: 999px; overflow: hidden; }
.balken > div { height: 100%; background: var(--blau); border-radius: 999px;
  transition: width .4s ease; }

.meldung { padding: 11px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 14px; }
.meldung.gut { background: var(--gruen-hell); color: #065f46; }
.meldung.fehler { background: var(--rot-hell); color: #991b1b; }
.meldung.hinweis { background: var(--gelb-hell); color: #92400e; }

.leise { color: var(--text-leise); font-size: 13px; }
.reiter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.reiter button { background: none; border: 0; padding: 9px 15px; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-leise); }
.reiter button.aktiv { background: var(--blau-hell); color: var(--blau); }

.wellen li { list-style: none; padding: 11px 0 11px 26px; position: relative;
  border-bottom: 1px solid #f1f5f9; }
.wellen li:last-child { border-bottom: 0; }
.wellen li::before { content: ""; position: absolute; left: 4px; top: 16px;
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--rand); }
.wellen li.fertig::before { background: var(--gruen); border-color: var(--gruen); }
.wellen li.laeuft::before { background: var(--blau); border-color: var(--blau); }

iframe.vorschau { width: 100%; height: 420px; border: 1px solid var(--rand-leise);
  border-radius: 9px; background: #fff; }

/* ----------------------------------------------------------- Anmeldung */

.anmeldeseite { display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--seite); padding: 20px; }
.anmeldekarte { background: #fff; padding: 32px; border-radius: 14px;
  width: 100%; max-width: 380px; }

/* ----------------------------------------------------------- Schmal */

@media (max-width: 860px) {
  .huelle { flex-direction: column; }
  .seitenleiste { width: 100%; padding: 12px; }
  .menue { display: flex; gap: 4px; overflow-x: auto; }
  .menue a { white-space: nowrap; padding: 8px 12px; }
  .marke { padding-bottom: 12px; }
  .hauptteil { padding: 16px; }
}
