:root {
  --edp-form-red: #e60000;
  --edp-form-ink: #111827;
  --edp-form-muted: #4b5563;
  --edp-form-line: #d9dee7;
}

.edp-form-card {
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd5df !important;
  border-top: 6px solid var(--edp-form-red) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .10);
}

.edp-form-head {
  padding: 30px 38px;
  border-bottom: 1px solid var(--edp-form-line);
}

.edp-form-head h2 {
  margin: 0;
  color: #050505;
  font-size: 30px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hero h1 {
  overflow-wrap: anywhere;
}

.edp-form-head p {
  margin: 12px 0 0;
  color: var(--edp-form-muted);
}

.edp-standard-form {
  padding: 10px 38px 38px;
}

.edp-standard-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--edp-form-line);
}

.edp-standard-form legend {
  padding: 0 0 17px;
  color: #111;
  font-size: 21px;
  font-weight: 700;
}

.edp-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 20px;
}

.edp-form-grid label,
.edp-standard-form .edp-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #252b35;
  font-weight: 700;
}

.edp-form-grid .span-2,
.edp-standard-form .span-2 {
  grid-column: 1 / -1;
}

.edp-standard-form input,
.edp-standard-form select,
.edp-standard-form textarea {
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #aeb6c2;
  border-radius: 11px;
  background: #fff;
  color: #111;
  font: 400 15px "Trebuchet MS", Arial, sans-serif;
}

.edp-standard-form textarea {
  min-height: 120px;
  resize: vertical;
}

.edp-standard-form input:focus,
.edp-standard-form select:focus,
.edp-standard-form textarea:focus {
  outline: 3px solid rgba(230, 0, 0, .12);
  border-color: var(--edp-form-red);
}

.edp-consent-box {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--edp-form-line);
  border-radius: 15px;
  background: #f7f8fa;
}

.edp-consent-box h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
}

.edp-check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}

.edp-form-card .edp-check-row,
.edp-form-card .edp-check-row span {
  font-weight: 400 !important;
}

.edp-check-row input,
.edp-security-options input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  padding: 0;
}

.edp-check-row input {
  align-self: start;
  height: 18px;
}

.edp-consent-box p {
  margin: 10px 0 0;
  color: var(--edp-form-muted);
  font-size: 13px;
}

.edp-consent-box a {
  text-decoration: underline;
}

.edp-standard-form .edp-security-check {
  margin-top: 32px;
  padding-bottom: 15px;
  border: 0;
}

.edp-security-check p {
  margin: 0 0 13px;
  color: var(--edp-form-muted);
}

.edp-security-options {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.edp-security-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.edp-form-error {
  margin-top: 12px !important;
  color: #b91c1c !important;
  font-weight: 700;
}

.edp-submit-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 18px;
}

.edp-submit-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--edp-form-red);
  box-shadow: none;
  color: #fff;
  font: 700 16px "Trebuchet MS", Arial, sans-serif;
  cursor: pointer;
}

.edp-submit-row p {
  margin: 0;
  color: var(--edp-form-muted);
  font-size: 13px;
}

.edp-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.edp-supplement-form {
  padding: 0;
}

@media (max-width: 760px) {
  body > header.site-header .topbar .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 14px !important;
  }

  body > header.site-header .topbar span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .edp-form-head {
    padding: 26px 20px;
  }

  .edp-standard-form {
    padding: 6px 20px 25px;
  }

  .edp-supplement-form {
    padding: 0;
  }

  .edp-standard-form fieldset {
    padding: 24px 0;
  }

  .edp-form-grid {
    grid-template-columns: 1fr;
  }

  .edp-form-grid .span-2,
  .edp-standard-form .span-2 {
    grid-column: auto;
  }

  .edp-security-options {
    display: grid;
    gap: 10px;
  }

  .edp-submit-row {
    display: block;
  }

  .edp-submit-row button {
    width: 100%;
  }

  .edp-submit-row p {
    margin-top: 13px;
  }
}


/* EnergieDirektPortal: Formularbuttons ohne Schatten oder Glow */
.edp-submit-row button,
.edp-submit-row button:hover {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}
