* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #d0e9f6;
  color: #006db6;
}

header {
  text-align: center;
}

.logo {
  max-width: 220px;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: 2.8rem;
  color: #ffff;
}

main {
  padding: 2rem 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  background: #ffff;
  margin-bottom: 1.5rem;
}

.form-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.radio-group,
.checkbox-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background-color: #006db6;
  color: white;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #3289c3;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #d0e9f6;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #006db6;
}

footer a {
  display: inline-block;
  margin-top: 0.3rem;
  color: #d0e9f6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.error {
  color: red;
  font-size: 0.9em;
  margin-top: 0.2em;
}
.form-block {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.block-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #006db6;
  font-size: 1.6rem;
  font-weight: 700;
  border-bottom: 2px solid #006db6;
  padding-bottom: 0.4rem;
}

.button-wrapper {
  display: flex;
  justify-content: center; /* Zentriert auf kleinen Bildschirmen */
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .button-wrapper {
    justify-content: flex-start; /* Links ausgerichtet ab Desktop */
  }
}
