/* ### ######################### */

a, a:hover {
	color:black;
  text-decoration:none;
}

.label {
    font-size:0.9em;
    color:#555;
}

.head-radar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.head-radar img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background-repeat: repeat-x;
    background-size: 100% 100%;  /* Breite original, Höhe passt sich an */
    background-position: left center;
}

.head-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #555;
  mask-image: linear-gradient(
    to right,
    black 0%,
    black 10%,
    transparent 20%,
    transparent 80%,
    black 90%,
    black 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    black 10%,
    transparent 20%,
    transparent 80%,
    black 90%,
    black 100%
  );
}

/* ### ######################### */

.icondiv {
    display:inline-block;
    padding:5px;
    border-radius:3px;
}

/* ### ######################### */

.row {
	border-bottom:1px solid #ccc;
}


/* ### Tabs logon Box ######################## */

.nav-pills .nav-link {
    color: #333; /* Bootstrap-success-grün */
}

.nav-pills .nav-link.active {
    background-color: #666;
    color: white;
}

/* ### Side bar  ######################################## */

#sidebar .offcanvas-body {
  padding: 0 !important;
}

@media (min-width: 1400px) {
  .sidebar-xxl-fixed {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 300px !important;
    z-index: 1050;
    background-color: #fff;
    padding: 0;
    overflow-y: auto;
  }

  /* Cancel Bootstrap's offcanvas behavior at XL and above */
  .sidebar-xxl-fixed.offcanvas {
    transform: none !important;
    visibility: visible !important;
  }
  .sidebar-xxl-fixed.offcanvas.start {
      transform: none !important;
  }
  .sidebar-xxl-fixed .offcanvas-body {
    padding: 0;
    }

  main.main-xxl-offset {
    margin-left: 300px !important;
  }

  #buttonToggle {
    display: none;
  }

  #optionenbox {
    left:310px;
  }
}

/* ### ######################################### */

.leaflet-zoom-animated path {
  animation: none !important;
}

/* ### ######################################### */

  .pegel-wrap {
    display: flex;
    gap: 0;
    align-items: stretch;
  }

  .rohr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .rohr {
    width: 48px;
    height: 150px;
    position: relative;
    border-radius: 2px;
    background: #eee;
    border: 1px solid #ccc;
    overflow: hidden;

  }

  .wasser {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 0%;
    background-color: blue;
  }

.skala {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 6px 0;
    height: 150px;
  }

  .skala-item {
    display: flex;
    align-items: start;
    gap: 4px;
    font-size: 11px;
  }

  .skala-item .val { color: #aaa; min-width: 36px; text-align: right;margin-top:-5px; }
  .skala-item .tick { width: 8px; height: 1px; background: #aaa; }
  .skala-item.warn .val  { color: #f7971e; }
  .skala-item.warn .tick { background: #f7971e; }
  .skala-item.alarm .val  { color: #ef473a; }
  .skala-item.alarm .tick { background: #ef473a; }
.pegel-linie {
    position: absolute;
    left: 0; right: 0;

    height: 2px;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 0 5px rgba(255,255,255,0.4);
    transition: bottom 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
  }

.werte {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 6px 0;
    height: 150px;
  }

  .werte-item {

  }



  .gauge-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .gauge-svg {
    overflow: visible;
    display: block;
  }

  .gauge-label {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

   /* ── Thermometer ─────────────────────────────────────────────── */
  .thermo-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 170px;
  }

  /* ── Thermometer-Körper ─────────────────────────────────── */
  .thermo-body {
    position: relative;
    width: 100%;
    height: 147px;
    display: flex;
    flex-direction: column;

  }

  /* Rohr außen – unten offen (kein border-radius unten), geht 8px in die Kugel */
  .thermo-tube {
    position: absolute;
    top: 0;
    left: 10px;
    transform: translateX(-50%);
    width: 12px;
    height: 129px;
    border-radius: 6px 6px 0 0;
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.12);
    border-bottom: none;
    overflow: hidden;
  }

  /* Füllung im Rohr – Höhe via CSS-Berechnung */
  .thermo-fill-tube {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color:blue;
    background-position: bottom;
  }

  /* Kugel – sitzt am unteren Ende, Rohr überlappt oben hinein */
  .thermo-bulb {
    position: absolute;
    bottom: 0;
    left: 10px;
    transform: translateX(-50%);
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background-color: blue;
    border: 1px solid rgba(0,0,0,0.12);
    overflow: hidden;
  }

  /* Kugel immer voll gefüllt */
  .thermo-fill-bulb {
    position: absolute;
    insest: 0;
    background-color:blue;
    background-size: 100% calc(1 / max(var(--ratio), 0.01) * 100%);
    background-position: bottom;
  }

  /*
   * Verbindungsbrücke: übermalt den Border-Gap zwischen Rohr und Kugel.
   * Gleiche Breite wie Rohr-Innenraum (16px), sitzt exakt am Übergang.
   */
  .thermo-bridge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 7px;
    background: rgba(0,0,0,0.06);
    z-index: 1;
  }

  /* Brücken-Füllung – spiegelt den Verlauf der Füllung */
  .thermo-bridge-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--ratio) * 100% + 100%); /* immer gefüllt wenn Wert > 0 */
    background: linear-gradient(
      to top,
      #185FA5 0%,
      #1D9E75 35%,
      #EF9F27 65%,
      #E24B4A 100%
    );
    background-size: 100% calc(1 / max(var(--ratio), 0.01) * 100%);
    background-position: bottom;
  }

  /* ── Skala rechts neben dem Rohr ────────────────────────── */
  .thermo-scale {
    position: absolute;
    top: 0;
    left: 19px;
    height: 123px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .thermo-tick {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .thermo-tick::before {
    content: '';
    display: block;
    width: 4px;
    height: 1px;
    background: rgba(0,0,0,0.2);
  }

  .thermo-tick span {
    font-size: 6px;
    color: #888;
    white-space: nowrap;
  }

