/* ========================= Base ========================= */
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
}

/* ========================= Hero (Index) ========================= */
.hero {
  height: 100vh;
  background: url("../media/bilder/court.jpg") center/cover no-repeat;
  position: relative;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.top-bar,
.hero-content {
  position: relative;
  z-index: 2;
}

.top-bar {
  height: 70px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid white;
}

.header-logo {
  width: 40px;
}

.brand {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  font-size: 20px;
  letter-spacing: 2px;
}

.hero-content {
  position: relative;
  margin-top: 120px;
  margin-left: 100px;
  padding-bottom: 80px;
}

.hero-content h1 {
  font-size: 60px;
  margin: 0;
}

.hero-content p {
  font-size: 22px;
  margin-bottom: 35px;
}

.button {
  display: inline-block;
  background: rgba(241, 235, 225, 0.4);
  color: white;
  text-decoration: none;
  padding: 14px 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: medium;
}

/* ========================= Footer ========================= */
footer.sticky-footer {
  padding: 40px 100px;
  background: rgb(241, 235, 225);
  color: #111;
}

footer a {
  text-decoration: none;
}

/* ========================= Form Wrapper ========================= */
.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT + RIGHT */
.left,
.right {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error {
  color: red;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* ========================= Form layout ========================= */
.right form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Reihen */
.row {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
}

/* Felder */
.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Inputs */
input,
select,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: Helvetica, Arial, sans-serif;
}

/* Labels */
label {
  font-weight: bold;
}

.picture1 {
  width: 100%;
  max-width: 400pt;
  margin-bottom: 30pt;
}

.line {
  border: none;
  height: 1px;
  background: #ccc;
  margin: 30px 0;
}

/* ========================= Radio / Checkbox ========================= */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.gender-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============ Icons ================================== */
.icon-f2 {
  width: 25px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ========================= Buttons ========================= */
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.weiter,
.back-btn {
  padding: 12px 18px;
  background: rgb(241, 235, 225);
  color: black;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  transition: background 0.2s;
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: medium;
  cursor: pointer;
}

.weiter:hover,
.back-btn:hover {
  background: rgb(235, 210, 184);
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 768px) {
  /* Strukturelle Veränderung 1: zwei Spalten → eine Spalte */
  .form-wrapper {
    grid-template-columns: 1fr;
  }
  /* Quellenangabe 9 Start */
  .left {
    display: none;
  }
  /* Quellenangabe 9 Ende */

  /* Quellenangabe 8 Start */
  .top-bar {
    justify-content: space-between;
    padding: 0 20px;
  }
  /* Quellenangabe 8 Start */

  .brand {
    position: static;
    transform: none;
  }

  /* Zeilen werden gestapelt */
  .row {
    flex-direction: column;
  }

  .hero-content {
    margin-left: 20px;
    margin-right: 20px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  /* Footer kompakter */
  footer.sticky-footer {
    padding: 30px 20px;
  }
}
