/* Recon Studio – Animationen & zusätzliche Bausteine */

/* ---------- Scroll-Fortschritt & Header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--primary), var(--primary-soft), #3b82f6); }
.header { transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(10, 10, 10, .85); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.brand img { transition: transform .4s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--primary) 70%, transparent)); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--text); }
.login-link { background: none; border: 0; color: var(--text); }
.login-link:hover { color: var(--primary-soft); }
.announcement-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-soft); box-shadow: 0 0 0 0 var(--primary); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cart-count.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* ---------- Seitenwechsel & Einblenden ---------- */
.page { min-height: 60vh; }
.page.page-in { animation: page-in .45s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.anim-up { animation: up .9s cubic-bezier(.2, .8, .2, 1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; } .d4 { animation-delay: .46s; } .d5 { animation-delay: .56s; } .d6 { animation-delay: .66s; }
@keyframes up { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }

/* ---------- Hero ---------- */
.hero { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
.hero-bg { will-change: transform; transform: scale(1.05); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; }
.orb-1 { width: 380px; height: 380px; left: -80px; top: 10%; background: var(--primary); animation: orb 14s ease-in-out infinite alternate; }
.orb-2 { width: 300px; height: 300px; right: 5%; bottom: 0; background: #3b82f6; opacity: .25; animation: orb 18s ease-in-out infinite alternate-reverse; }
@keyframes orb { to { transform: translate(60px, -40px) scale(1.15); } }
.hero-logo img { filter: drop-shadow(0 0 30px color-mix(in srgb, var(--primary) 45%, transparent)); animation: floaty 6s ease-in-out infinite; }
.gradient-text { background: linear-gradient(90deg, var(--primary), var(--primary-soft), #60a5fa, var(--primary)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; border: 2px solid var(--line); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--primary-soft); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.float { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn-shine:hover::after { left: 140%; }
.btn-primary { box-shadow: 0 6px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 50%, transparent); }
.loading { pointer-events: none; opacity: .6; }
.loading::before { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link-btn { background: none; border: 0; color: var(--primary-soft); font-size: 12px; text-decoration: underline; }

/* ---------- Karten ---------- */
.script { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out, border-color .25s, box-shadow .25s; }
.script::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 18%, transparent), transparent 40%); }
.script:hover::before { opacity: 1; }
.script:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent); }
.thumb-glow { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 12, 12, .55), transparent 50%); opacity: .7; transition: opacity .3s; }
.script:hover .thumb-glow { opacity: .3; }
.desc { -webkit-line-clamp: 2; }
.skeleton .thumb, .skeleton i { background: linear-gradient(90deg, var(--surface-2) 25%, #1f1f22 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
.skeleton i { display: block; height: 12px; border-radius: 6px; margin-top: 10px; }
.skeleton i:nth-child(2) { width: 70%; } .skeleton i:nth-child(3) { width: 45%; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Paket-Seite ---------- */
.media-strip { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.media-thumb { flex: none; width: 110px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; transition: border-color .2s, transform .2s; }
.media-thumb:hover { border-color: var(--primary); transform: translateY(-2px); }
.media-thumb img { aspect-ratio: 16 / 9; object-fit: cover; }
.package-media img { animation: page-in .4s ease-out; }
.video { margin-top: 24px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Warenkorb-Seitenleiste ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(5, 5, 8, .6); backdrop-filter: blur(4px); animation: fade .25s; }
.drawer { position: fixed; top: 0; right: 0; z-index: 95; width: min(400px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, .5); transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.drawer-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); animation: page-in .3s ease-out; }
.drawer-item img, .drawer-item .no-img.sm { width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.drawer-item > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drawer-item b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-item .price { font-size: 14px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.drawer-foot .summary-total { margin: 0 0 12px; padding-top: 0; border: 0; }
.remove { color: var(--muted) !important; }
.remove:hover { color: var(--red) !important; border-color: var(--red) !important; background: color-mix(in srgb, var(--red) 12%, transparent) !important; }
.no-scroll { overflow: hidden; }
.empty-state.small { padding: 40px 10px; }

/* ---------- Kasse ---------- */
.checkout-item { animation: none; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 14px "Inter", sans-serif; }
.coupon input:focus { outline: none; border-color: var(--primary); }
.thanks .check { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); font-size: 34px; animation: bump .6s cubic-bezier(.3, 1.6, .5, 1); }
.setup code { padding: 2px 6px; border-radius: 5px; background: var(--surface-2); color: var(--primary-soft); }
.setup h2 { margin: 6px 0 10px; }
.setup p { margin-bottom: 8px; }
.setup a { color: var(--primary-soft); text-decoration: underline; }

/* ---------- Login-Fenster ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 8, .7); backdrop-filter: blur(6px); animation: fade .2s; }
.modal[hidden] { display: none; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 16px; }
.modal-close:hover { color: var(--text); }
.auth-card h2 { font-size: 22px; margin: 4px 0 10px; }
.auth-options { display: flex; flex-direction: column; gap: 10px; }
.pop { animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
.spinner { width: 28px; height: 28px; margin: 10px auto; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Meldungen ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; padding: 12px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: var(--green); } .toast.err { border-color: var(--red); } .toast.warn { border-color: #f59e0b; }

.footer-note { margin-top: 14px; color: var(--dim); font-size: 12px; }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-bottom: 70px; }
  .orb-1 { width: 240px; height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Korrekturen */
.icon-btn { border: 0; background: none; cursor: pointer; }
.icon-btn.sm { border: 1px solid var(--line); background: transparent; }
.toast { top: 84px; bottom: auto; transform: translate(-50%, -20px); }
.toast.show { transform: translate(-50%, 0); }
