/* V8 · Original one-line desktop title, breathing room for the header wordmark,
   and a restrained gold Christmas background. Full V7 functionality retained. */
html body.theme-card.wm-designed[data-wm-festive='v8'],
#wm-start-v7[data-wm-festive='v8'],
#wm-angebote-v7[data-wm-festive='v8'],
#wm-kontakt-v6[data-wm-festive='v8'] {
  --f8-paper: #fffdf8;
  --f8-wash: rgba(255, 253, 248, .87);
  --f8-gold: #b78a48;
  background-color: var(--f8-paper) !important;
  background-image: linear-gradient(var(--f8-wash), var(--f8-wash)), url('pattern-goldflakes.svg') !important;
  background-position: 0 0, 18px 90px !important;
  background-size: auto, 540px 540px !important;
  background-repeat: repeat !important;
}

/* This spacing applies to the same wordmark on all 18 pages. */
html body.theme-card.wm-designed[data-wm-festive='v8'] .header {
  background: var(--f8-paper) !important;
  border-bottom: 1px solid #d4b581 !important;
}
html body.theme-card.wm-designed[data-wm-festive='v8'] .header .nav {
  box-sizing: border-box;
  min-height: 84px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  align-items: center !important;
}
html body.theme-card.wm-designed[data-wm-festive='v8'] .header .brand {
  display: flex !important;
  align-self: center !important;
  align-items: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body.theme-card.wm-designed[data-wm-festive='v8'] .header .brand b {
  font-family: 'WM Referenz Serif', Georgia, serif !important;
  font-size: 27px !important;
  line-height: 1.02 !important;
  overflow: visible !important;
}
html body.theme-card.wm-designed[data-wm-festive='v8'] .header .brand .wm-brand-top,
html body.theme-card.wm-designed[data-wm-festive='v8'] .header .brand .wm-brand-bottom {
  line-height: 1.02 !important;
}

/* Festive accents occupy their own columns, away from the heading text. */
#wm-start-v7[data-wm-festive='v8'] .wm-section-heading {
  display: grid !important;
  grid-template-columns: 60px minmax(0, 1fr) 60px !important;
  align-items: center !important;
  gap: 20px !important;
  max-width: none !important;
  font-size: clamp(30px, 2.65vw, 40px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}
#wm-start-v7[data-wm-festive='v8'] .wm-section-heading .wm-stars {
  display: block !important;
  position: static !important;
  width: 60px !important;
  height: 50px !important;
  margin: 0 !important;
  font-size: 0 !important;
  background: url('goldene-sterne-v5.svg') center / contain no-repeat !important;
}
#wm-start-v7[data-wm-festive='v8'] .wm-cta {
  background-color: #850a24 !important;
  background-image: linear-gradient(rgba(133,10,36,.88), rgba(133,10,36,.88)), url('pattern-goldflakes.svg') !important;
  background-size: auto, 360px 360px !important;
}
#wm-start-v7[data-wm-festive='v8'] .wm-home-head h1 { font-weight: 700 !important; }

@media (min-width: 961px) {
  #wm-start-v7[data-wm-festive='v8'] .header > .container,
  #wm-start-v7[data-wm-festive='v8'] :is(.wm-trustline, .wm-offers, .wm-story) {
    width: 88% !important;
    max-width: 1280px !important;
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-cta {
    width: 92.6% !important;
    max-width: 1348px !important;
  }
  #wm-start-v7[data-wm-festive='v8'] .footer .wm-footer-reference,
  #wm-start-v7[data-wm-festive='v8'] .footer details.wm-footer-more {
    width: 90.4% !important;
    max-width: 1280px !important;
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-home-head {
    min-height: clamp(345px, 31.51vw, 455px) !important;
    height: auto !important;
    padding: 28px 0 24px !important;
    overflow: visible !important;
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-hero-photo img { width: 74% !important; }
  #wm-start-v7[data-wm-festive='v8'] .wm-hero-copy-v7 {
    width: min(36.5%, 490px) !important;
    margin-left: max(6%, calc((100% - 1280px) / 2)) !important;
    margin-right: 0 !important;
    container-type: inline-size;
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-home-head .wm-display-brand {
    width: min(31vw, 410px) !important;
    font-size: clamp(40px, 3.8vw, 55px) !important;
    font-weight: 700 !important;
    line-height: .84 !important;
    letter-spacing: -.055em !important;
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-home-head .wm-location {
    width: min(31vw, 410px) !important;
    margin: 12px 0 14px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    letter-spacing: .24em !important;
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-home-head h1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    font-family: 'WM Referenz Serif', Georgia, serif !important;
    font-size: clamp(22px, 2.409vw, 32px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.025em !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    overflow-wrap: normal !important;
  }
  @supports (font-size: 1cqi) {
    #wm-start-v7[data-wm-festive='v8'] .wm-home-head h1 {
      font-size: clamp(22px, 6.6cqi, 32px) !important;
    }
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-home-head .wm-intro {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-home-head a.wm-action {
    width: min(100%, 410px) !important;
    min-height: 44px !important;
    margin: 0 0 8px !important;
    padding: 10px 16px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
  }
  #wm-start-v7[data-wm-festive='v8'] .wm-home-head .wm-linkdown {
    width: min(100%, 410px) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}
@media (max-width: 960px) {
  html body.theme-card.wm-designed[data-wm-festive='v8'] .header .nav {
    min-height: 74px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  html body.theme-card.wm-designed[data-wm-festive='v8'] .header .brand b { font-size: 25px !important; }
}
@media (max-width: 760px) {
  #wm-start-v7[data-wm-festive='v8'] .wm-section-heading { display: block !important; font-size: 32px !important; }
  #wm-start-v7[data-wm-festive='v8'] .wm-section-heading .wm-stars { display: none !important; }
}
@media (max-width: 420px) {
  html body.theme-card.wm-designed[data-wm-festive='v8'] .header .nav { min-height: 72px !important; }
  html body.theme-card.wm-designed[data-wm-festive='v8'] .header .brand b { font-size: 23px !important; }
}
html[data-theme='dark'] body.theme-card.wm-designed[data-wm-festive='v8'],
html[data-theme='dark'] #wm-start-v7[data-wm-festive='v8'],
html[data-theme='dark'] #wm-angebote-v7[data-wm-festive='v8'],
html[data-theme='dark'] #wm-kontakt-v6[data-wm-festive='v8'] {
  --f8-paper: #151c25;
  --f8-wash: rgba(21, 28, 37, .86);
}
@media print {
  html body.theme-card.wm-designed[data-wm-festive='v8'], #wm-start-v7[data-wm-festive='v8'], #wm-angebote-v7[data-wm-festive='v8'], #wm-kontakt-v6[data-wm-festive='v8'] { background: #fff !important; }
}
