.leitung-rechner {
  max-width: 760px;
  margin: 25px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f8f9fa;
  color: #222;
  box-sizing: border-box;
}

.leitung-rechner * {
  box-sizing: border-box;
}

.leitung-rechner h2 {
  font-size: 1.45em;
  margin: 0 0 15px;
}

.leitung-rechner h3 {
  font-size: 1.15em;
  margin: 22px 0 12px;
}

.leitung-eingaben {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.leitung-feld label {
  display: block;
  font-weight: bold;
  margin: 8px 0 6px;
}

.leitung-feld input,
.leitung-feld select {
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #999;
  border-radius: 4px;
  background: white;
  font-size: 16px;
  color: #222;
}

.leitung-feld small {
  display: block;
  margin-top: 4px;
  color: #555;
}

#lBerechnen {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border: 0;
  border-radius: 5px;
  background: #ffc439;
  color: black;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
}

#lBerechnen:hover {
  background: #f9f4c7; /*alt #10558d;*/
}

.leitung-ergebnis {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #a9c5dc;
  border-radius: 6px;
  background: #f9f4c7               /*alt  #edf5fc;*/
}

.leitung-result-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #cbd9e5;
}

.leitung-result-zeile strong {
  font-size: 1.1em;
  text-align: right;
  color: #135b91;
}

.leitung-hinweis {
  margin: 12px 0 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.leitung-formel {
  font-size: 1.2em;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
}

.leitung-tabelle {
  overflow-x: auto;
}

.leitung-tabelle table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.leitung-tabelle th,
.leitung-tabelle td {
  padding: 9px;
  border: 1px solid #ccc;
  text-align: left;
}

.leitung-tabelle th {
  background: #e5eaf0;
}

.leitung-fussnote {
  margin-top: 18px;
  font-size: 0.9em;
  line-height: 1.5;
  color: #555;
}
#lHinweis {
    color: red;
}
/************************************************************
 Bild links ausgerichtet – Text umfließt Bild
************************************************************/

.imglinks {
    float: left;
    width: 190px;
    max-width: 35%;
    margin: 0 20px 15px 0;
    box-sizing: border-box;
}

.imglinks img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Float nach Text und Liste beenden */
.clearfloat {
    clear: both;
}

/* Nächste Überschrift beginnt unterhalb des Bildes */
.imglinks ~ h2,
.imglinks ~ h3 {
    clear: both;
}

/************************************************************
 ENDE Bild links
************************************************************/
@media (max-width: 550px) {
  .leitung-eingaben {
    grid-template-columns: 1fr;
  }

  .leitung-rechner {
    padding: 12px;
  }

  .leitung-result-zeile {
    align-items: flex-start;
  }
}