:root {
    --mw-red: #ed4245;
    --mw-red-dark: #d6383b;
    --mw-cyan: #29c8e8;
    --mw-grey: #878787;
    --mw-dark: #878787;
    --mw-light: #efeaea;
    --mw-soft: #f8f6f6;
    --mw-white: #ffffff;
    --mw-border: rgba(135, 135, 135, 0.22);
    --mw-shadow: 0 18px 50px rgba(135, 135, 135, 0.1);
}

.mw-history-check,
.mw-history-check * {
    box-sizing: border-box;
}

.mw-history-check {
    color: var(--mw-dark);
    container-name: mw-history-check;
    container-type: inline-size;
    font-family: "Barlow", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    position: relative;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    width: 100%;
}

.mw-history-check .mw-check-section,
.mw-history-check .mw-container,
.mw-history-check .mw-check-layout,
.mw-history-check .mw-check-card,
.mw-history-check .mw-card-header,
.mw-history-check .mw-card-footer {
    max-width: 100%;
    min-width: 0;
}

.mw-history-check input,
.mw-history-check textarea,
.mw-history-check button {
    max-width: 100%;
}

.mw-history-check button,
.mw-history-check label {
    -webkit-tap-highlight-color: rgba(41, 200, 232, 0.18);
}

.mw-history-check [hidden] {
    display: none !important;
}

.mw-history-check h2,
.mw-history-check h3,
.mw-history-check p {
    margin-top: 0;
}

.mw-history-check h2,
.mw-history-check h3 {
    color: var(--mw-red);
    font-family: "Barlow", sans-serif;
    line-height: 1.12;
    padding-bottom: 0;
}

.mw-history-check h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.mw-history-check h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 14px;
}

.mw-history-check p {
    color: var(--mw-grey);
    padding-bottom: 0;
}

.mw-history-check .mw-container {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.mw-history-check .mw-eyebrow,
.mw-history-check .mw-card-kicker,
.mw-history-check .mw-level-label {
    font-family: "Barlow", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mw-history-check .mw-eyebrow,
.mw-history-check .mw-level-label {
    color: var(--mw-cyan);
}

.mw-history-check .mw-card-kicker {
    color: var(--mw-grey);
}

.mw-history-check .mw-button {
    align-items: center;
    appearance: none;
    border: 2px solid transparent !important;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-family: "Barlow", sans-serif;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    justify-content: center;
    line-height: 1.2 !important;
    min-height: 50px;
    padding: 14px 24px !important;
    text-decoration: none !important;
    transition: background-color 180ms ease, border-color 180ms ease,
        color 180ms ease, transform 180ms ease;
}

.mw-history-check .mw-button::after {
    display: none !important;
}

.mw-history-check .mw-button:hover {
    transform: translateY(-2px);
}

.mw-history-check .mw-button:focus-visible,
.mw-history-check input:focus-visible,
.mw-history-check textarea:focus-visible,
.mw-history-check .mw-nav-item:focus-visible {
    outline: 3px solid rgba(41, 200, 232, 0.7);
    outline-offset: 3px;
}

.mw-history-check .mw-button-primary {
    background: var(--mw-red) !important;
    border-color: var(--mw-red) !important;
    color: var(--mw-white) !important;
}

.mw-history-check .mw-button-primary:hover {
    background: var(--mw-red-dark) !important;
    border-color: var(--mw-red-dark) !important;
}

.mw-history-check .mw-button-secondary {
    background: var(--mw-white) !important;
    border-color: var(--mw-red) !important;
    color: var(--mw-red) !important;
}

.mw-history-check .mw-button-secondary:hover {
    background: var(--mw-red) !important;
    color: var(--mw-white) !important;
}

.mw-history-check .mw-button-text {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--mw-grey) !important;
    min-height: 0;
    padding: 8px 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.mw-history-check .mw-button.is-disabled,
.mw-history-check .mw-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
    transform: none;
}

/* Fragenmodul */
.mw-history-check .mw-check-section {
    background: rgba(239, 234, 234, 0.3);
    padding: clamp(28px, 5vw, 64px);
    scroll-margin-top: 120px;
}

.mw-history-check .mw-section-header {
    align-items: end;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    margin-bottom: clamp(32px, 5vw, 64px);
}

.mw-history-check .mw-section-header h2 {
    margin-bottom: 0;
    max-width: 780px;
}

.mw-history-check .mw-section-header > p {
    color: var(--mw-grey);
    font-size: 1.02rem;
    margin-bottom: 4px;
    max-width: 520px;
}

.mw-history-check .mw-check-layout {
    align-items: start;
    display: grid;
    gap: clamp(24px, 4vw, 48px);
    grid-template-columns: minmax(0, 1fr);
}

.mw-history-check .mw-category-progress {
    align-items: center;
    border-bottom: 1px solid var(--mw-border);
    display: flex;
    gap: clamp(20px, 3vw, 42px);
    justify-content: space-between;
    padding-bottom: 18px;
    width: 100%;
}

.mw-history-check .mw-category-nav {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: clamp(14px, 2.2vw, 34px);
    justify-content: space-between;
    min-width: 0;
    overscroll-behavior-inline: contain;
    overflow-x: auto;
    padding: 4px 0;
    scroll-snap-type: inline proximity;
    scrollbar-color: var(--mw-light) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.mw-history-check .mw-nav-item {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--mw-grey);
    cursor: pointer;
    flex: 0 0 auto;
    font-family: "Barlow", sans-serif;
    min-height: 38px;
    padding: 7px 0;
    text-align: center;
    scroll-snap-align: center;
    touch-action: manipulation;
    transition: border-color 160ms ease, color 160ms ease;
}

.mw-history-check .mw-nav-item:hover {
    color: var(--mw-cyan);
}

.mw-history-check .mw-nav-item.is-active {
    border-color: var(--mw-cyan);
    color: var(--mw-cyan);
}

.mw-history-check .mw-nav-label {
    font-size: 0.96rem;
    font-weight: 600;
}

.mw-history-check .mw-check-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.mw-history-check .mw-card-header {
    align-items: start;
    background: transparent;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    padding: 0 0 clamp(22px, 3vw, 36px);
}

.mw-history-check .mw-card-heading {
    max-width: none;
}

.mw-history-check .mw-card-heading h3 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.mw-history-check .mw-category-intro {
    color: var(--mw-grey);
    margin-bottom: 0;
}

.mw-history-check .mw-progress-ring,
.mw-history-check .mw-score-dial {
    align-items: center;
    background: conic-gradient(
        var(--mw-red) var(--mw-progress, 0%),
        var(--mw-light) var(--mw-progress, 0%)
    );
    border-radius: 50%;
    display: flex;
    flex: 0 0 auto;
    height: 86px;
    justify-content: center;
    position: relative;
    width: 86px;
}

.mw-history-check .mw-progress-ring::before,
.mw-history-check .mw-score-dial::before {
    background: var(--mw-white);
    border-radius: 50%;
    content: "";
    inset: 8px;
    position: absolute;
}

.mw-history-check .mw-progress-ring span {
    color: var(--mw-grey);
    font-size: 0.82rem;
    font-weight: 700;
    position: relative;
}

.mw-history-check .mw-questions {
    padding: 0;
}

.mw-history-check .mw-questions:empty + .mw-notes {
    display: none;
}

.mw-history-check .mw-question {
    border: 0;
    border-top: 1px solid var(--mw-border);
    margin: 0;
    min-width: 0;
    padding: clamp(28px, 4vw, 44px) 0;
}

.mw-history-check .mw-question:first-child {
    border-top: 0;
}

.mw-history-check .mw-question-title {
    color: var(--mw-red);
    display: block;
    float: none;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 600;
    line-height: 1.42;
    margin-bottom: 22px;
    padding: 0;
    width: 100%;
}

.mw-history-check .mw-options {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mw-history-check .mw-option {
    min-width: 0;
    position: relative;
}

.mw-history-check .mw-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.mw-history-check .mw-option label {
    align-items: center;
    background: var(--mw-white);
    border: 1px solid var(--mw-border);
    color: var(--mw-grey);
    cursor: pointer;
    display: flex;
    font-size: 0.88rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.3;
    min-height: 68px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    touch-action: manipulation;
    transition: background-color 160ms ease, border-color 160ms ease,
        color 160ms ease;
}

.mw-history-check .mw-option label:hover {
    border-color: var(--mw-red);
    color: var(--mw-red);
}

.mw-history-check .mw-option input:checked + label {
    background: var(--mw-red);
    border-color: var(--mw-red);
    color: var(--mw-white);
}

.mw-history-check .mw-option input:focus-visible + label {
    outline: 3px solid rgba(41, 200, 232, 0.7);
    outline-offset: 3px;
}

.mw-history-check .mw-notes {
    background: var(--mw-white);
    margin: 0 0 clamp(26px, 4vw, 44px);
    padding: 22px;
}

.mw-history-check .mw-notes label {
    color: var(--mw-grey);
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.mw-history-check .mw-notes label span {
    color: var(--mw-grey);
    font-weight: 400;
}

.mw-history-check .mw-notes textarea {
    background: var(--mw-white);
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    color: var(--mw-grey);
    font-family: "Barlow", sans-serif;
    font-size: 0.94rem;
    line-height: 1.5;
    min-height: 112px;
    padding: 14px;
    resize: vertical;
    width: 100%;
}

.mw-history-check .mw-participant {
    background: var(--mw-white);
    border-top: 3px solid var(--mw-cyan);
    margin: 0 0 clamp(26px, 4vw, 44px);
    padding: clamp(22px, 4vw, 36px);
}

.mw-history-check .mw-participant h3 {
    margin-bottom: 10px;
}

.mw-history-check .mw-participant-intro {
    margin-bottom: 24px;
}

.mw-history-check .mw-contact-fields {
    border-top: 1px solid var(--mw-border);
    margin-top: 24px;
    padding-top: 24px;
}

.mw-history-check .mw-contact-fields-title {
    color: var(--mw-red);
    font-weight: 600;
    margin-bottom: 18px;
}

.mw-history-check .mw-participant-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mw-history-check .mw-participant-email {
    grid-column: 1 / -1;
}

.mw-history-check .mw-participant-grid label {
    color: var(--mw-grey);
    display: grid;
    font-family: "Barlow", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    gap: 8px;
}

.mw-history-check .mw-participant-grid input {
    appearance: none;
    background: var(--mw-white);
    border: 1px solid var(--mw-border);
    border-radius: 8px;
    color: var(--mw-grey);
    font-family: "Barlow", sans-serif;
    font-size: 1rem;
    min-height: 50px;
    padding: 12px 14px;
    width: 100%;
}

.mw-history-check .mw-consent-row {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: 22px minmax(0, 1fr);
    margin-top: 22px;
}

.mw-history-check .mw-consent-row input {
    accent-color: var(--mw-red);
    height: 20px;
    margin-top: 3px;
    width: 20px;
}

.mw-history-check .mw-consent-row label {
    color: var(--mw-grey);
    font-size: 0.9rem;
    line-height: 1.45;
}

.mw-history-check .mw-consent-row a {
    color: var(--mw-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mw-history-check .mw-privacy-note {
    color: var(--mw-grey);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 16px 0 0;
}

.mw-history-check .mw-honeypot {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.mw-history-check .mw-submit-status {
    color: var(--mw-grey);
    font-size: 0.9rem;
    margin: 18px 0 0;
}

.mw-history-check .mw-submit-status.is-error {
    color: var(--mw-red);
}

@media (hover: none) and (pointer: coarse) {
    .mw-history-check .mw-button,
    .mw-history-check .mw-nav-item {
        min-height: 48px;
    }

    .mw-history-check .mw-option label {
        min-height: 60px;
    }

    .mw-history-check .mw-button:hover {
        transform: none;
    }
}

.mw-history-check .mw-card-footer {
    align-items: center;
    border-top: 1px solid var(--mw-border);
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr auto;
    padding: 24px 0 0;
}

.mw-history-check .mw-footer-secondary-actions {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.mw-history-check .mw-step-copy {
    color: var(--mw-grey);
    font-size: 0.82rem;
    text-align: center;
}

/* Auswertungsmodul */
.mw-history-check .mw-result-section {
    background: var(--mw-white);
    padding: clamp(20px, 3vw, 42px) 0;
    scroll-margin-top: 120px;
}

.mw-history-check .mw-result-empty {
    background: var(--mw-white);
    padding: clamp(34px, 6vw, 72px);
}

.mw-history-check .mw-result-empty > p:not(.mw-eyebrow) {
    color: var(--mw-grey);
    font-size: 1.05rem;
    max-width: 680px;
}

.mw-history-check .mw-result-empty .mw-button {
    margin-top: 18px;
}

.mw-history-check .mw-pdf-header,
.mw-history-check .mw-pdf-footer {
    display: none;
}

.mw-history-check.mw-print-copy {
    display: none !important;
}

.mw-history-check .mw-result-header {
    align-items: start;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr auto;
    margin-bottom: clamp(34px, 5vw, 64px);
}

.mw-history-check .mw-result-header > div:first-child {
    max-width: 740px;
}

.mw-history-check .mw-result-header > div:first-child > p:last-child {
    color: var(--mw-grey);
    font-size: 1.02rem;
}

.mw-history-check .mw-result-privacy-status {
    border-left: 3px solid var(--mw-cyan);
    color: var(--mw-grey);
    font-size: 0.9rem !important;
    margin: 18px 0 0;
    padding-left: 12px;
}

.mw-history-check .mw-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.mw-history-check .mw-score-card {
    align-items: center;
    background: var(--mw-dark);
    color: var(--mw-white);
    display: grid;
    gap: clamp(28px, 5vw, 60px);
    grid-template-columns: auto 1fr;
    margin-bottom: 28px;
    padding: clamp(30px, 5vw, 58px);
}

.mw-history-check .mw-score-dial {
    --mw-progress: var(--mw-score, 0%);
    background: conic-gradient(
        var(--mw-cyan) var(--mw-score, 0%),
        rgba(255, 255, 255, 0.14) var(--mw-score, 0%)
    );
    height: clamp(140px, 18vw, 190px);
    width: clamp(140px, 18vw, 190px);
}

.mw-history-check .mw-score-dial::before {
    background: var(--mw-dark);
    inset: 12px;
}

.mw-history-check .mw-score-number {
    color: var(--mw-white);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    position: relative;
}

.mw-history-check .mw-score-number small {
    font-size: 0.34em;
    letter-spacing: 0;
}

.mw-history-check .mw-score-card h3,
.mw-history-check .mw-score-card p {
    color: var(--mw-white);
}

.mw-history-check .mw-score-card .mw-level-label {
    color: var(--mw-cyan);
}

.mw-history-check .mw-score-card h3 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.mw-history-check .mw-score-copy > p:last-child {
    margin-bottom: 0;
    max-width: 670px;
    opacity: 0.78;
}

.mw-history-check .mw-result-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mw-history-check .mw-result-panel {
    border: 1px solid var(--mw-border);
    padding: clamp(26px, 4vw, 44px);
}

.mw-history-check .mw-result-panel-wide {
    grid-column: 1 / -1;
}

.mw-history-check .mw-category-bars {
    display: grid;
    gap: 17px;
    margin-top: 26px;
}

.mw-history-check .mw-bar-row {
    align-items: center;
    display: grid;
    font-size: 0.84rem;
    gap: 12px;
    grid-template-columns: minmax(88px, 0.8fr) minmax(100px, 1.6fr) 80px;
}

.mw-history-check .mw-bar-track {
    background: var(--mw-light);
    height: 8px;
    overflow: hidden;
}

.mw-history-check .mw-bar-fill {
    background: var(--mw-red);
    height: 100%;
    width: var(--mw-width, 0%);
}

.mw-history-check .mw-bar-value {
    color: var(--mw-grey);
    text-align: right;
    white-space: nowrap;
}

.mw-history-check .mw-potential-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.mw-history-check .mw-tag {
    background: rgba(41, 200, 232, 0.17);
    color: var(--mw-dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 11px;
}

.mw-history-check .mw-potential-copy {
    color: var(--mw-grey);
    margin-bottom: 0;
}

.mw-history-check .mw-recommendations {
    display: grid;
    gap: 0;
    margin-top: 12px;
}

.mw-history-check .mw-recommendation {
    align-items: start;
    border-top: 1px solid var(--mw-border);
    display: grid;
    gap: 20px;
    grid-template-columns: 42px 1fr;
    padding: 24px 0;
}

.mw-history-check .mw-recommendation:first-child {
    border-top: 0;
}

.mw-history-check .mw-recommendation-index {
    align-items: center;
    background: var(--mw-red);
    color: var(--mw-white);
    display: flex;
    font-size: 0.86rem;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.mw-history-check .mw-recommendation strong {
    color: var(--mw-dark);
    display: block;
    font-size: 1.03rem;
    margin-bottom: 5px;
}

.mw-history-check .mw-recommendation p {
    color: var(--mw-grey);
    margin-bottom: 0;
}

.mw-history-check .mw-result-contact {
    align-items: center;
    background: var(--mw-red);
    color: var(--mw-white);
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr auto;
    margin-top: 28px;
    padding: clamp(28px, 5vw, 52px);
}

.mw-history-check .mw-result-contact h3,
.mw-history-check .mw-result-contact p {
    color: var(--mw-white);
}

.mw-history-check .mw-result-contact h3 {
    margin-bottom: 8px;
}

.mw-history-check .mw-result-contact p {
    margin-bottom: 0;
    max-width: 650px;
    opacity: 0.86;
}

.mw-history-check .mw-result-contact .mw-button-primary {
    background: var(--mw-white) !important;
    border-color: var(--mw-white) !important;
    color: var(--mw-red) !important;
}

.mw-history-check .mw-result-contact .mw-button-primary:hover {
    background: var(--mw-dark) !important;
    border-color: var(--mw-dark) !important;
    color: var(--mw-white) !important;
}

.mw-history-check .mw-reset-area {
    text-align: right;
}

.mw-toast {
    background: #878787;
    bottom: 24px;
    color: #ffffff;
    font-family: "Barlow", sans-serif;
    font-size: 0.9rem;
    left: 50%;
    max-width: min(520px, calc(100vw - 32px));
    opacity: 0;
    padding: 14px 20px;
    pointer-events: none;
    position: fixed;
    text-align: center;
    transform: translate(-50%, 20px);
    transition: opacity 180ms ease, transform 180ms ease;
    visibility: hidden;
    z-index: 999999;
}

.mw-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

@media (max-width: 980px) {
    .mw-history-check .mw-section-header,
    .mw-history-check .mw-check-layout,
    .mw-history-check .mw-result-header {
        grid-template-columns: 1fr;
    }

    .mw-history-check .mw-category-nav {
        gap: 18px;
        overflow-x: auto;
        padding: 4px 0 8px;
    }

    .mw-history-check .mw-nav-item {
        border: 0;
        border-bottom: 2px solid transparent;
        flex: 0 0 auto;
        min-height: 38px;
        padding: 7px 0;
    }

    .mw-history-check .mw-nav-item.is-active {
        border-color: var(--mw-cyan);
    }

    .mw-history-check .mw-result-actions {
        justify-content: flex-start;
    }

    .mw-history-check .mw-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .mw-history-check .mw-check-section {
        padding: 24px 18px;
    }

    .mw-history-check .mw-category-progress {
        gap: 16px;
    }

    .mw-history-check .mw-score-card,
    .mw-history-check .mw-result-contact {
        grid-template-columns: 1fr;
    }

    .mw-history-check .mw-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mw-history-check .mw-progress-ring {
        height: 70px;
        width: 70px;
    }

    .mw-history-check .mw-result-grid {
        grid-template-columns: 1fr;
    }

    .mw-history-check .mw-result-panel-wide {
        grid-column: auto;
    }

    .mw-history-check .mw-card-footer {
        grid-template-columns: 1fr;
    }

    .mw-history-check .mw-step-copy {
        grid-column: 1;
        grid-row: 1;
    }

    .mw-history-check .mw-footer-secondary-actions {
        display: grid;
        gap: 12px;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .mw-history-check #mw-next-button {
        grid-row: 3;
    }

    .mw-history-check .mw-card-footer .mw-button {
        width: 100%;
    }

    .mw-history-check .mw-result-actions,
    .mw-history-check .mw-result-contact .mw-button {
        justify-content: stretch;
        width: 100%;
    }

    .mw-history-check .mw-result-actions .mw-button {
        flex: 1 1 100%;
    }
}

@media (max-width: 560px) {
    .mw-history-check .mw-check-section {
        padding: 22px 14px;
    }

    .mw-history-check .mw-section-header {
        gap: 18px;
        margin-bottom: 34px;
    }

    .mw-history-check .mw-section-header > p,
    .mw-history-check .mw-category-intro {
        font-size: 0.96rem;
    }

    .mw-history-check .mw-category-progress {
        gap: 12px;
        padding-bottom: 12px;
    }

    .mw-history-check .mw-category-nav {
        gap: 16px;
    }

    .mw-history-check .mw-nav-item {
        font-size: 0.9rem;
        min-height: 44px;
    }

    .mw-history-check .mw-progress-ring {
        height: 60px;
        width: 60px;
    }

    .mw-history-check .mw-progress-ring::before {
        inset: 6px;
    }

    .mw-history-check .mw-progress-ring span {
        font-size: 0.74rem;
    }

    .mw-history-check .mw-card-heading h3 {
        font-size: 1.75rem;
    }

    .mw-history-check .mw-question {
        padding: 28px 0;
    }

    .mw-history-check .mw-question-title {
        font-size: 1.05rem;
        margin-bottom: 18px;
    }

    .mw-history-check .mw-options {
        grid-template-columns: 1fr;
    }

    .mw-history-check .mw-option label {
        font-size: 0.94rem;
        min-height: 56px;
    }

    .mw-history-check .mw-notes {
        padding: 18px;
    }

    .mw-history-check .mw-notes textarea {
        font-size: 1rem;
        min-height: 130px;
    }

    .mw-history-check .mw-card-footer {
        grid-template-columns: 1fr;
    }

    .mw-history-check .mw-step-copy {
        grid-column: 1;
        grid-row: 1;
    }

    .mw-history-check #mw-next-button {
        grid-row: 3;
    }

    .mw-history-check .mw-card-footer .mw-button {
        width: 100%;
    }

    .mw-history-check .mw-result-empty,
    .mw-history-check .mw-result-panel,
    .mw-history-check .mw-score-card,
    .mw-history-check .mw-result-contact {
        padding: 24px 18px;
    }

    .mw-history-check .mw-score-dial {
        height: 136px;
        width: 136px;
    }
}

@media (max-width: 480px) {
    .mw-history-check .mw-options {
        grid-template-columns: 1fr;
    }

    .mw-history-check .mw-option label {
        min-height: 52px;
    }

    .mw-history-check .mw-score-card {
        justify-items: start;
    }

    .mw-history-check .mw-bar-row {
        gap: 8px;
        grid-template-columns: 80px minmax(0, 1fr) 76px;
    }
}

/* Divi-sichere Tablet-Regeln */
@media screen and (max-width: 1024px) {
    #mw-history-check .mw-section-header,
    #mw-history-check .mw-check-layout,
    #mw-history-result .mw-result-header,
    #mw-history-result .mw-result-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #mw-history-check .mw-options {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
    }

    #mw-history-check .mw-option,
    #mw-history-check .mw-option label {
        max-width: none !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    #mw-history-result .mw-result-panel-wide {
        grid-column: auto !important;
    }
}

/* Divi-sichere Smartphone-Regeln */
@media screen and (max-width: 767px) {
    #mw-history-check,
    #mw-history-check .mw-container,
    #mw-history-check .mw-check-layout,
    #mw-history-check .mw-check-card,
    #mw-history-check .mw-card-header,
    #mw-history-check .mw-questions,
    #mw-history-check .mw-question,
    #mw-history-check .mw-options,
    #mw-history-check .mw-notes,
    #mw-history-check .mw-participant,
    #mw-history-check .mw-participant-grid,
    #mw-history-check .mw-card-footer {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    #mw-history-check {
        overflow-x: hidden !important;
        overflow-x: clip !important;
        position: relative !important;
    }

    #mw-history-check .mw-section-header,
    #mw-history-check .mw-card-header {
        display: block !important;
    }

    #mw-history-check .mw-section-header > p {
        margin-top: 18px !important;
        max-width: none !important;
    }

    #mw-history-check .mw-category-progress {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        width: 100% !important;
    }

    #mw-history-check .mw-category-nav {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    #mw-history-check .mw-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    #mw-history-check .mw-option {
        display: block !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    #mw-history-check .mw-option label {
        display: flex !important;
        min-height: 56px !important;
        overflow-wrap: anywhere;
        padding: 12px 14px !important;
        white-space: normal !important;
    }

    #mw-history-check .mw-card-footer {
        align-items: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    #mw-history-check .mw-footer-secondary-actions {
        display: grid !important;
        gap: 12px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    #mw-history-check .mw-footer-secondary-actions .mw-button {
        min-width: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #mw-history-check .mw-participant-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #mw-history-check .mw-participant-email {
        grid-column: auto !important;
    }

    #mw-history-check .mw-card-footer .mw-step-copy {
        order: -1;
        text-align: center !important;
    }

    #mw-history-check .mw-card-footer .mw-button,
    #mw-history-result .mw-result-actions .mw-button,
    #mw-history-result .mw-result-contact .mw-button {
        display: flex !important;
        max-width: none !important;
        white-space: normal !important;
        width: 100% !important;
    }

    #mw-history-result,
    #mw-history-result .mw-container,
    #mw-history-result .mw-result-content,
    #mw-history-result .mw-result-panel,
    #mw-history-result .mw-score-card,
    #mw-history-result .mw-result-contact {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    #mw-history-result .mw-result-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    #mw-history-result .mw-result-actions,
    #mw-history-result .mw-score-card,
    #mw-history-result .mw-result-contact {
        align-items: stretch !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #mw-history-result .mw-result-actions {
        gap: 12px !important;
    }
}

/* Reagiert zusätzlich auf die tatsächliche Breite des Divi-Code-Moduls. */
@container mw-history-check (max-width: 900px) {
    .mw-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .mw-result-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@container mw-history-check (max-width: 560px) {
    .mw-options {
        display: flex !important;
        flex-direction: column !important;
    }

    .mw-option,
    .mw-option label,
    .mw-card-footer,
    .mw-card-footer .mw-button {
        max-width: 100% !important;
        width: 100% !important;
    }

    .mw-card-footer {
        display: flex !important;
        flex-direction: column !important;
    }

    .mw-footer-secondary-actions {
        display: grid !important;
        gap: 12px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .mw-card-footer .mw-step-copy {
        order: -1;
    }
}

@page {
    size: A4 portrait;
    margin: 8mm;
}

@media print {
    html,
    body {
        height: 297mm !important;
        margin: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        width: 210mm !important;
    }

    body * {
        visibility: hidden;
    }

    #mw-history-result,
    #mw-history-result * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        visibility: visible;
    }

    #mw-history-result {
        background: #ffffff !important;
        color: #878787 !important;
        display: block !important;
        height: 281mm !important;
        left: 0;
        margin: 0 !important;
        max-height: 281mm !important;
        max-width: 194mm !important;
        overflow: hidden !important;
        position: absolute;
        top: 0;
        width: 194mm !important;
    }

    #mw-history-result.mw-print-copy {
        display: block !important;
    }

    #mw-history-result .mw-result-section,
    #mw-history-result .mw-container {
        height: 281mm !important;
        margin: 0 !important;
        max-width: 194mm !important;
        padding: 0 !important;
        width: 194mm !important;
    }

    #mw-history-result .mw-result-content {
        align-items: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        height: 281mm !important;
        max-height: 281mm !important;
        overflow: hidden !important;
        width: 194mm !important;
    }

    #mw-history-result .mw-pdf-header {
        align-items: flex-start;
        display: flex !important;
        flex: 0 0 23mm;
        height: 23mm;
        justify-content: flex-start;
        margin: 0 0 3mm;
        width: 100%;
    }

    #mw-history-result .mw-pdf-header img {
        display: block;
        height: auto;
        margin: 0;
        max-height: 23mm;
        max-width: 145mm;
        object-fit: contain;
        object-position: left top;
        width: 145mm;
    }

    #mw-history-result .mw-result-header {
        display: block !important;
        margin: 0 0 2.5mm !important;
    }

    #mw-history-result .mw-result-header > div:first-child {
        max-width: none !important;
    }

    #mw-history-result .mw-eyebrow,
    #mw-history-result .mw-level-label {
        font-size: 6.5pt !important;
        letter-spacing: 0.1em !important;
        margin-bottom: 1mm !important;
    }

    #mw-history-result h2 {
        font-size: 16pt !important;
        line-height: 1.05 !important;
        margin-bottom: 1.5mm !important;
    }

    #mw-history-result h3 {
        font-size: 9.5pt !important;
        line-height: 1.12 !important;
        margin-bottom: 1.2mm !important;
    }

    #mw-history-result p {
        font-size: 7pt !important;
        line-height: 1.3 !important;
    }

    #mw-history-result .mw-result-header > div:first-child > p:not(.mw-eyebrow):not(.mw-result-privacy-status) {
        margin-bottom: 1mm !important;
    }

    #mw-history-result .mw-result-privacy-status {
        border-left-width: 1mm !important;
        font-size: 6.5pt !important;
        margin: 1.5mm 0 0 !important;
        padding-left: 2mm !important;
    }

    #mw-history-result .mw-result-actions,
    #mw-history-result .mw-reset-area,
    #mw-history-result .mw-result-contact .mw-button {
        display: none !important;
    }

    #mw-history-result .mw-score-card {
        break-inside: avoid;
        display: grid !important;
        gap: 5mm !important;
        grid-template-columns: 29mm minmax(0, 1fr) !important;
        margin: 0 0 3mm !important;
        padding: 3.5mm 5mm !important;
    }

    #mw-history-result .mw-score-dial {
        background-color: #878787 !important;
        border: 2mm solid #29c8e8 !important;
        height: 27mm !important;
        width: 27mm !important;
    }

    #mw-history-result .mw-score-dial::before {
        inset: 2mm !important;
    }

    #mw-history-result .mw-score-number {
        font-size: 21pt !important;
    }

    #mw-history-result .mw-score-card h3 {
        font-size: 13pt !important;
        margin-bottom: 1mm !important;
    }

    #mw-history-result .mw-score-copy > p:last-child {
        font-size: 7pt !important;
        line-height: 1.25 !important;
    }

    #mw-history-result .mw-result-grid {
        align-self: stretch !important;
        display: flex !important;
        flex-flow: row wrap !important;
        gap: 3mm !important;
        min-width: 194mm !important;
        width: 194mm !important;
    }

    #mw-history-result .mw-result-panel {
        break-inside: avoid;
        box-shadow: none !important;
        min-width: 0 !important;
        padding: 3mm !important;
        width: auto !important;
    }

    #mw-history-result .mw-result-panel:not(.mw-result-panel-wide) {
        flex: 0 0 95.5mm !important;
        max-width: 95.5mm !important;
    }

    #mw-history-result .mw-result-panel-wide {
        flex: 0 0 194mm !important;
        grid-column: 1 / -1 !important;
        max-width: 194mm !important;
    }

    #mw-history-result .mw-category-bars {
        gap: 1.4mm !important;
        margin-top: 2mm !important;
    }

    #mw-history-result .mw-bar-row {
        font-size: 6.3pt !important;
        gap: 1.5mm !important;
        grid-template-columns: 24mm minmax(0, 1fr) 20mm !important;
    }

    #mw-history-result .mw-bar-track {
        height: 1.5mm !important;
    }

    #mw-history-result .mw-potential-tags {
        gap: 1mm !important;
        margin: 2mm 0 !important;
    }

    #mw-history-result .mw-tag {
        font-size: 6.3pt !important;
        padding: 1mm 1.5mm !important;
    }

    #mw-history-result .mw-potential-copy {
        font-size: 6.8pt !important;
        line-height: 1.28 !important;
    }

    #mw-history-result .mw-recommendations {
        margin-top: 1mm !important;
    }

    #mw-history-result .mw-recommendation {
        gap: 2.5mm !important;
        grid-template-columns: 7mm minmax(0, 1fr) !important;
        padding: 2mm 0 !important;
    }

    #mw-history-result .mw-recommendation-index {
        font-size: 6.5pt !important;
        height: 6mm !important;
        width: 6mm !important;
    }

    #mw-history-result .mw-recommendation strong {
        font-size: 7.2pt !important;
        line-height: 1.2 !important;
        margin-bottom: 0.6mm !important;
    }

    #mw-history-result .mw-recommendation p {
        font-size: 6.4pt !important;
        line-height: 1.25 !important;
    }

    #mw-history-result .mw-result-contact {
        break-inside: avoid;
        display: block !important;
        margin-top: 3mm !important;
        padding: 3mm 4mm !important;
    }

    #mw-history-result .mw-result-contact h3 {
        font-size: 9pt !important;
        margin-bottom: 0.8mm !important;
    }

    #mw-history-result .mw-result-contact p {
        font-size: 6.8pt !important;
        line-height: 1.25 !important;
    }

    #mw-history-result .mw-pdf-footer {
        align-items: center;
        border-top: 0.5mm solid #ed4245;
        bottom: 0;
        color: #878787;
        display: flex !important;
        font-size: 7pt;
        justify-content: space-between;
        left: 0;
        margin-top: 0;
        padding-top: 2mm;
        position: absolute;
        width: 100%;
    }
}
