*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,#7b0010,#160006 55%,#090909);color:#fff;font-family:Arial,sans-serif;min-height:100vh}#snow{position:fixed;inset:0;pointer-events:none;z-index:20}header{position:relative;z-index:2;background:#0b0b0d;padding:16px 5%;display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #d71920}header b{font-size:25px}header span{color:#e51b23}.hero{text-align:center;padding:34px 10px 18px}.hero h1{font-size:clamp(38px,7vw,75px);margin:0;color:#fff;text-shadow:0 3px 0 #8e0011,0 0 20px #f3c35c}.hero p{font-size:20px}.grid{max-width:1050px;margin:auto;display:grid;grid-template-columns:repeat(6,1fr);gap:14px;padding:20px}.door{aspect-ratio:1;background:linear-gradient(145deg,#e21a26,#8c0010);border:2px solid #f4c65d;border-radius:12px;color:#fff;box-shadow:0 8px 18px #0008,inset 0 0 20px #fff1;display:flex;flex-direction:column;align-items:center;justify-content:center}.door strong{font-size:36px}.door small{font-size:22px}.door.open{cursor:pointer}.door.open:hover{transform:translateY(-3px);box-shadow:0 0 22px #ffd66b}.door.locked{filter:grayscale(.5);opacity:.7}h2{max-width:1050px;margin:25px auto 10px;padding:0 20px}.prizes{max-width:1050px;margin:auto;padding:10px 20px 60px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.prizes article{background:#fff;color:#222;padding:14px;border-radius:10px;border-top:5px solid #d71920}dialog{width:min(700px,94vw);border:0;border-radius:15px;padding:25px;box-shadow:0 20px 80px #000;color:#222}dialog::backdrop{background:#000b}.x{float:right;border:0;background:none;font-size:28px}.pics{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pics img,.blur{width:100%;max-height:330px;object-fit:contain;background:#eee}.blur{filter:blur(12px)}form label{display:block;font-weight:bold;margin:15px 0 5px}form input{width:100%;padding:12px;border:1px solid #bbb;border-radius:7px}form button{width:100%;margin-top:12px;padding:12px;background:#d71920;color:#fff;border:0;border-radius:7px;font-weight:bold}@media(max-width:700px){.grid{grid-template-columns:repeat(4,1fr);gap:8px}.door strong{font-size:26px}.prizes{grid-template-columns:repeat(2,1fr)}header{font-size:12px}header b{font-size:18px}}

/* Bayernfreaks V6.1 winterliches Redesign */
body{background:radial-gradient(ellipse at 50% 18%,#2b5385 0%,#102e56 36%,#08172d 68%,#08111e 100%);background-attachment:fixed;color:#fff;overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 10% 40%,#fff5 0 1px,transparent 2px),radial-gradient(circle at 80% 25%,#fff6 0 1px,transparent 2px);background-size:88px 95px,123px 135px;opacity:.8}
.bf-header{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:12px clamp(14px,4vw,56px);background:linear-gradient(135deg,#75030b,#cf1021 55%,#75030b);border-bottom:4px solid #f3d9aa;box-shadow:0 10px 30px #0007;min-height:116px}
.club-logo{height:104px;width:104px;object-fit:contain;flex:none}.brand{flex:1;text-align:center;text-shadow:0 3px 9px #0009}.brand b{display:block;font-size:clamp(24px,4.6vw,54px);letter-spacing:.4px}.brand span{display:block;font-size:clamp(22px,3.4vw,42px);font-family:Georgia,serif;font-style:italic;color:#fff4e7}.member-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;font-size:14px}.member-info form{width:auto}.member-info button,.logout-link{background:#8c0714;color:#fff;border:1px solid #e9b55b;padding:11px 15px;border-radius:12px;cursor:pointer;text-decoration:none}.member-info form button{width:auto;margin:0}
.hero{position:relative;z-index:2;padding:25px 12px 8px}.hero h1{font-size:clamp(23px,3.2vw,40px);color:#fff;text-shadow:0 3px 12px #000b}.hero p{font-size:clamp(14px,2vw,18px);color:#eaf2ff}.preview-banner{background:#ffe7ad;color:#531c0a;border-radius:10px;padding:12px 18px;max-width:690px;margin:12px auto;font-weight:bold}
.stadium-scene{position:absolute;top:235px;right:-6%;width:64%;height:340px;opacity:.54;pointer-events:none;overflow:hidden;filter:drop-shadow(0 18px 22px #0009)}.stadium-roof{height:175px;border-radius:50% 50% 12% 12%/70% 70% 12% 12%;background:repeating-linear-gradient(115deg,#d42b43 0 18px,#8a142e 19px 25px,#ff8290 27px 32px);border:7px solid #b4c7dc;box-shadow:inset 0 18px 45px #fff8}.stadium-body{height:130px;margin:0 5%;background:repeating-linear-gradient(90deg,#152944 0 13px,#e04858 15px 25px,#13223a 27px 42px);border-radius:0 0 32% 32%;border-bottom:10px solid #f1f5ff}
.grid{position:relative;z-index:2;max-width:1150px;padding:28px 18px 36px;gap:16px}.door{position:relative;aspect-ratio:1.28;background:linear-gradient(155deg,#b91424 0%,#9b0b1a 50%,#54010c 100%);border:2px solid #e5b86b;border-radius:15px;box-shadow:0 6px 18px #0009,inset 0 -12px 25px #3b000f;transition:transform .2s,box-shadow .2s;overflow:hidden}.door:before{content:"";position:absolute;top:0;left:0;right:0;height:16px;border-radius:10px 10px 40% 40%;background:linear-gradient(#fff,#d8ebf7 80%,#fff0);filter:drop-shadow(0 3px 3px #ffffff5c)}.door strong{font-size:clamp(28px,3.8vw,50px);text-shadow:0 3px 7px #0008}.door small{color:#ffe3aa}.door.locked{opacity:.84;filter:saturate(.7)}.door.open:hover{transform:translateY(-5px) scale(1.02);box-shadow:0 0 23px #ffd47f,0 8px 25px #0009}.bf-nav{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;position:relative;z-index:2;padding:10px 16px}.bf-nav a{color:#64101b;background:#f9f5f0;padding:12px 20px;border-radius:24px;font-weight:bold;text-decoration:none;box-shadow:0 3px 12px #0006}.prizes{position:relative;z-index:2}.prizes article{background:#fffffff0}.x{cursor:pointer}dialog{max-height:90vh;overflow:auto}
@media(max-width:750px){.bf-header{flex-wrap:wrap;gap:8px}.club-logo{height:75px;width:75px}.brand{min-width:50%}.member-info{width:100%;justify-content:center}.grid{grid-template-columns:repeat(4,1fr);gap:8px}.door{aspect-ratio:1}.stadium-scene{top:320px;width:100%;right:-35%;opacity:.35}.prizes{grid-template-columns:repeat(2,1fr)}}
@media(max-width:390px){.grid{grid-template-columns:repeat(3,1fr)}}

/* V6.2 Weihnachtskugel */
body{background:linear-gradient(90deg,rgba(6,8,12,.78),rgba(9,8,13,.62)),url('weihnachtskugel.png') center center/cover fixed no-repeat!important}
.stadium-scene{display:none!important}.bf-header{background:linear-gradient(120deg,#66000de8,#ae1021ed,#450009ec)}
.door{backdrop-filter:blur(3px)}.prizes article{background:#fffdf5f0}.bf-nav a:hover{background:#ffe7bb}
.notice{max-width:1050px;margin:18px auto;padding:15px;background:#171c2be6;border:1px solid #e2c37a;border-radius:12px}.notice a{color:#ffe6ad}.test-feedback{background:#f9e4b6;color:#411b00;padding:12px;border-radius:9px}
@media(max-width:700px){body{background-attachment:scroll!important}}

/* V6.3: winter background image, CSS fallback if unavailable */
body{background-color:#16040a!important;background-image:linear-gradient(90deg,rgba(6,8,12,.75),rgba(9,8,13,.50)),url("weihnachtskugel.png")!important;background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important;background-attachment:fixed!important}
@media(max-width:700px){body{background-attachment:scroll!important}}

/* V6.8: Kalenderheader exakt nach dem Aufbau des Login-Headers */
.bf-calendar-login-header{justify-content:space-between;gap:18px;flex-wrap:wrap;background:#0b0b0d;border-bottom:3px solid #d71920;min-height:unset;padding:16px 5%;box-shadow:none}
.bf-calendar-identity{display:flex;align-items:center;gap:15px;min-width:0}
.bf-calendar-identity .bf-login-logo{width:80px;height:80px;object-fit:contain;flex:none}
.bf-calendar-identity b{font-size:25px;white-space:nowrap;color:#fff;letter-spacing:normal;text-shadow:none}
.bf-calendar-identity b span{color:#e51b23;font-size:inherit;font-family:inherit;font-style:normal;display:inline}
.bf-calendar-login-header .member-info{width:auto;flex:0 1 auto;color:#fff}
@media(max-width:600px){.bf-calendar-identity .bf-login-logo{width:62px;height:62px}.bf-calendar-identity b{font-size:20px}.bf-calendar-login-header .member-info{width:100%;justify-content:flex-start}}

/* V6.8 Fix: Wörtersuche – hoher Kontrast trotz dunkler Theme-Regeln */
.bf-wordgrid { color:#fff !important; background:#23161c !important; padding:5px; border:2px solid #d8ac60; border-radius:8px; overflow:hidden; }
.bf-wordgrid > span { color:#ffffff !important; -webkit-text-fill-color:#ffffff !important; background:#58202c !important; border:1px solid #b58b93 !important; text-shadow:none !important; opacity:1 !important; line-height:1.55; }
@media(max-width:600px){.bf-wordgrid > span{padding:2px 0 !important;font-size:clamp(10px,2.3vw,14px) !important}}

/* Einheitlicher zweizeiliger Header: Anmeldung und Kalender */
.bf-header-titles{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-width:0}
.bf-header-titles b{line-height:1.1}
.bf-header-subtitle{font-size:clamp(15px,2.2vw,22px);font-weight:600;letter-spacing:.5px;color:#f7d48c;line-height:1.25}
.bf-calendar-login-header .bf-calendar-identity{display:flex;align-items:center;gap:15px}
@media(max-width:600px){.bf-header-subtitle{font-size:15px}.bf-calendar-login-header .bf-calendar-identity{gap:10px}}

/* V6.8: Wunschfarbe fuer Buchstabengitter */
.bf-wordgrid { background:#db0508 !important; }
.bf-wordgrid > span { background:#db0508 !important; color:#fff !important; -webkit-text-fill-color:#fff !important; border-color:#ffd0d0 !important; }
.bf-wordgrid > span.selected,.bf-wordgrid > span.found { background:#b78b26 !important; }

/* V6.8: Adventskalender-Tuerchen in #DB0508, leicht transparent. */
.door {
  background:linear-gradient(155deg,rgba(219,5,8,.82) 0%,rgba(219,5,8,.76) 55%,rgba(125,3,6,.78) 100%) !important;
  border-color:#e5b86b;
  box-shadow:0 6px 18px #0009,inset 0 -12px 25px #39000055;
}
.door.locked { opacity:.88; filter:none; }
.door.open:hover { background:linear-gradient(155deg,rgba(219,5,8,.91),rgba(167,4,7,.86)) !important; }

/* V6.8: modernere Tuerchen in Fanclub-Rot #DB0508 */
.grid .door {
  position:relative; overflow:hidden; isolation:isolate;
  background:linear-gradient(145deg,rgba(219,5,8,.87) 0%,rgba(219,5,8,.78) 58%,rgba(129,3,5,.82) 100%) !important;
  border:2px solid #d9ae68 !important; border-radius:19px !important;
  box-shadow:0 9px 22px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.22) !important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.grid .door::before {
  content:''; position:absolute; left:0;right:0;top:0;height:11%;
  border-radius:17px 17px 45% 45%;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(227,240,247,.67));
  pointer-events:none;
}
.grid .door strong {color:#fff !important;text-shadow:0 2px 5px rgba(0,0,0,.42);position:relative;z-index:1}
.grid .door small {position:relative;z-index:1}
.grid .door.open:hover,.grid .door.open:focus-visible {
  background:linear-gradient(145deg,rgba(245,21,24,.93),rgba(186,4,7,.88)) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.4),0 0 0 2px rgba(255,214,141,.32) !important;
  transform:translateY(-3px);
}
.grid .door.locked {opacity:.94 !important;filter:none !important}
@media(prefers-reduced-motion:reduce){.grid .door{transition:none !important}}
