.woty-core-container {
    --woty-core-color-outer: #d8c37d;
    --woty-core-color-inner: #9872d1;
    --woty-core-color-glow: #caa6ff;
    --woty-core-color-segment: rgba(185, 146, 255, 0.3);
    --woty-core-color-segment-hover: rgba(255, 210, 90, 0.65);
    --woty-core-color-label: #e5d7a2;
    --woty-core-label-color: #e5d7a2;
    --woty-core-color-center-label: #fef7da;
    --woty-core-color-highlight: #ffe5a1;
    --woty-core-color-segment-stroke: #d8c37d;
    --woty-core-label-font-family: Georgia, serif;
    --woty-core-label-font-size: 16px;
    --woty-core-label-font-weight: 400;
    --woty-core-label-letter-spacing: 0.5px;
    --woty-core-label-glow-strength: 80;
    --woty-core-label-glow-opacity: 80;
    --woty-core-label-glow: rgba(0, 0, 0, 0.8);
    --woty-core-label-glow-color: rgba(0, 0, 0, 0.8);
    --woty-core-label-glow-radius: 4px;
    --woty-core-label-glow-radius-soft: 2.2px;
    --woty-core-label-glow-radius-wide: 7.2px;
    --woty-core-label-glow-filter-radius: 1.4px;
    --woty-core-label-stroke-color: transparent;
    --woty-core-label-stroke-width: 0px;
    --woty-core-mobile-label-color: #ffffff;
    --woty-core-mobile-label-stroke-color: #243f33;
    --woty-core-mobile-label-stroke-width: 0.8px;
    --woty-core-mobile-label-glow-strength: 0;
    --woty-core-mobile-label-glow: rgba(0, 0, 0, 0);
    --woty-core-mobile-label-glow-radius: 0px;
    --woty-core-glow-soft: 6px;
    --woty-core-glow-strong: 18px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    position: relative;
}

.woty-core-wheel {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.woty-core-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
    .elementor-widget-woty_core_wheel.elementor-element {
        height: auto !important;
        min-height: min(620px, calc(100vw - 92px)) !important;
        max-height: none !important;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .woty-core-container {
        padding: 0 12px;
    }
}

.woty-core-outer-ring {
    stroke: var(--woty-core-color-outer);
    filter: none;
    pointer-events: none;
}

.woty-core-inner-ring {
    stroke: var(--woty-core-color-inner);
    pointer-events: none;
}

.woty-core-festival {
    cursor: pointer;
    --woty-segment-hover-color: var(--woty-core-color-segment-hover, rgba(255, 210, 90, 0.65));
    --woty-segment-highlight-color: var(--woty-core-color-highlight, #ffe5a1);
}

.woty-core-label {
    font-family: var(--woty-core-label-font-family, Georgia, serif);
    fill: var(--woty-core-label-color, var(--woty-segment-label-color, var(--woty-core-color-label, #e5d7a2)));
    font-size: var(--woty-core-label-font-size, 16px);
    font-weight: var(--woty-core-label-font-weight, 400);
    text-shadow: none;
    filter: none;
    stroke: var(--woty-core-label-stroke-color, transparent);
    stroke-width: var(--woty-core-label-stroke-width, 0px);
    paint-order: stroke fill;
    stroke-linejoin: round;
    pointer-events: none;
    letter-spacing: var(--woty-core-label-letter-spacing, 0.5px);
}

.woty-core-label-glow-enabled .woty-core-label {
    text-shadow:
        0 0 var(--woty-core-label-glow-radius-soft, 2.2px) var(--woty-core-label-glow-color, var(--woty-core-label-glow, rgba(0, 0, 0, 0.8))),
        0 0 var(--woty-core-label-glow-radius, 4px) var(--woty-core-label-glow-color, var(--woty-core-label-glow, rgba(0, 0, 0, 0.8))),
        0 0 var(--woty-core-label-glow-radius-wide, 7.2px) var(--woty-core-label-glow-color, var(--woty-core-label-glow, rgba(0, 0, 0, 0.8)));
    filter: drop-shadow(0 0 var(--woty-core-label-glow-filter-radius, 1.4px) var(--woty-core-label-glow-color, var(--woty-core-label-glow, rgba(0, 0, 0, 0.8))));
}

.woty-core-center-label {
    font-family: Georgia, serif;
    fill: var(--woty-core-color-center-label, #fef7da);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
}

.woty-core-center-image {
    pointer-events: none;
    opacity: 0.95;
}

.woty-core-segment {
    fill: var(--woty-segment-base-fill, var(--woty-core-color-segment, rgba(185, 146, 255, 0.3)));
    stroke: var(--woty-core-color-segment-stroke, var(--woty-core-color-outer));
    stroke-width: 2;
    transition: fill 0.2s ease, stroke 0.2s ease;
    outline: none;
}

.woty-core-segment-image {
    pointer-events: none;
}

.woty-core-ornaments {
    pointer-events: none;
}

.woty-core-combined-image {
    display: none;
    pointer-events: none;
}

.woty-core-festival[role="button"]:focus-visible .woty-core-segment,
.woty-core-festival > a:focus-visible .woty-core-segment {
    fill: var(--woty-segment-hover-color, var(--woty-core-color-segment-hover, rgba(255, 210, 90, 0.65)));
    stroke: #ffffff;
    stroke-width: 5;
    filter: none;
}

@media (hover: hover) and (pointer: fine) {
    .woty-core-outer-ring {
        filter: var(--woty-core-outer-ring-filter, none);
    }

    .woty-core-segment {
        transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
    }

    .woty-core-segment:hover {
        fill: var(--woty-segment-hover-color, var(--woty-core-color-segment-hover, rgba(255, 210, 90, 0.65)));
        stroke: var(--woty-segment-highlight-color, var(--woty-core-color-highlight, #ffe5a1));
        filter: drop-shadow(0 0 var(--woty-core-glow-soft, 6px) var(--woty-segment-highlight-color, var(--woty-core-color-glow)));
    }

    .woty-core-festival[data-glow-enabled="0"] .woty-core-segment:hover {
        filter: none;
    }
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    .woty-core-wheel,
    .woty-core-festival,
    .woty-core-label,
    .woty-core-combined-image {
        animation: none;
        filter: none;
        transition: none;
    }

    .woty-core-festival {
        touch-action: manipulation;
    }

    .woty-core-outer-ring,
    .woty-core-segment {
        filter: none;
    }

    .woty-core-label {
        fill: var(--woty-core-mobile-label-color, #ffffff) !important;
        stroke: var(--woty-core-mobile-label-stroke-color, #243f33);
        stroke-width: var(--woty-core-mobile-label-stroke-width, 0.8px);
        text-shadow: none;
    }

    .woty-core-label-glow-enabled .woty-core-label {
        text-shadow: none;
        filter: none;
    }

    .woty-core-mobile-label-glow-enabled .woty-core-label {
        text-shadow: 0 0 var(--woty-core-mobile-label-glow-radius, 0px) var(--woty-core-mobile-label-glow, rgba(0, 0, 0, 0));
        filter: none;
    }

    .woty-core-ornaments,
    .woty-core-segment-image,
    .woty-core-img {
        display: none;
    }

    .woty-core-segment {
        transition: none;
    }

    .woty-core-segment:hover {
        fill: var(--woty-segment-base-fill, var(--woty-core-color-segment, rgba(185, 146, 255, 0.3)));
        stroke: var(--woty-core-color-segment-stroke, var(--woty-core-color-outer));
    }
}

@media (max-width: 767px) {
    .woty-core-combined-image--mobile,
    .woty-core-combined-image--mobile-tablet {
        display: block;
    }

    .woty-core-combined-dividers-disabled.woty-core-combined-active--mobile .woty-core-festival:not(:focus-visible) > .woty-core-segment:not(.woty-core-highlight),
    .woty-core-combined-dividers-disabled.woty-core-combined-active--mobile-tablet .woty-core-festival:not(:focus-visible) > .woty-core-segment:not(.woty-core-highlight),
    .woty-core-combined-dividers-disabled.woty-core-combined-active--mobile .woty-core-festival > a:not(:focus-visible) .woty-core-segment:not(.woty-core-highlight),
    .woty-core-combined-dividers-disabled.woty-core-combined-active--mobile-tablet .woty-core-festival > a:not(:focus-visible) .woty-core-segment:not(.woty-core-highlight) {
        stroke: transparent;
        stroke-width: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .woty-core-combined-image--tablet,
    .woty-core-combined-image--mobile-tablet {
        display: block;
    }

    .woty-core-combined-dividers-disabled.woty-core-combined-active--tablet .woty-core-festival:not(:focus-visible) > .woty-core-segment:not(.woty-core-highlight),
    .woty-core-combined-dividers-disabled.woty-core-combined-active--mobile-tablet .woty-core-festival:not(:focus-visible) > .woty-core-segment:not(.woty-core-highlight),
    .woty-core-combined-dividers-disabled.woty-core-combined-active--tablet .woty-core-festival > a:not(:focus-visible) .woty-core-segment:not(.woty-core-highlight),
    .woty-core-combined-dividers-disabled.woty-core-combined-active--mobile-tablet .woty-core-festival > a:not(:focus-visible) .woty-core-segment:not(.woty-core-highlight) {
        stroke: transparent;
        stroke-width: 0;
    }
}

@media (prefers-color-scheme: dark) and (max-width: 1024px), (prefers-color-scheme: dark) and (hover: none), (prefers-color-scheme: dark) and (pointer: coarse) {
    .woty-core-label {
        fill: var(--woty-core-mobile-label-color, #ffffff) !important;
        stroke: var(--woty-core-mobile-label-stroke-color, #243f33);
        stroke-width: var(--woty-core-mobile-label-stroke-width, 0.8px);
    }
}

.woty-core-img {
    pointer-events: none;
    clip-path: circle(50%);
    border-radius: 50%;
    opacity: 1;
}

.woty-core-message {
    text-align: center;
    font-family: Georgia, serif;
}

#woty-core-popup {
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 360px;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 30px);
    max-height: calc(100dvh - 30px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    background: #1a0f24;
    border: 3px solid #d8c37d;
    padding: 52px 20px 20px;
    z-index: 99999;
    color: #fef7da;
    font-family: Georgia, serif;
    display: none;
    box-shadow: 0 0 30px rgba(149, 108, 214, 0.65);
    border-radius: 12px;
    margin: 0;
}

#woty-core-popup[open],
#woty-core-popup.woty-core-popup-open {
    display: block;
}

body.woty-core-popup-fallback-open > *:not(#woty-core-popup) {
    pointer-events: none;
}

body.woty-core-popup-fallback-open > #woty-core-popup {
    pointer-events: auto;
}

#woty-core-popup h2 {
    margin-top: 0;
    color: #ffeac4;
    font-size: 22px;
}

#woty-core-popup img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    display: none;
}

#woty-core-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d8c37d;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-align: center;
    line-height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a0f24;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.2s ease;
}

#woty-core-popup-close:hover,
#woty-core-popup-close:focus-visible {
    transform: scale(1.05);
}

#woty-core-popup-close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #1a0f24;
}

@media (prefers-reduced-motion: reduce) {
    .woty-core-segment,
    #woty-core-popup-close {
        transition: none;
    }

    #woty-core-popup-close:hover,
    #woty-core-popup-close:focus-visible {
        transform: none;
    }
}

@media (forced-colors: active) {
    .woty-core-festival .woty-core-segment.woty-core-highlight,
    .woty-core-festival .woty-core-segment.woty-core-highlight:hover {
        fill: Canvas;
        stroke: Highlight;
        stroke-width: 4;
        filter: none;
    }

    .woty-core-combined-image {
        display: none;
    }

    .woty-core-mobile-label-glow-enabled .woty-core-label {
        text-shadow: none;
        filter: none;
    }

    .woty-core-label-glow-enabled .woty-core-label {
        text-shadow: none;
        filter: none;
    }

    .woty-core-festival[role="button"]:focus-visible .woty-core-segment,
    .woty-core-festival > a:focus-visible .woty-core-segment {
        fill: Canvas;
        stroke: Highlight;
        stroke-width: 6;
        filter: none;
    }

    #woty-core-popup-close:focus-visible {
        outline: 3px solid Highlight;
        box-shadow: none;
    }
}

/* Darkmode */
@media (prefers-color-scheme: dark) {
    .woty-core-container {
        filter: brightness(0.85);
    }
    #woty-core-popup {
        background: #0f0a15;
        border-color: #ceb878;
    }
}

/* Mobile Optimierung */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    .woty-core-container {
        filter: none;
    }

    .woty-core-container.woty-core-combined-active,
    .woty-core-combined-image {
        filter: none;
    }

    .woty-core-wheel {
        transform: none;
    }

    #woty-core-popup {
        box-shadow: 0 0 12px rgba(149, 108, 214, 0.35);
    }
}

@media (max-width: 500px) {
    .woty-core-label {
        font-size: 14px;
    }
}

/* Highlight aktuelles Fest */
@keyframes woty-core-segment-pulse {
    0%,
    100% {
        fill: var(--woty-segment-base-fill, var(--woty-core-color-segment, rgba(185, 146, 255, 0.3)));
    }
    50% {
        fill: var(--woty-segment-pulse-color,
            var(--woty-core-pulse-color,
                var(--woty-segment-highlight-color, var(--woty-core-color-highlight, #ffe5a1))
            )
        );
    }
}

.woty-core-segment.woty-core-highlight {
    fill: var(--woty-segment-pulse-color,
        var(--woty-core-pulse-color,
            var(--woty-segment-highlight-color, var(--woty-core-color-highlight, #ffe5a1))
        )
    );
    stroke: var(--woty-segment-highlight-color, var(--woty-core-color-highlight, #ffe5a1));
    stroke-width: 3;
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .woty-core-festival[data-glow-enabled="1"][data-pulse-enabled="1"] .woty-core-segment.woty-core-highlight {
        animation: woty-core-segment-pulse var(--woty-core-pulse-duration, 1400ms) ease-in-out infinite;
    }

    .woty-core-festival[data-glow-enabled="1"][data-pulse-enabled="1"] .woty-core-segment.woty-core-highlight:hover,
    .woty-core-festival[data-glow-enabled="1"][data-pulse-enabled="1"][role="button"]:focus-visible .woty-core-segment.woty-core-highlight,
    .woty-core-festival[data-glow-enabled="1"][data-pulse-enabled="1"] > a:focus-visible .woty-core-segment.woty-core-highlight {
        animation: none;
    }
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .woty-core-segment.woty-core-highlight:hover {
        fill: var(--woty-segment-hover-color, var(--woty-core-color-segment-hover, rgba(255, 210, 90, 0.65)));
        stroke: var(--woty-segment-highlight-color, var(--woty-core-color-highlight, #ffe5a1));
    }
}
