/* Rahmen aller Seiten (statt Avada-Kopf und -Fuß): obere Leiste, Kopf mit Menü, Fuß und die wenigen Bausteine,
   die sonst aus Avada kamen (Button, Video-Platzhalter, Teilen-Leiste, Nach-oben-Knopf).
   Maße und Farben sind vom Avada-Kopf und -Fuß übernommen. Schriften und Grundstil stehen in basis.css
   (Seiten ganz ohne Avada) bzw. im gekürzten Avada-CSS der Seite (assets/site/seiten/). */

:root {
  --hb-blau: #6894a6;
  --hb-blau-dunkel: #0d6b8f;
  --hb-beere: #ad1f5f;
  --hb-beere-dunkel: #961553;
  --hb-fuss: #61799b;
  --hb-kopf-h: 100px;
}

/* Allgemeine Elementstile stehen in basis.css (nur Seiten ganz ohne Avada). Hier nur, was Kopf und Fuß
   selbst brauchen, damit sie auch neben dem gekürzten Avada-CSS der übrigen Seiten gleich aussehen. */
html { scroll-padding-top: var(--hb-kopf-h); }
.hb-oben, .hb-oben *, .hb-kopf, .hb-kopf *, .hb-fuss, .hb-fuss *, .hb-nachoben, .hb-teilen, .hb-teilen * { box-sizing: border-box; }
:where(.hb-kopf, .hb-fuss) button { font: inherit; }
.hb-kopf, .hb-fuss { font-family: var(--body_typography-font-family), Arial, Helvetica, sans-serif; font-size: 18px; line-height: 27px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  clip: auto; clip-path: none;
  width: auto; height: auto;
  top: 8px; left: 8px; z-index: 100000;
  padding: 12px 18px;
  background: #fff;
  color: var(--hb-blau-dunkel);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

/* ------------------------------------------------------------------ Obere Leiste mit Laufschrift (die neuesten Beiträge) */

.hb-oben { border-top: 5px solid var(--hb-beere); background: #fff; }
.hb-oben__in { max-width: 1260px; margin: 0 auto; padding: 10px 30px; }
.hb-ticker { position: relative; height: 29px; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.hb-ticker li { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.hb-ticker li.is-aktiv { opacity: 1; visibility: visible; }
.hb-ticker a {
  display: block;
  overflow: hidden;
  color: #000;
  font-family: var(--body_typography-font-family), Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 28.6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}
.hb-ticker a:hover, .hb-ticker a:focus-visible { color: var(--hb-blau-dunkel); }

/* ------------------------------------------------------------------ Kopf */

.hb-kopf {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #f1f6f9;
}
.hb-kopf__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1260px;
  height: calc(var(--hb-kopf-h) - 1px);
  margin: 0 auto;
  padding: 0 30px;
}
/* Logo oben groß, beim Scrollen klein (wie Avadas Sticky-Header); hb-kopf--klein: immer klein */
.hb-kopf__logo { display: block; width: 264px; flex: none; transition: width .1s ease-in-out; }
.hb-kopf.is-gescrollt .hb-kopf__logo, .hb-kopf--klein .hb-kopf__logo { width: 135px; }
.hb-kopf__logo img { display: block; width: 100%; }

.hb-nav__liste, .hb-nav__sub { list-style: none; margin: 0; padding: 0; }
.hb-nav__liste { display: flex; gap: 50px; height: 100%; }
.hb-nav__punkt { position: relative; display: flex; align-items: center; }
.hb-nav__link {
  display: flex;
  align-items: center;
  height: calc(var(--hb-kopf-h) - 1px);
  color: var(--hb-blau);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .015em;
  text-decoration: none;
  transition: color .3s;
}
.hb-nav__link:hover, .hb-nav__link:focus-visible,
.hb-nav__punkt:hover > .hb-nav__link,
.hb-nav__punkt:focus-within > .hb-nav__link,
.hb-nav__link[aria-current],
.hb-nav__punkt.is-aktiv > .hb-nav__link { color: var(--hb-blau-dunkel); }
.hb-nav__pfeil { width: 10px; height: 10px; margin-left: 8px; flex: none; }
.hb-nav__auf { display: none; }

.hb-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 192px;
  padding: 0;
  background: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .03);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.hb-nav__punkt:hover > .hb-nav__sub,
.hb-nav__punkt:focus-within > .hb-nav__sub { opacity: 1; visibility: visible; }
.hb-nav__sub a {
  display: block;
  padding: 12px 20px 13px;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .24px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .3s;
}
.hb-nav__sub a:hover, .hb-nav__sub a:focus-visible { color: var(--hb-blau-dunkel); }

.hb-kopf__burger { display: none; }

/* Schmal: Burger-Menü. Ab 1100px passt das Menü neben das Logo. */
@media (max-width: 1099px) {
  :root { --hb-kopf-h: 90px; }
  .hb-kopf { background: #f6f6f6; transition: background-color .3s; }
  .hb-kopf.is-gescrollt, .hb-kopf.is-offen { background: #fff; }
  .hb-kopf .hb-kopf__logo, .hb-kopf.is-gescrollt .hb-kopf__logo { width: 121px; }

  .hb-kopf__burger {
    display: block;
    position: relative;
    width: 65px;
    height: 49px;
    margin-right: -20px;
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    cursor: pointer;
  }
  .hb-kopf__burger span,
  .hb-kopf__burger::before,
  .hb-kopf__burger::after {
    content: '';
    position: absolute;
    left: 20px;
    width: 25px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
  }
  .hb-kopf__burger span { top: calc(50% - 1px); }
  .hb-kopf__burger::before { top: calc(50% - 9px); }
  .hb-kopf__burger::after { top: calc(50% + 7px); }
  .hb-kopf.is-offen .hb-kopf__burger span { opacity: 0; }
  .hb-kopf.is-offen .hb-kopf__burger::before { transform: translateY(8px) rotate(45deg); }
  .hb-kopf.is-offen .hb-kopf__burger::after { transform: translateY(-8px) rotate(-45deg); }

  .hb-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--hb-kopf-h));
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 8px 14px rgba(0, 0, 0, .06);
    display: none;
  }
  .hb-kopf.is-offen .hb-nav { display: block; }
  .hb-nav__liste { display: block; height: auto; }
  .hb-nav__punkt { display: flex; flex-wrap: wrap; border-bottom: 1px solid #fff; }
  .hb-nav__link {
    flex: 1;
    height: 55px;
    padding: 0 24px;
    color: #000;
    font-weight: 400;
    letter-spacing: .24px;
  }
  .hb-nav__punkt:hover > .hb-nav__link,
  .hb-nav__punkt:focus-within > .hb-nav__link { color: #000; }
  .hb-nav__link > .hb-nav__pfeil { display: none; }
  .hb-nav__auf {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 55px;
    margin-right: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .hb-nav__auf .hb-nav__pfeil { margin: 0; transition: transform .25s; }
  .hb-nav__punkt.is-offen { background: var(--hb-blau-dunkel); }
  .hb-nav__punkt.is-offen > .hb-nav__link,
  .hb-nav__punkt.is-offen > .hb-nav__auf { color: #fff; }
  .hb-nav__punkt.is-offen > .hb-nav__auf .hb-nav__pfeil { transform: rotate(180deg); }
  .hb-nav__sub {
    position: static;
    flex-basis: 100%;
    display: none;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .hb-nav__punkt.is-offen > .hb-nav__sub { display: block; }
  .hb-nav__sub li { border-bottom: 1px solid #fff; }
  .hb-nav__sub a {
    display: flex;
    align-items: center;
    height: 55px;
    padding: 0 24px 0 40px;
    font-size: 16px;
    font-weight: 400;
  }
}

/* ------------------------------------------------------------------ Inhalt */

.hb-seite { padding: 0 30px 90px; }
.hb-seite__in { max-width: 1200px; margin: 0 auto; }

/* Button (früher .fusion-button) */
.hb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 29px;
  border: 0;
  border-radius: 25px;
  background: var(--hb-beere);
  color: #fff;
  font-family: var(--body_typography-font-family), Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s;
}
.hb-button:hover, .hb-button:focus-visible { background: var(--hb-beere-dunkel); color: #fff; }

/* YouTube hinter dem Cookie-Platzhalter. consent.js tauscht den Platzhalter gegen den
   Inhalt aus data-borlabs-cookie-content (ein youtube-nocookie-iframe). */
.hb-video { max-width: 600px; margin: 0 auto; aspect-ratio: 16 / 9; }
.hb-video iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 4px; }
.hb-video .brlbs-cmpnt-content-blocker { height: 100%; }
.brlbs-cmpnt-cb-youtube {
  position: relative;
  display: flex;
  height: 100%;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}
.brlbs-cmpnt-cb-thumbnail {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background-position: center;
  background-size: cover;
}
.brlbs-cmpnt-cb-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 36px;
  padding: 16px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .8);
}
.brlbs-cmpnt-cb-play-button {
  position: absolute;
  top: -17px;
  left: calc(50% - 17px);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M1 1l10 7-10 7z' fill='%23000'/%3E%3C/svg%3E") 55% 50% / 12px 16px no-repeat;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .15);
}
.brlbs-cmpnt-cb-description { margin: 0; padding-bottom: 16px; }
.brlbs-cmpnt-cb-buttons { display: flex; flex-direction: column; gap: 16px; }
.brlbs-cmpnt-cb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 20px;
  background: #f00;
  color: #fff;
  font-weight: 600;
  line-height: 21px;
  text-decoration: none;
}
.brlbs-cmpnt-cb-btn:hover, .brlbs-cmpnt-cb-btn:focus-visible { background: #c00; color: #fff; }
@media (max-width: 640px) {
  .hb-video { aspect-ratio: auto; }
  .hb-video iframe { aspect-ratio: 16 / 9; height: auto; }
  .brlbs-cmpnt-cb-main { margin: 24px 12px; }
}

/* Teilen-Leiste unter dem Artikel */
.hb-teilen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 20px;
  margin-top: 60px;
  padding: 20px;
}
.hb-teilen h2 { margin: 0; color: #333; font-family: inherit; font-size: 18px; line-height: 27px; }
.hb-teilen__liste { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hb-teilen__liste a { display: block; padding: 0 8px; color: #747474; transition: color .3s; }
.hb-teilen__liste a:hover, .hb-teilen__liste a:focus-visible { color: var(--hb-blau-dunkel); }
.hb-teilen svg { display: block; width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 640px) {
  .hb-teilen { flex-direction: column; justify-content: center; }
}

/* ------------------------------------------------------------------ Fuß */

.hb-fuss { background: var(--hb-fuss); color: #fff; }
.hb-fuss a { color: #fff; font-weight: 500; text-decoration: none; }
/* Hover und aktuelle Seite in Hellgold wie bisher bei Avada (Footer-Link-Hover) */
.hb-fuss a:hover, .hb-fuss a:focus-visible, .hb-fuss__menue a[aria-current] { color: #fadda2; }
.hb-fuss__spalten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 60px 30px 25px;
  line-height: 27px;
}
.hb-fuss__spalte { min-width: 0; }

.hb-fuss__kontakt { text-align: center; }
.hb-fuss__logo { display: inline-block; margin-bottom: 50px; }
.hb-fuss__logo img { display: block; width: 250px; }
.hb-fuss__kontakt p { margin: 18px 0; }

.hb-fuss__sozial { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 62px; padding: 0; list-style: none; }
.hb-fuss__sozial a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #e8e8e8;
  color: #bebdbd;
  transition: color .3s;
}
.hb-fuss__sozial a:hover, .hb-fuss__sozial a:focus-visible { color: var(--hb-fuss); }
.hb-fuss__sozial svg { width: 23px; height: 23px; fill: currentColor; }

.hb-fuss__menue { margin: 0; padding: 0; list-style: none; }
.hb-fuss__menue li { padding: 0 10px 10px 12px; border-bottom: 1px solid #fff9eb; }
.hb-fuss__menue li + li { margin-top: 10px; }
.hb-fuss__menue a { position: relative; display: block; }
.hb-fuss__menue a::before {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  left: -12px;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  color: inherit !important; /* sonst färbt eine Avada-Regel den Pfeil in Linkfarbe */
  transform: rotate(-45deg);
}

.hb-fuss__titel { margin: 0 0 28px; color: #f2e9e0; font-family: var(--body_typography-font-family), Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: 500; line-height: 21px; letter-spacing: normal; text-transform: uppercase; }
.hb-newsletter label { display: block; }
.hb-newsletter__feld { margin-bottom: 0; }
.hb-newsletter__feld + .hb-newsletter__feld { margin-top: 0; }
.hb-newsletter input[type=text], .hb-newsletter input[type=email] {
  display: block;
  width: 100%;
  height: 44px;
  margin: 3px 0 0;
  padding: 0 15px;
  border: 1px solid #f7ebf9;
  border-radius: 24px;
  background: #fff;
  color: #292f36;
  font: 400 14px var(--body_typography-font-family), Arial, sans-serif;
}
.hb-newsletter__einwilligung { display: flex; gap: 6px; margin: 14px 0 22px; font-size: 14px; line-height: 21px; }
.hb-newsletter__einwilligung input { flex: none; width: 13px; height: 13px; margin: 4px 0 0 4px; }
.hb-newsletter__einwilligung label { color: rgba(255, 255, 255, .9); }
.hb-newsletter__einwilligung small { display: block; font-size: inherit; color: rgba(255, 255, 255, .75); }

.hb-fuss__copyright {
  margin: 0;
  padding: 48px 30px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 800px) {
  .hb-fuss__spalten { grid-template-columns: minmax(0, 1fr); gap: 50px; padding-bottom: 50px; }
}

/* ------------------------------------------------------------------ Nach oben */

.hb-nachoben {
  position: fixed;
  right: 75px;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 35px;
  border-radius: 4px 4px 0 0;
  background: #333;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.hb-nachoben.is-sichtbar { opacity: .9; visibility: visible; }
.hb-nachoben:hover, .hb-nachoben:focus-visible { opacity: 1; }
.hb-nachoben svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .hb-nachoben { bottom: 30px; width: 44px; height: 44px; border-radius: 4px; }
}
