/* =========================================================
   CONTACT DRAWER / FLYOUT
   STB Glindemann
   ========================================================= */


/* =========================================================
   OVERLAY
   Abdunkelung des Hintergrundes beim Öffnen
   ========================================================= */

.contact-drawer-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 99998;
}

/* Overlay sichtbar */
.contact-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   DRAWER CONTAINER
   Das eigentliche Flyout rechts
   ========================================================= */

.contact-drawer {
  position: fixed;

  top: 20px;
  right: 20px;

  width: min(430px, calc(100% - 40px));
  height: calc(100dvh - 40px);

  overflow-y: auto;

  border-radius: 22px;

  /* Hintergrundfarbe */
  background: rgba(216, 235, 180, 0.95);

  /* Startposition außerhalb des Bildschirms */
  transform: translateX(calc(100% + 40px));

  /* Slide-In Animation */
  transition: transform 0.35s ease;

  /* Schatten */
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 2px 12px rgba(0, 0, 0, 0.08);

  z-index: 99999;
}

/* Geöffneter Zustand */
.contact-drawer.is-open {
  transform: translateX(0);
}


/* =========================================================
   INNERER CONTENT
   Innenabstände des Flyouts
   ========================================================= */

.contact-drawer-inner {
  padding: 48px 34px 34px;
}


/* =========================================================
   ÜBERSCHRIFT
   ========================================================= */

.contact-drawer-inner h2 {
  margin: 0 0 40px;

  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;

  color: #111;
}


/* =========================================================
   CLOSE BUTTON
   Schließen-X oben rechts
   ========================================================= */

.contact-drawer-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);

  color: #111;

  font-size: 32px;
  line-height: 40px;

  cursor: pointer;

  z-index: 2;

  transition: background 0.2s ease;
}

/* Hover Zustand */
.contact-drawer-close:hover {
  background: rgba(0, 0, 0, 0.10);
}


/* =========================================================
   BODY LOCK
   Verhindert Scrollen der Seite im Hintergrund
   ========================================================= */

body.contact-drawer-open {
  overflow: hidden;
}


/* =========================================================
   CONTACT FORM 7 BASIS
   ========================================================= */

/* Abstand zwischen Formulargruppen */
.contact-drawer .wpcf7 p {
  margin-bottom: 13px;
}


/* =========================================================
   LABELS
   Feldüberschriften
   ========================================================= */

.contact-drawer .wpcf7 label {
  display: block;

  margin-bottom: 6px;

  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;

  color: #111;
}


/* =========================================================
   FORMULARFELDER
   Input, Textarea, Select
   ========================================================= */

.contact-drawer .wpcf7 input,
.contact-drawer .wpcf7 textarea,
.contact-drawer .wpcf7 select {
  width: 100%;

  padding: 10px 12px;

  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.16);

  background: #fff;

  font-size: 13px;
  line-height: 1.4;

  box-sizing: border-box;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}


/* Fokus Zustand */
.contact-drawer .wpcf7 input:focus,
.contact-drawer .wpcf7 textarea:focus,
.contact-drawer .wpcf7 select:focus {
  outline: none;

  background: #f7f7f7;

  border-color: rgba(0, 0, 0, 0.35);
}


/* =========================================================
   TEXTAREA
   Nachrichtenfeld
   ========================================================= */

.contact-drawer .wpcf7 textarea {
  min-height: 80px;

  resize: vertical;
}


/* =========================================================
   ABSENDEN BUTTON
   ========================================================= */

.contact-drawer .wpcf7-submit,
.contact-drawer input[type="submit"].wpcf7-submit {
  display: inline-block;

  width: auto;
  min-width: 150px;

  margin-top: 10px;

  padding: 10px 20px;

  border: 0;
  border-radius: 6px;

  background: #6f8f3a;
  color: #fff;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.1s ease;
}


/* Hover */
.contact-drawer .wpcf7-submit:hover,
.contact-drawer input[type="submit"].wpcf7-submit:hover {
  background: #5f7e31;
  color: #fff;
}


/* Klick Effekt */
.contact-drawer .wpcf7-submit:active {
  transform: translateY(1px);
}


/* =========================================================
   DATENSCHUTZ / CHECKBOX
   ========================================================= */

/* Wrapper kompakter und mittig */
.contact-drawer .wpcf7-acceptance {
  max-width: 300px;

  margin: 14px auto 0;
}


/* Checkbox + Text nebeneinander */
.contact-drawer .wpcf7-acceptance .wpcf7-list-item {
  display: flex !important;

  align-items: flex-start;

  gap: 5px;

  margin: 0 !important;
}


/* Checkbox selbst */
.contact-drawer .wpcf7-acceptance input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;

  min-width: 18px;

  margin: 3px 8px 0 0 !important;
  padding: 0 !important;

  accent-color: #5f7e31;

  transform: scale(1);
}


/* Text neben Checkbox */
.contact-drawer .wpcf7-acceptance .wpcf7-list-item-label {
  display: inline-block;

  font-size: 12px;
  line-height: 1.45;

  color: #333;
}


/* Datenschutz-Link */
.contact-drawer .wpcf7-acceptance a {
  color: #5f7e31;

  text-decoration: none;
  font-weight: 600;
}


/* Hover */
.contact-drawer .wpcf7-acceptance a:hover {
  text-decoration: underline;
}


/* =========================================================
   MOBILE OPTIMIERUNG
   ========================================================= */

@media (max-width: 767px) {

  .contact-drawer {
    top: 12px;
    right: 12px;

    width: calc(100% - 24px);
    height: calc(100dvh - 24px);

    border-radius: 18px;
  }

  .contact-drawer-inner {
    padding: 58px 22px 26px;
  }

  .contact-drawer-inner h2 {
    font-size: 27px;
    margin-bottom: 32px;
  }

  .contact-drawer-close {
    top: 14px;
    right: 14px;
  }
	
	  /* HIER EINFÜGEN */
  .contact-drawer .wpcf7-acceptance input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;

    min-width: 22px;

    margin: 3px 8px 0 0 !important;

    transform: scale(1);
  }

}