/* ============================================================
   Mahlich — Aktuelles: WM-Edition (Schwarz-Rot-Gold)
   "Ihre IT. Unser Heimspiel."
   Wird NUR von Aktuelles.html geladen.
   ============================================================ */

:root {
  --srg-black: #161616;
  --srg-red: #dd0000;
  --srg-gold: #ffce00;
}

/* Flaggen-Streifen ganz oben */
.wm-stripe { height: 6px; width: 100%; position: relative; z-index: 6;
  background: linear-gradient(90deg, #111 0 33.34%, var(--srg-red) 33.34% 66.67%, var(--srg-gold) 66.67% 100%); }

/* Konfetti-Overlay (hinter Inhalten: Video & Artikel) */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* ---- Header in WM-Schwarz mit SRG-Glow ---- */
.legal-top.wm {
  background: transparent;
  aspect-ratio: 16 / 9; min-height: 420px;
  display: flex; flex-direction: column;
  padding-bottom: clamp(26px, 4vw, 60px);
  overflow: hidden;
}
.legal-top.wm::after { content: none; }
.legal-top.wm .legal-hero { margin-block: auto;
  background: none; border: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.legal-top.wm .legal-hero .eyebrow { text-shadow: 0 2px 10px rgba(0,0,0,0.85); }
.legal-top.wm .legal-hero .sub { color: rgba(255,255,255,0.94); text-shadow: 0 2px 14px rgba(0,0,0,0.9); }
/* Stadion-Bild: komplettes Bild randlos im Header (16:9), unten weich ausgeblendet */
.legal-top.wm .wm-bg {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: url('img/wm-stadium.jpg') center center / cover no-repeat;
  filter: blur(2px) brightness(0.72) saturate(1.05);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0) 95%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0) 95%);
}
.legal-top.wm .wm-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, transparent 26%, transparent 100%);
}
/* (Bild wird per Maske ausgeblendet – kein zusätzlicher Farb-Verlauf nötig) */
.legal-top.wm::before { content: none; }
.legal-top.wm .bloom {
  background:
    radial-gradient(ellipse 36% 46% at 50% 46%, rgba(255,206,0,0.55) 0%, rgba(255,206,0,0.22) 30%, transparent 64%),
    radial-gradient(circle at 64% 42%, rgba(221,0,0,0.30), transparent 58%);
}
.legal-top.wm .bloom-2 {
  background: radial-gradient(circle at 50% 50%, rgba(221,0,0,0.34), transparent 60%);
}
.legal-top.wm .legal-hero .eyebrow { color: var(--srg-gold); }
.legal-top.wm .page-nav-links a:hover,
.legal-top.wm .page-nav-links a[aria-current="page"] { color: var(--srg-gold); }

/* WM-Logo in gleicher Größe wie auf den anderen Seiten */
.page-nav .brand img.wm-logo { height: 27px; position: relative; z-index: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55)); }
/* Navigation volle Breite (im Flex-Spalten-Header sonst geschrumpft) -> Logo gleich weit links wie auf anderen Seiten */
.legal-top.wm .page-nav { width: 100%; }
/* weicher heller Glow hinter dem Logo – Hintergrund bleibt schwarz, wird nur lokal aufgehellt */
.legal-top.wm .brand { position: relative; display: inline-flex; align-items: center; }
.legal-top.wm .brand::before { content: ""; position: absolute; left: 48%; top: 50%; transform: translate(-50%,-50%);
  width: 175%; height: 280%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,238,188,0.45) 0%, rgba(255,255,255,0.22) 38%, transparent 72%);
  filter: blur(13px); }
/* glänzender Lichtstrahl, der über das Logo wandert */
.legal-top.wm .brand::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  -webkit-mask: url('img/logo-wm.png') center / contain no-repeat;
          mask: url('img/logo-wm.png') center / contain no-repeat;
  background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,0.92) 49%, transparent 60%);
  background-size: 240% 100%; background-position: 220% 0; mix-blend-mode: screen;
  animation: wmLogoSheen 5.5s ease-in-out infinite; }
@keyframes wmLogoSheen { 0% { background-position: 220% 0; } 28%, 100% { background-position: -130% 0; } }
@media (prefers-reduced-motion: reduce) { .legal-top.wm .brand::after { animation: none; opacity: 0; } }

/* WM-Titel – WWDC-Chrome-Optik, gold-dominant (statisch, kräftige Tiefe) */
.wm-title {
  background: linear-gradient(101deg,
    #8f6e22 0%, #c2a248 18%, #ecdc97 37%, #fffdf4 58%, #ffeeb4 74%, #dca52c 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(34,26,6,0.6))
    drop-shadow(0 2px 0 rgba(22,16,4,0.45))
    drop-shadow(0 3px 3px rgba(0,0,0,0.42))
    drop-shadow(0 0 30px rgba(255,212,120,0.45));
  padding-right: 0.06em;
}

/* WM-Button (Schwarz-Rot-Gold) */
.btn-wm {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; font-weight: 700;
  background: linear-gradient(180deg, var(--srg-red), #a30000);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 12px 28px -12px rgba(221,0,0,0.7);
}
.btn-wm .arrow { background: rgba(255,255,255,0.25); color: #fff; }
.btn-wm:hover { background: linear-gradient(180deg, #ff1a1a, #c00000); }

/* ---- Video-Banner ---- */
.wm-video-sec { position: relative; z-index: 2; }
.wm-video {
  position: relative; max-width: 1000px; margin: 0 auto; border-radius: calc(var(--radius) * 1.1);
  overflow: hidden; background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 40px 90px -36px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,206,0,0.12);
}
.wm-video::after { /* SRG-Rahmenlinie unten */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, #111 0 33.34%, var(--srg-red) 33.34% 66.67%, var(--srg-gold) 66.67%);
}
.wm-video video { width: 100%; height: auto; display: block; }
.wm-video .wm-badge {
  position: absolute; top: 16px; left: 16px; z-index: 4; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #fff;
  background: rgba(20,20,20,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
}
.wm-video .wm-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--srg-gold); box-shadow: 0 0 8px var(--srg-gold); }

.wm-slogan { text-align: center; max-width: 760px; margin: 0 auto clamp(26px,4vw,44px); }
.wm-slogan .eyebrow { color: var(--srg-red); justify-content: center; }
.wm-slogan h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-top: 12px; letter-spacing: -0.03em; }
.wm-slogan h2 .g { color: var(--srg-red); }

/* ---- Karten: SRG-Akzent ---- */
.posts .post-card { position: relative; }
.posts .post-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 3;
  background: linear-gradient(90deg, #111 0 33.34%, var(--srg-red) 33.34% 66.67%, var(--srg-gold) 66.67%);
}
.posts .pc-tag { color: var(--srg-red); }
.posts .pc-more { color: var(--srg-red); }
.posts .post-card:focus-visible { outline-color: var(--srg-gold); }

/* WM-Kachel hervorheben (erste Karte = Aktion) */
.post-card.wm-feature { box-shadow: 0 24px 50px -28px rgba(221,0,0,0.45); }

/* ============================================================
   LIQUID-GLASS BEITRAGSKARTEN (auf dem Rasen)
   ============================================================ */
.posts .post-card {
  background: linear-gradient(150deg, rgba(255,255,255,0.28), rgba(255,255,255,0.12) 46%, rgba(255,255,255,0.18));
  -webkit-backdrop-filter: blur(34px) saturate(1.4);
          backdrop-filter: blur(34px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow:
    0 30px 64px -30px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 0 30px 8px rgba(255,255,255,0.16),
    inset 0 -20px 40px -26px rgba(0,0,0,0.4);
}
.posts .post-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.08) 18%, transparent 36%),
    radial-gradient(130% 120% at 50% 50%, transparent 52%, rgba(255,255,255,0.26) 100%);
  mix-blend-mode: screen;
}
.posts .pc-body {
  position: relative; z-index: 2;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)),
    linear-gradient(180deg, rgba(10,24,14,0.5), rgba(8,18,11,0.62));
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.posts .pc-title { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.posts .pc-text { color: rgba(238,244,238,0.86); }
.posts .pc-date { color: rgba(232,240,235,0.72); }
.posts .pc-tag { color: #ffd24a; }
.posts .pc-more { color: #fff; }
.posts .post-card:hover {
  border-color: rgba(255,255,255,0.5);
  box-shadow:
    0 40px 74px -28px rgba(0,0,0,0.72),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 -20px 40px -26px rgba(0,0,0,0.45);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .posts .post-card { background: linear-gradient(180deg, rgba(20,40,26,0.92), rgba(12,26,16,0.95)); }
}

/* ============================================================
   FUSSBALLFELD-LINIEN über den gesamten Inhalt (bis zur CTA)
   ============================================================ */
.wm-pitch { position: relative; }
.page-main { isolation: isolate; }
.page-main::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: clamp(12px, 4vw, 70px); right: clamp(12px, 4vw, 70px);
  top: 96px; bottom: 70px;
  border: 3px solid rgba(255,255,255,0.20);
  border-radius: 8px;
  background:
    /* Mittelkreis + Anstoßpunkt + Mittellinie */
    radial-gradient(circle at 50% 50%, transparent 0 92px, rgba(255,255,255,0.20) 92px 95px, transparent 96px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.42) 0 5px, transparent 6px),
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(255,255,255,0.20) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    /* Eckbögen */
    radial-gradient(circle at 0% 0%, transparent 0 16px, rgba(255,255,255,0.20) 16px 19px, transparent 20px) top left / 44px 44px no-repeat,
    radial-gradient(circle at 100% 0%, transparent 0 16px, rgba(255,255,255,0.20) 16px 19px, transparent 20px) top right / 44px 44px no-repeat,
    radial-gradient(circle at 0% 100%, transparent 0 16px, rgba(255,255,255,0.20) 16px 19px, transparent 20px) bottom left / 44px 44px no-repeat,
    radial-gradient(circle at 100% 100%, transparent 0 16px, rgba(255,255,255,0.20) 16px 19px, transparent 20px) bottom right / 44px 44px no-repeat;
}

/* Overlay-Akzente */
.pm-body h3 { color: var(--srg-red); }

/* CTA als helle Stadion-Banden-Karte (Weiß passt zum Mahlich-Banner) */
.wm-cta .cta-box {
  background: linear-gradient(180deg, #ffffff 0%, #eef1f5 100%);
  border: 1px solid rgba(2,2,60,0.08);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.55);
  color: var(--ink);
}
.wm-cta .cta-box::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 2;
  background: linear-gradient(90deg, #111 0 33.34%, var(--srg-red) 33.34% 66.67%, var(--srg-gold) 66.67%);
}
.wm-cta .cta-box .bloom { background: radial-gradient(ellipse at center, rgba(255,206,0,0.16), transparent 66%); }
.wm-cta .cta-box .eyebrow { color: var(--srg-red) !important; }
.wm-cta .cta-box h2 { color: var(--ink); }
.wm-cta .cta-box h2 .chrome { background: linear-gradient(100deg, #161616 0%, var(--srg-red) 58%, #c98a00 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: none; }
.wm-cta .cta-box p { color: var(--ink-soft); }
.wm-cta .cta-box .btn-glass { background: linear-gradient(180deg, var(--srg-red), #b00000); color: #fff;
  border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wm-cta .cta-box .btn-glass .arrow { background: rgba(255,255,255,0.28); color: #fff; }
.wm-cta .cta-box .btn-ghost-d { color: var(--ink); border-color: rgba(2,2,60,0.22); }
.wm-cta .cta-box .btn-ghost-d:hover { border-color: var(--srg-red); color: var(--srg-red); background: transparent; }

/* ---- Premium-Slogan „Ihre IT ist unser Heimspiel" ---- */
.wm-slogan .eyebrow { color: var(--srg-gold); display: inline-flex; align-items: center; gap: 0.85em;
  letter-spacing: 0.26em; font-weight: 600; }
.wm-slogan .eyebrow::before, .wm-slogan .eyebrow::after { content: ""; width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,206,0,0.85)); }
.wm-slogan .eyebrow::after { background: linear-gradient(90deg, rgba(255,206,0,0.85), transparent); }
.wm-slogan h2 { position: relative; isolation: isolate; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  background: linear-gradient(100deg, #9499a6 0%, #c8cdd8 28%, #f2f4f8 50%, #ffffff 66%, #e6ebf4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.5)) drop-shadow(0 2px 3px rgba(0,0,0,0.45))
          drop-shadow(0 0 6px rgba(190,214,255,0.55)) drop-shadow(0 0 14px rgba(120,160,255,0.32)); text-wrap: balance; }
.wm-slogan h2 .g {
  position: relative;
  -webkit-text-fill-color: transparent; color: transparent;
  background: linear-gradient(180deg, #eef4ff 0%, #cfe0ff 30%, #6f9bf2 50%, #2f59c8 64%, #4b78e0 80%, #bcd4ff 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(10,24,70,0.5)) drop-shadow(0 0 12px rgba(70,120,255,0.35));
  text-shadow: none; }

@media (prefers-reduced-motion: reduce) { #confetti { display: none; } }

/* rollender Fußball (scroll-gesteuert) */
#wmBall { position: fixed; bottom: 16px; left: 0; width: 60px; height: 60px; z-index: 95;
  pointer-events: none; will-change: transform; }
#wmBall img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 5px 7px rgba(0,0,0,0.5)); }

/* ============================================================
   Ganze Seite als Rasenfeld (kein weißer Hintergrund)
   ============================================================ */
body {
  background: linear-gradient(180deg, #2c4016 0px, #25401b 360px, #18311a 560px, #0e240f 840px, #0a1d0f 1200px) no-repeat;
  background-color: #0a1d0f;
}
.page-main {
  position: relative; z-index: 1;
  background: transparent;
}
/* Feld-Streifen erst unterhalb der Bild-Überblendung einblenden (oben verblasst) */
.page-main::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 72px, rgba(0,0,0,0.075) 72px 144px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 170px, #000 400px);
          mask-image: linear-gradient(180deg, transparent 0, transparent 170px, #000 400px);
}
/* Fußballtore oben & unten als Feld-Markierung */
.wm-goal { position: absolute; left: 50%; transform: translateX(-50%); width: min(560px, 74vw);
  z-index: -1; pointer-events: none; opacity: 0.7; }
.wm-goal svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45)); }
.wm-goal-top { top: 18px; }
.wm-goal-bottom { bottom: 26px; }
/* Slogan-Text hell auf Rasen */
.wm-slogan h2 { color: #fff; }
.wm-slogan h2 .g { color: var(--srg-gold); }
/* Footer dunkel auf Rasen */
.site-footer { background: rgba(0,0,0,0.42); border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer .foot-about p,
.site-footer .foot-col a,
.site-footer .foot-bottom p,
.site-footer .foot-bottom a { color: rgba(255,255,255,0.74); }
.site-footer .foot-col h4 { color: rgba(255,255,255,0.55); }
.site-footer .foot-col a:hover,
.site-footer .foot-bottom a:hover { color: #fff; }
.site-footer .foot-about img { filter: brightness(0) invert(1); opacity: 0.9; }
.site-footer .foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); }

/* ============================================================
   GEWINNSPIEL "1991" — schwebender Trigger + Geheimnis-Modal
   ============================================================ */

/* Konfetti-Burst (über allem, auch über dem Modal) */
#confettiBurst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }

/* ---- Schwebender 1991-Button (unten rechts) ---- */
.jubi-trigger {
  position: fixed; right: 24px; bottom: 92px; z-index: 120;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 78px; height: 78px; border-radius: 50%; cursor: pointer;
  color: #2a1d00; font-family: var(--font-display, inherit); font-weight: 800;
  background: radial-gradient(circle at 38% 32%, #fff4cf 0%, #ffce00 38%, #e8a200 100%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.55), inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -6px 12px -4px rgba(150,90,0,0.5);
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease);
}
.jubi-trigger .jt-since { font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.72; line-height: 1; }
.jubi-trigger .jt-year { font-size: 1.32rem; letter-spacing: 0.01em; line-height: 1.05; margin-top: 2px; }
.jubi-trigger:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 20px 38px -10px rgba(0,0,0,0.6), inset 0 2px 3px rgba(255,255,255,0.8), inset 0 -6px 12px -4px rgba(150,90,0,0.5); }
.jubi-trigger:active { transform: translateY(-1px) scale(0.99); }
.jubi-trigger:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Pulsierender Einlade-Ring */
.jubi-trigger::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(255,206,0,0.85); pointer-events: none;
  animation: jubiPulse 2.4s ease-out infinite;
}
@keyframes jubiPulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
/* Sprechblase als Einladung */
.jubi-trigger .jt-hint {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: 8px 13px; border-radius: 12px;
  background: rgba(20,20,20,0.92); color: #fff; font-family: var(--font-mono, monospace);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid rgba(255,206,0,0.4); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(-50%) translateX(6px); pointer-events: none;
  transition: opacity .3s var(--ease, ease), transform .3s var(--ease, ease);
}
.jubi-trigger .jt-hint::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: rgba(20,20,20,0.92);
}
.jubi-trigger:hover .jt-hint, .jubi-trigger:focus-visible .jt-hint { opacity: 1; transform: translateY(-50%) translateX(0); }
.jubi-trigger.is-found::after { animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) { .jubi-trigger::after { animation: none; opacity: 0; } }
@media (max-width: 560px) {
  .jubi-trigger { right: 16px; bottom: 84px; width: 66px; height: 66px; }
  .jubi-trigger .jt-year { font-size: 1.12rem; }
  .jubi-trigger .jt-hint { display: none; }
}

/* ---- Geheimnis-Modal ---- */
.jubi-modal { position: fixed; inset: 0; z-index: 240; display: none; place-items: center; padding: clamp(14px, 4vw, 48px); }
.jubi-modal.open { display: grid; }
.jubi-backdrop {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease, ease);
  background: radial-gradient(120% 90% at 50% -10%, rgba(45,30,0,0.6), transparent 55%), rgba(6,8,4,0.74);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.jubi-modal.open .jubi-backdrop { opacity: 1; }
.jubi-panel {
  position: relative; z-index: 1; width: min(680px, 100%); max-height: 90vh; overflow: auto;
  border-radius: calc(var(--radius, 18px) * 1.1);
  background: linear-gradient(180deg, #1a1c19 0%, #111310 100%);
  border: 1px solid rgba(255,206,0,0.28);
  box-shadow: 0 50px 110px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(20px) scale(0.97); opacity: 0;
  transition: transform .4s var(--ease, ease), opacity .4s var(--ease, ease);
}
.jubi-modal.open .jubi-panel { transform: none; opacity: 1; }
.jubi-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 2; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #111 0 33.34%, var(--srg-red) 33.34% 66.67%, var(--srg-gold) 66.67%);
}
.jubi-body { padding: clamp(26px, 4vw, 46px); }
.jubi-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em; font-family: var(--font-mono, monospace);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--srg-gold);
}
.jubi-eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--srg-gold)); }
.jubi-title {
  margin-top: 16px; font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.12; letter-spacing: -0.025em; color: #fff;
  text-wrap: balance;
}
.jubi-title .y {
  background: linear-gradient(101deg, #8f6e22 0%, #ecdc97 40%, #fffdf4 60%, #dca52c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.jubi-story { margin-top: 18px; display: grid; gap: 14px; }
.jubi-story p { color: rgba(238,240,235,0.84); line-height: 1.68; font-size: 1.02rem; }
.jubi-story p strong { color: #fff; }

/* Zusatzlose-Belohnung */
.jubi-reward {
  margin-top: 26px; padding: 22px; border-radius: var(--radius, 16px);
  background: linear-gradient(160deg, rgba(255,206,0,0.14), rgba(221,0,0,0.08));
  border: 1px solid rgba(255,206,0,0.35);
  display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: center;
}
.jubi-reward .jr-ic {
  grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, #fff4cf, #ffce00 60%, #e8a200);
  color: #2a1d00; box-shadow: inset 0 2px 3px rgba(255,255,255,0.7);
}
.jubi-reward .jr-ic svg { width: 30px; height: 30px; }
.jubi-reward .jr-head { font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.18rem; color: #fff; }
.jubi-reward .jr-head b { color: var(--srg-gold); }
.jubi-reward .jr-sub { grid-column: 2; color: rgba(238,240,235,0.78); font-size: 0.92rem; line-height: 1.55; margin-top: -6px; }
.jubi-reward .jr-action { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.jubi-reward .jr-note { font-size: 0.78rem; color: rgba(238,240,235,0.6); font-family: var(--font-mono, monospace); line-height: 1.5; flex-basis: 100%; }
.jubi-reward.is-claimed .jr-note { color: var(--srg-gold); }

/* Zusatzlose-Formular */
.jr-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; width: 100%; }
.jr-field {
  position: relative; flex: 1 1 200px; display: flex; align-items: center;
  background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--r-pill, 999px);
  padding-left: 16px; transition: border-color .2s var(--ease, ease), background .2s;
}
.jr-field:focus-within { border-color: var(--srg-gold); background: rgba(0,0,0,0.4); }
.jr-field .jr-at { color: rgba(255,255,255,0.5); font-family: var(--font-mono, monospace); font-size: 1rem; }
.jr-field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff;
  font-size: 1rem; padding: 12px 16px 12px 4px; font-family: inherit;
}
.jr-field input::placeholder { color: rgba(255,255,255,0.4); }
.jr-form .btn-wm { flex: 0 0 auto; }
.jr-form .btn-wm:disabled { opacity: 0.7; cursor: default; }
@media (max-width: 520px) { .jr-form .btn-wm { width: 100%; justify-content: center; } }
@media (max-width: 520px) {
  .jubi-reward { grid-template-columns: 1fr; text-align: left; }
  .jubi-reward .jr-ic { grid-row: auto; }
  .jubi-reward .jr-sub { grid-column: 1; }
}

.jubi-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .25s var(--ease, ease), background .2s;
}
.jubi-close:hover { transform: rotate(90deg); background: rgba(255,255,255,0.18); }
.jubi-close svg { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .jubi-panel, .jubi-backdrop { transition: opacity .2s; } }

/* ============================================================
   Mobil: WM-Header passt sich an Hochformat an (kein Overflow)
   Auf schmalen Screens trieb aspect-ratio:16/9 die Header-Breite
   über den Viewport → Titel/Eyebrow wurden rechts abgeschnitten.
   ============================================================ */
@media (max-width: 700px) {
  .legal-top.wm { aspect-ratio: auto; min-height: 62svh; padding-top: 78px; }
  .legal-top.wm .legal-hero { max-width: 100%; padding-inline: 6px; }
  .legal-top.wm .legal-hero .eyebrow { justify-content: flex-start; }
  .wm-title { font-size: clamp(1.7rem, 8.5vw, 2.6rem); overflow-wrap: break-word; }
  .legal-top.wm .legal-hero .sub { font-size: 1rem; }
  .wm-slogan h2 { font-size: clamp(1.5rem, 7vw, 2.1rem); }
}
