.cookie-notice,
.cookie-notice * {
  box-sizing: border-box;
}

.site-credit,
.site-credit * {
  box-sizing: border-box;
}

.site-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 18px;
  border-top: 1px solid #c8c8c8;
  background: #d5d5d5;
  color: #5f6264;
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.site-credit a {
  color: inherit;
  text-decoration: none;
}

.site-credit a:hover,
.site-credit a:focus-visible {
  color: #c9142d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Social icons belong below Impressum/Datenschutz, not in the contact column. */
.site-footer .footer-contact .footer-social-icons {
  display: none !important;
}

.cookie-notice {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 4px solid #c9142d;
  background: #fff;
  color: #2f3134;
  box-shadow: 0 12px 38px rgba(0, 0, 0, .22);
  font-family: "Open Sans", Arial, sans-serif;
}

.cookie-notice[hidden],
.back-to-top[hidden] {
  display: none !important;
}

.cookie-notice__title {
  margin: 0 0 8px;
  color: #55595e;
  font-family: Raleway, Arial, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.cookie-notice__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

.cookie-notice__button,
.cookie-notice__link {
  min-height: 43px;
  border: 1px solid #c9142d;
  border-radius: 0;
  font: 700 13px/1.2 "Open Sans", Arial, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
}

.cookie-notice__button {
  padding: 12px 20px;
  background: #c9142d;
  color: #fff;
}

.cookie-notice__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  background: #fff;
  color: #c9142d;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus-visible {
  background: #a70f24;
  border-color: #a70f24;
}

.cookie-notice__link:hover,
.cookie-notice__link:focus-visible {
  background: #f8eef0;
  color: #a70f24;
}

.back-to-top {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9142d;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.back-to-top svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #a70f24;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cookie-notice {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 19px 18px;
  }

  .cookie-notice__actions {
    display: grid;
  }

  .cookie-notice__button,
  .cookie-notice__link {
    width: 100%;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 43px;
    height: 43px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-notice {
    animation: cookie-notice-in .28s ease-out;
  }

  @keyframes cookie-notice-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
