/* ════════════════════════════════════════════════
   MEISTERSCHULE – HEADER MODUL CSS
   Präfix: mdfh-
   Lokale Fonts · 50% schwarzer Hintergrund auf Text
   Komplett isoliert vom WoodMart Theme
   ════════════════════════════════════════════════ */

/* ── LOKALE FONTS ──────────────────────────────── */
@font-face {
  font-family: 'MDF-CinzelDec';
  src: url('fonts/cinzel-decorative/CinzelDecorative-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-CinzelDec';
  src: url('fonts/cinzel-decorative/CinzelDecorative-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-CinzelDec';
  src: url('fonts/cinzel-decorative/CinzelDecorative-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cinzel';
  src: url('fonts/cinzel/Cinzel-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cinzel';
  src: url('fonts/cinzel/Cinzel-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cinzel';
  src: url('fonts/cinzel/Cinzel-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cinzel';
  src: url('fonts/cinzel/Cinzel-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cormorant';
  src: url('fonts/cormorant-garamond/CormorantGaramond-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cormorant';
  src: url('fonts/cormorant-garamond/CormorantGaramond-LightItalic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cormorant';
  src: url('fonts/cormorant-garamond/CormorantGaramond-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cormorant';
  src: url('fonts/cormorant-garamond/CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cormorant';
  src: url('fonts/cormorant-garamond/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'MDF-Cormorant';
  src: url('fonts/cormorant-garamond/CormorantGaramond-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}

/* ── VARIABLEN ─────────────────────────────────── */
:root {
  --mdfh-gold:    #c9952a;
  --mdfh-gold-l:  #e8c060;
  --mdfh-parch:   #f0e8d0;
  --mdfh-silver:  #9ba8b8;
  --mdfh-ink:     #07050f;
  --mdfh-crimson: #7a1525;
  --mdfh-bg50:    rgba(0, 0, 0, 0.5);  /* 50% schwarz transparent */
}

/* ── STICKY NAV ────────────────────────────────── */
.mdfh-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 40px;
  background: rgba(7,5,15,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,149,42,.25);
  transition: background .4s, border-color .4s;
}
.mdfh-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 100%; margin: 0 auto;
}

/* Logo – kein Box-Hintergrund nötig da Nav schon dunkel */
.mdfh-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 6px 0;
  transition: opacity .3s;
}
.mdfh-logo:hover { opacity: .85; }
.mdfh-logo-icon { font-size: 28px; filter: drop-shadow(0 0 8px rgba(201,149,42,.5)); }
.mdfh-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.mdfh-logo-name {
  font-family: 'MDF-CinzelDec', serif; font-size: 15px; font-weight: 900;
  color: var(--mdfh-gold-l); letter-spacing: .04em;
}
.mdfh-logo-sub {
  font-family: 'MDF-Cinzel', serif; font-size: 8px; letter-spacing: .35em;
  color: var(--mdfh-silver); text-transform: uppercase; margin-top: 3px;
}

/* Nav Links – IMMER versteckt, nur per Burger-Menu */
.mdfh-nav-links { display: none; }
.mdfh-nav-links.open {
  display: flex; flex-direction: column;
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(7,5,15,.98);
  border-bottom: 1px solid rgba(201,149,42,.25);
  padding: 16px 0; z-index: 199;
}
.mdfh-nav-links.open a {
  background: transparent !important; border: none;
  padding: 16px 40px !important; font-size: 15px !important;
  letter-spacing: .2em !important;
  border-bottom: 1px solid rgba(201,149,42,.08);
  color: rgba(240,232,208,.85) !important;
}
.mdfh-nav-links.open a:hover {
  color: var(--mdfh-gold-l) !important;
  background: rgba(201,149,42,.06) !important;
}

/* Burger Menu – IMMER sichtbar */
.mdfh-menu-btn {
  display: flex !important;
  flex-direction: column; gap: 5px;
  background: var(--mdfh-bg50); border: none; cursor: pointer;
  padding: 10px 12px; backdrop-filter: blur(4px);
}
.mdfh-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: rgba(240,232,208,.85); border-radius: 1px; transition: all .3s;
}
.mdfh-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mdfh-menu-btn.open span:nth-child(2) { opacity: 0; }
.mdfh-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ──────────────────────────────────────── */
.mdfh-hero {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: transparent;
}

/* Hintergrundbild */
.mdfh-bg {
  position: absolute; inset: -8%; z-index: 0;
  background-size: cover; background-position: top center;
  transform: scale(1.08);
  /* mdfh-drift entfernt: Bild steht ruhig, kein Dauer-Repaint mehr */
  will-change: transform;
}
@keyframes mdfh-drift {
  0%   { transform: scale(1.15) translate(0,     0); }
  25%  { transform: scale(1.18) translate(-1%,  .5%); }
  50%  { transform: scale(1.15) translate( 1%, -.5%); }
  75%  { transform: scale(1.17) translate(-.5%,  1%); }
  100% { transform: scale(1.15) translate( .5%, -.5%); }
}

/* Keine Overlays – Bild komplett sichtbar */
.mdfh-ov-top  { display: none !important; opacity: 0 !important; visibility: hidden !important; }
.mdfh-ov-bot  { display: none !important; opacity: 0 !important; visibility: hidden !important; }
.mdfh-ov-sides{ display: none !important; opacity: 0 !important; visibility: hidden !important; }

/* Sternenhimmel: komplett deaktiviert */
.mdfh-stars { display: none !important; }

/* Partikel */
.mdfh-particles { display: none !important; }
.mdfh-p {
  position: absolute; border-radius: 50%;
  background: var(--pc, rgba(201,149,42,.8));
  animation: mdfh-rise var(--pd,8s) ease-in-out infinite var(--pdl,0s);
  opacity: 0; width: var(--ps,3px); height: var(--ps,3px);
}
@keyframes mdfh-rise {
  0%   { opacity: 0; transform: translate(0,0) scale(0); }
  15%  { opacity: var(--po,.4); }
  85%  { opacity: var(--po,.4); }
  100% { opacity: 0; transform: translate(var(--ptx,0px),var(--pty,-110px)) scale(.3); }
}
/* Partikel – nur winzige Punkte */

/* ── CONTENT ───────────────────────────────────── */
.mdfh-content {
  position: relative; z-index: 5; text-align: center;
  padding: 0 24px; max-width: 960px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}

/* Alle Textelemente: 50% schwarzer Hintergrund */
.mdfh-eyebrow,
.mdfh-h1,
.mdfh-sub,
.mdfh-tagline,
.mdfh-scroll-hint {
  background: var(--mdfh-bg50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mdfh-eyebrow {
  font-family: 'MDF-Cinzel', serif;
  font-size: clamp(9px,1.2vw,13px); letter-spacing: .5em;
  color: rgba(232,200,100,.95); text-transform: uppercase;
  padding: 8px 24px; margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 14px;
  opacity: 0; animation: mdfh-up .9s .2s ease forwards;
}
.mdfh-eyebrow::before,
.mdfh-eyebrow::after {
  content:''; width:32px; height:1px; flex-shrink:0;
  background: linear-gradient(90deg,transparent,rgba(201,149,42,.7),transparent);
}

.mdfh-h1 {
  font-family: 'MDF-CinzelDec', serif;
  font-size: clamp(28px,5.5vw,82px); font-weight: 900; line-height: 1.15;
  color: var(--mdfh-parch); text-shadow: 0 2px 4px rgba(0,0,0,.9);
  padding: 16px 36px; margin-bottom: 16px; display: inline-block;
  opacity: 0; animation: mdfh-up .9s .4s ease forwards;
}

.mdfh-sub {
  font-family: 'MDF-Cormorant', serif; font-style: italic;
  font-size: clamp(15px,2vw,24px); line-height: 1.65;
  color: rgba(240,232,208,.95);
  padding: 10px 28px; margin-bottom: 12px; display: inline-block;
  opacity: 0; animation: mdfh-up .9s .6s ease forwards;
}

.mdfh-tagline {
  font-family: 'MDF-Cinzel', serif;
  font-size: clamp(10px,1.3vw,14px); letter-spacing: .28em; text-transform: uppercase;
  color: rgba(232,200,100,.95);
  padding: 7px 22px; margin-bottom: 44px; display: inline-block;
  opacity: 0; animation: mdfh-up .9s .75s ease forwards;
}

/* Video Button */
.mdfh-video-btn {
  display: inline-flex; align-items: center; gap: 18px;
  border: none; background: none; cursor: pointer; padding: 4px;
  opacity: 0; animation: mdfh-up .9s .9s ease forwards;
  transition: all .35s; -webkit-tap-highlight-color: transparent;
}
.mdfh-vbtn-circle {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(201,149,42,.3), rgba(92,45,126,.3));
  border: 2px solid rgba(201,149,42,.65);
  display: flex; align-items: center; justify-content: center;
  transition: all .35s; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: mdfh-pulse 2.5s ease-in-out infinite;
}
@keyframes mdfh-pulse {
  0%,100%{ box-shadow:0 0 0 0 rgba(201,149,42,.25),0 8px 24px rgba(0,0,0,.5); }
  50%    { box-shadow:0 0 0 12px rgba(201,149,42,.06),0 8px 24px rgba(0,0,0,.5); }
}
.mdfh-video-btn:hover .mdfh-vbtn-circle {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(201,149,42,.18), 0 0 36px rgba(201,149,42,.5);
}
.mdfh-vbtn-play {
  width:0; height:0; margin-left:4px;
  border-top:11px solid transparent;
  border-bottom:11px solid transparent;
  border-left:19px solid var(--mdfh-gold-l);
  filter: drop-shadow(0 0 8px rgba(201,149,42,.8));
}
.mdfh-vbtn-right { text-align: left; }
.mdfh-vbtn-label {
  font-family: 'MDF-Cinzel', serif;
  font-size: clamp(12px,1.4vw,16px); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(240,232,208,.88); display: block; margin-bottom: 5px; transition: color .3s;
}
.mdfh-video-btn:hover .mdfh-vbtn-label { color: #fff; }
.mdfh-vbtn-sub {
  font-family: 'MDF-Cormorant', serif; font-style: italic;
  font-size: clamp(12px,1.2vw,15px); color: rgba(240,232,208,.45);
  display: flex; align-items: center; gap: 8px;
}
.mdfh-vbtn-line {
  display: inline-block; height: 1px; width: 32px;
  background: rgba(201,149,42,.4); transition: width .3s;
}
.mdfh-video-btn:hover .mdfh-vbtn-line { width: 56px; }

/* ── SCROLL HINT – zentriert ───────────────────── */
.mdfh-scroll-hint {
  position: absolute !important;
  bottom: 28px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 20px; white-space: nowrap;
  opacity: 0; animation: mdfh-up .9s 1.4s ease forwards;
}
.mdfh-scroll-text {
  font-family: 'MDF-Cinzel', serif; font-size: 10px; letter-spacing: .5em;
  color: rgba(232,200,100,.9); text-transform: uppercase;
}
.mdfh-scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(201,149,42,.7); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 5px;
}
.mdfh-scroll-wheel {
  width: 3px; height: 6px; background: rgba(201,149,42,.8); border-radius: 2px;
  animation: mdfh-wheel 2s ease-in-out infinite;
}
@keyframes mdfh-wheel {
  0%  { transform:translateY(0);    opacity:1; }
  60% { transform:translateY(10px); opacity:0; }
  100%{ transform:translateY(0);    opacity:0; }
}

/* ── RUNEN ─────────────────────────────────────── */
.mdfh-runes {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  text-align: center; font-size: 12px; letter-spacing: .5em;
  color: rgba(201,149,42,.22); padding-bottom: 5px; pointer-events: none;
}

/* ── KEYFRAMES ─────────────────────────────────── */
@keyframes mdfh-up {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── VIDEO POPUP ───────────────────────────────── */
.mdfh-video-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .4s; padding: 24px;
}
.mdfh-video-overlay.open { opacity:1; pointer-events:all; }
.mdfh-video-modal {
  position: relative; width: 100%; max-width: 900px;
  background: rgba(14,10,28,.96); border: 1px solid rgba(201,149,42,.4);
  box-shadow: 0 0 60px rgba(201,149,42,.2), 0 40px 80px rgba(0,0,0,.8);
  transform: scale(.93) translateY(18px);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.mdfh-video-overlay.open .mdfh-video-modal { transform:scale(1) translateY(0); }
.mdfh-vm-c { position:absolute; width:16px; height:16px; border-color:var(--mdfh-gold-l); border-style:solid; }
.mdfh-vm-tl { top:8px;  left:8px;  border-width:2px 0 0 2px; }
.mdfh-vm-tr { top:8px;  right:8px; border-width:2px 2px 0 0; }
.mdfh-vm-bl { bottom:8px; left:8px;  border-width:0 0 2px 2px; }
.mdfh-vm-br { bottom:8px; right:8px; border-width:0 2px 2px 0; }
.mdfh-vm-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:15px 22px 13px; border-bottom:1px solid rgba(201,149,42,.2);
}
.mdfh-vm-title {
  font-family:'MDF-Cinzel',serif; font-size:12px;
  letter-spacing:.25em; color:rgba(201,149,42,.8); text-transform:uppercase;
}
.mdfh-vm-close {
  background:none; border:none; cursor:pointer;
  font-family:'MDF-Cinzel',serif; font-size:12px; letter-spacing:.1em;
  color:rgba(240,232,208,.5); transition:color .2s;
}
.mdfh-vm-close:hover { color:var(--mdfh-parch); }
.mdfh-video-iframe { width:100%; aspect-ratio:16/9; display:block; border:none; }
.mdfh-video-ph {
  aspect-ratio:16/9;
  background:linear-gradient(135deg,#0e0a1c,#1a0e2e);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:40px;
}
.mdfh-video-ph-icon { font-size:56px; opacity:.3; animation:mdfh-breathe 3s ease-in-out infinite; }
@keyframes mdfh-breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
.mdfh-video-ph-title {
  font-family:'MDF-CinzelDec',serif; font-size:clamp(13px,2vw,20px);
  color:rgba(240,232,208,.3); text-align:center;
}
.mdfh-video-ph-sub {
  font-family:'MDF-Cormorant',serif; font-style:italic;
  font-size:15px; color:rgba(240,232,208,.2); text-align:center;
}

/* ── RESPONSIVE ────────────────────────────────── */

/* Nav Links – schwarzer Hintergrund auf allen Größen */
.mdfh-nav-links a {
  background: rgba(0,0,0,.55) !important;
/* Rechts */
.mdfh-nav-right { display: flex; align-items: center; gap: 8px; }
.mdfh-lang { display: flex; gap: 4px; }
.mdfh-lang a {
  font-family: 'MDF-Cinzel', serif; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(240,232,208,.55);
  text-decoration: none; padding: 5px 10px;
  border: 1px solid rgba(201,149,42,.2);
  background: var(--mdfh-bg50); backdrop-filter: blur(4px); transition: all .25s;
}
.mdfh-lang a:hover,
.mdfh-lang a.current-lang { color: var(--mdfh-gold-l); border-color: var(--mdfh-gold); background: rgba(201,149,42,.1); }
.mdfh-cart-btn {
  position: relative; background: var(--mdfh-bg50); border: none;
  font-size: 20px; cursor: pointer; color: rgba(240,232,208,.9);
  padding: 8px 12px; backdrop-filter: blur(4px); transition: all .3s;
}
.mdfh-nav.scrolled .mdfh-cart-btn { background: transparent; }
.mdfh-cart-btn:hover { color: var(--mdfh-gold-l); }
.mdfh-cart-badge {
  position: absolute; top: 0; right: 0; width: 17px; height: 17px;
  background: var(--mdfh-crimson); border: 1px solid var(--mdfh-gold);
  border-radius: 50%; font-family: 'MDF-Cinzel', serif; font-size: 8px;
  color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media(max-width:900px){
  .mdfh-nav { padding: 0 20px; }
}

/* Mobile (bis 600px) */
@media(max-width:600px){
  .mdfh-hero {
    height: 100svh; min-height: 480px;
  }
  .mdfh-bg { background-position: 35% top; }
  .mdfh-h1    { padding: 12px 18px; }
  .mdfh-sub   { padding: 8px 16px; }
  .mdfh-eyebrow { padding: 7px 14px; letter-spacing: .28em; }
  .mdfh-eyebrow::before, .mdfh-eyebrow::after { width: 18px; }
  .mdfh-tagline { padding: 6px 14px; letter-spacing: .15em; }
  .mdfh-lang  { display: none; }
}

/* Tablet (601px – 1024px) */
@media(min-width:601px) and (max-width:1024px){
  .mdfh-hero { height: 100svh; min-height: 520px; }
  .mdfh-bg   { background-position: center top; }
}

/* 720p (1025px – 1366px) */
@media(min-width:1025px) and (max-width:1366px){
  .mdfh-hero { height: 100vh; min-height: 560px; }
  .mdfh-bg   { background-position: center 10%; }
}

/* Full HD (1367px – 1920px) */
@media(min-width:1367px) and (max-width:1920px){
  .mdfh-hero { height: 100vh; min-height: 600px; }
  .mdfh-bg   { background-position: center top; }
}

/* 4K (1921px+) */
@media(min-width:1921px){
  .mdfh-hero { height: 100vh; min-height: 800px; }
  .mdfh-bg   { background-position: center top; background-size: contain; }
  .mdfh-content { max-width: 1400px; }
}

/* ════════════════════════════════════════════════
   MAGISCHE TOP-BAR – Account + Cart rechts oben
   Mit !important gegen Theme-Overrides gepanzert
   ════════════════════════════════════════════════ */
.mdfh-topbar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  background: transparent !important;
  pointer-events: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mdfh-topbar-inner {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 18px 28px !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 14px !important;
  flex-direction: row !important;
}

/* ── Runen-Buttons ── */
.mdfh-topbar a.mdfh-rune {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  color: #e8c060 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform .4s cubic-bezier(.4,0,.2,1) !important;
  box-sizing: border-box !important;
  flex: 0 0 48px !important;
}

/* Hintergrund-Kreis */
.mdfh-topbar .mdfh-rune-ring {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  border: 1px solid rgba(232,192,96,.4) !important;
  background:
    radial-gradient(circle at center, rgba(20,12,40,.85) 0%, rgba(5,3,12,.95) 70%) !important;
  box-shadow:
    inset 0 0 14px rgba(232,192,96,.18),
    0 6px 20px rgba(0,0,0,.5) !important;
  transition: all .4s ease !important;
  pointer-events: none !important;
}

/* SVG-Icon — SEHR fest verdrahtet */
.mdfh-topbar .mdfh-rune-glyph {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  pointer-events: none !important;
  filter: drop-shadow(0 0 6px rgba(232,192,96,.6)) !important;
  transition: filter .4s, transform .4s !important;
  flex: 0 0 24px !important;
}
.mdfh-topbar .mdfh-rune-glyph svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Hover */
.mdfh-topbar a.mdfh-rune:hover {
  transform: translateY(-2px) !important;
}
.mdfh-topbar a.mdfh-rune:hover .mdfh-rune-ring {
  border-color: #f5d57a !important;
  box-shadow:
    inset 0 0 20px rgba(232,192,96,.4),
    0 8px 24px rgba(0,0,0,.6),
    0 0 28px rgba(232,192,96,.5) !important;
}
.mdfh-topbar a.mdfh-rune:hover .mdfh-rune-glyph {
  filter: drop-shadow(0 0 14px rgba(245,213,122,.95)) !important;
  transform: rotate(-6deg) scale(1.1) !important;
}

/* Funken um Button */
.mdfh-topbar .mdfh-rune-spark {
  position: absolute !important;
  font-size: 9px !important;
  color: #f5d57a !important;
  text-shadow: 0 0 8px rgba(245,213,122,.9) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .4s !important;
  z-index: 3 !important;
  line-height: 1 !important;
}
.mdfh-topbar .mdfh-rune-spark-1 { top: -5px !important;   right: -3px !important; }
.mdfh-topbar .mdfh-rune-spark-2 { bottom: -3px !important; left: -5px !important; font-size: 7px !important; }
.mdfh-topbar .mdfh-rune-spark-3 { top: 50% !important;    right: -10px !important; font-size: 6px !important; }

.mdfh-topbar a.mdfh-rune:hover .mdfh-rune-spark { opacity: 1 !important; }
.mdfh-topbar a.mdfh-rune:hover .mdfh-rune-spark-1 { animation: mdfhSparkA 2.2s ease-in-out infinite !important; }
.mdfh-topbar a.mdfh-rune:hover .mdfh-rune-spark-2 { animation: mdfhSparkB 2.6s ease-in-out infinite .3s !important; }
.mdfh-topbar a.mdfh-rune:hover .mdfh-rune-spark-3 { animation: mdfhSparkC 1.8s ease-in-out infinite .6s !important; }

@keyframes mdfhSparkA {
  0%, 100% { transform: translate(0,0)     rotate(0deg)   scale(.7); opacity: .3; }
  50%      { transform: translate(3px,-5px) rotate(180deg) scale(1.2); opacity: 1; }
}
@keyframes mdfhSparkB {
  0%, 100% { transform: translate(0,0)     rotate(0deg)   scale(.6); opacity: .4; }
  50%      { transform: translate(-4px,3px) rotate(-180deg) scale(1.1); opacity: 1; }
}
@keyframes mdfhSparkC {
  0%, 100% { transform: translate(0,0)   scale(.5); opacity: .3; }
  50%      { transform: translate(4px,0) scale(1);  opacity: .9; }
}

/* Cart-Counter */
.mdfh-topbar .mdfh-rune-count {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  font-family: Georgia, serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #07050f !important;
  background: linear-gradient(135deg, #f5d57a, #c9952a) !important;
  border: 1.5px solid #07050f !important;
  border-radius: 10px !important;
  box-shadow:
    0 0 10px rgba(232,192,96,.8),
    0 2px 6px rgba(0,0,0,.5) !important;
  transition: transform .3s !important;
  z-index: 4 !important;
  pointer-events: none !important;
}
.mdfh-topbar .mdfh-rune-count[data-count="0"] {
  display: none !important;
}

/* Mobile */
@media (max-width: 640px) {
  .mdfh-topbar-inner { padding: 12px 14px !important; gap: 10px !important; }
  .mdfh-topbar a.mdfh-rune {
    width: 42px !important; height: 42px !important;
    min-width: 42px !important; min-height: 42px !important;
    max-width: 42px !important; max-height: 42px !important;
    flex-basis: 42px !important;
  }
  .mdfh-topbar .mdfh-rune-glyph,
  .mdfh-topbar .mdfh-rune-glyph svg {
    width: 22px !important; height: 22px !important;
    min-width: 22px !important; min-height: 22px !important;
    max-width: 22px !important; max-height: 22px !important;
  }
}
