/* Kostenrechner - dopasowany do main.css (paleta: #111 dunkel, #9aa7a0 akcent, #777 tekst) */

/* Der Inhalt hier nutzt kein Bootstrap-Spaltenraster (.col-*), das den -15px-Rand von .row
   ausgleichen würde - ohne diese Zeile lief der Text auf schmalen Handys über den Rand hinaus. */
#kosten .row {
  margin-left: 0;
  margin-right: 0;
}

#kosten .calc {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, .12);
}

#kosten .calc-in,
#kosten .calc-out {
  /* Grid-Kinder schrumpfen sonst nicht unter ihre Inhaltsbreite (min-width:auto ist der Grid-Default) -
     bei langen deutschen Wörtern/Sätzen sprengt das sonst die Seitenbreite auf Handys. */
  min-width: 0;
}

#kosten .calc-in {
  padding: 42px 38px;
}

#kosten .calc-out {
  padding: 42px 38px;
  background: #111;
  color: #ececec;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#kosten .calc-group {
  margin-bottom: 22px;
}

#kosten .calc-group label {
  display: block;
  margin-bottom: 8px;
  font-family: Montserrat, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
}

#kosten .calc-group select,
#kosten .calc-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: Montserrat, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px; /* verhindert automatisches Hineinzoomen bei Fokus auf iOS Safari */
  color: #444;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
}

#kosten .calc-group select:focus,
#kosten .calc-group input:focus {
  border-color: #9aa7a0;
}

#kosten .calc-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.5 6L10 1' stroke='%23111111' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

#kosten .calc-optional {
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #759082;
  text-transform: none;
}

#kosten .calc-hint {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e6e6e6;
  font-size: 11.5px;
  line-height: 1.85;
  color: #777;
}

#kosten .calc-lbl {
  display: block;
  font-family: Montserrat, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #9aa7a0;
}

#kosten .calc-val {
  display: block;
  margin: 12px 0 8px;
  font-family: Montserrat, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 44px;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.15;
  color: #fff;
}

#kosten .calc-sub {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(236, 236, 236, .6);
}

#kosten .calc-rows {
  margin: 28px 0 30px;
}

#kosten .calc-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  font-size: 12.5px;
}

#kosten .calc-row .k {
  min-width: 0;
  color: rgba(236, 236, 236, .65);
}

#kosten .calc-row .v {
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

#kosten .calc-row.minus .v {
  color: #9aa7a0;
}

#kosten .calc-sep {
  height: 1px;
  background: rgba(255, 255, 255, .16);
  margin: 12px 0;
}

#kosten .calc-row.total {
  padding-top: 12px;
}

#kosten .calc-row.total .k,
#kosten .calc-row.total .v {
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
}

#kosten .calc-out .btn {
  text-align: center;
  margin-top: 8px;
}

#kosten .calc-note {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(236, 236, 236, .45);
}

/* .calc-compare/.calc-disclaimer stehen direkt in .row (Bootstrap), nicht in einer .col-* -
   .row hat -15px Rand links/rechts, ohne kompensierendes Spalten-Padding lief der Text auf
   schmalen Handys über den sichtbaren Rand hinaus. Deshalb hier eigenes Padding + box-sizing. */
#kosten .calc-compare {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 0 15px;
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
  color: #777;
}

#kosten .calc-disclaimer {
  max-width: 820px;
  margin: 26px auto 0;
  padding: 0 15px;
  box-sizing: border-box;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.8;
  color: #8d8d8d;
}

@media (max-width: 991px) {
  #kosten .calc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  /* main.css/responsive.css legen auf .section zusätzlich 35px Seitenpadding fest -
     zusammen mit dem Bootstrap-.container-Padding und dem Innenpadding von .calc-in/.calc-out
     blieb auf schmalen Handys kaum Platz. Hier wird das für #kosten zurückgesetzt. */
  #kosten section.container {
    padding-left: 15px;
    padding-right: 15px;
  }

  #kosten .calc-in,
  #kosten .calc-out {
    padding: 32px 24px;
  }

  #kosten .calc-val {
    font-size: 36px;
  }
}

@media (max-width: 420px) {
  #kosten section.container {
    padding-left: 10px;
    padding-right: 10px;
  }

  #kosten .calc-in,
  #kosten .calc-out {
    padding: 24px 18px;
  }

  #kosten .calc-val {
    font-size: 30px;
  }

  #kosten .calc-row {
    font-size: 11.5px;
    gap: 8px;
  }

  #kosten .calc-lbl {
    font-size: 9.5px;
    letter-spacing: 1.5px;
  }
}
