:root {
    --eas-bg-a: #f3f7ff;
    --eas-bg-b: #f9f5ff;
    --eas-card: #ffffff;
    --eas-line: #dce5f4;
    --eas-ink: #17233d;
    --eas-muted: #5d6d8a;
    --eas-brand: #2962ff;
    --eas-brand-2: #00a3ff;
}

.eas-frontend {
    max-width: 980px;
    margin: 20px auto 0;
    padding: 0 14px;
    font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

.eas-frontend::before {
    content: "";
    position: fixed;
    inset: -40% -20% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 98, 255, 0.12), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.eas-form {
    background: linear-gradient(145deg, var(--eas-bg-a) 0%, var(--eas-bg-b) 100%);
    border: 1px solid var(--eas-line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(23, 35, 61, 0.08);
}

.ea-progress {
    width: 100%;
    height: 10px;
    background: #dbe4f4;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.ea-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--eas-brand), var(--eas-brand-2));
    transition: width 0.35s ease;
}

.ea-step {
    display: none;
}

.ea-step-active {
    display: block;
}

.ea-step-anim {
    transition: opacity 0.32s ease;
    will-change: opacity;
}

.ea-step-fade-enter {
    opacity: 0;
}

.ea-step-fade-leave {
    opacity: 0;
}

.eas-step-card {
    background: var(--eas-card);
    border: 1px solid var(--eas-line);
    border-radius: 18px;
    padding: 24px;
}

.ea-step-active .eas-step-card {
    animation: eaCardIn 0.34s ease;
}

.eas-step-counter {
    margin: 0 0 8px;
    color: var(--eas-muted);
    font-size: 13px;
    letter-spacing: 0.2px;
}

.eas-step-title {
    margin: 0 0 18px;
    font-size: 31px;
    line-height: 1.12;
    color: var(--eas-ink);
    letter-spacing: -0.01em;
}

.ea-section-intro {
    margin: -4px 0 16px;
    color: var(--eas-muted);
    font-size: 15px;
    line-height: 1.56;
}

.ea-question-group {
    --ea-star-size: 42px;
    --ea-star-gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #edf2fb;
    animation: eaRowIn 0.26s ease;
}

.ea-question-group:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.ea-question-label {
    margin: 0 0 12px;
    color: #203153;
    font-size: 18px;
    font-weight: 600;
}

.ea-rating {
    width: calc((var(--ea-star-size) * 5) + (var(--ea-star-gap) * 4));
    display: inline-flex;
    flex-direction: row-reverse;
    gap: var(--ea-star-gap);
    align-items: center;
}

.ea-rating-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ea-rating-star {
    width: var(--ea-star-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #2b5fb8;
    cursor: pointer;
    transition: color 0.18s ease;
}

.ea-rating-star::before {
    content: "☆";
    font-size: var(--ea-star-size);
    font-weight: 700;
}

.ea-rating-star:hover,
.ea-rating-star:hover ~ .ea-rating-star {
    color: #2f66c4;
}

.ea-rating-star:hover::before,
.ea-rating-star:hover ~ .ea-rating-star::before {
    content: "★";
}

.ea-rating-input:checked ~ .ea-rating-star {
    color: #2454a6;
}

.ea-rating-input:checked ~ .ea-rating-star::before {
    content: "★";
}

.ea-rating-input:focus + .ea-rating-star {
    outline: none;
    box-shadow: none;
    border-radius: 0;
}

.ea-rating-scale {
    display: grid;
    grid-template-columns: repeat(5, var(--ea-star-size));
    column-gap: var(--ea-star-gap);
    width: calc((var(--ea-star-size) * 5) + (var(--ea-star-gap) * 4));
    color: #2d4f8f;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

.ea-rating-scale span {
    display: block;
    width: var(--ea-star-size);
    text-align: center;
}

.ea-comment-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 7px;
    font-weight: 700;
    color: #203153;
}

.ea-final-text {
    margin: 0 0 14px;
    color: var(--eas-muted);
    font-size: 15px;
}

.eas-form textarea,
.ea-contact-grid input {
    width: 100%;
    border: 1px solid #cad7ed;
    border-radius: 11px;
    padding: 11px 13px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

.eas-form textarea:focus,
.ea-contact-grid input:focus {
    outline: none;
    border-color: var(--eas-brand);
    box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.14);
}

.ea-navigation {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ea-navigation button {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.ea-navigation button:hover {
    transform: translateY(-1px);
}

.ea-navigation button:active {
    transform: translateY(0);
}

.ea-navigation button:disabled {
    opacity: 1;
    color: #7f8ea9 !important;
    background: #e8edf7 !important;
    border-color: #d3dced !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ea-prev {
    background: #f2f6ff;
    color: #2c466f;
    border-color: #d2ddf0;
}

.eas-form .ea-next,
.eas-form .ea-submit {
    background: linear-gradient(90deg, #1f56a8, #2b6dca);
    color: #ffffff !important;
    border-color: #245db3;
    box-shadow: 0 8px 16px rgba(31, 86, 168, 0.22);
}

.eas-form .ea-next:hover,
.eas-form .ea-submit:hover {
    background: linear-gradient(90deg, #1b4d98, #255fb2);
    color: #ffffff !important;
}

.ea-contact-grid {
    display: grid;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}

#result {
    margin-top: 20px;
    background: var(--eas-card);
    border: 1px solid var(--eas-line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 36px rgba(23, 35, 61, 0.08);
}

#result:empty {
    display: none;
}

.eas-result-card {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf2fb;
}

.eas-result-list,
.eas-benchmark-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.eas-error {
    color: #c0392b;
    font-weight: 600;
}

.eas-benchmark-status--risk {
    color: #c0392b;
    font-weight: 600;
}

.eas-benchmark-status--ok {
    color: #1f9a59;
    font-weight: 600;
}

.eas-booking-link {
    display: inline-block;
    margin-top: 8px;
}

.eas-frontend-ampel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 6px 0 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #eff4ff;
    border: 1px solid #d8e4fb;
}

.eas-frontend-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #cfd8e6;
    opacity: 0.55;
}

.eas-frontend-light.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.85), 0 0 10px rgba(0,0,0,0.15);
}

.eas-frontend-light--rot.is-active {
    background: #d93025;
}

.eas-frontend-light--gelb.is-active {
    background: #f4b400;
}

.eas-frontend-light--gruen.is-active {
    background: #1e8e3e;
}

.eas-frontend-ampel-label {
    font-size: 12px;
    font-weight: 700;
}

.eas-calendly-wrap {
    border: 1px solid var(--eas-line);
    border-radius: 12px;
    overflow: hidden;
    min-height: 620px;
    background: #fff;
}

.eas-calendly-wrap iframe {
    width: 100%;
    min-height: 620px;
    border: 0;
}

@keyframes eaCardIn {
    from {
        opacity: 0.78;
        transform: translateY(8px) scale(0.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes eaRowIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .eas-form {
        padding: 15px;
    }

    .eas-step-card {
        padding: 16px;
    }

    .eas-step-title {
        font-size: 24px;
    }

    .ea-question-group {
        --ea-star-size: 34px;
        --ea-star-gap: 10px;
    }

    .ea-rating-scale {
        width: calc((var(--ea-star-size) * 5) + (var(--ea-star-gap) * 4));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ea-step-anim,
    .ea-progress-bar,
    .ea-navigation button,
    .ea-rating-star,
    .ea-question-group,
    .ea-step-active .eas-step-card {
        transition: none !important;
        animation: none !important;
    }
}
