/* === SENSOR-LIVEWERT (neues Element) === */
.livewert {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.livewert__wert {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.livewert__einheit {
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  line-height: var(--line-height-tight);
}

.livewert__ort {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.livewert__zeit {
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
}

/* === KACHELRASTER (neues Element) === */
.dashboard-kacheln {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.dashboard-kacheln > * {
  grid-column: span 2;
}

/* Allein ist der leere Zustand die ganze Aussage der Seite; neben einer Kachel
   nimmt er nur deren Platz ein. */
.dashboard-kacheln > .leerer-zustand:only-child {
  grid-column: 1 / -1;
}

/* === HINWEISBEREICH (neues Element) === */
.dashboard-hinweise {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dashboard-hinweis {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid;
}

.dashboard-hinweis.dashboard-hinweis--warnung {
  background-color: var(--warning-bg);
  border-color: var(--warning-border);
}

.dashboard-hinweis.dashboard-hinweis--neutral {
  background-color: var(--neutral-bg);
  border-color: var(--border-color);
}

.dashboard-hinweis.dashboard-hinweis--gefahr {
  background-color: var(--danger-bg);
  border-color: var(--danger-border);
}

.dashboard-hinweis .symbol {
  flex-shrink: 0;
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  margin-top: 2px;
}

.dashboard-hinweis.dashboard-hinweis--warnung .symbol {
  color: var(--warning);
}

.dashboard-hinweis.dashboard-hinweis--neutral .symbol {
  color: var(--text-secondary);
}

.dashboard-hinweis.dashboard-hinweis--gefahr .symbol {
  color: var(--danger);
}

.dashboard-hinweis__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.dashboard-hinweis__titel {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

.dashboard-hinweis__beschreibung {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* === MODULKACHEL (neues Element) === */
.modulkachel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--duration-control), border-color var(--duration-control);
}

.modulkachel:hover {
  background-color: var(--bg-elevated-hover);
  border-color: var(--border-color-strong);
}

.modulkachel .symbol {
  width: var(--icon-size-nav);
  height: var(--icon-size-nav);
}

.modulkachel h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.modulkachel p {
  margin: 0;
  font-size: var(--font-size-sm);
}

/* === SYSTEMSTATUS (neues Element) === */
.systemstatus {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.systemstatus__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.systemstatus__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.systemstatus__titel {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.systemstatus__beschreibung {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.systemstatus__diagnose {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--divider-color);
}

details.systemstatus__zeile {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

details.systemstatus__zeile > summary {
  padding: var(--space-4) var(--space-5);
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-5));
  cursor: pointer;
  list-style: none;
}

details.systemstatus__zeile > summary::marker,
details.systemstatus__zeile > summary::-webkit-details-marker {
  display: none;
}

details.systemstatus__zeile[open] > summary {
  border-bottom: 1px solid var(--divider-color);
}

/* === RESPONSIVE === */
