/*
Theme Name: Diacara Child
Description: This is a child theme for Diacara Theme
Author: Dahz
Template: diacara
Version: 1.0.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* === Anfrageformulare (Gravity Forms) ===
   Farben, Schriftgroessen und Radien der Bedienelemente kommen aus dem
   Filter gform_default_styles in der functions.php. Hier steht die
   visuelle Angleichung an die Abschnitte der Startseite 2026.
   Greift ueber die Formularklasse vvv-form. */

.vvv-form_wrapper {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Gruppenueberschriften im Formular ---
   Aufgegriffen ist die Eyebrow-Zeile der Startseitenabschnitte:
   klein, gesperrt, Mittelblau, darueber eine feine Trennlinie. */
.vvv-form_wrapper .gsection {
  border: 0;
  margin-top: 64px;
  margin-bottom: 4px;
  padding-top: 0;
}

.vvv-form_wrapper .gfield--type-section:first-child .gsection,
.vvv-form_wrapper .gform_fields > .gfield:first-child .gsection {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.vvv-form_wrapper .gsection_title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #032148;
  margin: 0;
}

/* --- Abstaende: Luft zwischen den Fragen, damit die langen
       Auswahllisten nicht ineinanderlaufen --- */
.vvv-form_wrapper .gform_fields {
  row-gap: 28px;
}

/* --- Eingabefelder ---
   Rahmen bewusst dunkler als die Kartenrahmen der Startseite.
   WCAG 1.4.11 verlangt 3:1 fuer die Begrenzung von Bedienelementen,
   #dce7f2 erreicht gegen Weiss nur rund 1,2:1. */
.vvv-form_wrapper .gform_fields input,
.vvv-form_wrapper .gform_fields select,
.vvv-form_wrapper .gform_fields textarea,
.vvv-form_wrapper .gchoice label {
  font-size: 16px;
}

.vvv-form_wrapper .gform_fields input:not([type=checkbox]):not([type=radio]),
.vvv-form_wrapper .gform_fields select,
.vvv-form_wrapper .gform_fields textarea {
  border-color: #686e77;
  border-radius: 7px;
}

.vvv-form_wrapper .gform_fields input:not([type=checkbox]):not([type=radio]):focus,
.vvv-form_wrapper .gform_fields select:focus,
.vvv-form_wrapper .gform_fields textarea:focus {
  border-color: #032148;
  box-shadow: 0 0 0 3px rgba(175, 209, 237, .55);
  outline: none;
}

/* --- Auswahlmoeglichkeiten: groessere Klickflaeche, ruhige Hervorhebung
       in der Kartenfarbe der Startseite --- */
.vvv-form_wrapper .gchoice {
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 7px;
  transition: background-color .2s;
}

.vvv-form_wrapper .gchoice:hover {
  background-color: #f6f9fc;
}

.vvv-form_wrapper .gchoice label {
  cursor: pointer;
}

/* --- Fortschrittsanzeige: etwas Luft nach unten --- */
.vvv-form_wrapper .gf_page_steps {
  margin-bottom: 36px;
}

/* --- Buttons ---
   Weiter und Absenden gefuellt, damit die Hauptaktion je Schritt
   eindeutig ist. Zurueck als Kontur, wie die Buttons der Abschnitte. */
.vvv-form_wrapper .gform_button,
.vvv-form_wrapper .gform_next_button,
.vvv-form_wrapper .gform_previous_button {
  border-radius: 5px;
  font-weight: 700;
  padding: 12px 20px;
  transition: background-color .3s, color .3s, border-color .3s;
}

.vvv-form_wrapper .gform_button,
.vvv-form_wrapper .gform_next_button {
  background-color: #032148;
  border: 1px solid #032148;
  color: #ffffff;
}

.vvv-form_wrapper .gform_button:hover,
.vvv-form_wrapper .gform_next_button:hover {
  background-color: #021634;
  border-color: #021634;
  color: #ffffff;
}

.vvv-form_wrapper .gform_previous_button {
  background-color: transparent;
  border: 1px solid #032148;
  color: #032148;
}

.vvv-form_wrapper .gform_previous_button:hover {
  background-color: #f6f9fc;
  border-color: #032148;
  color: #032148;
}

.vvv-form_wrapper .gform_button:focus-visible,
.vvv-form_wrapper .gform_next_button:focus-visible,
.vvv-form_wrapper .gform_previous_button:focus-visible {
  outline: 3px solid #afd1ed;
  outline-offset: 2px;
}

/* --- Abstand zum Seitenkopf, Rhythmus der Startseitenabschnitte --- */
.vvv-form_wrapper {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* --- Pflichtfeldlegende lesbar halten --- */
.vvv-form_wrapper .gform_required_legend {
  font-size: 15px;
  color: #525252;
  margin-bottom: 24px;
}

/* --- Fortschrittsanzeige als echter Schrittindikator --- */
.vvv-form_wrapper .gf_page_steps {
  display: flex;
  gap: 8px;
  border: 0;
  margin-bottom: 8px;
  padding: 0;
}

.vvv-form_wrapper .gf_step {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 0 14px 0;
  border-bottom: 3px solid #dce7f2;
  opacity: 1;
}

.vvv-form_wrapper .gf_step_active {
  border-bottom-color: #032148;
}

.vvv-form_wrapper .gf_step_number {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #032148;
  background: #ffffff;
  color: #032148;
  font-size: 15px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.vvv-form_wrapper .gf_step_active .gf_step_number {
  background: #032148;
  color: #ffffff;
}

.vvv-form_wrapper .gf_step_completed .gf_step_number {
  background: #afd1ed;
  border-color: #afd1ed;
  color: #032148;
}

.vvv-form_wrapper .gf_step_label {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: #525252;
}

.vvv-form_wrapper .gf_step_active .gf_step_label {
  font-weight: 700;
  color: #032148;
}

/* --- Auswahlfelder kraeftiger: bei sieben Optionen am Stueck
       traegt die Form die Lesbarkeit --- */
.vvv-form_wrapper .gform_fields input[type=radio],
.vvv-form_wrapper .gform_fields input[type=checkbox] {
  width: 21px;
  height: 21px;
  border: 1px solid #686e77;
  accent-color: #032148;
  cursor: pointer;
}

.vvv-form_wrapper .gform_fields input[type=radio]:checked,
.vvv-form_wrapper .gform_fields input[type=checkbox]:checked {
  border-color: #032148;
}

.vvv-form_wrapper .gsection {
  margin-bottom: 12px;
}

/* === Antwortmoeglichkeiten als Flaechen ===
   Kartensprache der Startseite: #F6F9FC auf 1px #DCE7F2, Radius 7px.
   Ziel ist nicht Schmuck, sondern Laenge: nebeneinander statt untereinander. */

.vvv-form_wrapper .vvv-choices .gfield_radio,
.vvv-form_wrapper .vvv-choices .gfield_checkbox {
  display: grid;
  gap: 10px;
}

.vvv-form_wrapper .vvv-choices-inline .gfield_radio,
.vvv-form_wrapper .vvv-choices-inline .gfield_checkbox {
  grid-template-columns: repeat(3, 1fr);
}

.vvv-form_wrapper .vvv-choices-2col .gfield_radio,
.vvv-form_wrapper .vvv-choices-2col .gfield_checkbox {
  grid-template-columns: repeat(2, 1fr);
}

.vvv-form_wrapper .vvv-choices .gchoice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: #f6f9fc;
  border: 1px solid #dce7f2;
  border-radius: 7px;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.vvv-form_wrapper .vvv-choices .gchoice:hover {
  background: #ffffff;
  border-color: #afd1ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.vvv-form_wrapper .vvv-choices .gchoice:has(input:checked) {
  background: #ffffff;
  border-color: #032148;
  box-shadow: inset 0 0 0 1px #032148;
}

.vvv-form_wrapper .vvv-choices .gchoice label {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 1.35;
  cursor: pointer;
}

/* ganze Flaeche klickbar, nicht nur die Beschriftung */
.vvv-form_wrapper .vvv-choices .gchoice label::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 7px;
}

.vvv-form_wrapper .vvv-choices .gchoice:focus-within {
  border-color: #032148;
  box-shadow: 0 0 0 3px rgba(175, 209, 237, .55);
}

/* --- Fortschrittsanzeige bleibt beim Scrollen stehen --- */
.vvv-form_wrapper .gf_page_steps {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  padding-top: 16px;
}

/* --- etwas mehr Gewicht auf den Fragen --- */
.vvv-form_wrapper .gfield_label {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 10px;
}

/* Fortschrittsanzeige beim Anhaften abgrenzen */
.vvv-form_wrapper .gf_page_steps {
  border-bottom: 1px solid #dce7f2;
  padding-bottom: 0;
}

/* --- Pflichtfeldlegende: Gravity Forms setzt sie vor die Schrittfolge.
       Fuer Vorlesesoftware bleibt sie im Dokument, sichtbar steht der
       Hinweis als Beschreibung der ersten Gruppe. visually-hidden-legende --- */
.vvv-form_wrapper .gform_required_legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.vvv-form_wrapper .gsection .gsection_description {
  font-size: 15px;
  line-height: 1.6;
  color: #525252;
  margin-top: 6px;
}

/* === Vorspann ueber dem Formular ===
   Setzt sich als ruhige Flaeche vom weissen Formularbereich ab. */
/* Vorspann als durchgehendes Band, schliesst direkt an den Kopfbereich an.
   Der Zeilenbereich selbst wird entgrenzt, der Text bleibt bei 780px. */
/* uk-container des Themes setzt max-width 1240px mit gleicher Spezifitaet
   und gewinnt ueber die Reihenfolge. Fuer dieses eine Band bewusst
   ueberschrieben, damit die Flaeche durchlaeuft. */
.de-row.vvv-intro {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0;
}

/* Der Seitentitel des Themes haelt 60px Abstand nach unten.
   Auf den Formularseiten soll das Band direkt anschliessen. */
.vvv-formularseite .de-page-title { margin-bottom: 0; }

.vvv-intro .vvv-intro-termin a {
  color: #032148;
  font-weight: 700;
  text-decoration: underline;
}

/* Vertrauenshinweis mit Schloss, Hinweis auf die Pflichtfelder darunter */
.vvv-intro .vvv-intro-trust,
.vvv-intro .vvv-intro-pflicht {
  font-size: 15px;
  color: #525252;
  padding-left: 26px;
  background-repeat: no-repeat;
  background-position: 0 2px;
  background-size: 16px 16px;
}

.vvv-intro .vvv-intro-trust {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dce7f2;
  background-position: 0 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032148' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.vvv-intro .vvv-intro-pflicht {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032148' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* Formular schliesst direkt an den Vorspann an */
.vvv-form_wrapper { padding-top: 40px; }

/* Inhalt des Vorspanns auf Formularseiten auf Formularbreite halten.
   Auf der Startseite laeuft derselbe Abschnitt ueber die volle
   Containerbreite, hier soll er mit dem Formular fluchten. */
.vvv-formularseite .vvv-intro .de-column > * {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}


/* --- Zustimmungsfeld als Kachel ---
   Gravity Forms baut das Zustimmungsfeld ohne .gchoice auf, deshalb eine
   eigene Regel. Bewusst OHNE die flaechendeckende Klickschicht: die
   Beschriftung enthaelt den Link zur Datenschutzerklaerung, der sonst
   nicht mehr erreichbar waere. */
.vvv-form_wrapper .vvv-choices-consent .ginput_container_consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f6f9fc;
  border: 1px solid #dce7f2;
  border-radius: 7px;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.vvv-form_wrapper .vvv-choices-consent .ginput_container_consent:hover {
  background: #ffffff;
  border-color: #afd1ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.vvv-form_wrapper .vvv-choices-consent .ginput_container_consent:has(input:checked) {
  background: #ffffff;
  border-color: #032148;
  box-shadow: inset 0 0 0 1px #032148;
}

.vvv-form_wrapper .vvv-choices-consent .ginput_container_consent:focus-within {
  border-color: #032148;
  box-shadow: 0 0 0 3px rgba(175, 209, 237, .55);
}

.vvv-form_wrapper .vvv-choices-consent .ginput_container_consent label {
  margin: 0;
  line-height: 1.45;
  cursor: pointer;
}

.vvv-form_wrapper .vvv-choices-consent .ginput_container_consent a {
  position: relative;
  z-index: 1;
  color: #032148;
  font-weight: 700;
  text-decoration: underline;
}


/* --- Eingabefelder: Praesenz und Zustaende ---
   Bleiben weiss, damit der Unterschied zu den Auswahlkacheln erhalten
   bleibt. Gewicht bekommen sie ueber Hoehe, Innenabstand und klare
   Zustaende, nicht ueber Flaeche. */
.vvv-form_wrapper .gform_fields input:not([type=checkbox]):not([type=radio]),
.vvv-form_wrapper .gform_fields select {
  height: 52px;
  padding-left: 16px;
  padding-right: 16px;
}

.vvv-form_wrapper .gform_fields textarea {
  padding: 14px 16px;
}

.vvv-form_wrapper .gfield--type-date input {
  padding-right: 40px;
}

.vvv-form_wrapper .gform_fields input:not([type=checkbox]):not([type=radio]):hover,
.vvv-form_wrapper .gform_fields select:hover,
.vvv-form_wrapper .gform_fields textarea:hover {
  border-color: #4b535e;
}

.vvv-form_wrapper .gform_fields ::placeholder {
  color: #6f7782;
  opacity: 1;
}

/* Zeichenzaehler rechts unter das Feld, ruhig gehalten */
.vvv-form_wrapper .ginput_counter {
  display: block;
  font-size: 14px;
  color: #6f7782;
  text-align: right;
  margin-top: 6px;
}


/* === Zustaende ===
   Fehlerfarbe ist das Rot von Gravity Forms (#c02b0a, rund 5:1 gegen
   Weiss). Form und Radien folgen dem uebrigen Formular. */

/* --- Zusammenfassung oben --- */
.vvv-form_wrapper .gform_validation_errors {
  background: #fdf4f2;
  border: 1px solid #e4b3a7;
  border-radius: 7px;
  padding: 20px 24px 20px 56px;
  margin-bottom: 28px;
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c02b0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 22px 21px;
  background-size: 20px 20px;
}

.vvv-form_wrapper .gform_validation_errors h2,
.vvv-form_wrapper .gform_validation_errors .gform_submission_error {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  color: #032148;
  margin: 0 0 10px;
}

.vvv-form_wrapper .gform_validation_errors ol,
.vvv-form_wrapper .gform_validation_errors ul {
  margin: 0;
  padding-left: 18px;
}

.vvv-form_wrapper .gform_validation_errors li { margin: 4px 0; }

.vvv-form_wrapper .gform_validation_errors a {
  color: #c02b0a;
  text-decoration: underline;
}

/* --- Fehler am Feld --- */
.vvv-form_wrapper .gfield_error input:not([type=checkbox]):not([type=radio]),
.vvv-form_wrapper .gfield_error select,
.vvv-form_wrapper .gfield_error textarea {
  border-color: #c02b0a;
  box-shadow: 0 0 0 3px rgba(192, 43, 10, .12);
}

.vvv-form_wrapper .gfield_validation_message {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: #c02b0a;
  background: transparent;
  border: 0;
  padding: 0 0 0 24px;
  margin-top: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c02b0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 2px;
  background-size: 16px 16px;
}

/* Auswahlkacheln im Fehlerfall: Rand mitfaerben, Flaeche ruhig lassen */
.vvv-form_wrapper .vvv-choices.gfield_error .gchoice,
.vvv-form_wrapper .vvv-choices-consent.gfield_error .ginput_container_consent {
  border-color: #e4b3a7;
}

/* --- Ablageflaeche fuer Dateien --- */
.vvv-form_wrapper .gform_drop_area {
  background: #fbfcfe;
  border: 1px dashed #8d96a3;
  border-radius: 7px;
  padding: 28px 20px;
  text-align: center;
  transition: background-color .2s, border-color .2s;
}

.vvv-form_wrapper .gform_drop_area:hover,
.vvv-form_wrapper .gform_drop_area:focus-within {
  background: #f6f9fc;
  border-color: #032148;
}

@media only screen and (max-width: 48em) {

/* Flaechen mobil einspaltig, sonst brechen die Beschriftungen um */
.vvv-form_wrapper .vvv-choices-inline .gfield_radio,
.vvv-form_wrapper .vvv-choices-inline .gfield_checkbox,
.vvv-form_wrapper .vvv-choices-2col .gfield_radio,
.vvv-form_wrapper .vvv-choices-2col .gfield_checkbox {
  grid-template-columns: 1fr;
}

/*************** ADD MOBILE ONLY CSS HERE  ***************/

.vvv-form_wrapper .gsection {
  margin-top: 32px;
  padding-top: 20px;
}

}
