.hidden {
  display: none;
}
html {
  font-size: clamp(0.8rem, 1vw + 0.5rem, 1.3rem);
}

.detailsSummery {
  background-color: #bbd9ec;
  border-radius: 8px;
  margin: 1em 0em;
}

.detailsSummery:hover {
  background-color: #aad2eb;
}

.row-selection {
  margin: 1em 0.5em;
}

.errormsg {
  color: red;
}
.unclearmsg {
  color: orange;
}

.unclear {
  border-color: #ff9500;
  background-color: #fff8f0;
  outline: 1px solid #ff9500; /* optional: Standard-Rahmen entfernen */
  color: #000; /* Textfarbe */
}

input {
  border: 1px solid #ccc;
  padding: 8px;
  transition: all 0.2s ease;
}

/* Highlight empty required fields in red */
select:required:invalid,
input:required:invalid {
  border: 0.1em solid rgb(241, 84, 84);
  background-color: rgb(255, 245, 245);
}

/* Optional: when valid, show green */
select:required:valid,
input:required:valid {
  border: 0.1em solid green;
  background-color: #eefdee;
  outline-color: green;
}

select:focus:invalid,
input:focus:invalid {
  border-color: #ff9500;
  background-color: #fff8f0;
  outline: 0.1em solid #ff9500; /* optional: Standard-Rahmen entfernen */
  color: #000; /* Textfarbe */
}

body {
  font-family: Arial, sans-serif;
  padding: 1em;
  background: #f7f7f7;
}

form,
.container {
  background: white;
  padding: 2em;
  border-radius: 8px;
  max-width: 1000px;
  margin: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

fieldset {
  border: 1px solid #ccc;
  padding: 0.5em 1em;
  margin-bottom: 1.5em;
  border-radius: 8px;
}

legend {
  font-weight: bold;
  margin-bottom: 0.5em;
}

label {
  display: block;
  margin-top: 1em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="submit"],
select {
  width: 95%;
  padding: 0.5em;
  margin: 0.3em;
  border: 0.1em solid #ccc;
  border-radius: 4px;
  font-size: clamp(1rem, 1vw + 0.5rem, 1.5rem);
}

.checkbox-group {
  margin-top: 0em;
}

.vehicle {
  margin-top: 0.25em;
  font-size: clamp(1rem, 1vw + 0.5rem, 1.5rem);
}

.checkbox-group label {
  display: inline-block;
  margin-right: 1em;
}

.hint {
  font-size: 0.8em;
  color: red;
  display: none;
}

.hint.visible {
  display: block;
}

.kartenfeld {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 0.5em;
}

.kartenfeld .prefix {
  background-color: #ffffff;
  padding: 0.5em 0em 0.5em 0.5em;
  border: 0px solid #ccc;
  border-right: none;
  border-radius: 4px;
}

.karten-input {
  width: 100px;
  padding: 0.5em 0.5em 0.5em 0.5em;
  border: 1px solid #ccc;
}

.remove-card {
  background: transparent;
  border: none;
  color: red;
  font-size: 1.2em;
  cursor: pointer;
}

.remove-card:hover {
  background: #f7e6e6;
}

.karte-entry {
  margin-bottom: 0.5em;
}

#summary {
  background: #f0f0f0;
  padding: 1em;
  border: 1px solid #ccc;
  margin-top: 1em;
}

textarea {
  resize: none; /* verhindert manuelles Vergrößern */
  display: flex;
  width: 100%; /* nimmt volle Breite des Containers ein */
  min-height: 5em; /* ca. 5 Zeilen hoch */
  box-sizing: border-box; /* Padding zählt zur Gesamtbreite */
  overflow: hidden; /* versteckt Scrollbar */
  font-family: inherit; /* gleiche Schriftart wie andere Felder */
  font-size: 1rem;
  padding: 0.5rem;
  padding-bottom: 1rem;
  border-radius: 4px;
}

@media (min-width: 600px) {
  .form-row {
    display: flex;
    gap: 2em;
    max-width: 95%;
  }
  .form-row > div {
    flex: 1;
  }
}

/* Loader Animation */
.loader {
  border: 8px solid #eee;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.message {
  text-align: center;
  font-size: 1.2em;
  margin-top: 20px;
}

.button-group {
  text-align: center;
  margin-top: 20px;
}

button {
  padding: 5px 10px;
  margin: 5px;
  font-size: 1em;
  cursor: pointer;
}

#successIcon {
  font-size: 48px;
  color: #2ecc71;
  text-align: center;
  margin-top: 20px;
}

#failureIcon {
  font-size: 48px;
  color: #cc2e2e;
  text-align: center;
  margin-top: 20px;
}
.downloadItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ccc;
  padding: 0.5em 1em;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #fdfdfd;
}

.downloadItem .docName {
  font-weight: 500;
  color: #333;
}

.downloadButton {
  text-decoration: none;
  background-color: #27ae60;
  color: white;
  padding: 0.5em 1em;
  margin-left: 1em;
  border-radius: 4px;
  font-size: 0.95em;
  transition: background-color 0.2s ease;
}

.downloadButton:hover,
input[type="submit"]:hover {
  background-color: #219150;
}

input[type="submit"],
button {
  text-decoration: none;
  background-color: #a4d3f3;
  color: black;
  padding: 0.5em 1em;
  margin-left: 1em;
  border-radius: 4px;
  font-size: 0.95em;
  transition: background-color 0.2s ease;
}

input[type="submit"]:hover,
button:hover {
  background-color: #6cb6e7;
}

@media (max-width: 500px) {
  html {
    font-size: 0.8em;
  }
  body {
    padding: 0em;
  }
  form {
    padding: 1em;
  }

  .downloadButton {
    padding: 0.5em 0.7em;
    margin-left: 0.7em;
    border-radius: 3px;
    font-size: 0.8em;
  }
}
