/* Steirischer Krampusshop - Düsteres & Eerie Alpin-Design */
@import url('/static/css/fonts.css');

:root {
  --wood-abyss: #070507;
  --timber-bg: #0d090b;
  --timber-panel: #140d10;
  --accent-gold: #f59e0b;
  --accent-ember: #ea580c;
  --accent-blood: #991b1b;
  --accent-crimson: #dc2626;
  --card-bg: #100b0e;
  --border-eerie: rgba(153, 27, 27, 0.25);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #060507;
  color: #e2e8f0;
  overflow-x: hidden;
}

.font-heading {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

/* ── BACKGROUND ─────────────────────────────────────────────────── */
.alpine-bg-pattern {
  background-color: #060507;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(153, 27, 27, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(100, 15, 15, 0.08) 0%, transparent 40%),
    radial-gradient(rgba(217, 119, 6, 0.035) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 32px 32px;
}

/* ── GLOW EFFECTS ───────────────────────────────────────────────── */
.glow-blood {
  box-shadow: 0 0 35px -5px rgba(153, 27, 27, 0.5);
}
.glow-ember {
  box-shadow: 0 0 30px -5px rgba(217, 119, 6, 0.35);
}
.glow-inferno {
  box-shadow: 0 0 45px -8px rgba(220, 38, 38, 0.6);
}
.eerie-text-glow {
  text-shadow: 0 0 30px rgba(185, 28, 28, 0.55), 0 2px 4px rgba(0, 0, 0, 0.95);
}
.eerie-text-glow-strong {
  text-shadow: 0 0 40px rgba(220, 38, 38, 0.7), 0 0 80px rgba(185, 28, 28, 0.3), 0 2px 6px rgba(0,0,0,1);
}

/* ── GLASS & PANELS ─────────────────────────────────────────────── */
.glass-panel {
  background: rgba(16, 12, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.glass-panel:hover {
  border-color: rgba(185, 28, 28, 0.4);
}

/* ── PRODUCT CARDS ──────────────────────────────────────────────── */
.eerie-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0f0b0e;
  border: 1px solid rgba(40, 25, 30, 0.9);
  position: relative;
}
.eerie-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(ellipse at 50% 0%, rgba(185, 28, 28, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.eerie-card:hover::before {
  opacity: 1;
}
.eerie-card:hover {
  border-color: rgba(185, 28, 28, 0.6);
  box-shadow: 0 20px 50px -12px rgba(153, 27, 27, 0.5), 0 0 0 1px rgba(185, 28, 28, 0.15);
  transform: translateY(-4px);
}

/* ── STATUS BADGES ──────────────────────────────────────────────── */
.badge-available {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-reserved {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-sold {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* ── SCROLLBAR ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #080608; }
::-webkit-scrollbar-thumb { background: #2a1520; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5a1e2a; }

/* ── IMAGE ZOOM ─────────────────────────────────────────────────── */
.mask-card-img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.group:hover .mask-card-img {
  transform: scale(1.07);
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes emberPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); filter: drop-shadow(0 0 10px rgba(185, 28, 28, 0.4)); }
  50%       { opacity: 1;    transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.8)); }
}
.pulse-ember {
  animation: emberPulse 3.5s ease-in-out infinite;
}

@keyframes hellGlow {
  0%, 100% { opacity: 0.5; transform: scale(1) translateX(-50%); }
  50%       { opacity: 0.9; transform: scale(1.08) translateX(-46%); }
}
.hell-glow {
  animation: hellGlow 5s ease-in-out infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(1);    opacity: 0.7; }
  50%  { transform: translateY(-12px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1);    opacity: 0.7; }
}
.float-up {
  animation: floatUp 4s ease-in-out infinite;
}

@keyframes bloodPing {
  0%   { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}
.ping-blood {
  animation: bloodPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.price-shimmer {
  background: linear-gradient(90deg, #fff 0%, #fbbf24 40%, #f59e0b 50%, #fbbf24 60%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── COOKIE BANNER ──────────────────────────────────────────────── */
@keyframes bannerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-enter {
  animation: bannerSlideUp 0.4s ease-out forwards;
}

/* ── SECTION DIVIDER ────────────────────────────────────────────── */
.fog-divider {
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(14, 9, 12, 0.9), #0e090c);
  pointer-events: none;
}

/* ── STEP CARDS ─────────────────────────────────────────────────── */
.step-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.step-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(ellipse at 20% 50%, rgba(185,28,28,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.step-card:hover::after { opacity: 1; }
.step-card:hover {
  border-color: rgba(185, 28, 28, 0.5) !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -10px rgba(100, 15, 15, 0.45);
}

/* ── NAV SCROLL EFFECT ──────────────────────────────────────────── */
.nav-scrolled {
  background: rgba(6, 5, 7, 0.97) !important;
  box-shadow: 0 4px 30px -5px rgba(0,0,0,0.8), 0 1px 0 rgba(185,28,28,0.2);
}

/* ── ACCESSIBLE FOCUS ───────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f59e0b !important;
  outline-offset: 3px !important;
}

/* Screen reader utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}
.focus\:not-sr-only:focus {
  position: static; width: auto; height: auto; padding: inherit;
  margin: inherit; overflow: visible; clip: auto; white-space: normal;
}

/* ── HERO DECORATIVE ────────────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

/* ── CONTACT CARD GLOW ──────────────────────────────────────────── */
.contact-card-glow {
  box-shadow: 0 30px 80px -20px rgba(120, 10, 10, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Touch-friendly navigation, catalog and administration */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
img, canvas { max-width: 100%; }
main, .admin-page, .admin-page form, .admin-page form > div { min-width: 0; }
.mobile-menu-toggle { display: none; }
#mobile-nav[hidden] { display: none; }
#mobile-nav { padding: 12px 16px; border-top: 1px solid #3d2532; background: #0e090c; }
#mobile-nav a { display: block; padding: 13px; border-radius: 8px; }
#mask-form-modal { align-items: flex-start; overscroll-behavior: contain; }
#mask-form-modal > div { flex-shrink: 0; margin: 16px auto; overflow: visible; }
#mask-form-modal:not(.hidden) { display: flex; }
.image-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.product-photo { min-width: 0; border: 1px solid #3d2532; border-radius: 14px; overflow: hidden; background: #130d10; }
.product-photo > img { width: 100%; height: 150px; object-fit: cover; }
.photo-label { display: block; color: #fbbf24; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.photo-actions { display: flex; flex-wrap: wrap; padding: 4px; gap: 3px; }
.photo-actions button { flex: 1; min-width: 40px; min-height: 44px; padding: 5px; background: #2a1a22; border-radius: 8px; font-size: 12px; }
.photo-actions button:first-child { flex-basis: 100%; }
button:disabled { opacity: .45; cursor: not-allowed; }
.is-dragging { outline: 2px solid #fbbf24; background: #3d2532; }
#image-editor { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; margin: auto; padding: 20px; color: #f1f5f9; background: #130d10; border: 1px solid #3d2532; border-radius: 20px; box-shadow: 0 24px 100px #000; }
#image-editor::backdrop { background: #000c; backdrop-filter: blur(6px); }
.editor-header, .editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-header h2 { font-size: 20px; font-weight: 700; }
#image-editor p { font-size: 13px; color: #cbd5e1; margin: 12px 0; }
#crop-canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 43dvh; margin: 16px auto; background: #000; touch-action: none; cursor: grab; border: 1px solid #f59e0b; }
#crop-canvas:active { cursor: grabbing; }
.editor-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
#image-editor button, #image-editor select { min-height: 44px; padding: 8px 12px; border: 1px solid #3d2532; border-radius: 10px; background: #2a1a22; color: #fff; }
#image-editor input[type=range] { width: 100%; min-height: 44px; accent-color: #f59e0b; }
.editor-footer { margin-top: 18px; }
#image-editor #crop-apply { background: #f59e0b; color: #060507; font-weight: 700; }
.visibility-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; font-size: 12px; color: #cbd5e1; flex-wrap: wrap; }
.visibility-row button { min-height: 44px; padding: 8px 12px; border: 1px solid #3d2532; border-radius: 10px; color: #fbbf24; }
.visibility-setting { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.visibility-setting input { width: 20px; height: 20px; accent-color: #f59e0b; }
@media (max-width: 1023px) {
  header nav[aria-label="Hauptnavigation"] { display: none; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #fbbf24; border: 1px solid #3d2532; border-radius: 10px; margin-left: auto; margin-right: 8px; flex-shrink: 0; }
  header a.group { min-width: 0; gap: 8px; margin-right: 8px; }
  header a.group > div:first-child { flex-shrink: 0; }
  header a.group > div:last-child { min-width: 0; }
  header a.group .font-heading { font-size: 14px; line-height: 1.3; letter-spacing: .02em; }
  header > div > .flex { min-height: 80px; height: auto; padding-block: 10px; }
}
@media (max-width: 639px) {
  body { overflow-wrap: anywhere; }
  input:not([type=checkbox]):not([type=range]), select, textarea { font-size: 16px !important; min-height: 44px; max-width: 100%; }
  button, a[role=button] { min-height: 44px; }
  header a.group > div:first-child { width: 32px; height: 36px; }
  header .flex.items-center.gap-3 { gap: 6px; }
  header a[target="_blank"] { padding: 10px; }
  header a.group .font-heading { font-size: 12px; }
  header a.group .uppercase { font-size: 8px; letter-spacing: .05em; }
  .admin-page { padding-top: 20px; }
  .admin-page h1 { font-size: 24px; line-height: 1.25; }
  .admin-page > .border-b .flex.items-center.gap-3 { flex-wrap: wrap; }
  .admin-page [id^="tab-btn-"] { padding: 10px 12px; font-size: 12px; }
  #tab-content-settings > div, #tab-content-about > div { padding: 16px; }
  #tab-content-settings .font-mono { word-break: break-all; max-width: 100%; }
  #tab-content-masks > div:first-child, #tab-content-masks > div:first-child > div { width: 100%; }
  #mask-form-modal { padding: 8px; }
  #mask-form-modal > div { padding: 18px 14px; margin: 0; border-radius: 18px; }
  #mask-form-modal h2 { font-size: 18px; }
  #mask-form-modal form > .border-t { position: sticky; bottom: -18px; background: #060507; padding: 14px 0; z-index: 10; }
  #mask-modal { padding: 8px; align-items: flex-start; }
  #mask-modal > div { margin: 8px 0; }
  #mask-modal-body { padding: 18px 14px; }
  #admin-toast { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  #image-editor { padding: 14px; }
  .editor-footer button { flex: 1; font-size: 13px; }
  .image-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (max-width: 639px) {
  #katalog .mt-4 .flex.items-center.gap-2 { flex-wrap: wrap; max-width: 100%; min-width: 0; }
  #katalog select { min-width: 0; }
  #filter-material { max-width: 100%; }
  header > div a[href$="/verwaltung"] { display: none; }
  #tab-content-masks > div:first-child > div > div { max-width: 100%; flex-wrap: wrap; }
}
@media (max-width: 639px) {
  #katalog .mt-4 > div { min-width: 0; max-width: 100%; width: 100%; }
}

.store-location { margin-top: 32px; border: 1px solid #52252a; border-radius: 24px; overflow: hidden; background: #100b0e; text-align: left; }
.store-location-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; flex-wrap: wrap; }
.store-location-eyebrow { color: #f87171; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.store-location h2 { font-family: 'Cinzel', serif; font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin: 8px 0 14px; color: #fff; }
.store-location address { font-style: normal; font-size: 15px; line-height: 1.8; color: #e2e8f0; }
.store-location p { font-size: 12px; color: #94a3b8; margin-top: 12px; }
.store-route, .store-map-load { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.store-route { border: 1px solid #7f1d1d; color: #fecaca; background: #450a0a55; }
.store-map-load { background: #991b1b; color: white; margin-top: 16px; }
.store-map { min-height: 340px; background: radial-gradient(ellipse at center, #2a161a, #080608); border-top: 1px solid #3d2532; }
.store-map iframe { display: block; width: 100%; height: 380px; border: 0; }
.store-map-placeholder { min-height: 340px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.store-map-pin { color: #f87171; font-size: 44px; line-height: 1; }
.store-map-placeholder > span:not(.store-map-pin) { font-size: 13px; color: #cbd5e1; }
.store-map-placeholder small { max-width: 420px; font-size: 11px; color: #94a3b8; line-height: 1.6; margin-top: 8px; }
.store-map-placeholder small a { text-decoration: underline; }
@media (max-width: 639px) { .store-location-heading { padding: 22px 18px; gap: 18px; } .store-route { width: 100%; } .store-map iframe { height: 340px; } }
