/* Playfair Display — variable font, SIL Open Font License 1.1. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display/playfair-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display/playfair-display-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/playfair-display/playfair-display-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --pico-font-family-sans-serif: "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --pico-font-family-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --forum-font-display: var(--pico-font-family-display);
}

:is(h1, h2, h3, h4, h5, h6) {
  font-optical-sizing: auto;
}

/* Project footer. The contact copy remains editable on the hidden Footer page. */
#footer.bbrg-footer {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.bbrg-footer__content {
  display: grid;
  gap: 0.45rem;
}

.bbrg-footer__content p {
  margin: 0;
}

.bbrg-footer__content p:first-child {
  color: var(--q2-text);
}

.bbrg-footer__divider {
  width: 4rem;
  margin: 1.5rem auto 1.25rem;
  border: 0;
  border-top: 1px solid var(--q2-border-strong);
}

.bbrg-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

@media (max-width: 40rem) {
  .bbrg-footer__content {
    gap: 0.8rem;
  }
}

/* Startseiten-Hero: viewport filling, axially centered and deliberately bold. */
.hero.bbrg-home-hero {
  --bbrg-header-height: 72px;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--bbrg-header-height));
  min-height: calc(100svh - var(--bbrg-header-height));
  padding: clamp(2.5rem, 7vh, 6rem) clamp(1rem, 5vw, 5rem);
  background-position: center;
}

.bbrg-home-hero .container {
  display: flex;
  width: min(100%, 90rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center !important;
}

.bbrg-home-hero :is(h1, h2, h3) {
  max-width: 100%;
  margin-inline: auto;
  text-shadow: 0 0.125rem 1.5rem rgba(0, 0, 0, 0.7);
}

.bbrg-home-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 7.2vw, 6.75rem);
  font-weight: 550;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.hero.bbrg-home-hero h1 + h2 {
  display: flex;
  width: min(100%, 52rem);
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: clamp(1.25rem, 3vh, 2.25rem) auto 0;
  font-size: clamp(1.15rem, 2.35vw, 2.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.bbrg-home-hero h2::before,
.bbrg-home-hero h2::after {
  content: "";
  width: clamp(1.5rem, 7vw, 6rem);
  height: 1px;
  flex: 0 1 auto;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 0 0.75rem rgba(255, 255, 255, 0.28);
}

.bbrg-home-hero h2 em {
  font-style: italic;
}

.bbrg-home-hero h3 {
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  font-family: var(--pico-font-family-sans-serif);
  font-size: clamp(0.88rem, 1.45vw, 1.3rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 53.75rem) {
  .hero.bbrg-home-hero {
    --bbrg-header-height: 64px;
  }
}

@media (max-width: 30rem) {
  .hero.bbrg-home-hero {
    padding-inline: 0.9rem;
  }

  .bbrg-home-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
    line-height: 0.98;
  }

  .hero.bbrg-home-hero h1 + h2 {
    gap: 0.65rem;
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .bbrg-home-hero h2::before,
  .bbrg-home-hero h2::after {
    width: clamp(1rem, 7vw, 2rem);
  }
}
