/* mit ChatGpt */
:root {
  --ozeanblau: #36abd9;
  --polarweiss: #ffffff;
  --tiefschwarz: #000000;
  --bluetenrosa: #e6989b;
  --altrosa: #b5838c;
  --mauvebraun: #8d6a6f;

  --font-base: "roc-grotesk", sans-serif;
  --font-body: "montserrat", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--polarweiss);
  color: var(--tiefschwarz);
  line-height: 1.6;
  font-size: 16px;
  padding: 0;
}

/* Anmelde-Seiten-Header */
.anmeldung header {
  background-image: url("../assets/vektor_muster-2.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 120% auto;
  background-color: var(--polarweiss);
  min-height: 250px;
  padding: 100px 20px 60px;
}

/* Header */
.header-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  background-color: var(--ozeanblau);
}

.header-flex .logo {
  position: static;
  transform: none;
  margin-bottom: 0.5rem;
  height: 60px;
  width: auto;
}

.header-flex h1 {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 1.75rem;
  text-align: center;
}

/* Fehler */
.error {
  color: red;
  font-size: 0.9rem;
  display: block;
  margin-top: 4px;
}

/* Navigation */
nav {
  background-color: #f8f9fb;
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--ozeanblau);
  font-weight: 600;
  transition: color 0.3s ease;
}
nav a:hover {
  color: var(--altrosa);
}

/* Main */
main {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

.hero {
  background-color: #f2f8fc;
  border-left: 6px solid var(--ozeanblau);
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 10px;
}
.hero h2 {
  font-family: var(--font-base);
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.hero p {
  margin-bottom: 20px;
}
.hero .button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--ozeanblau);
  color: var(--polarweiss);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.hero .button:hover {
  background-color: var(--altrosa);
}

section {
  margin-bottom: 40px;
}
section h3 {
  font-family: var(--font-base);
  font-size: 1.5rem;
  color: var(--altrosa);
  margin-bottom: 10px;
}
section ul {
  padding-left: 20px;
  list-style-type: disc;
}
section li {
  margin-bottom: 6px;
}

/* Footer */
footer {
  background-color: var(--ozeanblau);
  color: var(--polarweiss);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 60px;
}

/* Formular */
form {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f9fbfc;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

form h1 {
  text-align: center;
  color: var(--ozeanblau);
  margin-bottom: 30px;
  font-family: var(--font-base);
}

fieldset {
  border: none;
  margin-bottom: 30px;
}

legend {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--altrosa);
  margin-bottom: 15px;
  display: block;
}

label {
  display: block;
  margin-bottom: 5px;
  margin-top: 25px;
  font-weight: 500;
  color: var(--tiefschwarz);
}

/* Eingabefelder */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 5px;
  font-family: var(--font-body);
  height: 40px;
  line-height: 1.2;
}

/* Textfeld */
textarea {
  resize: vertical;
  height: 100px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.broschuere-link {
  color: var(--ozeanblau);
  font-weight: 500;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: var(--ozeanblau);
  color: var(--polarweiss);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
  background-color: var(--altrosa);
}

img.logo {
  display: block;
  margin: 20px auto;
  max-height: 80px;
}

footer {
  background-color: var(--ozeanblau);
  color: var(--polarweiss);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

footer h3 {
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 10px;
}

.radio-group {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 6px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: var(--ozeanblau);
}

/* Formularstruktur */
.form-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row label {
  flex: 0 0 150px;
  margin: 0;
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  margin: 0;
}

/* Gesamt-Layout */
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Confirmation-Seite */
main.confirmation {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #f9fbfc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

main.confirmation h2 {
  font-family: var(--font-base);
  font-size: 1.8rem;
  color: var(--ozeanblau);
  margin: 0;
}

main.confirmation p {
  font-size: 1rem;
  color: var(--tiefschwarz);
  margin: 0;
}

main.confirmation .button {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--ozeanblau);
  color: var(--polarweiss);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: center;
}

main.confirmation .button:hover {
  background-color: var(--altrosa);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
}

body.anmeldung .header-flex {
  background-color: transparent !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body.anmeldung .header-flex .logo,
body.anmeldung .header-flex h1 {
  display: block !important;
}

body.anmeldung .header-flex h1 {
  color: var(--tiefschwarz) !important;
}

/* Desktop-Ansicht */
@media (min-width: 602px) {
  .header-flex {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 120px;
    padding: 20px 0;
  }

  .header-flex .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 80px;
    width: auto;
  }

  .header-flex h1 {
    margin: 0;
    margin-left: auto;
    margin-right: 10px;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 2rem;
    text-align: right;
    color: white;
  }
}
