/* =========================================
   Nullzeitfinder – Layout & Stil
   ========================================= */

/* Äußerer Rahmen – hängt in pf-tool-main */
.pf-tool-frame.nzf-tool {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 18px 20px;
}

/* Überschrift */
.nzf-tool h1 {
  font-size: 1.6rem;
  margin: 0 0 14px;
  color: #3b22a3;
  text-align: center;
}

/* -----------------------------
   Steuerbereich (Tiefe + Buttons + Slider)
   ----------------------------- */

.nzf-tool .controls {
  background-color: #f0f0f0;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: center;
}

.nzf-tool .controls label {
  font-size: 0.95rem;
}

/* Eingabefeld Tiefenangabe */
.nzf-tool input[type="number"]#depth {
  padding: 7px;
  margin-right: 8px;
  width: 70px;
  font-size: 0.9em;
  border-radius: 4px;
  border: 1px solid #ccd3db;
}

/* Buttons Start / Reset */
.nzf-tool .controls button {
  padding: 8px 15px;
  background-color: #1a4b8c;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9em;
  margin-right: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease;
}

.nzf-tool .controls button:hover:not(:disabled) {
  background-color: #153a6a;
  box-shadow: 0 3px 6px rgba(0,0,0,0.18);
}

.nzf-tool .controls button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.16);
}

.nzf-tool .controls button:disabled {
  background-color: #7a9cc9;
  box-shadow: none;
  cursor: default;
}

/* Wrapper für Slider + Text */
.nzf-tool .speed-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

/* Slider selbst */
.nzf-tool input[type="range"]#speedRange {
  width: 140px;
}

/* -----------------------------
   Info-Panel (Zeit / Nullzeit)
   ----------------------------- */

.nzf-tool .info-panel {
  margin-top: 15px;
  padding: 10px;
  background-color: #e9f7ef;
  border-radius: 5px;
  font-size: 0.9em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}

.nzf-tool .info-panel div {
  /* einzelne Chips */
}

/* -----------------------------
   Haupt-Chart-Bereich
   (Original-Layout beibehalten!)
   ----------------------------- */

.nzf-tool .chart-container {
  display: flex;
  height: 400px;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Druckskala links */
.nzf-tool .pressure-scale {
  width: 40px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  margin-right: 8px;
  text-align: right;
  font-size: 0.9em;
}

/* Gewebe-Balken rechts */
.nzf-tool .tissues-container {
  display: flex;
  flex-grow: 1;
  gap: 8px;
  align-items: flex-end;
}

/* Einzelnes Gewebe */
/* Standard: Desktop/Tablet – wie bisher */
.nzf-tool .tissue {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  min-width: 18px;   /* Desktop */
}

/* Tablets / kleinere Laptops */
@media (max-width: 900px) {
  .nzf-tool .tissues-container {
    gap: 6px;
  }
  .nzf-tool .tissue {
    min-width: 14px;
  }
}

/* Smartphones */
@media (max-width: 600px) {
  .nzf-tool .tissues-container {
    gap: 4px;
  }
  .nzf-tool .tissue {
    min-width: 8px;
  }
}


.nzf-tool .tissue-label {
  margin-top: 5px;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
}

/* Balken-Container (mit M-Linie) */
.nzf-tool .tissue-bar-container {
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  border: 1px solid #ddd;
}

/* Sättigungsbalken */
.nzf-tool .tissue-bar {
  width: 100%;
  background-color: #1a4b8c;
  transition: height 1s linear;
  height: 0%;
}

.tissue-bar {
  width: 100%;
  height: 0%;
  border-radius: 2px;

  background: linear-gradient(
    to top,
    rgba(70, 130, 200, 1),      /* unten: deutlich heller Blau */
    rgba(20, 60, 110, 1)        /* oben: tieferes, dunkleres Blau */
  );

  transition: height 1s linear, background-color 0.3s ease;
}



/* M-Wert-Markierung */
.nzf-tool .m-value {
  position: absolute;
  width: 100%;
  height: 2px;
  transform: translateY(-0.5px);
    background: linear-gradient(to right, #ff4d4d, #d40000);
  background-color: red;
  z-index: 10;
}

/* -----------------------------
   Beschreibung & Warnung
   ----------------------------- */

.nzf-tool .description {
  margin-top: 20px;
  line-height: 1.5;
  font-size: 0.92rem;
}

.nzf-tool .warning {
  font-size: 0.8em;
  color: #d32f2f;
  margin-top: 15px;
  line-height: 1.4;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 600px) {
  /* Rahmen etwas enger */
  .pf-tool-frame.nzf-tool {
    padding: 14px 10px 16px;
  }

  .nzf-tool h1 {
    font-size: 1.35rem;
  }

  .nzf-tool .chart-container {
    height: 300px;
  }

  .nzf-tool .tissue-label {
    font-size: 10px;
  }

  .nzf-tool .controls {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .nzf-tool input[type="number"]#depth {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 4px;
  }

  .nzf-tool .controls button {
    padding: 6px 10px;
    margin: 2px auto 3px;
    width: 100%;
    max-width: 260px;
  }

  .nzf-tool .speed-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .nzf-tool input[type="range"]#speedRange {
    width: 100%;
    max-width: 260px;
  }
}


