@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;800&display=swap');

:root {
  --primary-color: #273f46;
  --accent-color: #e4b745;
  --background: #f5f7fa;
  --white: #ffffff;
  --radius: 14px;
  --font: 'Sora', sans-serif;
}

/* Reset der Standardabstände */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: var(--background);
  color: var(--primary-color);
  line-height: 1.6;
}

/* Startseite: dunkles Layout mit Video */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* Video-Hintergrund */
.home-video-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

/* Header-Leiste oben */
.main-header {
  background: linear-gradient(to right, var(--accent-color), #f8d776);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  justify-content: center;
}

.home-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

.main-logo {
  height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Haupttext auf Startseite */
main.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  padding-bottom: 5rem;
}

main.home-main h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  animation: fadeInUp 1s ease-out both;
}

main.home-main p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  animation: fadeInUp 1s ease-out both;
  animation-delay: 0.3s;
}

/* Call-to-Action-Button */
button, .cta-btn {
  background-color: var(--accent-color);
  color: var(--white);
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover, .cta-btn:hover {
  background-color: #d3a53e;
  transform: translateY(-2px);
}

.cta-btn {
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out both;
  animation-delay: 0.6s;
}

/* Titelbereich auf Unterseiten */
.hero-section {
  height: 50vh;
  background: url('../media/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  text-align: center;
  padding: 2rem;
}

.hero-section h1 {
  font-size: 2.2rem;
  font-weight: 800;
}

.hero-section + .page-content {
  margin-top: 3rem;
}

/* Formular-Styling */
form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  max-width: 900px;
  margin: auto;
}

.padding-container {
  padding: 3rem 2rem;
}

.hero-section + .form-container {
  margin-top: 3rem;
}

fieldset {
  border: none;
  margin-bottom: 2rem;
}

legend {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-top: 0.3rem;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Bestätigungsseite */
.confirmation-container {
  text-align: center;
  padding: 3rem 2rem;
}

.confirmation-box {
  text-align: left;
  max-width: 700px;
  margin: 2rem auto;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.confirmation-box h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.confirmation-box ul {
  list-style: none;
  padding: 0;
}

.confirmation-box li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Footer */
footer {
  background-color: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}

footer.home-footer {
  padding: 1rem;
  text-align: center;
  background: rgba(0,0,0,0.7);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

footer.home-footer a {
  color: var(--white);
  text-decoration: underline;
}

footer.main-footer {
  background-color: #eee;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Seiteninhalt mit Abstand */
.page-content {
  padding: 4rem 2rem;
}

/* Erfolgs- und Fehlermeldungen */
.success-box,
.error-box {
  text-align: center;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
}

.success-box {
  background-color: #d4edda;
  color: #155724;
}

.error-box {
  background-color: #f8d7da;
  color: #721c24;
}

/* Einfache Fade-in-Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Radio-/Checkboxen inline */
label input[type="radio"],
label input[type="checkbox"] {
  margin-right: 0.4rem;
  vertical-align: middle;
}

fieldset label {
  display: block;
}

/* Radio-Gruppen nebeneinander */
.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
}

/* Absenden-Button im Formular */
form button[type="submit"] {
  display: inline-block;
  margin-top: 2rem;
}

/* Button auf kleinen Bildschirmen zentrieren */
@media (max-width: 700px) {
  button[type="submit"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
