/* Schrift selbst ausgeliefert: kein Abruf bei Google (DSGVO). IBM Plex Sans, SIL Open Font License. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("schrift/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap;
  src: url("schrift/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("schrift/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --papier: #f4f6f6;      /* Hintergrund, kühles Grau wie Zeichenpapier */
  --flaeche: #ffffff;
  --tinte: #16232b;       /* Text */
  --gedaempft: #56656d;   /* Nebentext */
  --linie: #d3dbde;       /* Trennlinien, Leitungen im Schema */
  --leitung: #2443c4;     /* Hauptfarbe: Aktionen, Leitungen unter Strom */
  --sonne: #e2a000;       /* nur für PV und „Simulation läuft“ */
  --fehler: #b42318;
}

html, body { background: var(--papier); color: var(--tinte); }
body { margin: 0; font-family: "IBM Plex Sans", system-ui, sans-serif; font-feature-settings: "tnum"; }
a { color: var(--leitung); }
:focus-visible { outline: 2px solid var(--leitung); outline-offset: 2px; }

/* --- Anmelden --------------------------------------------------------------------------- */
.anmelden {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}
.anmelden-schema {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px; border-right: 1px solid var(--linie);
}
.anmelden-schema h1 { font-size: 2.1rem; font-weight: 600; line-height: 1.15; margin: 0; max-width: 18ch; }
.anmelden-schema p { color: var(--gedaempft); max-width: 46ch; line-height: 1.55; margin: 12px 0 0; }
.anmelden-schema img { width: 100%; max-width: 560px; height: auto; margin: 32px 0; }
.anmelden-formular { display: flex; align-items: center; justify-content: center; padding: 48px 24px;
  background: var(--flaeche); }
.anmelden-formular .formular { width: 100%; max-width: 340px; }
.anmelden-formular h2 { font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; }
.anmelden-formular .hinweis { color: var(--gedaempft); margin: 0 0 24px; }
.marke { font-weight: 600; letter-spacing: 0.01em; }


/* --- Übersicht -------------------------------------------------------------------------- */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 32px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf .firma { color: var(--gedaempft); margin-left: 12px; }
.kopf .nutzer { color: var(--gedaempft); display: flex; gap: 16px; align-items: center; }
.inhalt { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 32px; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 12px; }
.abschnitt-kopf h2 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.abschnitt-kopf .anzahl { color: var(--gedaempft); font-weight: 400; margin-left: 8px; }

.projekte { width: 100%; border-collapse: collapse; background: var(--flaeche);
  border: 1px solid var(--linie); }
.projekte th { text-align: left; font-weight: 500; color: var(--gedaempft); font-size: 0.875rem;
  padding: 10px 14px; border-bottom: 1px solid var(--linie); }
.projekte td { padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.projekte tr:last-child td { border-bottom: 0; }
.projekte .name { font-weight: 500; }
.projekte .klein { color: var(--gedaempft); font-size: 0.875rem; }
.leer { background: var(--flaeche); border: 1px dashed var(--linie); padding: 32px; color: var(--gedaempft); }
.leer strong { color: var(--tinte); display: block; margin-bottom: 4px; font-weight: 500; }

.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gedaempft); }
.status-daten_vollstaendig::before, .status-ergebnis_liegt_vor::before { background: var(--leitung); }
.status-simulation_laeuft::before { background: var(--sonne); }
.status-fehler::before { background: var(--fehler); }
.status-archiviert { color: var(--gedaempft); }

.vorlagen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.vorlagen li { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.vorlagen .name { font-weight: 500; }
.vorlagen .klein { color: var(--gedaempft); font-size: 0.875rem; margin-top: 2px; }

@media (max-width: 860px) {
  .anmelden { grid-template-columns: 1fr; }
  .anmelden-schema { border-right: 0; border-bottom: 1px solid var(--linie); padding: 32px 20px; }
  .anmelden-schema h1 { font-size: 1.6rem; }
  .inhalt { grid-template-columns: 1fr; padding: 20px 16px; }
  .kopf { padding: 12px 16px; }
  .kopf .firma, .kopf .nutzer span { display: none; }
  .projekte .spalte-optional { display: none; }
}

/* Absende-Knopf des Anmeldeformulars (normales HTML, damit Enter und Passwortmanager greifen) */
.knopf { height: 36px; width: 100%; border: 0; border-radius: 4px; background: var(--leitung); color: #fff;
  font: 600 0.875rem/1 "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; }
.knopf:hover { background: #1d38a3; }
