/* TMF Website · Winter-Look (Frozen, Schnee, Weihnachten)
   Wird nur geladen, wenn der Winter-Look im Plugin aktiv ist. Alles hängt an body.tmf-winter. */

/* ---------- Farben: Nachtblau statt Schwarz, Eisblau statt Orange ---------- */
body.tmf-winter{
  --w-bg:#070d16; --w-bg2:#0c1520; --w-card:#101b29; --w-line:#1e3046; --w-foot:#050a11;
  --w-text:#eef5fc; --w-muted:#a5b5c7; --w-soft:#cddbea;
  --bg-rgb:7,13,22; --text-rgb:238,245,252;
  --acc:#8fdcff; --acc2:#dff6ff; --acc-rgb:143,220,255;
  --gold:#f5cf7a;
  background:#070d16;
}

/* ---------- Überschrift-Akzent mit Eisglanz ---------- */
.tmf-winter .tmf .orange,.tmf-winter .tmf-sp .orange{
  background:linear-gradient(180deg,#fff 0%,#dff6ff 38%,#8fdcff 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 22px rgba(143,220,255,.35))}

/* ---------- Kicker: Eislinien mit Schneeflocke ---------- */
.tmf-winter .tmf .kicker:before,.tmf-winter .tmf-sp .kicker:before{
  width:64px;height:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fdcff' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M12 2l-2.5 2.5M12 2l2.5 2.5M12 22l-2.5-2.5M12 22l2.5-2.5'/%3E%3C/svg%3E") right center/16px no-repeat,
             linear-gradient(90deg,rgba(143,220,255,0),#8fdcff) left center/44px 2px no-repeat}
.tmf-winter .tmf .kicker:after,.tmf-winter .tmf-sp .kicker:after{
  width:64px;height:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fdcff' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M12 2l-2.5 2.5M12 2l2.5 2.5M12 22l-2.5-2.5M12 22l2.5-2.5'/%3E%3C/svg%3E") left center/16px no-repeat,
             linear-gradient(90deg,#8fdcff,rgba(143,220,255,0)) right center/44px 2px no-repeat}
.tmf-winter .tmf .kicker.l:after{width:48px}

/* ---------- Karten mit Raureif ---------- */
.tmf-winter .tmf .card,.tmf-winter .tmf .et_pb_column.card,.tmf-winter .tmf-sp .card{
  background-image:
    radial-gradient(110% 70% at 0% 0%,rgba(223,246,255,.11),rgba(223,246,255,0) 55%),
    radial-gradient(80% 60% at 100% 100%,rgba(143,220,255,.07),rgba(143,220,255,0) 60%);
  border-color:#22384f;border-top-color:rgba(223,246,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 40px rgba(0,0,0,.35)}
.tmf-winter .tmf a.card:hover,.tmf-winter .tmf .et_pb_column.card:hover{border-color:rgba(143,220,255,.45)}

/* ---------- Buttons: Eis mit Glanzkante ---------- */
.tmf-winter .tmf .btn:not(.ghost),.tmf-winter .tmf .et_pb_button.tmf-btn:not(.ghost),.tmf-winter .tmf-sp .btn:not(.ghost){
  color:#06121f !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 10px 30px rgba(143,220,255,.28)}
.tmf-winter .tmf-nav .cta{color:#06121f !important}

/* ---------- Schneewehe am unteren Rand der Titelbilder und über dem Footer ---------- */
.tmf-drift{position:absolute;left:0;right:0;bottom:-1px;height:64px;z-index:1;pointer-events:none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23dff1ff' fill-opacity='.18' d='M0 30C120 10 220 14 330 26s210 22 320 6 230-28 360-12 240 26 430 8v36H0z'/%3E%3Cpath fill='%23eef7ff' fill-opacity='.55' d='M0 44c140-14 260-12 380 0s220 14 350 2 250-20 380-8 210 14 330 4v22H0z'/%3E%3Cpath fill='%23070d16' d='M0 58c160-6 320-6 480 0s320 6 480 0 320-6 480 0v6H0z'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat}
.tmf-foot{position:relative}
.tmf-foot > .tmf-drift{top:-40px;bottom:auto;height:40px;transform:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23e9f5ff' fill-opacity='.14' d='M0 22C150 6 280 8 420 18s260 16 400 4 280-18 400-6 160 10 220 4v18H0z'/%3E%3Cpath fill='%23050a11' d='M0 32c180-8 340-8 520 0s340 8 520 0 280-6 400-2v10H0z'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat}

/* ---------- Eiszapfen unter der Navigation (sobald sie einen Hintergrund hat) ---------- */
.tmf-winter .tmf-nav.is-scrolled::after,.tmf-winter .tmf-nav.is-solid::after,body.tmf-winter:not(:has(.tmf-hero)) .tmf-nav::after{
  content:"";position:absolute;left:0;right:0;top:100%;height:24px;pointer-events:none;opacity:.8;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e8f7ff' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%238fdcff' stop-opacity='.15'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 0H300V3H0ZM4.0 2.5L6.8 6.5L9.6 2.5ZM11.3 2.5L14.6 6.5L18.0 2.5ZM27.1 2.5L29.7 18.5L32.2 2.5ZM33.8 2.5L36.1 7.5L38.3 2.5ZM47.8 2.5L51.4 6.5L55.0 2.5ZM61.2 2.5L64.2 4.6L67.2 2.5ZM75.9 2.5L78.6 7.5L81.3 2.5ZM87.5 2.5L90.9 7.5L94.3 2.5ZM100.5 2.5L104.1 7.5L107.7 2.5ZM113.8 2.5L117.3 18.5L120.9 2.5ZM128.9 2.5L132.0 5.2L135.2 2.5ZM138.4 2.5L140.9 4.7L143.3 2.5ZM147.0 2.5L150.3 22.5L153.5 2.5ZM157.1 2.5L161.5 18.5L166.0 2.5ZM168.5 2.5L171.3 5.3L174.2 2.5ZM183.8 2.5L186.0 14.5L188.2 2.5ZM192.3 2.5L195.2 22.5L198.0 2.5ZM199.7 2.5L201.9 7.5L204.1 2.5ZM205.7 2.5L209.4 22.5L213.2 2.5ZM216.8 2.5L219.7 6.5L222.7 2.5ZM232.1 2.5L235.0 22.5L237.9 2.5ZM239.5 2.5L243.4 9.5L247.3 2.5ZM251.9 2.5L256.2 8.5L260.5 2.5ZM265.5 2.5L268.9 6.1L272.2 2.5ZM281.0 2.5L283.7 14.5L286.4 2.5Z'/%3E%3C/svg%3E") left top/300px 24px repeat-x}
.tmf-winter .tmf-nav.is-open::after{display:none}

/* ---------- Schneefall ---------- */
.tmf-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:9998}

/* ---------- Weihnachtsgruß ---------- */
.tmf-xmas{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:9997;
  display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);box-sizing:border-box;
  padding:11px 12px 11px 18px;border-radius:40px;border:1px solid rgba(143,220,255,.35);
  background:rgba(7,13,22,.86);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 14px 40px rgba(0,0,0,.45),0 0 30px rgba(143,220,255,.12);
  font-family:var(--body,'Montserrat',Arial,sans-serif);font-size:14px;line-height:1.35;color:#eef5fc;
  animation:tmf-xmas-in .6s ease-out both}
.tmf-xmas .star{color:var(--gold);font-size:18px;line-height:1;animation:tmf-twinkle 2.4s ease-in-out infinite;flex:none}
.tmf-xmas a{color:#8fdcff;font-weight:700;text-decoration:none;white-space:nowrap}
.tmf-xmas a:hover{text-decoration:underline}
.tmf-xmas button{flex:none;width:30px;height:30px;border-radius:50%;border:1px solid rgba(238,245,252,.2);background:transparent;
  color:#cddbea;font-size:16px;line-height:1;cursor:pointer;padding:0}
.tmf-xmas button:hover{border-color:#8fdcff;color:#8fdcff}
.tmf-xmas[hidden]{display:none !important}
@keyframes tmf-twinkle{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.82)}}
@keyframes tmf-xmas-in{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%,0)}}

@media (max-width:640px){
  .tmf-drift{height:40px}
  .tmf-xmas{left:12px;right:12px;bottom:12px;max-width:none;transform:none;animation-name:tmf-xmas-in-m;
    font-size:13px;border-radius:16px;padding:10px 10px 10px 14px}
  .tmf-xmas > span:nth-child(2){flex:1}
  @keyframes tmf-xmas-in-m{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
}
@media (prefers-reduced-motion:reduce){
  .tmf-xmas,.tmf-xmas .star{animation:none}
}

/* ---------- Weihnachts-Deko ---------- */
.tmf-lights{position:absolute;left:0;right:0;top:100%;pointer-events:none;overflow:hidden;z-index:2}
.tmf-lights svg{display:block}
.tmf-lights .bulb{animation:tmf-bulb 2.6s ease-in-out infinite}
@keyframes tmf-bulb{0%,100%{opacity:1}50%{opacity:.45}}
body.tmf-x-lights .tmf-nav::after{display:none !important}
body.tmf-x-lights .et_pb_section.tmf-hero{padding-top:226px !important}body.tmf-x-lights .et_pb_section.tmf-hero.home{padding-top:206px !important}body.tmf-x-lights .et_pb_section.tmf-hero.sales{padding-top:216px !important}body.tmf-x-lights .tmf .hero > .wrap,body.tmf-x-lights .tmf .page-hero > .wrap{margin-top:46px}
.tmf-branch{position:absolute;top:34%;width:190px;z-index:1;pointer-events:none;filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))}
.tmf-branch.l{left:-44px;transform:rotate(-8deg)}
.tmf-branch.r{right:-44px;transform:rotate(8deg)}
.tmf-branch svg,.tmf-forest svg,.tmf-xtree svg{display:block;width:100%;height:auto}
.tmf-forest{position:absolute;bottom:22px;width:min(30vw,380px);z-index:1;pointer-events:none}
.tmf-forest.l{left:0}
.tmf-forest.r{right:0}
.tmf-xtree{position:absolute;right:max(12px,calc(50% - 712px));top:-124px;width:96px;z-index:2;pointer-events:none;filter:drop-shadow(0 0 18px rgba(255,211,107,.25))}
.tmf-xtree .tl{animation:tmf-bulb 2.2s ease-in-out infinite}
.tmf-xtree .star{animation:tmf-twinkle 3s ease-in-out infinite;transform-origin:80px 20px}
@media (max-width:1360px){.tmf-branch,.tmf-xtree{display:none}}
@media (max-width:980px){.tmf-forest{width:44vw;bottom:16px;opacity:.8}body.tmf-x-lights .et_pb_section.tmf-hero,body.tmf-x-lights .et_pb_section.tmf-hero.home,body.tmf-x-lights .et_pb_section.tmf-hero.sales{padding-top:176px !important}}
@media (prefers-reduced-motion:reduce){.tmf-lights .bulb,.tmf-xtree .tl,.tmf-xtree .star{animation:none}}

/* ---------- Winter im Launch-Countdown (ab 1.28) ---------- */
/* Schnee und Weihnachtsgruß liegen über dem Countdown, Klicks gehen durch den Schnee hindurch */
body.tmf-winter.tmf-launch-on .tmf-snow{z-index:2147483001}
body.tmf-winter.tmf-launch-on .tmf-xmas{z-index:2147483002}
/* Deko-Elemente sitzen fest am Bildschirm, der Inhalt bleibt darüber */
.tmf-winter .tmf-launch > .tmf-lights{position:fixed;top:0;left:0;right:0;z-index:3}
.tmf-winter .tmf-launch > .tmf-branch{position:fixed;top:30%;z-index:1}
.tmf-winter .tmf-launch > .tmf-forest{position:fixed;bottom:18px;z-index:1;opacity:.9}
.tmf-winter .tmf-launch > .tmf-drift{position:fixed;bottom:0;z-index:1}
.tmf-winter .tmf-launch > .tmf-xtree{position:fixed;top:auto;bottom:24px;right:max(16px,calc(50% - 640px));width:110px;z-index:1}
.tmf-winter .tmf-launch .tmf-launch-in{z-index:2}
/* Countdown-Kacheln mit Raureif und Eisglanz */
.tmf-winter .tmf-cd > div{background-color:rgba(7,13,22,.5);
  background-image:radial-gradient(110% 70% at 0% 0%,rgba(223,246,255,.14),rgba(223,246,255,0) 55%),radial-gradient(80% 60% at 100% 100%,rgba(143,220,255,.08),rgba(143,220,255,0) 60%);
  border-color:#22384f;border-top-color:rgba(223,246,255,.35);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 40px rgba(0,0,0,.35)}
.tmf-winter .tmf-cd span{text-shadow:0 0 24px rgba(143,220,255,.35)}
.tmf-winter .tmf-launch:before{background:radial-gradient(ellipse at 50% 40%,rgba(7,13,22,.2),rgba(7,13,22,.75) 75%),linear-gradient(180deg,rgba(7,13,22,.35),rgba(7,13,22,.6))}
@media (max-width:980px){.tmf-winter .tmf-launch > .tmf-xtree{width:76px;bottom:14px}}
body.tmf-winter.tmf-launch-on .tmf-xmas a{display:none}
/* Handy (ab 1.29): Gruß über dem Wischbalken, Schließen-Knopf gut treffbar */
.tmf-xmas{bottom:calc(18px + env(safe-area-inset-bottom))}
.tmf-xmas button{min-width:40px;min-height:40px}
@media (max-width:640px){.tmf-xmas{bottom:calc(12px + env(safe-area-inset-bottom))}}
