@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Regular.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Bold.ttf") format("ttf");
  font-weight: 700;
  font-style: normal;
}

:root {
  --font-sans: "Source Sans Pro", Arial, Helvetica, sans-serif;

  --nabu-blue: #0071b3;
  --nabu-blue-dark: #005b91;
  --nabu-background: #f1f0ed;
}

body {
  font-family: var(--font-sans);
  color: #292929;
  background-color: var(--nabu-background);
  min-height: 100vh;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

#spenden,
#mitglied,
#presse,
#landesverbaende {
  scroll-margin-top: 2rem;
}

/* Header
-------------------------------------------------- */

header {
  background-color: var(--nabu-blue) !important;
}

.navbar {
  background-color: var(--nabu-blue) !important;
}
@media (min-width: 1024px) {
  .navbar a {
    color: #fff;
    font-size: 1.15rem;
  }

  .navbar a:hover {
    color: #ffffff99;
  }
}
@media (max-width: 1024px) {
  .navbar a {
    font-size: 1.2em;
  }
  .navbar-toggler-icon,
  .btn-close {
    width: 2rem;
    height: 2rem;
  }
  .btn-close {
    background: var(--nabu-blue);
    opacity: 1;
  }
}
.navbar-brand {
  padding: 0;
}

.navbar-toggler-icon {
  background-color: #fff;
}

.header-logo {
  display: block;
  width: 150px;
  height: auto;
}

/* Content
-------------------------------------------------- */

main {
  background-color: var(--nabu-background);
}

.offline-card {
  border-radius: 0.5rem;
}

main h1,
main h2,
main h3,
main h4 {
  color: var(--nabu-blue);
}

main a {
  color: #000;
}

.offline-card p {
  font-size: 1.125rem;
  line-height: 1.65;
}

.offline-card .lead {
  font-size: 1.3rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.content-image {
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .content-image {
    height: 350px;
    max-height: 350px;
    object-fit: cover;
  }
}
@media (max-width: 1024px) {
  .content-image {
    width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
  }
}
.overlap {
  margin-bottom: -8rem;
}

/* Footer
-------------------------------------------------- */

.footer {
  background-color: var(--nabu-blue);
}

.footer h2 {
  color: #fff;
}

.footer p {
  color: #fff;
  line-height: 1.6;
}

.footer-link {
  color: #fff;
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff99;
}

/* Bootstrap Anpassungen
-------------------------------------------------- */

.text-bg-warning {
  background-color: #f2c94c !important;
  color: #212529 !important;
}

/* Responsive
-------------------------------------------------- */

@media (max-width: 576px) {
  .header-logo {
    width: 120px;
  }

  .offline-card h1 {
    font-size: 2rem;
  }

  .offline-card p,
  .offline-card .lead {
    font-size: 1rem;
  }

  p,
  a {
    overflow-wrap: anywhere;
  }
}
/* ==========================================================
   KLARO – NABU CUSTOM STYLING
   ========================================================== */

/* Klaro immer über dem restlichen Seiteninhalt */
#klaro,
#klaro .klaro,
#klaro .cookie-notice,
#klaro .cookie-modal {
  z-index: 9999991 !important;
}

/* ==========================================================
   COOKIE NOTICE – kleines Banner
   ========================================================== */

#klaro .klaro .cookie-notice {
  background-color: #0068b4 !important;
  color: #ffffff !important;
}

/* Innenabstand */
#klaro .klaro .cookie-notice .cn-body {
  padding: 2rem !important;
}

/* Texte */
#klaro .klaro .cookie-notice p,
#klaro .klaro .cookie-notice span {
  color: #ffffff !important;
}

/* Links */
#klaro .klaro .cookie-notice a {
  color: #ffffff !important;
  text-decoration: underline;
}

#klaro .klaro .cookie-notice a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

/* ==========================================================
   COOKIE NOTICE – Buttons
   ========================================================== */

#klaro .klaro .cookie-notice .cm-btn {
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 4px;
  font-weight: bold;
  padding: 0.6rem 1rem;
}

/* Ablehnen */
#klaro .klaro .cookie-notice .cn-decline {
  background-color: #6f9ed4 !important;
  color: #ffffff !important;
}

/* Akzeptieren */
#klaro .klaro .cookie-notice .cm-btn-success {
  background-color: #ef7c00 !important;
  color: #ffffff !important;
}

/* Auswahl öffnen */
#klaro .klaro .cookie-notice .cn-learn-more {
  color: #ffffff !important;
  font-weight: bold;
  text-decoration: underline;
}

#klaro .klaro .cookie-notice .cn-ok {
  margin-top: 1.5rem;
}

/* ==========================================================
   COOKIE MODAL – großes Einstellungsfenster
   ========================================================== */

#klaro .klaro .cookie-modal .cm-modal.cm-klaro {
  background-color: #0068b4 !important;
  color: #ffffff !important;
}

/* ==========================================================
   MODAL HEADER
   ========================================================== */

#klaro .klaro .cookie-modal .cm-header {
  border-bottom: 0 !important;
}

#klaro .klaro .cookie-modal .cm-header h1,
#klaro .klaro .cookie-modal .cm-header h1.title {
  color: #ffffff !important;
  font-weight: bold !important;
}

/* Beschreibung im Header */
#klaro .klaro .cookie-modal .cm-header p,
#klaro .klaro .cookie-modal .cm-header span {
  color: #ffffff !important;
}

/* X oben rechts */
#klaro .klaro .cookie-modal .hide svg {
  stroke: #ffffff !important;
}

/* ==========================================================
   MODAL – Texte
   ========================================================== */

#klaro .klaro .cookie-modal p,
#klaro .klaro .cookie-modal span,
#klaro .klaro .cookie-modal .cm-list-title {
  color: #ffffff !important;
}

#klaro .klaro .cookie-modal .cm-list-description {
  color: #ffffff !important;
}

/* Links */
#klaro .klaro .cookie-modal a {
  color: #ffffff !important;
  text-decoration: underline;
}

#klaro .klaro .cookie-modal a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

/* ==========================================================
   ZWECK / DIENSTE
   ========================================================== */

/* Spendenformular */
#klaro .klaro .cookie-modal .cm-purpose {
  color: #ffffff !important;
}

/* FundraisingBox */
#klaro .klaro .cookie-modal .cm-service {
  color: #ffffff !important;
}

/* "1 Dienst" */
#klaro .klaro .cookie-modal .cm-caret,
#klaro .klaro .cookie-modal .cm-caret a {
  color: #ffffff !important;
}

/* "Zweck: Spendenformular" innerhalb des Dienstes ausblenden */
#klaro .klaro .cookie-modal p.purposes {
  display: none !important;
}

/* ==========================================================
   SLIDER
   ========================================================== */

#klaro .klaro .cookie-modal .slider {
  height: auto;
  box-shadow: none !important;
}

/* Hintergrund: deaktiviert */
#klaro .klaro .cookie-modal .cm-list-label .slider {
  background-color: #bbcdeb !important;
}

/* Punkt: deaktiviert = rot */
#klaro .klaro .cookie-modal .cm-list-label .slider::before {
  background-color: #a90f21 !important;
}

/* Hintergrund: aktiviert */
#klaro .klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider {
  background-color: #e7edee !important;
}

/* Punkt: aktiviert = grün */
#klaro
  .klaro
  .cookie-modal
  .cm-list-input:checked
  + .cm-list-label
  .slider::before {
  background-color: #5d8f20 !important;
}

/* Hintergrund: halb aktiviert */
#klaro
  .klaro
  .cookie-modal
  .cm-list-input.half-checked:checked
  + .cm-list-label
  .slider {
  opacity: 1 !important;
  background-color: #e7edee !important;
}

/* Punkt: halb aktiviert = orange */
#klaro
  .klaro
  .cookie-modal
  .cm-list-input.half-checked:checked
  + .cm-list-label
  .slider::before {
  background-color: #ef7c01 !important;
}

/* ==========================================================
   MODAL FOOTER
   ========================================================== */

#klaro .klaro .cookie-modal .cm-footer {
  border-top: 0 !important;
}

#klaro .klaro .cookie-modal .cm-footer-buttons {
  font-weight: bold;
}

/* ==========================================================
   MODAL – Buttons
   ========================================================== */

#klaro .klaro .cookie-modal .cm-btn {
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 4px;
  font-weight: bold;
  padding: 0.6rem 1rem;
}

/* Ich lehne ab */
#klaro .klaro .cookie-modal .cm-btn-decline {
  background-color: #6f9ed4 !important;
  color: #ffffff !important;
}

/* Ausgewählte akzeptieren */
#klaro .klaro .cookie-modal .cm-btn-accept {
  background-color: #6f9ed4 !important;
  color: #ffffff !important;
}

/* Alle akzeptieren */
#klaro .klaro .cookie-modal .cm-btn-accept-all {
  background-color: #ef7c00 !important;
  color: #ffffff !important;
}

/* ==========================================================
   Powered by Klaro
   ========================================================== */

#klaro .klaro .cookie-modal .cm-powered-by a {
  color: #c6c4b3 !important;
  text-decoration: none !important;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 1023px) {
  #klaro .klaro .cookie-notice {
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
  }

  #klaro .klaro .cookie-notice .cn-body {
    padding: 1.25rem !important;
  }
}

@media (max-width: 576px) {
  #klaro .klaro .cookie-notice .cn-buttons {
    width: 100%;
  }

  #klaro .klaro .cookie-notice .cm-btn {
    margin-top: 0.5rem;
  }

  #klaro .klaro .cookie-modal .cm-footer-buttons {
    gap: 0.5rem;
  }
}

/* Cookie-Banner mittig im Bildschirm */
#klaro .klaro .cookie-notice:not(.cookie-modal-notice) {
  position: fixed !important;

  top: 50% !important;
  left: 50% !important;

  right: auto !important;
  bottom: auto !important;

  transform: translate(-50%, -50%) !important;

  width: calc(100% - 2rem) !important;
  max-width: 800px !important;
}

@media (max-width: 576px) {
  #klaro .klaro .cookie-notice:not(.cookie-modal-notice) {
    width: calc(100% - 2rem) !important;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}
