/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Myriad Pro", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background-image: url("Bilder/shaun-low-v8Un2Roo1Ak-unsplash.jpg") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* Header-Bereich */
header {
  background-color: white;
  text-align: center;
  padding: 30px 0;
  width: 100%;
}

.logo-header {
  width: 150px;
  height: auto;
}

/* Content-Bereich */
main {
  flex: 1;
  width: 100%;
  position: relative;
  padding: 20px;
  background-color: transparent;
}

/* Hintergrundbild-Wrapper */
.background-wrapper {
  position: fixed;
  top: 140px; /* Höhe des Headers */
  left: 0;
  right: 0;
  bottom: 60px; /* Höhe des Footers */
  z-index: -1;
  background-image: url("Bilder/shaun-low-v8Un2Roo1Ak-unsplash.jpg");
  background-size: cover;
  background-position: center;
}

/* Container für das Formular */
main.container {
  flex: 1 0 auto;
  max-width: 800px;
  margin: 20px auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  background-color: #006eb7;
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 14px;
  width: 100%;
}

footer a {
  color: white;
  text-decoration: underline;
}

footer a:hover {
  opacity: 0.8;
}

/* Formular-Styles */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  background-color: white;
}

button {
  background-color: #63b9e9;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 10px;
}

button:hover {
  background-color: #006eb7;
}

.progress-bar {
  width: 100%;
  background-color: #e0e0e0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-bar .progress {
  height: 100%;
  background-color: #006eb7;
  transition: width 0.5s ease;
}

h1 {
  color: #006eb7;
  margin-bottom: 30px;
  text-align: center;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 20px;
  }

  button {
    width: 100%;
    margin: 5px 0;
  }
}

/* Randverzierungen */
.logo-ecke {
  position: fixed;
  width: 180px;
  height: 180px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 3;
  opacity: 0.7;
  pointer-events: none;
}

.logo-ecke.tl {
  top: 0;
  left: 0;
  background-image: url("Bilder/Oben-links_Zeichenfläche 1.png");
}

.logo-ecke.tr {
  top: 0;
  right: 0;
  background-image: url("Bilder/Oben-rechts_Zeichenfläche 1.png");
}

.logo-ecke.bl {
  bottom: 0;
  left: 0;
  background-image: url("Bilder/unten-links_Zeichenfläche 1.png");
}

.logo-ecke.br {
  bottom: 0;
  right: 0;
  background-image: url("Bilder/unten-rechts_Zeichenfläche 1.png");
}

/* Mobile */
@media (max-width: 600px) {
  .logo-header {
    width: 80px;
  }

  .logo-ecke {
    width: 120px;
    height: 120px;
  }

  .container {
    padding: 20px 15px;
    margin: 0;
    border-radius: 0;
  }

  footer {
    font-size: 11px;
    padding: 20px 0;
  }

  main.container {
    margin: 0;
    padding: 20px;
    border-radius: 0;
  }

  header {
    padding: 15px 0;
  }

  h1 {
    font-size: 24px;
  }

  button {
    width: 100%;
    margin: 10px 0;
  }
}

/* Verbesserte Multiple Select */
select[multiple] {
  height: auto;
  min-height: 120px;
  padding: 8px;
}

/* Checkbox-Style verbessern */
input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* Fehlermeldungen */
.error {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 4px;
}

/* Erfolgsmeldung */
.success {
  text-align: center;
  color: #2e7d32;
  padding: 20px;
  background-color: rgba(46, 125, 50, 0.1);
  border-radius: 8px;
  margin: 20px 0;
}
