/* --------------------------
   Farben & Reset
--------------------------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", "Arial", sans-serif;
  background: #f0f6fa;
  color: #18355b;
  font-size: 17px;
  line-height: 1.7;
}
* { box-sizing: border-box; }
a { color: #1863a7; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --------------------------
   Container & Section
--------------------------- */
.form-container {
  max-width: 670px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(24,53,91,0.09), 0 1.5px 8px rgba(24,53,91,0.11);
  padding: 38px 32px 26px 32px;
}

.form-header img, .logo, .logo-header img {
  max-width: 170px;
  max-height: 105px;
  margin: 0 auto 14px auto;
  display: block;
}
.form-header h1 {
  font-size: 2.13rem;
  font-weight: 700;
  margin: 0 0 1.4em 0;
  color: #062452;
  letter-spacing: -0.011em;
}

/* --------------------------
   Form-Groups / Felder
--------------------------- */
.form-group {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(33, 40, 69, 0.08);
  margin: 1.2em 0 1.7em 0;
  padding: 1.2em 1.3em 1em 1.3em;
}

label {
  font-size: 1.07em;
  font-weight: 600;
  color: #1c3763;
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.004em;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 53px;
  font-size: 1.12em;
  border: 2px solid #dde8f3;
  border-radius: 16px;
  background: #fafdff;
  padding: 14px 18px;
  color: #18355b;
  margin-bottom: 0;
  box-shadow: 0 1.5px 8px rgba(33,40,69,0.08);
  transition: border-color 0.17s, box-shadow 0.19s, background 0.16s;
  outline: none;
  appearance: none;
  box-sizing: border-box;
  resize: none;
}
textarea { min-height: 110px; max-height: 300px; }

/* Fokus- & Hover-Effekt */
input:focus, select:focus, textarea:focus {
  border-color: #2d8cff;
  box-shadow: 0 0 0 2px #e3eeff, 0 2px 10px rgba(24,53,91,0.07);
  background: #f3f9fe;
}
input:hover, select:hover, textarea:hover {
  box-shadow: 0 2.5px 13px #e9f3fd, 0 1px 7px rgba(33,40,69,0.08);
  border-color: #b5d6f6;
}

/* Checkbox-Gruppen */
.checkbox-group {
  margin: 1.1em 0 0.5em 0;
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}
.checkbox-label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  margin-bottom: 2px;
}
input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: #2d8cff;
  margin-right: 7px;
}

/* Datenschutz-Checkbox */
.privacy-section {
  margin-top: 28px;
  margin-bottom: 16px;
  padding: 1.1em 1.2em 1.2em 1.2em;
  background: #f2f9ff;
  border: 1.5px solid #dde8f3;
  border-radius: 15px;
  font-size: 1em;
}
.privacy-section label {
  font-size: 0.97em;
  font-weight: 500;
}

/* --------------------------
   Buttons
--------------------------- */
button,
input[type="submit"] {
  display: block;
  width: 100%;
  padding: 18px 0;
  margin: 24px 0 0 0;
  background: linear-gradient(90deg, #2261b8 0%, #2d8cff 80%);
  color: #fff;
  font-size: 1.21em;
  font-weight: 700;
  border: none;
  border-radius: 18px;
  box-shadow: 0 3px 20px #2261b824, 0 1.5px 8px #2d8cff14;
  transition: background 0.18s, box-shadow 0.19s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
button:hover,
input[type="submit"]:hover {
  background: linear-gradient(90deg, #1863a7 0%, #337ff8 100%);
  box-shadow: 0 6px 24px #1863a720;
}

#feedback, .feedback {
  margin: 30px 0 0 0;
  padding: 18px;
  background: #eaf6ff;
  color: #1c3763;
  font-weight: 500;
  border-radius: 12px;
  border: 1.6px solid #b5d6f6;
  font-size: 1.06em;
  display: none;
}
#feedback.error, .feedback.error {
  color: #b91336;
  background: #ffe5ee;
  border-color: #ffb5c9;
  display: block;
}

/* Slider */
input[type="range"] {
  width: 100%;
  margin: 22px 0 8px 0;
  background: transparent;
  appearance: none;
  height: 9px;
  border-radius: 8px;
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track { height: 10px; background: #e4eef8; border-radius: 6px; }
input[type="range"]:focus::-webkit-slider-runnable-track { background: #d1e6fa; }
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #2d8cff;
  border: 3px solid #fafdff;
  box-shadow: 0 2px 10px rgba(45,140,255,0.08);
  cursor: pointer; transition: background 0.17s, border 0.17s;
  margin-top: -9px;
}
input[type="range"]:focus::-webkit-slider-thumb { background: #1863a7; border: 3px solid #e3eeff; }
.slider-value-label {
  display: inline-block;
  margin-left: 13px;
  font-size: 1.11em;
  color: #2261b8;
  background: #f0f6fa;
  padding: 1px 14px 1px 14px;
  border-radius: 10px;
  border: 1.2px solid #dde8f3;
  vertical-align: middle;
}

/* Footer */
.footer,
footer {
  background: #fff;
  color: #18355b;
  width: 100%;
  padding: 13px 0 6px 0;
  text-align: center;
  border-top: 1.6px solid #c5d3e2;
  font-size: 0.99rem;
  box-shadow: 0 -2px 13px rgba(24, 53, 91, 0.04);
  margin-top: 0;
  line-height: 1.45;
  border-radius: 0 0 18px 18px;
}

.footer .lizenz, footer .lizenz {
  color: #18355b;
  font-size: 1.01em;
  opacity: 0.87;
}

/* Responsive */
@media (max-width: 690px) {
  .form-container { padding: 9px; }
  .form-header img { max-width: 110px !important; max-height: 52px !important; }
  .form-header h1 { font-size: 1.29em; }
}
@media (max-width: 420px) {
  .form-container { padding: 2px; }
  .form-header h1 { font-size: 1.05em; }
}

/* Kleinere Checkboxen für mobile */
@media (max-width: 500px) {
  input[type="checkbox"] { width: 19px; height: 19px; }
}

/* Fehleranzeige für Pflichtfelder */
input:invalid, select:invalid, textarea:invalid {
  border-color: #dde8f3;
  background: #fafdff;
}

.datenschutz-modal, .privacy-section {
  max-height: 90vh;
  overflow-y: auto;
}

/* --------------------------
   Login-Felder angleichen
--------------------------- */
.popup input[type="email"],
.popup input[type="password"] {
  border-radius: 16px;
  background: #fafdff;
  border: 2px solid #dde8f3;
  box-shadow: 0 1.5px 8px rgba(33,40,69,0.08);
  padding: 14px 18px;
  font-size: 1.12em;
}
