/* Wereld DEURBEL: voordeur, deurbel licht op, geluidsgolfjes, matje en plantje */
body:has(.d-world-deurbel) { --t-orange: #FFE1CC; --t-blue: #DCE7F5; --t-green: #E1EDD6; --t-yellow: #FFF0C6; }
body:has(.d-world-deurbel) .d-section.has-vlak-groen-background-color,
body:has(.d-world-deurbel) .d-section.has-vlak-blauw-background-color { background: #F3EEDF !important; }
.d-world-deurbel { background: linear-gradient(180deg, #FFE4D0 0%, #FFF4E8 78%, #F1E2CE 78%, #F6EBDC 100%) !important; }
.d-world-deurbel .d-play-title mark { color: #C9551A !important; }
body:has(.d-world-deurbel) main .d-section { position: relative; }
body:has(.d-world-deurbel) main .d-section + .d-section::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E %3Crect x='0' y='6' width='60' height='12' fill='%23B07A50'/%3E %3Cpath d='M0 9 H 60 M0 15 H 60' stroke='%238A5A3B' stroke-width='1.5' stroke-dasharray='3 3'/%3E %3Cpath d='M5 18 V 23 M15 18 V 23 M25 18 V 23 M35 18 V 23 M45 18 V 23 M55 18 V 23 M5 6 V 1 M15 6 V 1 M25 6 V 1 M35 6 V 1 M45 6 V 1 M55 6 V 1' stroke='%238A5A3B' stroke-width='2.5' stroke-linecap='round'/%3E %3Crect x='26' y='9' width='8' height='6' rx='2' fill='%23FFC94D'/%3E%3C/svg%3E") left center / 60px 24px repeat-x; z-index: 2; pointer-events: none; }

.d-scene-deurbel { position: absolute !important; inset: 0; height: auto !important; perspective: 900px; }
.d-deurbel-hoofd { width: 200px; height: 280px; right: 4%; bottom: 7%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280'%3E %3Cpath d='M10 276 V 30 C 10 14 24 6 40 6 H 160 C 176 6 190 14 190 30 V 276 Z' fill='%238EAAD5' stroke='%231E2B45' stroke-width='3' stroke-linejoin='round'/%3E %3Crect x='26' y='30' width='148' height='242' rx='6' fill='%23FFE7A8' stroke='%231E2B45' stroke-width='3'/%3E %3Cpath d='M60 272 L 92 120 H 108 L 140 272 Z' fill='%23FFF3CF' opacity='.8'/%3E %3Cpath d='M44 16 H 156' stroke='%23fff' stroke-width='4' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") !important; z-index: 1; }
.d-deurbel-deur { width: 148px; height: 242px; right: calc(4% + 26px); bottom: calc(7% + 8px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 148 242'%3E %3Crect x='2' y='2' width='144' height='238' rx='8' fill='%23F07A2B' stroke='%231E2B45' stroke-width='3'/%3E %3Cpath d='M28 70 C 28 44 120 44 120 70 V 82 H 28 Z' fill='%23FFE7A8' stroke='%231E2B45' stroke-width='3' stroke-linejoin='round'/%3E %3Cpath d='M74 50 V 82 M28 66 H 120' stroke='%231E2B45' stroke-width='2.5'/%3E %3Crect x='22' y='150' width='104' height='70' rx='8' fill='none' stroke='%23C95F1C' stroke-width='4'/%3E %3Ccircle cx='124' cy='128' r='7' fill='%23FFC94D' stroke='%231E2B45' stroke-width='2.5'/%3E %3Ccircle cx='54' cy='110' r='6.5' fill='%231E2B45'/%3E%3Ccircle cx='94' cy='110' r='6.5' fill='%231E2B45'/%3E %3Ccircle cx='56.4' cy='107.6' r='2.2' fill='%23fff'/%3E%3Ccircle cx='96.4' cy='107.6' r='2.2' fill='%23fff'/%3E %3Cpath d='M64 126 Q 74 136 84 126' stroke='%231E2B45' stroke-width='3' fill='none' stroke-linecap='round'/%3E %3Ccircle cx='42' cy='126' r='7' fill='%23F49AB4' opacity='.65'/%3E%3Ccircle cx='106' cy='126' r='7' fill='%23F49AB4' opacity='.65'/%3E%3C/svg%3E") !important; z-index: 2; transform-origin: 0 50%; }
.d-deurbel-bel { width: 30px; height: 45px; right: calc(4% + 212px); bottom: calc(7% + 130px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 60'%3E %3Crect x='4' y='4' width='32' height='52' rx='12' fill='%23FFF6E6' stroke='%231E2B45' stroke-width='3'/%3E %3Ccircle cx='20' cy='30' r='9' fill='%23FFC94D' stroke='%231E2B45' stroke-width='2.5'/%3E %3Ccircle cx='17' cy='27' r='2.5' fill='%23fff' opacity='.8'/%3E%3C/svg%3E") !important; z-index: 3; border-radius: 12px; }
.d-deurbel-golf { width: 36px; height: 60px; bottom: calc(7% + 122px); z-index: 3; }
.d-deurbel-g1 { right: calc(4% + 248px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E %3Cpath d='M10 30 C 20 40 20 60 10 70' stroke='%23F07A2B' stroke-width='6' fill='none' stroke-linecap='round'/%3E %3Cpath d='M26 18 C 42 34 42 66 26 82' stroke='%23F07A2B' stroke-width='6' fill='none' stroke-linecap='round'/%3E %3Cpath d='M42 6 C 64 28 64 72 42 94' stroke='%23F07A2B' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important; transform: scaleX(-1); }
.d-deurbel-g2 { right: calc(4% + 248px); bottom: calc(7% + 180px); width: 28px; height: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E %3Cpath d='M10 30 C 20 40 20 60 10 70' stroke='%238EAAD5' stroke-width='6' fill='none' stroke-linecap='round'/%3E %3Cpath d='M26 18 C 42 34 42 66 26 82' stroke='%238EAAD5' stroke-width='6' fill='none' stroke-linecap='round'/%3E %3Cpath d='M42 6 C 64 28 64 72 42 94' stroke='%238EAAD5' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important; transform: scaleX(-1) rotate(-25deg); }
.d-deurbel-mat { width: 190px; height: 35px; right: calc(4% + 5px); bottom: calc(7% - 26px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 40'%3E %3Crect x='4' y='6' width='212' height='30' rx='8' fill='%23B07A50' stroke='%231E2B45' stroke-width='3'/%3E %3Crect x='14' y='12' width='192' height='18' rx='4' fill='none' stroke='%23FFC94D' stroke-width='3' stroke-dasharray='8 5'/%3E %3Cpath d='M98 21 C 98 16 105 16 105 20 C 105 16 112 16 112 21 C 112 26 105 29 105 30 C 105 29 98 26 98 21 Z' fill='%23F49AB4' stroke='%231E2B45' stroke-width='2'/%3E%3C/svg%3E") !important; z-index: 3; }
.d-deurbel-plant { width: 80px; height: 116px; right: calc(4% + 214px); bottom: calc(7% - 22px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 130'%3E %3Cpath d='M45 84 C 42 60 30 46 14 40 C 14 58 26 72 45 78' fill='%235FA36F' stroke='%231E2B45' stroke-width='2.5' stroke-linejoin='round'/%3E %3Cpath d='M45 84 C 48 56 62 40 80 34 C 80 56 66 72 45 80' fill='%23729A47' stroke='%231E2B45' stroke-width='2.5' stroke-linejoin='round'/%3E %3Cpath d='M45 84 C 44 56 46 30 45 8 C 34 22 34 50 45 70' fill='%235FA36F' stroke='%231E2B45' stroke-width='2.5' stroke-linejoin='round'/%3E %3Cpath d='M18 84 H 72 L 66 124 C 65 127 63 128 60 128 H 30 C 27 128 25 127 24 124 Z' fill='%23EC8B48' stroke='%231E2B45' stroke-width='3' stroke-linejoin='round'/%3E %3Crect x='14' y='80' width='62' height='12' rx='4' fill='%23F07A2B' stroke='%231E2B45' stroke-width='3'/%3E %3Ccircle cx='37' cy='106' r='3.5' fill='%231E2B45'/%3E%3Ccircle cx='53' cy='106' r='3.5' fill='%231E2B45'/%3E %3Cpath d='M41 114 Q 45 118 49 114' stroke='%231E2B45' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E %3Ccircle cx='30' cy='113' r='3.5' fill='%23F49AB4' opacity='.65'/%3E%3Ccircle cx='60' cy='113' r='3.5' fill='%23F49AB4' opacity='.65'/%3E%3C/svg%3E") !important; z-index: 3; transform-origin: 50% 100%; }
.d-peek-deurbel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 96'%3E %3Crect x='6' y='4' width='52' height='88' rx='20' fill='%23FFF6E6' stroke='%231E2B45' stroke-width='3'/%3E %3Ccircle cx='32' cy='62' r='14' fill='%23FFC94D' stroke='%231E2B45' stroke-width='3'/%3E %3Ccircle cx='22' cy='30' r='5' fill='%231E2B45'/%3E%3Ccircle cx='42' cy='30' r='5' fill='%231E2B45'/%3E %3Ccircle cx='23.8' cy='28.2' r='1.8' fill='%23fff'/%3E%3Ccircle cx='43.8' cy='28.2' r='1.8' fill='%23fff'/%3E %3Cpath d='M27 40 Q 32 45 37 40' stroke='%231E2B45' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E %3Ccircle cx='14' cy='40' r='4' fill='%23F49AB4' opacity='.65'/%3E%3Ccircle cx='50' cy='40' r='4' fill='%23F49AB4' opacity='.65'/%3E%3C/svg%3E"); width: 46px; height: 69px; top: -62px; left: 12%; }
.d-peek-deurbel.d-peek-right::before { left: auto; right: 12%; }

.d-deurbel-hoofd, .d-deurbel-deur, .d-deurbel-mat { animation: d-deurbel-in .9s cubic-bezier(.3,1.4,.5,1) .1s both; }
@keyframes d-deurbel-in { from { translate: 0 40px; opacity: 0; } }
.d-deurbel-plant { animation: d-deurbel-in .9s cubic-bezier(.3,1.4,.5,1) .3s both, d-deurbel-wiegel 4.5s ease-in-out 1.2s infinite; }
@keyframes d-deurbel-wiegel { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
/* bel licht op, golfjes, daarna gaat de deur een stukje open; elke 7 seconden opnieuw */
.d-deurbel-bel { animation: d-deurbel-bel 7s ease-in-out 1.2s infinite; }
@keyframes d-deurbel-bel { 0%, 30%, 100% { filter: none; transform: scale(1); } 4%, 16% { filter: brightness(1.15) drop-shadow(0 0 10px rgba(255,201,77,1)); transform: scale(1.12); } 10%, 22% { filter: brightness(1.1) drop-shadow(0 0 6px rgba(255,201,77,.8)); transform: scale(1); } }
.d-deurbel-golf { opacity: 0; animation: d-deurbel-golf 7s ease-out 1.3s infinite; }
.d-deurbel-g2 { animation-delay: 2s; }
@keyframes d-deurbel-golf { 0% { opacity: 0; translate: 0 0; } 4% { opacity: 1; } 14% { opacity: 0; translate: -18px 0; } 15% { translate: 0 0; } 17% { opacity: 1; } 27%, 100% { opacity: 0; translate: -18px 0; } }
.d-deurbel-deur { animation: d-deurbel-in .9s cubic-bezier(.3,1.4,.5,1) .1s both, d-deurbel-open 7s ease-in-out 1.2s infinite; }
@keyframes d-deurbel-open { 0%, 32% { transform: rotateY(0); } 42%, 82% { transform: rotateY(-38deg); } 92%, 100% { transform: rotateY(0); } }

@media (max-width: 781px) {
	.d-deurbel-plant, .d-deurbel-g2 { display: none; }
	.d-scene-deurbel .d-deurbel-hoofd { width: 100px; height: 140px; right: 4%; bottom: 5%; }
	.d-scene-deurbel .d-deurbel-deur { width: 74px; height: 121px; right: calc(4% + 13px); bottom: calc(5% + 4px); }
	.d-scene-deurbel .d-deurbel-bel { width: 18px; height: 27px; right: calc(4% + 106px); bottom: calc(5% + 64px); }
	.d-scene-deurbel .d-deurbel-g1 { width: 22px; height: 36px; right: calc(4% + 126px); bottom: calc(5% + 60px); }
	.d-scene-deurbel .d-deurbel-mat { width: 96px; height: 18px; right: calc(4% + 2px); bottom: calc(5% - 13px); }
	.d-peek-deurbel::before { width: 36px; height: 54px; top: -48px; }
}
@media (prefers-reduced-motion: reduce) {
	.d-scene-deurbel > * { animation: none !important; }
	.d-deurbel-golf { opacity: 1; }
}
