* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;

  /* Hintergrundbild */
  background-image: url("../images/hintergrund.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  /* Formular oben mittig */
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 2rem 1rem;

  position: relative;
}

/* Dunkler Overlay für bessere Lesbarkeit */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

.card {
  width: min(100%, 520px);

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);

  border-radius: 18px;
  padding: 2rem;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

h1 {
  margin-top: 0;
}

label {
  display: block;
  margin: 1rem 0;
  font-weight: 650;
}

input {
  width: 100%;
  margin-top: .35rem;
  padding: .8rem;

  border: 1px solid #ccd3db;
  border-radius: 10px;

  font: inherit;
}

button {
  width: 100%;
  padding: .9rem 1rem;

  border: 0;
  border-radius: 10px;

  background: #1f5eff;
  color: white;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

button:hover {
  background: #184ee0;
}

button:disabled {
  opacity: .7;
  cursor: wait;
}

.muted {
  color: #6b7280;
  font-weight: 400;
}

.success {
  color: #147a3a;
  font-weight: 700;
}

.error {
  color: #b42318;
  font-weight: 700;
}

.hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.4;
}

/* Smartphones */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
    border-radius: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }
}