/*  
   Grundlayout
  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Standardschrift */
  font-family: "roboto-condensed", sans-serif;
  /* Heller Hintergrund */
  background-color: #f2eef5;
  /* Standard Textfarbe */
  color: #1a1a1a;
  line-height: 1.6;
}

/*  
   Header, der Code wurde ab hier bis Zeile 28 mit Unterstützung von KI gemacht. Ich benötigte Hilfe um das Hintergrundbild für eine bessere Lesbarkeit des Textes abzudunkeln.
  */
.site-header {
  /* Hintergrundbild + dunkler Overlay */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15)),
    url("../images/titelbild-final.png");
  background-size: cover;
  background-position: center;
  /* alle Texte im Header */
  color: #f2eef5;
  /* Mehr Padding oben, damit das Logo Platz hat */
  padding: 100px 20px 60px 20px;
  text-align: center;
}

/*  
   Header-Logo (Mobile First: mittig)
  */
.header-logo {
  /* Für das Mobile-First wurde das Logo im Ursprung mittig Platziert. Ab der Breite von 768px wird es nach oben rechts geschoben. Hier hat mich Claude unterstützt */
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.header-logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-header h1 {
  /* Titel Farbe */
  font-family: "miller-banner-ex-compressed", sans-serif;
  color: #f2eef5;
  font-size: 53px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.site-header p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 16px;
}

/*  
   Container
  */
.container {
  width: 90%;
  max-width: 950px;
  /* Formular leicht über Header */
  margin: -50px auto 40px auto;
}

/*  
   Formular
  */
form {
  /* Die Farbe des formulars */
  background-color: #f2eef5;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Effekt habe ich mit Hilfe von ChatGPT gemacht */
}

/*  
   Gruppen / Fieldsets
  */
fieldset {
  /* Rahmenfarbe */
  border: 2px solid #848ea5;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 30px;
  transition: 0.3s;
}

/* Hover-Effekt Gruppen */
fieldset:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Effekt habe ich mit Hilfe von ChatGPT gemacht */
}

legend {
  /* Farbe Gruppentitel */
  color: #202f41;
  font-family: "miller-banner", serif;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 0 12px;
}

/*  
   Formularfelder
  */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  /* Label Farbe */
  color: #1a1a1a;
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

/*  
   Inputs
  */
input,
select,
textarea {
  width: 100%;
  padding: 14px;
  /* Rahmenfarbe */
  border: 1px solid #848ea5;
  border-radius: 10px;
  /* Hintergrund Inputs */
  background-color: #f2eef5;
  /* Textfarbe Inputs */
  color: #1a1a1a;
  font-size: 1rem;
  font-family: "roboto-condensed", sans-serif;
  transition: 0.3s;
}

/*  
   Fokus-Effekt
  */
input:focus,
select:focus,
textarea:focus {
  /* Orange Fokusfarbe */
  border-color: #ff6a13;
  outline: none;
  box-shadow: 0 0 8px rgba(255, 106, 19, 0.35);
}

/*  
   Radio Buttons (Beratungsart und Geschlecht)
  */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  color: #1a1a1a;
}

/* Radio-Buttons sollen ihre normale Grösse behalten und nicht die volle Breite einnehmen. Hier habe ich ebenfalls bei ChatGPT nachfragen müssen. */
.radio-group input {
  width: auto;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label {
  color: #1a1a1a;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-button {
  width: 100%;
  background-color: #ff6a13;
  color: #f2eef5;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

/* Hover Effekt Button - Effekt habe ich mit Hilfe von ChatGPT gemacht */
.submit-button:hover {
  /* Dunkelblauer Hover */
  background-color: #202f41;
  transform: scale(1.01);
}

/* 
   Footer
 */
.site-footer {
  text-align: center;
  padding: 35px 20px;
  /* Footer Textfarbe */
  color: #ff6a13;
  font-size: 0.9rem;
}

/* Gestaltungselement: Icon mittig über den Footer-Angaben */
.footer-icon {
  margin-bottom: 16px;
}

.footer-icon img {
  height: 100px;
  width: auto;
  max-width: 150px;
}

/* 
   Fehlermeldungen
 */
.error {
  color: #ff6a13;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* 
   Bestätigungsseite
*/
.confirmation-box {
  background-color: #f2eef5;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  line-height: 2;
}

.confirmation-box h2 {
  margin-bottom: 20px;
  color: #202f41;
}

.confirmation-box a {
  display: inline-block;
  margin-top: 25px;
  text-decoration: none;
}

/* 
   Responsive Design
*/
@media (min-width: 768px) {
  /* Radio Buttons nebeneinander auf grossen Bildschirmen */
  .radio-group {
    flex-direction: row;
  }

  /* Logo: auf grossen Bildschirmen oben rechts */
  .header-logo {
    position: absolute;
    top: 20px;
    right: 30px;
    margin-bottom: 0;
    justify-content: flex-end;
  }
}
