/* DeutschesMietrecht.de – Prozesskostenrechner
   Eigenstaendige Gestaltung, nur innerhalb von .dm-prozess.
   Stand: Oktober 2026
*/

.dm-prozess {
  font: inherit;
  color: inherit;
  max-width: 880px;
  margin: 1.5rem auto;
}
.dm-prozess *, .dm-prozess *::before, .dm-prozess *::after { box-sizing: border-box; }

.dm-prozess .dm-panel {
  border: 1px solid #c9d8db;
  border-radius: 12px;
  padding: clamp(15px, 3vw, 27px);
  background: #f5f9fa;
}
.dm-prozess h2, .dm-prozess h3 { color: #315e6c; }
.dm-prozess .dm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dm-prozess .dm-field { margin-bottom: 16px; min-width: 0; }
.dm-prozess label {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
}

/* Selects und Eingaben: hoeher, lesbar, auf voller Breite */
#dm-prozesskosten select,
#dm-prozesskosten input[type="number"] {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 64px;
  height: 64px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #9caeb4;
  border-radius: 9px;
  background-color: #fff;
  color: #24373c;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Eigenes Dropdown-Symbol statt des vom Template unterdrueckten Pfeils */
#dm-prozesskosten select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%23315e6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px 20px;
  cursor: pointer;
}
#dm-prozesskosten select:focus,
#dm-prozesskosten input[type="number"]:focus {
  outline: 2px solid #315e6c;
  outline-offset: 2px;
}

.dm-prozess .dm-check { display: flex; gap: 9px; align-items: flex-start; margin: 8px 0 18px; }
.dm-prozess .dm-check label { font-weight: 400; }
.dm-prozess .dm-check input { margin-top: 6px; }
.dm-prozess .dm-note { font-size: .92em; color: #4d6066; }
.dm-prozess .dm-output {
  background: white;
  border-left: 4px solid #4f8379;
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.dm-prozess .dm-output dl { margin: 0; }
.dm-prozess .dm-output dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e4eced;
  padding: 8px 0;
}
.dm-prozess .dm-output dt { font-weight: 400; }
.dm-prozess .dm-output dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.dm-prozess .dm-total { font-weight: bold; font-size: 1.16em; color: #315e6c; }
.dm-prozess .dm-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 15px; }
.dm-prozess button {
  border: 0;
  border-radius: 6px;
  background: #315e6c;
  color: #fff;
  padding: 11px 16px;
  cursor: pointer;
  font: inherit;
}
.dm-prozess button.dm-secondary { background: #4f8379; }
.dm-prozess button:focus-visible { outline: 2px solid #315e6c; outline-offset: 3px; }
.dm-prozess .dm-advice {
  border-left: 4px solid #8dab8d;
  background: #f0f6f2;
  padding: 11px 15px;
  margin: 15px 0;
}
.dm-prozess [hidden] { display: none !important; }

@media (max-width: 700px) {
  .dm-prozess .dm-grid { grid-template-columns: 1fr; }
  #dm-prozesskosten select, #dm-prozesskosten input[type="number"] { min-height: 60px; height: 60px; }
  .dm-prozess .dm-output dl > div { flex-wrap: wrap; }
}

@media print {
  body * { visibility: hidden !important; }
  .dm-prozess, .dm-prozess * { visibility: visible !important; }
  .dm-prozess { position: absolute; top: 0; left: 0; width: 100%; max-width: none; margin: 0; }
  .dm-prozess .dm-panel { border: 0; padding: 0; background: white; }
  .dm-prozess .dm-actions { display: none !important; }
  #dm-prozesskosten select, #dm-prozesskosten input { border: 0 !important; padding-left: 0 !important; background-image: none !important; }
  .dm-prozess .dm-output { border: 1px solid #ccc; }
  .dm-prozess .dm-note { color: black; }
}
