body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  /* height: 100vh;  <-- das entfernen wir, damit scrollen möglich ist */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* statt center, damit es oben startet */
  position: relative;
  overflow-y: auto; /* scrollen erlauben */
  background-color: #f4f4f4;
  padding: 40px 0; /* bisschen oben und unten padding für Luft */
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: url('../images/background.jpg') no-repeat center center/cover;
  filter: blur(8px);
  z-index: -1;
}

.container {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  max-width: 700px;  /* hier habe ich es breiter gemacht */
  width: 90%;
  text-align: center;
  margin-bottom: 40px; /* unten etwas Luft */
}

.logo {
  max-width: 150px;
  margin-bottom: 8px; /* kleiner, aber sicher */
}

h1 {
  margin-top: 0;
  font-size: clamp(1.5rem, 4vw, 2rem); /* optional: responsiv skalieren */
  color: #004F7C;
}

.subtitle {
  color: #555;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  margin-bottom: 20px;
}

.input-group {
  text-align: left;
  margin-bottom: 20px;
}

label {
  font-size: 0.95rem;
  margin-bottom: 5px;
  display: block;
  color: #444;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  resize: vertical; /* bei textarea */
}

button {
  width: 100%;
  padding: 12px;
  background-color: #ec6421;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #d8561a;
  transform: translateY(-1px);
}

.message {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #FF4D4D;
  background-color: #FFDDDD;
  color: #FF4D4D;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

.custom-hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 24px 0 12px 0;
  width: 100%;
}



.agb-link {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* linksbündig */
  gap: 8px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 25px;
}

.agb-link input[type="checkbox"] {
  width: auto;
  height: auto;
}

/* Link ganz normal, ohne Styling */
.agb-link a {
  all: unset; /* entfernt alle Styles */
  cursor: pointer;
  color: inherit; /* übernimmt Textfarbe */
  text-decoration: underline; /* klassischer Link */
}

.agb-link a:hover {
  /* kein Hover-Effekt */
  text-decoration: underline;
}


/* Responsive */
@media (max-width: 640px) {
  .container {
    max-width: 100%;
    padding: 30px 20px;
  }
}


.agb-box {
  display: flex;
  justify-content: center;
}

.agb-box a {
  font-size: 12px;
  color: #888;
  padding: 6px 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  background-color: #fafafa;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.agb-box a:hover {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}


    label.required::after { content: " *"; color: #e53935; margin-left: 0.2em; }
    .required-note {
      color: #e53935;
      font-size: 0.9rem;
      margin-top: 0.5rem;
      text-align: left;
    }