/* Trimix Gasdichte & END – Tool CSS
   Passt sich an /style.css an, ergänzt nur Tool-spezifisches.
*/

.gasdensity-container h1{
  margin-bottom: .25rem;
}

.gasdensity-container .warn{
  margin: 1rem 0 1.25rem;
}

.card{
  margin: 1rem 0;
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;              /* mehr Luft zwischen Feldern */
  margin-top: .85rem;
}

.field input[type="number"]{
  width: 100%;
  max-width: 120px;         /* deutlich kleiner */
  padding: .42rem .55rem;   /* kompakter */
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.18);
  background: #fff;
  font-weight: 800;
}

.field{
  display: grid;
  gap: .4rem;
  justify-items: start;     /* Inputs nicht über ganze Spalte strecken */
}


.field input[disabled]{
  opacity: .85;
  background: rgba(244,246,251,.9);
}

.row-inline{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

.field-wide{
  flex: 1;
}

.pill{
  min-width: 86px;
  text-align: center;
  padding: .55rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.18);
  background: #fff;
  font-weight: 800;
}

.results{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: .75rem;
}

.result-box{
  border-radius: 14px;
  border: 2px solid rgba(66,45,162,.25);
  background: rgba(255,255,255,.9);
  padding: .9rem;
}

.result-box .label{
  font-weight: 800;
  margin-bottom: .35rem;
}

.result-box .value{
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.result-box .unit{
  font-size: .95rem;
  font-weight: 800;
  opacity: .8;
}

.result-box .sub{
  margin-top: .35rem;
}

.error{
  margin-top: .8rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 2px solid rgba(228,68,68,.55);
  background: rgba(228,68,68,.10);
  font-weight: 700;
}

.row-between{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
}

.btn-ghost{
  border: 1px solid rgba(17,24,39,.18);
  background: #fff;
  border-radius: 12px;
  padding: .45rem .7rem;
  cursor: pointer;
  font-weight: 900;
}

.steps{
  margin-top: .75rem;
}

.steps-list{
  margin: .5rem 0 0 1.2rem;
}

.steps-list li{
  margin: .55rem 0;
  line-height: 1.35;
}

@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
  .results{ grid-template-columns: 1fr; }
}

.result-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .35rem;
}

.pf-help{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid rgba(255,234,0,.7);
  background: rgba(66,45,162,.9);
  color: #FFEA00;
  font-weight: 1000;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}

.pf-help:hover{
  filter: brightness(1.05);
}

/* ===== Modal (Rechenweg) ===== */
.pf-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.pf-modal.is-open{
  display: block;
}

.pf-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(10,10,25,.78);
  backdrop-filter: blur(6px);
}

.pf-modal__panel{
  position: relative;
  max-width: 820px;
  width: calc(100% - 28px);
  margin: 7vh auto;
  border-radius: 18px;
  border: 2px solid rgba(255,234,0,.55);
  background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  overflow: hidden;
}

.pf-modal__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  background: rgba(66,45,162,1);  
  color: #111;
}

.pf-modal__top h3{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 1000;
}

.pf-modal__close{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid rgba(17,24,39,.25);
  background: rgba(255,255,255,.65);
  font-size: 28px;
  font-weight: 1000;
  cursor: pointer;
}

.pf-modal__lead{
  margin: .9rem 1rem 0;
  font-weight: 800;
}

.pf-modal__body{
  padding: .6rem 1rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  background: rgba(244,246,251,.9);
  border-top: 1px solid rgba(17,24,39,.10);
}

/* Max Depth – volle Breite */
.depth-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}

.field-full{
  width: 100%;
}

.field-full input[type="range"]{
  width: 100%;
}

.pill-right{
  min-width: 88px;
  text-align: center;
}

@media (max-width: 900px){
  .depth-row{
    grid-template-columns: 1fr;
  }

  .pill-right{
    justify-self: start;
  }
}

