.mtc-wheel,
.mtc-wheel * {
    box-sizing: border-box;
}

.mtc-wheel {
    --mtc-brand: #00684e;
    --mtc-max-width: 1060px;
    --mtc-ring-size: 420px;
    --mtc-icon-size: 68px;
    --mtc-label-width: 188px;
    --mtc-logo-scale: 82%;
    position: relative;
    width: min(var(--mtc-max-width), calc(100vw - 48px));
    max-width: none;
    margin: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #15352d;
    font-family: inherit;
    isolation: isolate;
}

/*
 * Desktop is intentionally allowed to break out of a narrow Elementor/text
 * column. Otherwise a 500-650px content column forces a radial graphic to
 * collapse although the browser itself has plenty of space.
 */
.mtc-wheel.mtc-wheel--radial {
    flex: 0 0 auto;
    width: min(var(--mtc-max-width), calc(100vw - 48px)) !important;
    max-width: none !important;
    overflow: visible;
}

.mtc-wheel__stage {
    position: relative;
    width: 100%;
    min-height: 625px;
    overflow: visible;
}

.mtc-wheel__orbit {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: var(--mtc-ring-size);
    aspect-ratio: 1;
    border: 2px solid var(--mtc-brand);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.98;
}

.mtc-wheel__orbit::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px dashed var(--mtc-brand);
    border-radius: 50%;
    opacity: 0.58;
}

.mtc-wheel__center {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: calc(var(--mtc-ring-size) * 0.50);
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.12), transparent 34%),
        var(--mtc-brand);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
    transform: translate(-50%, -50%);
}

.mtc-wheel__center img {
    display: block !important;
    width: var(--mtc-logo-scale, 82%) !important;
    min-width: var(--mtc-logo-scale, 82%) !important;
    max-width: var(--mtc-logo-scale, 82%) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    flex: none !important;
}

.mtc-wheel__items,
.mtc-wheel__item {
    position: static;
}

.mtc-wheel__connector {
    position: absolute;
    z-index: 1;
    height: 2px;
    border-radius: 999px;
    background: var(--mtc-brand);
    transform-origin: 0 50%;
    pointer-events: none;
}

.mtc-wheel__node {
    position: absolute;
    z-index: 3;
    width: 19px;
    height: 19px;
    border: 2px solid var(--mtc-brand);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mtc-wheel__trigger {
    position: absolute;
    z-index: 5;
    width: var(--mtc-icon-size);
    height: var(--mtc-icon-size);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transform: translate(-50%, -50%);
    overflow: visible;
    appearance: none;
    -webkit-appearance: none;
}

.mtc-wheel__icon {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.17), transparent 33%),
        var(--mtc-brand);
    box-shadow: 0 8px 18px rgba(0, 48, 36, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.mtc-wheel__icon img {
    display: block;
    width: 54%;
    height: 54%;
    object-fit: contain;
}

.mtc-wheel__label {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: var(--mtc-label-width, 188px);
    min-height: 52px;
    padding: 8px 16px;
    border: 0;
    background: #f5f9f7;
    box-shadow: 0 9px 24px rgba(0, 48, 36, 0.09);
    line-height: 1.23;
    transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.mtc-wheel__label strong {
    display: block;
    color: #15352d;
    font-size: clamp(13px, 1.15vw, 16px);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.mtc-wheel__label small {
    display: block;
    margin-top: 3px;
    color: #4f655f;
    font-size: 12px;
    font-weight: 450;
    line-height: 1.28;
}

/* Icon and text intentionally overlap so they read as one connected control. */
.mtc-wheel__item--right .mtc-wheel__label {
    left: calc(100% - 18px);
    padding-left: 31px;
    border-radius: 0 999px 999px 0;
    transform: translateY(-50%);
}

.mtc-wheel__item--left .mtc-wheel__label {
    right: calc(100% - 18px);
    padding-right: 31px;
    border-radius: 999px 0 0 999px;
    text-align: right;
    transform: translateY(-50%);
}

/* Position 1 (Netzidee / Consulting) sits above the top icon. */
.mtc-wheel__item--top .mtc-wheel__label {
    top: auto;
    bottom: calc(100% - 15px);
    left: 50%;
    width: max(var(--mtc-label-width, 188px), 210px);
    min-height: 50px;
    padding: 10px 14px 24px;
    border-radius: 999px 999px 0 0;
    text-align: center;
    transform: translateX(-50%);
}

.mtc-wheel__trigger:hover .mtc-wheel__icon,
.mtc-wheel__trigger:focus-visible .mtc-wheel__icon {
    transform: scale(1.06);
    box-shadow: 0 10px 22px rgba(0, 48, 36, 0.18);
}

.mtc-wheel__trigger:hover .mtc-wheel__label,
.mtc-wheel__trigger:focus-visible .mtc-wheel__label {
    background: #eef6f2;
    box-shadow: 0 12px 28px rgba(0, 48, 36, 0.13);
}

.mtc-wheel__trigger:focus-visible {
    outline: 3px solid var(--mtc-brand);
    outline-offset: 5px;
}

.mtc-wheel.mtc-wheel--narrow .mtc-wheel__label strong {
    font-size: 13px;
    line-height: 1.18;
}

.mtc-wheel.mtc-wheel--narrow .mtc-wheel__label {
    min-height: 48px;
    padding-left: 12px;
    padding-right: 12px;
}

.mtc-wheel.mtc-wheel--narrow .mtc-wheel__item--right .mtc-wheel__label {
    padding-left: 18px;
}

.mtc-wheel.mtc-wheel--narrow .mtc-wheel__item--left .mtc-wheel__label {
    padding-right: 18px;
}

.mtc-empty {
    padding: 18px 22px;
    border: 1px solid #d5dedb;
    border-radius: 12px;
    background: #f8faf9;
}

body.mtc-modal-open {
    overflow: hidden;
}

.mtc-modal {
    position: fixed !important;
    z-index: 2147483000;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.mtc-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mtc-modal__backdrop {
    position: fixed;
    inset: 0 !important;
    width: 100vw;
    height: 100dvh;
    background: rgba(4, 25, 20, 0.72);
    backdrop-filter: blur(5px);
}

.mtc-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: min(86vh, 920px);
    overflow: auto;
    border: 1px solid rgba(0, 104, 78, 0.14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
    overscroll-behavior: contain;
}

.mtc-modal__header {
    padding: clamp(28px, 5vw, 52px) clamp(24px, 6vw, 62px) 24px;
    border-bottom: 1px solid #e7eeeb;
}

.mtc-modal__eyebrow {
    margin: 0 0 8px;
    color: var(--mtc-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.mtc-modal__header h2 {
    margin: 0;
    color: #15352d;
    font-size: clamp(28px, 4.4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.mtc-modal__subtitle {
    margin: 12px 0 0;
    color: #526962;
    font-size: 16px;
    line-height: 1.5;
}

.mtc-modal__body {
    padding: 30px clamp(24px, 6vw, 62px) clamp(34px, 6vw, 62px);
    color: #243e37;
    font-size: 16px;
    line-height: 1.7;
}

.mtc-modal__body > :first-child,
.mtc-detail > :first-child {
    margin-top: 0;
}

.mtc-modal__body > :last-child,
.mtc-detail > :last-child {
    margin-bottom: 0;
}

.mtc-modal__body img,
.mtc-modal__body video,
.mtc-modal__body iframe {
    max-width: 100%;
    height: auto;
}

.mtc-modal__body .wp-block-image img,
.mtc-modal__body .wp-block-gallery img {
    border-radius: 12px;
}

.mtc-modal__close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(0, 104, 78, 0.16);
    border-radius: 50%;
    background: #fff;
    color: #15352d;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.mtc-modal__close:hover,
.mtc-modal__close:focus-visible {
    background: #f2f6f4;
    transform: rotate(4deg) scale(1.04);
}

.mtc-modal__close:focus-visible {
    outline: 3px solid var(--mtc-brand);
    outline-offset: 2px;
}

/* Compact mobile/tablet mode. The browser viewport decides when it is used;
 * a narrow Elementor column on a desktop no longer triggers this layout. */
.mtc-wheel.mtc-wheel--cards {
    left: auto;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    transform: none;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 10px 0 0;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__orbit {
    position: relative;
    left: auto;
    top: auto;
    width: clamp(170px, 48vw, 220px);
    flex: 0 0 auto;
    transform: none;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__center {
    left: 50%;
    top: calc(10px + clamp(85px, 24vw, 110px));
    width: clamp(108px, 30vw, 138px);
    padding: 5.5%;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    margin-top: 22px;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__item {
    position: relative;
    min-width: 0;
}

/* If the number of visible entries is odd, center the final card. */
.mtc-wheel.mtc-wheel--cards .mtc-wheel__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 4.5px);
    justify-self: center;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__connector,
.mtc-wheel.mtc-wheel--cards .mtc-wheel__node {
    display: none;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__trigger {
    position: relative;
    left: auto !important;
    top: auto !important;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 70px;
    padding: 7px 9px 7px 7px;
    border: 0;
    border-radius: 14px;
    background: #f5f9f7;
    box-shadow: 0 6px 18px rgba(0, 48, 36, 0.08);
    transform: none !important;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.13);
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__label,
.mtc-wheel.mtc-wheel--cards .mtc-wheel__item--right .mtc-wheel__label,
.mtc-wheel.mtc-wheel--cards .mtc-wheel__item--left .mtc-wheel__label,
.mtc-wheel.mtc-wheel--cards .mtc-wheel__item--top .mtc-wheel__label {
    position: static;
    display: block;
    width: auto;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    padding: 0 0 0 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    transform: none;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__label strong {
    font-size: clamp(11.5px, 3.15vw, 13.5px);
    line-height: 1.18;
    overflow-wrap: anywhere;
}

/* Keep the overview short. Optional subtitles remain available in the modal. */
.mtc-wheel.mtc-wheel--cards .mtc-wheel__label small {
    display: none;
}

.mtc-wheel.mtc-wheel--cards .mtc-wheel__trigger:hover .mtc-wheel__label,
.mtc-wheel.mtc-wheel--cards .mtc-wheel__trigger:focus-visible .mtc-wheel__label {
    box-shadow: none;
}

@media (max-width: 767px) {
    .mtc-modal {
        display: grid;
        place-items: center;
        padding: 16px;
    }

    .mtc-modal__dialog {
        width: min(620px, 100%);
        max-height: 86vh;
        margin: auto;
        border-radius: 22px;
    }

    .mtc-modal__header {
        padding: 28px 22px 18px;
    }

    .mtc-modal__header h2 {
        padding-right: 34px;
        font-size: clamp(25px, 8vw, 36px);
    }

    .mtc-modal__body {
        padding: 22px;
    }
}

@media (max-width: 359px) {
    .mtc-wheel.mtc-wheel--cards .mtc-wheel__items {
        grid-template-columns: 1fr;
    }

    .mtc-wheel.mtc-wheel--cards .mtc-wheel__item:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtc-wheel__icon,
    .mtc-wheel__label,
    .mtc-modal,
    .mtc-modal__close {
        transition: none !important;
    }
}
