/* Erbe-Check. Schriften kommen aus /css/hp-fonts.css, hier nicht noch einmal. */

.ec-body {
  --navy: #0C2238;
  --navy-2: #102A47;
  --ink: #1E2E3F;
  --muted: #6E6656;
  --gold: #B8935F;
  --gold-ink: #7C5E32;
  --gold-line: #D8C4A0;
  --sand: #F7F3EA;
  --cream: #FBF8F2;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}

.ec-body .topbar {
  background: var(--cream);
}

.ec-body .brand__logo {
  max-width: 132px;
  height: auto;
}

.ec-body .topbar__inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.ec-body .footer {
  margin-top: 32px;
  background: var(--cream);
}

.ec-main,
.ec-main * {
  box-sizing: border-box;
}

.ec-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px max(20px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.ec-main p {
  max-width: none;
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.ec-main h1,
.ec-main h2,
.ec-main h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ec-main h1 {
  margin: 0 0 14px;
  font-size: 2rem;
}

.ec-main h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.ec-main h3 {
  margin: 22px 0 8px;
  font-size: 1.2rem;
}

.ec-lead {
  margin-bottom: 22px;
}

.ec-kicker {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.ec-kicker::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 12px;
  background: var(--gold);
}

.ec-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 12px 22px;
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ec-btn:hover {
  background: var(--navy-2);
}

.ec-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.ec-btn--ghost {
  background: transparent;
  color: var(--navy);
}

.ec-btn--ghost:hover {
  background: var(--sand);
  color: var(--navy);
}

.ec-promises {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.ec-promises li {
  display: inline;
  font-size: 18px;
  line-height: 1.45;
}

.ec-promises li:not(:last-child)::after {
  content: " · ";
  color: var(--gold-ink);
}

.ec-trust {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-line);
}

.ec-trust img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 auto;
}

.ec-trust p {
  margin: 0;
  color: var(--muted);
}

.ec-progress-label {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.ec-progress {
  height: 2px;
  margin: 0 0 28px;
  background: var(--gold-line);
}

.ec-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.ec-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ec-answer {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.ec-answer:hover {
  border-color: var(--gold);
}

.ec-answer.is-on {
  border-color: var(--navy);
  background: var(--sand);
  box-shadow: inset 3px 0 0 var(--gold);
}

.ec-back {
  margin-top: 22px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ec-meters {
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
}

.ec-meter {
  margin: 0 0 14px;
}

.ec-meter__name {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.ec-meter__track {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: var(--sand);
}

.ec-meter__fill {
  display: block;
  height: 100%;
  width: calc(var(--w, 0) * 1%);
  border-radius: 99px;
  background: var(--navy);
}

.ec-meters.is-soft .ec-meter__track {
  filter: blur(4px);
}

.ec-note {
  color: var(--muted);
  font-size: 18px;
}

.ec-form {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-line);
}

.ec-field {
  display: block;
  margin: 0 0 14px;
}

.ec-field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.ec-field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
}

.ec-consent {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.ec-consent a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ec-status {
  min-height: 0;
  margin: 12px 0 0;
  font-weight: 600;
}

.ec-alert {
  margin: 12px 0 0;
  color: var(--navy);
  font-weight: 600;
}

.ec-thanks {
  margin: 8px 0 0;
  font-weight: 600;
}

.ec-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ec-block {
  margin-top: 8px;
  padding-top: 8px;
}

.ec-block + .ec-block {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-line);
}

.ec-main .ec-block .ec-btn {
  margin: 8px 0 18px;
}

.ec-mail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 16px;
}

.ec-video {
  position: relative;
  margin: 8px 0 24px;
  padding-top: 56.25%;
  background: var(--sand);
}

.ec-video iframe,
.ec-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ec-skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.ec-skip:focus {
  top: 12px;
}

.ec-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ec-body :focus {
  outline: none;
}

.ec-body :focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (min-width: 780px) {
  .ec-main {
    padding-top: 28px;
  }

  .ec-main h1 {
    font-size: 2.6rem;
  }

  .ec-mail {
    flex-direction: row;
  }

  .ec-mail .ec-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-progress > span {
    transition: none;
  }
}
