/* =================================================================== */
/* Übersicht der CSS-Abschnitte:                                       */
/*   0) Reset                                                           */
/*   1) Statusbox                                                      */
/*   2) Timestamp                                                      */
/*   3) Infobox                                                        */
/*   4) Tooltip                                                        */
/*   5) Mobile Overrides                                               */
/* =================================================================== */

/* =================================================================== */
/* 0) RESET für Tabelle & Zellen ====================================== */
.status-wrapper .status-table,
.status-wrapper .status-table tr,
.status-wrapper .status-table td {
  margin: 0;
  padding: 0;
}

/* =================================================================== */
/* 1) STATUSBOX ======================================================= */
.status-wrapper {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 1em;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2em;
  color: #005f73;
  font-size: 0.5em;
  line-height: 1.0;
}

/* Tabelle als Flex-Container für Reihen mit definiertem Row-Gap */
.status-wrapper .status-table {
  display: flex;
  flex-direction: column;
  gap: 0.6em;       /* Zeilenabstand etwas größer */
  width: 100%;
}

.status-wrapper .status-table tr {
  display: flex;
  align-items: flex-start;
  gap: 0.4em;       /* Abstand zwischen Label und Wert */
}

/* Label- und Wertzellen */
.status-wrapper .status-table td.status-label,
.status-wrapper .status-table td.status-value-cell {
  display: inline-block;
  line-height: 1.3;
  font-size: 0.8em;
}

/* Strich vor Label und Doppelpunkt plus genau ein Leerzeichen nach Label */
.status-wrapper .status-table td.status-label::before {
  content: "– ";
}

.status-wrapper .status-table td.status-label::after {
  content: ": ";
}

/* Wertzelle fett */
.status-wrapper .status-table td.status-value-cell {
  font-weight: 700;
}

/* Ganze Zeile ausblenden, falls Wertzelle leer */
@supports selector(:has) {
  .status-wrapper .status-table tr:has(td.status-value-cell:empty) {
    display: none;
  }
}

/* =================================================================== */
/* 2) TIMESTAMP ======================================================= */
/* Analog zu Tabellenreihen, gleiche Schrift, gleicher Gap */
#timestamp {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.2em;       /* wie bei den Zeilen */
  margin-top: 0.4em;/* entspricht table row-Gap */
  font-size: 1.0em;
  color: #005f73;
  line-height: 2.5;
}

#timestamp::before {
  content: "– ";
}

#timestamp::after {
  content: "";
}

/* Fett für den Zeitwert */
#timestamp .timestamp-value {
  font-weight: 700;
}

/* =================================================================== */
/* 3) INFOBOX ========================================================= */
.custom-textbox {
  background-color: #e0f2f1;
  font-size: 0.75em;
  color: #005f73;
  border-radius: 8px;
  padding: 1.2em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  line-height: 1.4;
}

/* =================================================================== */
/* 4) TOOLTIP ========================================================= */
.tooltip-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1em;
  position: relative;
  cursor: help;
}

.info-circle {
  background-color: #005f73;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
}

.infobox-label {
  font-size: 0.8em;
  font-weight: 600;
  color: #005f73;
  margin: 0;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 95, 115, 0.85);
  color: #fff;
  padding: 1em;
  border-radius: 6px;
  width: 500px;
  max-width: 90vw;
  font-size: 0.85em;
  line-height: 1.4;
  text-align: left;
  z-index: 10000;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tooltip-text ul {
  list-style-type: disc;
  list-style-position: inside;
  margin: 0;
  padding-left: 1em;
}

.tooltip-text ul li {
  margin-bottom: 0.5em;
}

.tooltip-inline:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -48%);
}

@media (max-width: 600px) {
  /* Timestamp auf 1em zurücksetzen */
  #timestamp {
    font-size: 1.2em !important;
  }
}

