/* VPS-Dashboards -- OMS-Layout fuer Dashboards (Branding.md, Web-Oberflaechen):
 * lila Top-Bar, weisses Logo links, horizontale Navigation, weisse Inhaltsflaeche.
 * Farben nur hier, als Variablen. */
:root {
  --lila: #8764B8;          /* nur Flaechen und grosse fette Schrift */
  --lila-dunkel: #6B4A9E;   /* Text, Knoepfe, Links, Fokus */
  --lila-hell: #EFEAF7;
  --orange: #EF8F18;        /* nur Flaeche */
  --orange-text: #B35900;
  --navy: #24398B;
  --grau: #5A5A66;
  --grau-hell: #C7C7D0;
  --linie: #E3E3EA;
  --grund: #F5F5F8;
  --gruen: #1E7B45;
  --rot: #B3261E;
  --rot-hell: #FBEAEA;
  --blaugruen: #1B7F8C;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: #22222A;
       font: 15px/1.5 "Segoe UI", Arial, sans-serif; }
a { color: var(--lila-dunkel); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--lila-dunkel); outline-offset: 2px; }

/* --- Kopfleiste ---------------------------------------------------------- */
.leiste { background: var(--lila); color: #fff; padding: 10px 22px;
          display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.leiste-marke { display: flex; align-items: center; gap: 10px; color: #fff;
                text-decoration: none; font-weight: 600; font-size: 17px; }
.leiste-marke img { height: 32px; }
.leiste nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.leiste nav a { color: #fff; text-decoration: none; padding: 5px 10px; border-radius: 4px; }
.leiste nav a:hover { background: rgba(255,255,255,.16); }
.leiste nav a.aktiv { background: rgba(255,255,255,.26); font-weight: 600; }
.leiste .rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.leiste button, .leiste .knopf-hell { background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.45); border-radius: 4px; padding: 4px 11px;
  font-size: 13px; cursor: pointer; }
.leiste button:hover { background: rgba(255,255,255,.3); }
.leiste :focus-visible { outline-color: #fff; }
.leiste form { margin: 0; }
.sprache { display: inline-flex; border: 1px solid rgba(255,255,255,.45);
           border-radius: 4px; overflow: hidden; }
.leiste .sprache button { border: 0; border-radius: 0; background: transparent;
                          padding: 4px 10px; font-weight: 600; }
.leiste .sprache button + button { border-left: 1px solid rgba(255,255,255,.45); }
.leiste .sprache button[aria-pressed="true"] { background: #fff; color: var(--lila-dunkel); }

main { max-width: 1320px; margin: 0 auto; padding: 22px 20px 50px; }
h1 { font-size: 22px; color: var(--lila-dunkel); margin: 0 0 14px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px;
     color: var(--grau); margin: 0 0 10px; font-weight: 700; }
footer { max-width: 1320px; margin: 0 auto; padding: 0 20px 36px;
         color: var(--grau); font-size: 13px; }
footer hr { border: 0; border-top: 2px solid var(--orange); margin: 0 0 10px; }
.meldung { padding: 8px 12px; border-radius: 4px; margin-bottom: 12px;
           background: var(--rot-hell); color: var(--rot); }

/* --- Anmeldung ----------------------------------------------------------- */
.karte-schmal { max-width: 380px; margin: 40px auto; background: #fff;
  border: 1px solid var(--linie); border-radius: 8px; padding: 26px; }
.karte-schmal label { display: block; margin-bottom: 12px; font-size: 14px; color: var(--grau); }
.karte-schmal input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--grau-hell); border-radius: 4px; font: inherit; }
.knopf-haupt { background: var(--lila-dunkel); color: #fff; border: 0; border-radius: 4px;
  padding: 9px 16px; cursor: pointer; font-weight: 600; }
.knopf-haupt:hover { background: #5A3D88; }
.breit { width: 100%; }

/* --- Startseite ---------------------------------------------------------- */
section.gruppe { margin-bottom: 28px; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kachel { position: relative; display: block; background: #fff; border: 1px solid var(--linie);
  border-radius: 7px; padding: 16px 18px 14px; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kachel:hover { border-color: var(--lila); box-shadow: 0 3px 10px rgba(103,74,158,.14); }
.kachel h3 { margin: 0 0 5px; font-size: 16px; color: var(--lila-dunkel); padding-right: 22px; }
.kachel .kurz { margin: 0 0 9px; color: #3C3C46; font-size: 14px; }
.kachel .fuss { border-top: 1px solid var(--linie); padding-top: 8px; font-size: 12.5px; color: var(--grau); }
.kachel .lage { display: block; margin-top: 6px; font-size: 12.5px; color: var(--grau); }
.lage.laeuft { color: var(--gruen); }
.lage.aus, .lage.stoerung { color: var(--rot); }
.punkt { position: absolute; top: 18px; right: 17px; width: 11px; height: 11px;
         border-radius: 50%; background: var(--grau-hell); }
.punkt.laeuft { background: var(--gruen); }
.punkt.aus, .punkt.stoerung { background: var(--rot); }
.punkt.vorbereitung { background: var(--grau-hell); }
.kachel.vorbereitung { background: #F0F0F4; border-style: dashed; }
.kachel.vorbereitung h3 { color: var(--grau); }
.lage.vorbereitung { color: var(--grau); font-style: italic; }
.statuszeile { display: flex; gap: 12px; align-items: center; margin-bottom: 18px;
               color: var(--grau); font-size: 14px; }

/* --- Automatenstatus ----------------------------------------------------- */
.knopf { background: #fff; color: var(--lila-dunkel); border: 1px solid var(--lila-dunkel);
  border-radius: 4px; padding: 5px 12px; cursor: pointer; }
.knopf:hover { background: var(--lila-hell); }
.werkzeuge { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  background: #fff; border: 1px solid var(--linie); border-radius: 7px; padding: 10px 14px;
  margin-bottom: 12px; }
.stand { font-weight: 600; }
.stand.verzug { color: var(--rot); }
.schalter { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.schalter input { width: 18px; height: 18px; accent-color: var(--lila-dunkel); }
.werkzeuge .rechtsbuendig { margin-left: auto; }

.knopfreihen { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 12px; }
.knopfgruppe .beschriftung { display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--grau); font-weight: 700; margin-bottom: 4px; }
.segmente { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--lila-dunkel);
  border-radius: 5px; overflow: hidden; background: #fff; }
.segmente button { border: 0; background: #fff; color: var(--lila-dunkel);
  padding: 6px 12px; cursor: pointer; }
.segmente button + button { border-left: 1px solid var(--lila-dunkel); }
.segmente button[aria-pressed="true"] { background: var(--lila-dunkel); color: #fff; }
.segmente button .zahl { opacity: .8; margin-left: 4px; font-variant-numeric: tabular-nums; }

.reiter { display: flex; gap: 2px; border-bottom: 2px solid var(--linie); margin: 4px 0 14px; }
.reiter button { background: none; border: 0; padding: 8px 16px; cursor: pointer;
  color: var(--grau); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.reiter button[aria-selected="true"] { color: var(--lila-dunkel); border-bottom-color: var(--lila); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 14px; }
.kz { background: #fff; border: 1px solid var(--linie); border-radius: 7px; padding: 10px 12px; }
.kz .wert { font-size: 26px; font-weight: 700; color: var(--lila-dunkel);
  font-variant-numeric: tabular-nums; line-height: 1.2; }
.kz .name { font-size: 13px; color: var(--grau); }
.kz .zusatz { font-size: 12px; color: var(--grau); }
.kz.warnung { border-color: var(--rot); background: var(--rot-hell); }
.kz.warnung .wert { color: var(--rot); }
.diagramme { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.diagramm { background: #fff; border: 1px solid var(--linie); border-radius: 7px; padding: 10px 12px; }
.diagramm h3 { margin: 0 0 6px; font-size: 14px; color: var(--lila-dunkel); }
.diagramm .flaeche { position: relative; height: 230px; }
.diagramm.hoch .flaeche { height: 300px; }

.facetten { background: #fff; border: 1px solid var(--linie); border-radius: 7px; padding: 6px 12px 12px; }
.facetten > details > summary { font-weight: 700; color: var(--lila-dunkel); padding: 6px 0; cursor: pointer; }
.facette { border-top: 1px solid var(--linie); padding: 8px 0 6px; }
.facette h4 { margin: 0 0 4px; font-size: 13px; color: var(--grau); text-transform: uppercase;
  letter-spacing: .4px; }
.facette .hinweis { font-size: 12px; color: var(--orange-text); margin: 0 0 4px; }
.facette ul { list-style: none; margin: 0; padding: 0; }
.facette li button { display: flex; width: 100%; justify-content: space-between; gap: 8px;
  background: none; border: 0; padding: 3px 6px; border-radius: 3px; cursor: pointer;
  text-align: left; color: #22222A; }
.facette li button:hover { background: var(--lila-hell); }
.facette li button[aria-pressed="true"] { background: var(--lila-dunkel); color: #fff; }
.facette li button .zahl { font-variant-numeric: tabular-nums; color: var(--grau); }
.facette li button[aria-pressed="true"] .zahl { color: #fff; }
.facette li button.null { color: #8A8A96; }
.facette details summary { font-size: 13px; color: var(--lila-dunkel); cursor: pointer; margin-top: 4px; }

.verlauf-kopf { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.hinweistext { font-size: 13px; color: var(--grau); }
.leer-hinweis { padding: 30px; text-align: center; color: var(--grau); background: #fff;
  border: 1px dashed var(--grau-hell); border-radius: 7px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .layout aside { order: -1; }
  .diagramme { grid-template-columns: 1fr; }
  .leiste .rechts { margin-left: 0; }
  main { padding: 14px 10px 40px; }
}
