/* Seasonal finish: frost details stay behind site content and do not alter the live scene. */
body[data-season="winter"] .autohof-header{border-top-color:#91a9b0;border-bottom-color:#a8bec3;box-shadow:0 5px 15px #0007,0 7px 8px #dcecf233}
body[data-season="winter"] .autohof-topics{border-bottom-color:#a8bec3}
body[data-season="winter"] .autohof-topic{border-color:#c5d6d8}

.autohof-snow{position:absolute;inset:0;width:100%;height:100%;z-index:2;display:block;pointer-events:none}
@media(prefers-reduced-motion:reduce){.autohof-snow{display:none!important}}
@media print{.autohof-snow{display:none!important}}

/* Schnee liegt auf den Rahmen. Die transparenten Spitzen bleiben durchklickbar. */
@media screen {
  body[data-season="winter"] {
    --snow-edge: url('/images/autohof/frost.webp');
    --snow-width: 1200px;
  }
  body[data-season="winter"] .autohof-header::before,
  body[data-season="winter"] .autohof-header::after {
    height: 48px;
    background: var(--snow-edge) center top / var(--snow-width) 48px repeat-x;
    border: 0;
    box-shadow: none;
    pointer-events: none;
    z-index: 3;
  }
  body[data-season="winter"] .autohof-header::after {
    bottom: -36px;
    background-position: 21% top;
    background-size: 930px 31px;
  }
  body[data-season="winter"] :is(.main-article,.autohof-docstop--side,.section-card,.autohof-topics,.autohof-feed,.autohof-calendar,.autohof-map-shortcut) {
    position: relative;
  }
  body[data-season="winter"] :is(.main-article,.autohof-docstop--side,.section-card,.autohof-topics,.autohof-feed,.autohof-calendar,.autohof-map-shortcut,.autohof-topic)::after {
    content: "";
    position: absolute;
    inset: -15px -9px auto;
    height: 43px;
    z-index: 2;
    pointer-events: none;
    background: var(--snow-edge) center top / var(--snow-width) 43px repeat-x;
    filter: drop-shadow(0 2px 2px #0008);
  }
  body[data-season="winter"] .autohof-map-shortcut::after { inset: -5px 0 auto; }
  body[data-season="winter"] .autohof-topic::after {
    inset: -3px 0 auto;
    background-size: 840px 31px;
  }
  body[data-season="winter"] .autohof-topic:nth-child(even)::after { background-position: left top; }
  body[data-season="winter"] .autohof-topic-hero {
    background-image: url('/images/autohof/winter-trees.webp');
  }
  body[data-season="winter"] .autohof-bg-video::after {
    background: linear-gradient(90deg,#08182b75,transparent 62%),linear-gradient(#091c3522,#04132740);
  }
}
@media screen and (max-width:760px) {
  body[data-season="winter"] :is(.main-article,.autohof-docstop--side,.section-card,.autohof-topics,.autohof-feed,.autohof-calendar)::after {
    inset: -10px -5px auto;
    background-size: 760px 29px;
  }
  body[data-season="winter"] .autohof-header::before { background-size: 680px 26px; }
}


@media screen {
  body[data-season="winter"] .section-card::after {
    inset: -10px -4px auto;
    height: 32px;
    background-size: 950px 32px;
  }
}

body:not([data-season="winter"]) .autohof-snow{display:none}

/* Vor hellen Titelbildern brauchen die Eisspitzen eine dunkle Kontur. */
@media screen {
  body[data-season="winter"]:not(.autohof-home) :is(.main-article,.autohof-docstop--side)::after {
    --ice-height: clamp(42px, 5vw, 72px);
    inset: -20px -11px auto;
    height: var(--ice-height);
    background-size: 1350px var(--ice-height);
    filter: brightness(1.16) contrast(1.12)
            drop-shadow(0 1px 0.7px #10243aeb)
            drop-shadow(0 3px 3px #07111fc9);
  }
  body[data-season="winter"]:not(.autohof-home) .autohof-docstop--side::after {
    --ice-height: 55px;
    inset: -17px -9px auto;
    background-size: 1050px var(--ice-height);
  }
}
@media screen and (max-width:1000px) {
  body[data-season="winter"]:not(.autohof-home) :is(.main-article,.autohof-docstop--side)::after {
    inset: -14px -7px auto;
    background-size: 920px var(--ice-height);
  }
}

/* Lange Spitzen am Holzrahmen, kürzere über dem Kilometerstand. */
@media screen {
  body[data-season="winter"] .autohof-footer {
    position: relative;
    padding-top: 38px;
  }
  body[data-season="winter"] .autohof-footer-stats {
    position: relative;
    padding-top: 22px;
  }
  body[data-season="winter"] :is(.autohof-footer,.autohof-footer-stats)::before {
    content: "";
    position: absolute;
    inset: -15px 0 auto;
    height: 52px;
    background: var(--snow-edge) center top / 1200px 52px repeat-x;
    filter: brightness(1.12) drop-shadow(0 2px 2px #061423);
    pointer-events: none;
  }
  body[data-season="winter"] .autohof-footer-stats::before {
    inset: -5px 0 auto;
    height: 26px;
    background-size: 840px 26px;
    background-position: left top;
  }
}
