/* Grundlayout */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Wrapper */
.ar-wrapper {
  padding: 1rem;
}

/* Formular-Container */
.ar-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
}

/* Eingabefelder & Dropdowns */
.ar-box input,
.ar-box select {
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #000;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 14px;
  box-sizing: border-box;
}

/* Button */
.ar-box button,
#copyButton {
  width: 100%;
  max-width: 200px;
  background-color: #eee;
  border: 1px solid #ccc;
  color: #000;
  padding: 0.5rem;
  margin: 1rem;
  font-size: 14px;
  cursor: pointer;
}

.ar-box button:hover,
#copyButton:hover {
  background-color: #ddd;
}

/* Labels */
.ar-box label {
  color: #000;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

/* Checkbox-Gruppe */
.massnahme-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.massnahme-container label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  font-size: 14px;
}

.massnahme-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Einfaches Dropdown */
.ar-dropdown {
  position: relative;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #000;
  padding: 0.5rem;
  cursor: pointer;
}

.ar-dropdown-selected {
  font-size: 14px;
}

.ar-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.ar-dropdown.open .ar-dropdown-list {
  display: block;
}

.ar-dropdown-list li {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 14px;
}

.ar-dropdown-list li:hover {
  background-color: #f0f0f0;
}

/* Ergebnisbereich */
#ergebnis {
  width: 100% !important;
  margin-top: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  padding: 0.5rem;
  min-height: 50px;
  white-space: pre-wrap;
  display: flex;
  flex-direction: column; /* Inhalte untereinander */
  align-items: center;    /* Zentriert den Block horizontal im Container */
  justify-content: center;/* Falls Höhe größer ist, mittig in der Höhe */
  text-align: left;       /* Text innerhalb linksbündig */
  margin: 0 auto;         /* Zentriert den Block, falls feste Breite */
  width: fit-content;     /* Breite passt sich dem Inhalt an */
}

#ergebnis h3,
#ergebnis h2,
#ergebnis h1 {
  text-align: center; /* Überschrift mittig */
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  .ar-box {
    padding: 0.5rem;
  }

  .ar-box button,
  #copyButton {
    max-width: 100%;
  }
}
/* ADMIN: 2 Spalten */
.ar-wrapper:not([data-frontend="1"]) .ar-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* FRONTEND: 1 Spalte */
.ar-wrapper[data-frontend="1"] .ar-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* FRONTEND: Faktoren verstecken (Backup zu JS) */
.ar-wrapper[data-frontend="1"] #preisfaktoren {
  display: none !important;
}

/* Spalten-Basis */
.ar-left, .ar-right { min-width: 0; }
