/* Modernes, responsives Styling für Inhouse-Preisrechner */
.container {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.97);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 2.5em 2em;
  max-width: 700px;
  margin: 2em auto;
}
.form-section {
  width: 100%;
}
.form-bg-wrapper {
  position: relative;
  min-height: 300px;
}
#map {
  position: absolute;
  top: 0;
  right: 0;
  width: 41%;
  height: 100%;
  z-index: 1;
  opacity: 0.72;
  pointer-events: none;
  border: none;
  box-shadow: none;
  background: #fff;
  border-radius: 8px;
}
#map.osm-map-active {
  opacity: 0.18;
}
.osm-map-placeholder {
  align-items: center;
  background: #fff8ec;
  border: 1px dashed #d28a24;
  border-radius: 8px;
  box-sizing: border-box;
  color: #5c431e;
  display: flex;
  font-size: 0.95em;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  line-height: 1.35;
  padding: 1em;
  text-align: center;
}
#map.osm-map-active .osm-map-placeholder {
  display: none;
}
.form-bg-wrapper form {
  position: relative;
  z-index: 2;
  background: transparent;
  margin-bottom: 1.5em;
  max-width: 340px;
  width: 53%;
}
input[type="range"] {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(90deg, var(--accent, #ff9800) 0%, #ffd580 100%);
  border-radius: 4px;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent, #ff9800);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.2s;
}
input[type="range"]:hover::-webkit-slider-thumb {
  background: #e67e22;
}
input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent, #ff9800);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.2s;
}
input[type="range"]:hover::-moz-range-thumb {
  background: #e67e22;
}
input[type="range"]::-ms-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent, #ff9800);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.2s;
}
input[type="range"]:hover::-ms-thumb {
  background: #e67e22;
}
input[type="range"]:focus {
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
}
input[type="range"]::-ms-fill-lower {
  background: var(--accent, #ff9800);
  border-radius: 4px;
}
input[type="range"]::-ms-fill-upper {
  background: #ffd580;
  border-radius: 4px;
}
input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 0.5em;
  border-radius: 6px;
  border: 1px solid #bbb;
  margin-bottom: 0.7em;
  font-size: 1em;
}
.container button[type="button"] {
  background: linear-gradient(90deg, #ff9800 0%, #ffb347 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1.1em;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.1s;
  margin: 1em 0 0.5em 0;
  display: inline-block;
  max-width: 320px;
  width: 100%;
}
.container button[type="button"]:hover, .container button[type="button"]:focus {
  background: linear-gradient(90deg, #e67e22 0%, #ffb347 100%);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
.container button[type="button"]:disabled,
.container button[type="button"]:disabled:hover,
.container button[type="button"]:disabled:focus {
  background: #b8b8b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.osm-consent {
  background: rgba(255, 248, 236, 0.95);
  border: 1px solid #efc98e;
  border-left: 3px solid #ef9f32;
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0.35em 0 0.15em;
  max-width: 320px;
  padding: 0.65em 0.75em;
  transition: background 0.2s, border-color 0.2s, padding 0.2s;
}
.osm-consent.is-accepted {
  background: rgba(248, 253, 244, 0.94);
  border-color: #c9dfbd;
  border-left-color: #69a84f;
  padding: 0.45em 0.65em;
}
.osm-consent-check {
  align-items: flex-start;
  color: #4e3b1d;
  display: flex;
  font-size: 0.86em;
  gap: 0.55em;
  line-height: 1.35;
  margin: 0;
}
.osm-consent.is-accepted .osm-consent-check {
  color: #315425;
  font-weight: 700;
}
.osm-consent-check input {
  accent-color: #4f7df2;
  flex: 0 0 auto;
  height: 1.15em;
  margin-top: 0.1em;
  width: 1.15em;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
th, td {
  border: 1px solid #eee;
  padding: 10px 14px;
  text-align: right;
  font-size: 1em;
}
th:first-child, td:first-child { text-align: left; }
thead { background-color: #f7f7f7; }
tfoot td {
  font-weight: bold;
  background-color: #f9f9f9;
}
td[colspan="3"] { text-align: right; }
.hinweis {
  font-size: 0.95em;
  color: #888;
  font-style: italic;
  margin-top: 1em;
}
@media (max-width: 900px) {
  .container,
  .box.form-section {
    padding: 0.7em 0.5em;
    max-width: 94vw;
    margin: 1em auto;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  #map {
    display: none;
  }
  table {
    width: 100%;
    max-width: 94vw;
    font-size: 0.95em;
    overflow-x: auto;
    display: block;
  }
  thead, tbody, tfoot, tr {
    display: table;
    width: 100%;
    box-sizing: border-box;
  }
  th, td {
    font-size: 0.95em;
    padding: 7px 6px;
    word-break: break-word;
  }
  .form-bg-wrapper,
  .form-bg-wrapper form {
    max-width: 94vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .form-bg-wrapper {
    min-height: 0;
  }
  .form-bg-wrapper form {
    width: 100%;
  }
  .osm-consent,
  .container button[type="button"] {
    max-width: 100%;
  }
  input[type="range"],
  input[type="text"] {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}
