/* ==========================================================================
   transformis® · Whitepaper Download Block
   --------------------------------------------------------------------------
   Full-Width Hintergrund, zentrierter Content-Container.
   Bild links (40%), Text + CF7-Formular rechts (60%).
   ========================================================================== */

/* Full-Width Hintergrund, Content zentriert */
.tm-whitepaper {
  background: #F3F3F3;
  padding: 64px 0;
  margin: 48px 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  box-sizing: border-box;
}

/* Innerer Container: zentriert, begrenzte Breite */
.tm-whitepaper__inner {
  width: 997px;
  max-width: calc(100% - 2 * var(--tm-content-padding, 24px));
  margin: 0 auto;
}

/* ── Heading: head-l, blau ── */
.tm-whitepaper__heading {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.3;
  color: var(--tm-blue, #05132C);
  margin: 0 0 32px;
  text-align: center;
}

/* ── Zwei-Spalten-Layout ── */
.tm-whitepaper__row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* ── Bild: 50% ── */
.tm-whitepaper__image {
  flex: 0 0 calc(50% - 24px);
  max-width: calc(50% - 24px);
}

.tm-whitepaper__image img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0;
}

/* ── Content: 50% ── */
.tm-whitepaper__content {
  flex: 0 0 calc(50% - 24px);
  min-width: 0;
}

/* ── Beschreibung: 700 weight ── */
.tm-whitepaper__desc {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  color: var(--tm-black, #1A1A1A);
  margin: 0 0 32px;
}

/* ── Formular-Container ── */
.tm-whitepaper__form {
  margin: 0;
}


/* ==========================================================================
   CF7 Formular-Styling innerhalb Whitepaper-Block
   ========================================================================== */

/* ── Input + Textarea ── */
/* !important ueberschreibt Parent-Theme-Styles (dicke Borders, Hintergrund). */
.tm-whitepaper__form input[type="text"],
.tm-whitepaper__form input[type="email"],
.tm-whitepaper__form input[type="tel"],
.tm-whitepaper__form input[type="url"],
.tm-whitepaper__form input[type="number"],
.tm-whitepaper__form textarea,
.tm-whitepaper__form select {
  width: 100% !important;
  height: 44px !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid #95A4BD !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  font-family: "Open Sans", sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 44px !important;
  color: var(--tm-blue, #05132C) !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease;
}

.tm-whitepaper__form textarea {
  height: auto !important;
  min-height: 88px !important;
  line-height: 1.5 !important;
  padding-top: 10px !important;
}

/* Focus: Border dunkler */
.tm-whitepaper__form input[type="text"]:focus,
.tm-whitepaper__form input[type="email"]:focus,
.tm-whitepaper__form input[type="tel"]:focus,
.tm-whitepaper__form input[type="url"]:focus,
.tm-whitepaper__form input[type="number"]:focus,
.tm-whitepaper__form textarea:focus,
.tm-whitepaper__form select:focus {
  border-bottom-color: var(--tm-blue, #05132C) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ── Placeholder: blau, 400 weight ── */
.tm-whitepaper__form input::placeholder,
.tm-whitepaper__form textarea::placeholder {
  color: var(--tm-blue, #05132C);
  font-weight: 400;
  opacity: 1;
}

/* ── Submit-Button: Primary (gruen) ── */
/* !important noetig, weil Parent-Theme eigene Button-Styles hat. */
.tm-whitepaper__form input[type="submit"],
.tm-whitepaper__form button[type="submit"],
.tm-whitepaper__form .wpcf7-submit {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  padding: 12px 17px !important;
  background: var(--tm-green, #C8E61E) !important;
  background-color: var(--tm-green, #C8E61E) !important;
  background-image: none !important;
  color: var(--tm-blue, #05132C) !important;
  border: 1px solid var(--tm-green, #C8E61E) !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  font-family: "Open Sans", sans-serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-top: 32px !important;
  box-shadow: none !important;
  outline: none !important;
}

.tm-whitepaper__form input[type="submit"]:hover,
.tm-whitepaper__form button[type="submit"]:hover,
.tm-whitepaper__form .wpcf7-submit:hover {
  background: color-mix(in srgb, var(--tm-green, #C8E61E), black 10%) !important;
  background-color: color-mix(in srgb, var(--tm-green, #C8E61E), black 10%) !important;
  border-color: color-mix(in srgb, var(--tm-green, #C8E61E), black 10%) !important;
  color: var(--tm-blue, #05132C) !important;
  box-shadow: none !important;
}

/* ── CF7 Label ── */
.tm-whitepaper__form label {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--tm-blue, #05132C);
}

/* ── CF7 Elemente: Abstaende ── */
.tm-whitepaper__form .wpcf7-form-control-wrap {
  display: block;
}

/* CF7 wrapped Felder in <p> – alle Margins auf 0, Abstand nur ueber Input-margin */
.tm-whitepaper__form p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Abstand zwischen Feldern ueber die Inputs selbst */
.tm-whitepaper__form input[type="text"],
.tm-whitepaper__form input[type="email"],
.tm-whitepaper__form input[type="tel"],
.tm-whitepaper__form input[type="url"],
.tm-whitepaper__form input[type="number"],
.tm-whitepaper__form textarea,
.tm-whitepaper__form select {
  margin-bottom: 10px;
}

/* CF7 erzeugt <br> zwischen Feldern – ausblenden */
.tm-whitepaper__form br {
  display: none;
}

/* Formular-Tag selbst: kein Extra-Spacing */
.tm-whitepaper__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── CF7 Validation ── */
.tm-whitepaper__form .wpcf7-not-valid {
  border-bottom-color: #dc3232;
}

.tm-whitepaper__form .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #dc3232;
  margin-top: 4px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .tm-whitepaper {
    padding: 48px 0;
  }

  .tm-whitepaper__row {
    flex-direction: column;
    gap: 32px;
  }

  .tm-whitepaper__image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .tm-whitepaper__image img {
    max-width: 400px;
    margin: 0 auto;
  }

  .tm-whitepaper__content {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .tm-whitepaper {
    padding: 32px 0;
  }

  .tm-whitepaper__heading {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .tm-whitepaper__desc {
    font-size: 16px;
  }
}
