@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Source+Sans+Pro:wght@400;700&display=swap");

/* ========== GRUNDLAYOUT ========== */
body {
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  background-color: #fefefe;
  color: #23606a;
}

/* ========== HEADER ========== */
header.site-header {
  background: linear-gradient(to right, #0f74ba, #66c2f5);
  padding: 2rem 1.5rem;
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;

  /* Mobile First: Spaltenlayout (Logo über Titel) */
  flex-direction: column;
  text-align: center;
}

.logo {
  height: 64px;
  background-color: white;
  border-radius: 12px;
  padding: 0.3rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  object-fit: contain;
}

.main-title {
  font-family: "Abril Fatface", cursive;
  font-size: 28pt;
  color: #fff;
  margin: 0;
}

/* ========== HAUPTTEIL (Hintergrundbild & Zentrierung) ========== */
.main-background {
  background-image: url("../Media/Luana_Podojil_Gestaltungselement.png");
  background-repeat: no-repeat;
  background-position: center;
  padding: 4rem 1rem 6rem;
  min-height: calc(100vh - 140px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== FORMULAR ========== */
.form-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
}

/* LABELS und Eingabefelder */
label {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 14pt;
  color: #23606a;
}

input,
select,
textarea {
  margin-top: 0.4rem;
  padding: 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 11pt;
  background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #23606a;
  box-shadow: 0 0 4px rgba(35, 96, 106, 0.3);
}

label + small {
  font-size: 0.85rem;
  color: #555;
  margin-top: 2px;
  display: block;
}

/* ========== CHECKBOXEN & FIELDSETS ========== */
fieldset {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fafafa;
}

fieldset label {
  font-weight: 400;
  display: block;
  margin: 0.5rem 0;
  color: #23606a;
  font-size: 11pt;
}

/* ========== BUTTON ========== */
button[type="submit"] {
  margin-top: 2rem;
  padding: 0.75rem;
  background-color: #23606a;
  color: white;
  font-size: 14pt;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #1c4d55;
}

/* ========== FEHLERMELDUNGEN (von JS/PHP gesetzt) ========== */
.message-container {
  color: red;
}

.error {
  border-color: red;
}

/* Strukturierungshilfe im Formular */
.field-wrapper {
  display: contents;
}

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #0f74ba, #66c2f5);
  color: white;
  font-size: 11pt;
}

.site-footer a {
  color: #f2bfbf;
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ========== RESPONSIVE BREAKPOINT ========== */
/* Hier erfolgt die strukturelle Änderung im Layout! */
@media (min-width: 601px) {
  /* Logo & Titel nebeneinander (statt übereinander) */
  .header-content {
    flex-direction: row;
    text-align: left;
  }

  /* Formular kann grosszügiger gepolstert werden */
  .form-container {
    padding: 2rem 3rem;
  }
}

/* ========== BESTÄTIGUNGSSEITE (confirm.html) ========== */
body.confirm-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.confirm-page main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

body.confirm-page .form-container {
  font-size: 13pt;
  line-height: 1.6;
  text-align: center;
}

body.confirm-page .form-container h2 {
  font-size: 20pt;
  margin-bottom: 1rem;
}

body.confirm-page .form-container ul {
  margin: 1rem auto;
  padding-left: 2rem; /* etwas mehr Einrückung */
  display: inline-block; /* damit die Liste nicht die ganze Breite hat */
  text-align: left; /* Text innerhalb der Liste links */
}

/* "Ich bringe mit" Feldset - Mobile First: einspaltige Liste */
fieldset[data-field-wrapper] {
  display: block;
}

fieldset[data-field-wrapper] label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  cursor: pointer;
}

/* Checkboxgrösse anpassen */
fieldset[data-field-wrapper] input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

/* Ab Breakpoint grössere Bildschirme: mehrere Spalten */
@media (min-width: 601px) {
  fieldset[data-field-wrapper] {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    gap: 0.5rem 2rem; /* vertikaler und horizontaler Abstand */
  }

  /* Optional: Labels vertikal zentrieren */
  fieldset[data-field-wrapper] label {
    padding: 0.3rem 0;
  }
}

/* Legend im Feldset so formatieren wie die anderen Labels */
fieldset[data-field-wrapper] > legend {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 14pt;
  color: #23606a;
  padding: 0; /* Optional: Standard-Padding vom legend entfernen */
}
