#wrapper_outer {
    position: relative;
    overflow: hidden;
    margin: 0px;
    width: 100%;
    touch-action: pan-y; /* Erlaubt vertikales Scrollen der Seite */
    /* min-height: calc(100vh - 110px); */ /* device height - header height */
    background-color: #f4f4f4;
}

#wrapper_ar_button_outer {
    position: relative;
    /* margin-top: 5px; */
    z-index: 2 !important;
    background-color: rgba(255, 255, 255, 0.0);
    /* padding-bottom: 30px; */
    text-align: center;
    /* */ transition: 1s ease;
}

#wrapper {
    position: relative;
    width: 100%;
    max-height: calc(90dvh - 200px);
    /* */ transition: all 2s ease;
    -ms-transition: 2s ease;
    -webkit-transition: 2s ease;
    -moz-transition: 2s ease;
    -o-transition: 2s ease;
    will-change: transform; /* Verbessert Hardware-Beschleunigung */
    touch-action: manipulation; /* Erlaubt pinch-zoom und click, aber kein Scrollen */
    /* OVERRIDE-HINWEIS: Diese Transition und touch-action überschreiben Cropper-Defaults; für scale_bg_zoom ggf. spezifisch anpassen (z.B. touch-action: pan-x pan-y). */
}

#wrapper_inner {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(0) translateY(0) translateZ(0) scale(1); /* Skalierung bleibt erhalten */
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); /* Butterweiche 1s Transition */
    will-change: transform, scale, translate; /* Optimiert Performance für Animationen */
    /* OVERRIDE-HINWEIS: Scale-spezifisch für Zoom; im Cropper könnte das zu Konflikten mit Crop-Transitions führen. */
}

#bg_image {
    width: 100%;
    /*
    transition: all 1s ease;
    -ms-transition: 1s ease;
    -webkit-transition: 1s ease;
    -moz-transition: 1s ease;
    -o-transition: 1s ease;
    */
    position: relative;
    top: 5px;
}


/* Diese Klassen werden dynamisch via PHP auf Wrapper angewendet – identisch zum Cropper, aber hier für BG-Image-Overlay relevant. */
.room_bg_color_bright {
    background-color: rgb(226, 222, 211);
    background: linear-gradient(90deg, rgb(238, 236, 224) 0%, rgb(226, 222, 211) 50%, rgb(187, 180, 164) 100%) !important;
}

.room_bg_color_bright_2 {
    background-color: #d9d9d0;
    background: linear-gradient(90deg, rgb(201, 201, 192) 0%, rgb(227, 226, 219) 100%) !important;
}

.room_bg_color_dark {
    background-color: #181816 !important;
}

.room_bg_color_creme {
    background-color: #cfb594 !important;
}

.room_bg_color_creme_2 {
    background-color: #ab9f8a !important;
}

.room_bg_color_mint {
    background-color: #b5beb3 !important;
    background: linear-gradient(90deg, rgb(220, 227, 218) 0%, rgb(151, 161, 145) 100%) !important;
}

.room_bg_color_mint_2 {
    background-color: #8c9978 !important;
}

.room_bg_color_anthrazit {
    background-color: #34312c !important;
    background: linear-gradient(90deg, rgb(60, 56, 51) 0%, rgb(86, 83, 87) 30%, rgb(14, 14, 10) 100%) !important;
}

.room_bg_color_anthrazit_2 {
    background-color: #37322e !important;
    background: linear-gradient(90deg, rgb(78, 80, 79) 0%, rgb(38, 32, 27) 75%, rgb(40, 31, 22) 100%) !important;
}


#art {
    /* image-rendering: pixelated; */
    position: absolute;
    top: 82px;
    left: 530px;
    width: 0px;
    height: 0px;
    transition: all 0.6s ease-in-out; /* 600ms, wie jQuery "slow" */
    opacity: 1;
    will-change: opacity; /* Optimierung für Animationen */
    /* OVERRIDE-HINWEIS: Position und Transition sind scale_bg_zoom-spezifisch (z.B. left: 530px für Zentrierung); im Cropper überschrieben durch absolute Positioning im Preview. */
}

#art.fading {
    opacity: 0.5; /* Zwischenstufe während des Übergangs */
}

#art.hidden {
    opacity: 0; /* Vollständig ausgeblendet */
}

#art.visible {
    opacity: 1; /* Vollständig sichtbar */
}

#loader_resolution {
    display: none;
}

#loader_circle_text {
    position: absolute;
    top: 34%;
    left: 34%;
    color: white;
}

#art_loader {
    /* position: absolute; */
    display: none;
    width: 40px;
    height: 40px;
    transition: all 1s ease;
    -ms-transition: 1s ease;
    -webkit-transition: 1s ease;
    -moz-transition: 1s ease;
    -o-transition: 1s ease;
}

:root{
    --stroke_size:2px;
}


.frame_loader {
  width: 150px;
  aspect-ratio: 1;
  display: grid;
}
.frame_loader::before,
.frame_loader::after {
  content: "";
  grid-area: 1/1;
  --c:no-repeat linear-gradient(var(--theme_color) 0 0);
  background:
    var(--c) 0 0,
    var(--c) 100% 0,
    var(--c) 100% 100%,
    var(--c) 0 100%;
  animation: 
    l10-1 2s infinite linear,
    l10-2 2s infinite linear;
}
.frame_loader::after {
  margin: 13%;
  transform: scale(-1);
}

@keyframes l10-1 {
  0%   {background-size: 0    var(--stroke_size),var(--stroke_size) 0   ,0    var(--stroke_size),var(--stroke_size) 0   }
  12.5%{background-size: 100% var(--stroke_size),var(--stroke_size) 0   ,0    var(--stroke_size),var(--stroke_size) 0   }
  25%  {background-size: 100% var(--stroke_size),var(--stroke_size) 100%,0    var(--stroke_size),var(--stroke_size) 0   }
  37.5%{background-size: 100% var(--stroke_size),var(--stroke_size) 100%,100% var(--stroke_size),var(--stroke_size) 0   }
  45%,
  55%  {background-size: 100% var(--stroke_size),var(--stroke_size) 100%,100% var(--stroke_size),var(--stroke_size) 100%}
  62.5%{background-size: 0    var(--stroke_size),var(--stroke_size) 100%,100% var(--stroke_size),var(--stroke_size) 100%}
  75%  {background-size: 0    var(--stroke_size),var(--stroke_size) 0   ,100% var(--stroke_size),var(--stroke_size) 100%}
  87.5%{background-size: 0    var(--stroke_size),var(--stroke_size) 0   ,0    var(--stroke_size),var(--stroke_size) 100%}
  100% {background-size: 0    var(--stroke_size),var(--stroke_size) 0   ,0    var(--stroke_size),var(--stroke_size)0   }
}

@keyframes l10-2 {
  0%,49.9%{background-position: 0 0   ,100% 0   ,100% 100%,0 100%}
  50%,100%{background-position: 100% 0,100% 100%,0    100%,0 0   }
}

.frame_loader.center{
    position: absolute;
    transform: translate(-50%, -50%);
    width: 150px !important;
    height: 150px !important;
    top: calc(50% - 100px) !important;
    left: calc(50% - 0px) !important;
}

.low_resolution_msg {
    border-radius: 20px;
    padding: 15px;
    background-color: rgb(255 0 0 / 50%);
    color: #ffffff;
    font-size: 11pt;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    visibility: hidden;
    display: flex;
}

.low_resolution_msg.open {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.low_resolution_msg.hidden {
    display: none !important;
    opacity: 0;
}

.low_resolution_msg > svg {
    margin-bottom: 10px;
}


#wrapper > .product_img_main_icons .like_artwork {
    padding-top: 2px !important;
    /* OVERRIDE-HINWEIS: Speziell für Like-Icon; im Cropper ähnlich, aber hier für scale_bg_zoom-Positionierung. */
}

/* CROP – aber hier für scale_bg_zoom anpassbar */
#wrapper > .product_img_main_icons {
    z-index: 5;
    position: absolute;
    top: 25px;
    right: 0.8em;
    /* OVERRIDE-HINWEIS: Right-Position wird in Medienabfragen überschrieben; für Cropper anders (z.B. right: max(300px + 1em)). */
}

/* Allgemein für Buttons wie Zoom-In/Out (keine spezifischen Regeln, aber .btn fallback) */
.btn {
    border: 1px solid grey;
    margin: 3px !important;
    padding: 10px !important;
    white-space: nowrap;
}

.room_color_box {
    margin-top: 20px;
    display: flex;
    align-content: center;
    flex-direction: row;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 35px;
    justify-content: flex-start;
}

.room_color_box button {
    border: 0px;
    border-radius: 50px;
    padding: min(calc(100% * 0.1 - 15px), 20px);
    margin: 7px;
    cursor: pointer;
    transition: 0.3s ease !important;
    border: 5px solid rgba(255, 255, 255, 0);
}

@media (min-width: 600px) {
    .room_color_box {
        justify-content: center;
    }
}

.room_color_box button.active {
    border: 5px solid #02d0ce;
    transform: translate3d(0, 2px, 0);
    box-shadow: inset 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
}

.room_color_box button.bright {
    background-color: rgb(238, 236, 234);
}

.room_color_box button.bright_2 {
    background-color: #d9d9d0;
}

.room_color_box button.dark {
    background-color: rgb(27, 26, 23);
}

.room_color_box button.mint {
    background-color: #b5beb3;
}

.room_color_box button.mint_2 {
    background-color: #8c9978;
}

.room_color_box button.creme {
    background-color: #cfb594;
}

.room_color_box button.creme_2 {
    background-color: #ab9f8a;
}

.room_color_box button.anthrazit {
    background-color: #58534e;
}

.room_color_box button.anthrazit_2 {
    background-color: #3f3935;
}

#crop_cart_box,
#scale_bg_zoom_cart_box {
    padding: 15px 20px 0px 20px;
    z-index: 8;
    width: 100%;
    top: 0px;
    position: relative;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 30px 30px 0 0;
    box-shadow: none;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    /* OVERRIDE-HINWEIS: Kombiniert mit Cropper; für scale_bg_zoom spezifisch anpassen, z.B. border-radius: 0 42px 0 0. */
}

@media screen and (min-width: 560px) and (max-width: 1023px) {
    #crop_cart_box,
    #scale_bg_zoom_cart_box {
        width: 560px;
        max-width: 560px;
        margin: -1px auto;
    }
}

#crop_cart_box .price_box svg,
#scale_bg_zoom_cart_box .price_box svg {
    position: relative;
    top: -2px;
    margin-right: 3px;
    border-radius: 42px;
    box-shadow: 1px 1px 29px rgba(255, 255, 255, 1), 1px 1px 60px rgba(255, 255, 255, 1);
}

#crop_cart_box .price_box,
#scale_bg_zoom_cart_box .price_box {
    text-shadow: 1px 1px 22px rgba(255, 255, 255, 1), 1px 1px 22px rgba(255, 255, 255, 1);
}

.crop_cart_box_title {
    margin: 20px 0;
}

@media screen and (min-width: 1024px) {
    #crop_cart_box,
    #scale_bg_zoom_cart_box {
        min-width: 300px;
        max-width: 400px;
        position: absolute;
        width: 33%;
        padding: 10px;
        right: 0px;
        border-radius: 0 0 0 42px;
        box-shadow: none;
    }
}

@media screen and (min-width: 1024px) {
    #wrapper {
        height: 700px;
        max-height: 80vh;
    }
    
    /* CROP – aber hier für scale_bg_zoom: */
    #wrapper > .product_img_main_icons {
        right: max(300px + 1em, calc(33% + 1em));
    }
    
    #crop_title_box {
        width: 60%;
        margin: 0px auto;
    }
    
    #wrapper_outer {
        min-height: min(670px, calc(100vh - 110px)) !important;
    }
}

@media screen and (min-width: 1200px) {
    /* CROP – anpassbar für scale_bg_zoom: */
    #wrapper > .product_img_main_icons {
        right: calc(400px + 1em);
    }
}

@media screen and (min-width: 1024px) {
    #wrapper_ar_button_outer {
        /* margin-right: max(393px, 30%) !important; */
        /* margin-right: 30%; */
    }
}

/* Weitere responsive für Heart-Animationen/Likes (nicht direkt, aber via .icon_heard_*): */
.icon_heard_in_circle {
    padding-top: 10%;
    margin: 0 auto;
    width: 70%;
}

.icon_heard_animated {
    padding-top: 10%;
    margin: 0 auto;
    width: 60%;
}

#animated_like_in_image {
    position: relative;
    height: 0px;
    text-align: center;
    top: -100px;
    z-index: 1;
    
    -webkit-transition: -webkit-transform .2s ease-out;
    -moz-transition: -moz-transform .2s ease-out;
    -o-transition: -o-transform .2s ease-out;
    -ms-transition: -ms-transform .2s ease-out;
    transition: transform .2s ease-out;
    
    animation-duration: 1s;
}