/**
 * Erste Hilfe Test — Service page, mobile first.
 * Compact hero like Verify, cream panel, TEN red. No neon.
 */

.eh-test-hero__eyebrow,
.ten-verify-hero__eyebrow {
  margin: 0 0 6px;
}

body:not(#uid1) #subhead.subhead--ehtest,
body:not(#uid1) #subhead.subhead--ehtest #subhead2 {
  max-height: none !important;
  overflow: visible !important;
}

body:not(#uid1) #subhead.subhead--ehtest #subhead2 .text_on_image--ehtest {
  min-height: 0;
  background: transparent;
  overflow: visible;
}

body:not(#uid1) #subhead.subhead--ehtest #subhead2 .text_on_image--ehtest .image {
  display: none;
}

body:not(#uid1) #subhead.subhead--ehtest #subhead2 .text_on_image--ehtest .text,
body:not(#uid1) #subhead.subhead--ehtest #subhead2 .text_on_image--ehtest .text .text_inner h1,
body:not(#uid1) #subhead.subhead--ehtest #subhead2 .text_on_image--ehtest .text .text_inner p {
  color: #1a1a1a;
}

body:not(#uid1) #subhead.subhead--ehtest #subhead2 .text_on_image--ehtest .text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 48px 16px 8px;
  box-sizing: border-box;
}

body:not(#uid1) #subhead.subhead--ehtest #subhead2 .text_on_image--ehtest .text .text_inner {
  width: 100%;
  max-width: 36rem;
  margin: 0;
  padding: 0;
  text-align: left;
}

.eh-test-hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cc0607;
  font-weight: 700;
}

.eh-test-hero__title {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.eh-test-hero__lead {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

.eh-test-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #f4f4f4;
}

.eh-test-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.head.head--ehtest {
  position: relative;
  z-index: 10050;
}

.head.head--ehtest.stickyhead {
  position: fixed;
}

#subhead.subhead--ehtest,
.allcont.allcont--ehtest {
  position: relative;
  z-index: 1;
}

.allcont.allcont--ehtest {
  background: transparent;
}

.eh-test {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 8px 0 48px;
  box-sizing: border-box;
}

.eh-test__inner {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.eh-test-panel {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  padding: 20px 16px 24px;
  box-shadow: 0 12px 40px rgba(20, 12, 12, 0.08);
}

.eh-test-panel--exam {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.eh-test-areas {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.eh-test-pill {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  background: #faf7f3;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.eh-test-pill.is-active {
  border-color: #cc0607;
  background: #cc0607;
  color: #fff;
}

.eh-test-pill.is-soon,
.eh-test-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.eh-test-copy p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #333;
}

.eh-test-copy p:last-child {
  margin-bottom: 16px;
}

.eh-test-form label {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  color: #555;
}

.eh-test-form input[type="email"],
.eh-test-form input[type="password"] {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

.eh-test-modes {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}

.eh-test-mode {
  -webkit-appearance: none;
  appearance: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 28px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: #e40000;
  background-image: -webkit-linear-gradient(top, #e40000 0%, #ae0d0f 100%);
  background-image: linear-gradient(to bottom, #e40000 0%, #ae0d0f 100%);
  cursor: pointer;
}

.eh-test-mode--test {
  color: #1a1a1a;
  background: #fff;
  background-image: none;
  border: 1px solid #cfcfcf;
}

.eh-test-mode:hover,
.eh-test-mode:focus-visible {
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.18);
}

.eh-test-mode:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.eh-test-mode__count {
  font-weight: 700;
  white-space: nowrap;
}

.eh-test-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.eh-test-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 28px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  background: #e40000;
  background-image: -webkit-linear-gradient(top, #e40000 0%, #ae0d0f 100%);
  background-image: linear-gradient(to bottom, #e40000 0%, #ae0d0f 100%);
  cursor: pointer;
}

.eh-test-btn:hover,
.eh-test-btn:focus-visible {
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.18);
}

.eh-test-btn--ghost {
  color: #1a1a1a;
  background: #fff;
  background-image: none;
  border: 1px solid #cfcfcf;
}

.eh-test-btn--text {
  background: none;
  background-image: none;
  color: #555;
  font-weight: 600;
}

.eh-test-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdeaea;
  color: #8a1010;
  font-size: 0.92rem;
}

.eh-test-session__who {
  margin: 0 0 12px;
  font-weight: 700;
}

.eh-test-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
}

.eh-test-stat {
  padding: 10px 12px;
  background: #faf7f3;
  border-radius: 8px;
}

.eh-test-stat strong {
  display: block;
  font-size: 1.15rem;
}

.eh-test-stat span {
  font-size: 0.8rem;
  color: #666;
}

.eh-test-progress {
  margin: 0 0 16px;
}

.eh-test-progress__count,
.eh-test-progress__time {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: #555;
}

.eh-test-progress__bar {
  height: 6px;
  border-radius: 99px;
  background: #eee8df;
  overflow: hidden;
}

.eh-test-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #cc0607;
  -webkit-transition: width 0.2s ease;
  transition: width 0.2s ease;
}

.eh-test-question__prompt {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.eh-test-question__hint {
  display: none;
}

.eh-test-choices {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.eh-test-choice {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 3.25rem;
  margin: 0 0 10px;
  padding: 16px 18px;
  position: relative;
  border: 1px solid #d8d2c8;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  font-size: 0.98rem;
  line-height: 1.4;
  cursor: pointer;
}

.eh-test-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.eh-test-choice__mark {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid #c5c5c5;
  border-radius: 4px;
  box-sizing: border-box;
  background: #fff;
}

.eh-test-choice.is-checked {
  border-color: #cc0607;
  background: #fff6f6;
}

.eh-test-choice.is-checked .eh-test-choice__mark {
  border-color: #cc0607;
  background: #cc0607;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.eh-test-choice.is-locked {
  cursor: default;
  pointer-events: none;
}

.eh-test-choice.is-right {
  border-color: #2e7d32;
  background: #e8f5e9;
}

.eh-test-choice.is-right .eh-test-choice__mark {
  border-color: #2e7d32;
  background: #2e7d32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.eh-test-choice.is-wrong {
  border-color: #c62828;
  background: #fdecea;
}

.eh-test-choice.is-wrong .eh-test-choice__mark {
  border-color: #c62828;
  background: #c62828;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.eh-test-btn--check:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #9aa0a6;
  background-image: none;
}

.eh-ov {
  margin: 0 0 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 12, 12, 0.08);
}

.eh-ov__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.eh-ov__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.eh-ov-card {
  padding: 12px 14px;
  border-radius: 10px;
}

.eh-ov-card__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
}

.eh-ov-card__value {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.eh-ov-card--ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.eh-ov-card--dguv {
  background: #fff4e5;
  color: #e65100;
}

.eh-ov-card--diver {
  background: #e8f4fc;
  color: #1565c0;
}

.eh-ov__line {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: #555;
}

.eh-qcard {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e6e1da;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 12, 12, 0.08);
}

.eh-qcard__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
}

.eh-bg-mark {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 14px;
  height: 18px;
  margin: 0 0 0 auto;
  object-fit: contain;
  vertical-align: top;
}

.eh-bg-mark[hidden] {
  display: none;
}

.eh-qcard__context {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0a5cad;
}

.eh-qcard__sources {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #8a8680;
}

.eh-qcard__meta {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #cc0607;
}

.eh-qcard__diff {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eh-skip {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #90caf9;
  border-radius: 10px;
  background: #e8f4fc;
}

.eh-skip__text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1a3a52;
}

.eh-skip__btn {
  -webkit-appearance: none;
  appearance: none;
  padding: 8px 12px;
  border: 1px solid #1565c0;
  border-radius: 8px;
  background: #fff;
  color: #1565c0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.eh-qfoot {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
}

.eh-qfoot.is-done .eh-test-btn--check {
  width: auto;
  min-width: 8rem;
  background: #1a2744;
  background-image: none;
}

.eh-session-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 12, 12, 0.06);
}

.eh-session-bar__btn {
  -webkit-appearance: none;
  appearance: none;
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.eh-session-bar__btn--pause {
  border: 1px solid #cfcfcf;
  background: #f3f3f3;
  color: #333;
}

.eh-session-bar__btn--save {
  border: 1px solid #a5d6a7;
  background: #e8f5e9;
  color: #1b5e20;
}

.eh-session-bar__btn--restart {
  border: 1px solid #ef9a9a;
  background: #fdecea;
  color: #b71c1c;
}

.eh-test-rules {
  margin: 0 0 16px;
  padding: 0 0 0 1.2rem;
}

.eh-test-rules li {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
}

.eh-test-copy__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.eh-test-feedback {
  font-size: 0.95rem;
  line-height: 1.45;
}

.eh-test-feedback.is-ok {
  background: #eef6ee;
  color: #1d5a24;
}

.eh-test-feedback.is-bad {
  background: #fdeaea;
  color: #8a1010;
}

.eh-test-done__title {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.eh-test-review {
  margin: 0 0 16px;
  padding: 0 0 0 1.15rem;
}

.eh-test-review li {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.eh-test-review .is-ok {
  color: #1d5a24;
}

.eh-test-review .is-bad {
  color: #8a1010;
}

.eh-test-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 10, 0.55);
}

.eh-test-overlay[hidden] {
  display: none;
}

.eh-test-overlay__card {
  width: 100%;
  max-width: 28rem;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px 18px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.eh-test-overlay__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.eh-test-overlay__lead {
  margin: 0 0 16px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}

.eh-test-play {
  margin-top: 8px;
}

@media screen and (min-width: 720px) {
  .eh-test-bg img {
    object-position: center top;
  }

  body:not(#uid1) #subhead.subhead--ehtest #subhead2 .text_on_image--ehtest .text {
    padding: 72px 24px 12px;
  }

  .eh-test-hero__title {
    font-size: 2.1rem;
  }

  .eh-test-panel {
    padding: 28px 28px 32px;
  }

  .eh-test-panel--exam {
    padding: 0;
  }

  .eh-ov__cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .eh-qfoot.is-done {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  .eh-qfoot.is-done .eh-test-feedback {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin: 0;
  }

  .eh-session-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .eh-test-actions {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .eh-test-btn {
    width: auto;
    min-width: 10rem;
  }

  .eh-test-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 719px) {
  .eh-test-panel--exam {
    padding: 0 6px 24px;
  }

  .eh-qcard {
    padding: 22px 18px 42px;
    border: 0;
    border-radius: 28px 28px 50% 50% / 22px 22px 16% 16%;
    -webkit-clip-path: ellipse(96% 100% at 50% 0%);
    clip-path: ellipse(96% 100% at 50% 0%);
  }

  .eh-test-choice {
    min-height: 3.6rem;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .eh-bg-mark {
    width: 16px;
    height: 20px;
  }
}
