body {
    font-family: sans-serif;
    margin: 0;
    padding: 1em;
    line-height: 1.5;
    background-color: #f8f8f8;
    max-width: 600px;
  }

/* Responsive Optimierung für kleinere Bildschirme */
@media (max-width: 600px) {
  label,
  input[type="text"],
  input[type="email"],
  input[type="date"],
  input[type="file"],
  select,
  textarea,
  button {
    font-size: 3rem;
    width:100%;
    max-width: 100%;
    padding: 0.6em;
    box-sizing: border-box;
  }

  button {
    width: 100%;
  }

  .checkbox-label {
    font-size: 1rem;
  }
}

.checkbox-label {
  display: inline;
  align-items: center;       /* Vertikal mittig ausrichten */
  gap: 0.5em;                /* Abstand zwischen Kästchen und Text */
  font-size: 1rem;
  line-height: 1.3;
}

.checkbox-label input[type="checkbox"] {
  width: 1em;
  height: 1em;
}

.checkbox-label a {
  display: inline;
  text-decoration: underline;
  color: blue;
}

.float {
  float:left;
  margin: 0;
  margin-right:2em;
  font-size:medium;
}

a {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  color: blue;
  text-decoration: underline;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p, button {
    clear:left;
    margin-bottom: 0;
}
  
h1, h2, h3 {
  margin-top: 1em;
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.2em;
}

h3 {
  font-size: 1.0em;
}

input, select, p {
  margin: 0;
  margin-bottom: 1em;
}

form {
  background: white;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin: 0;
  padding: 0;
  font-size:1rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"],
button,
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 0.75em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5em;
  display:flex;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 0.75em 1.5em;
  margin: 0.5em 0;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

button:hover {
  background-color: #45a049;
}

.progress-bar {
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  height: 20px;
  margin-bottom: 1em;
}

.progress-bar-inner {
  background-color: #4caf50;
  height: 100%;
  width: 0;
  transition: width 0.3s;
}

.border {
  border: 1pt solid #000000;
  padding:1em
}