/* Animationen beim Auswählen + Saison-Effekte */
.mi-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* 1) Parkplatzart */
.mi-park { max-width: 560px; margin: .9rem auto 0; border-radius: .9rem; background: linear-gradient(180deg, #13254a, #0b1426); padding: .5rem .6rem .2rem; border: 1px solid rgba(201,162,75,.35); }
.mi-park[hidden] { display: none; }
.mi-car, .mi-wheel, .mi-check, .mi-p, .mi-door, .mi-label { transform-box: fill-box; }
.mi-wheel { transform-origin: center; }
.mi-play .mi-wheel { animation: mi-spin .3s linear 4; }
@keyframes mi-spin { to { transform: rotate(360deg); } }
.mi-play .mi-drive-garage { animation: mi-garage 1.5s cubic-bezier(.3,.7,.3,1) both; }
@keyframes mi-garage { 0% { transform: translateX(-90px); } 75% { transform: translateX(255px); } 100% { transform: translateX(255px); } }
.mi-drive-garage { transform: translateX(255px); }
.mi-play .mi-door { animation: mi-door 1.5s ease both; transform-origin: 50% 0; }
@keyframes mi-door { 0%, 25% { transform: scaleY(.08); } 60% { transform: scaleY(.08); } 90%, 100% { transform: scaleY(1); } }
.mi-door-lines { opacity: 0; }
.mi-play .mi-door-lines { animation: mi-fadein .3s ease 1.3s both; }
.mi-play .mi-drive-lot { animation: mi-lot 1.2s cubic-bezier(.2,.8,.25,1) both; }
@keyframes mi-lot { 0% { transform: translateX(-90px); } 80% { transform: translateX(250px); } 88% { transform: translateX(244px); } 100% { transform: translateX(247px); } }
.mi-drive-lot { transform: translateX(247px); }
.mi-play .mi-p { animation: mi-pop .5s cubic-bezier(.2,1.6,.4,1) .2s both; transform-origin: 50% 100%; }
.mi-check { opacity: 1; transform-origin: center; }
.mi-play .mi-check { animation: mi-pop .45s cubic-bezier(.2,1.6,.4,1) 1.25s both; }
.mi-play .mi-label { animation: mi-fadein .4s ease .15s both; }
@keyframes mi-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes mi-fadein { from { opacity: 0; } to { opacity: 1; } }

/* 2) Zimmer: Tür öffnet sich (3D-Drehung) */
.mi-door { margin-top: .7rem; max-width: 260px; }
.mi-door[hidden] { display: none; }
.mi-door svg { perspective: 400px; border-radius: 12px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.mi-door3d { transform-box: fill-box; transform-origin: 0 50%; }
.mi-play .mi-door3d { animation: mi-open 1.1s cubic-bezier(.5,0,.2,1) .15s both; }
@keyframes mi-open { from { transform: perspective(300px) rotateY(0); } to { transform: perspective(300px) rotateY(-78deg); } }
.mi-door:not(.mi-play) .mi-door3d, .mi-static .mi-door3d { transform: perspective(300px) rotateY(-78deg); }
.mi-zz { opacity: 0; }
.mi-play .mi-zz { animation: mi-zz 1.6s ease-out .9s infinite; }
@keyframes mi-zz { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.mi-roomname { margin: .35rem 0 0; font-size: .78rem; font-weight: 800; color: #C9A24B; }
.mi-door-modal { max-width: 100%; display: flex; gap: .8rem; align-items: center; margin: -.4rem 0 .9rem; }
.mi-door-modal svg { width: 150px; flex: 0 0 auto; }
.mi-door-modal .mi-roomname { color: #8a6b25; font-size: .85rem; }

/* 3) Personen */
.mi-people { display: flex; flex-wrap: wrap; gap: 2px; margin-top: .4rem; min-height: 22px; }
.mi-person { width: 14px; height: 22px; display: inline-block; transform-origin: 50% 100%; }
.mi-person svg { width: 100%; height: 100%; display: block; }
.mi-person.mi-in { animation: mi-hop .45s cubic-bezier(.2,1.7,.4,1) both; }
.mi-person.mi-out { animation: mi-bye .25s ease-in both; }
@keyframes mi-hop { 0% { transform: translateY(10px) scale(0); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes mi-bye { to { transform: translateY(8px) scale(0); opacity: 0; } }
.estimate-light ~ .mi-people .mi-person svg *, #inquiryModal .mi-person svg * { fill: #8a6b25; }

/* 4) Gutschein */
.mi-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2147470500; }
.mi-glow { animation: mi-glow 1s ease; }
@keyframes mi-glow { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.8); } 100% { box-shadow: 0 0 0 14px rgba(34,197,94,0); } }

/* 5) Anfrage gesendet */
.mi-sent { position: fixed; inset: 0; z-index: 2147470400; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    background: radial-gradient(ellipse at 50% 40%, rgba(30,58,110,.96), rgba(7,13,26,.97)); color: #fff; animation: mi-fadein .25s ease both; padding: 1rem; }
.mi-sent.mi-hide { opacity: 0; transition: opacity .35s; }
.mi-sent-plane { width: min(300px, 70vw); }
.mi-sent-plane svg { width: 100%; height: auto; overflow: visible; }
.mi-sent:not(.mi-static) .mi-sent-plane { animation: mi-flyoff 2.4s cubic-bezier(.5,0,.4,1) both; }
@keyframes mi-flyoff { 0% { transform: translate(-60vw, 30px) rotate(6deg); } 35% { transform: translate(0, 0) rotate(-4deg); } 60% { transform: translate(0, -6px) rotate(2deg); } 100% { transform: translate(70vw, -45vh) rotate(-18deg) scale(.6); } }
.mi-env { transform-box: fill-box; transform-origin: 100% 0; animation: mi-swing .5s ease-in-out infinite alternate; }
@keyframes mi-swing { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.mi-sent-t { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 700; color: #C9A24B; margin: .6rem 0 .2rem; animation: mi-pop .5s cubic-bezier(.2,1.6,.4,1) .4s both; }
.mi-sent-s { font-weight: 700; color: #e2e8f0; max-width: 30rem; margin: 0; animation: mi-fadein .4s ease .6s both; }

/* Saison: Schnee über der ganzen Seite (sehr leicht, klickt durch) */
.mi-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }

/* Schwache Geräte / „Bewegung reduzieren“: alles ruhig */
.mi-static *, .mi-static { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .mi-park *, .mi-door *, .mi-person, .mi-sent * { animation: none !important; } .mi-drive-garage { transform: translateX(255px); } }
