/*--------------------------------------------------------
   FONTS
--------------------------------------------------------*/
@font-face {
    font-family: 'SansSource3';
    src: url('../asset/fonts/SourceSans3-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SansSource3';
    src: url('../asset/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

/*--------------------------------------------------------
   BODY
--------------------------------------------------------*/
body {
    font-family: 'SansSource3', sans-serif;
    color: #032138;
}


/*--------------------------------------------------------
   HEADLINES
--------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'SansSource3', sans-serif;
    font-weight: normal;
    color: #E65640;
    font-size: 60px;
    line-height: 1.1;
}

/*--------------------------------------------------------
   ALLGEMEINE LINKS
--------------------------------------------------------*/
a {
    text-decoration: none;
    color: #032138;
    transition: text-decoration 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #032138;
}

/*--------------------------------------------------------
   RESOURCE LINKS
--------------------------------------------------------*/
.resources.resource-grid .item.resource .resource__meta > a {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px !important;
    margin-left: -23px;
    margin-top: -20px;
    text-decoration: none;
    color: #032138;
    transition: text-decoration 0.2s ease;
}

.resources.resource-grid .item.resource .resource__meta > a:hover {
    text-decoration: underline;
    color: #032138;
}

/*--------------------------------------------------------
   BESCHREIBUNG
--------------------------------------------------------*/
.resources.resource-grid .item.resource .resource__meta .description {
    font-size: 15px;
    color: #555;
    line-height: 1.2;
    margin-left: -23px;
    margin-top: -5px !important; /* Text weiter unten für alle User */
}

/*--------------------------------------------------------
   ABSTAND BZW. BOXEN
--------------------------------------------------------*/
.resources.resource-grid .item.resource .resource__thumbnail {
    margin-bottom: 2px !important;
}

body .resource,
body .resource *,
body .item,
body .item * {
    box-shadow: none !important;
}

/* Box linksbündig */
.resources.resource-grid .item.resource {
    text-align: left;
}

/* Footer */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.wrap {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto !important;
}



/*--------------------------------------------------------*/
/* MOBILE-Styles nur für die Home-Seite */
@media (max-width: 768px) {

  /* Container als Column-Layout für Bild über Text */
  body.site-page-home .blocks-inner {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
  }

  /* Bild über Text, zentriert mit Padding */
  body.site-page-home .block.block-asset {
      order: 1 !important;
      width: 100% !important;
      margin: 0 auto !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      display: block !important;
      text-align: center !important;
  }

  body.site-page-home .block.block-asset img {
      width: 90% !important;
      max-width: 90% !important;
      height: auto !important;
      display: block !important;
      margin: 0 auto !important;
  }

  /* Textblock nach dem Bild */
  body.site-page-home .block.block-html {
      order: 2 !important;
      width: 100%;
  }

  /* Headline mobil */
  body.site-page-home .home-headline {
      font-size: clamp(30px, 8vw, 50px) !important;
      line-height: 1.2 !important;
      text-align: left !important;
      margin: -30px 0 0 0 !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
  }

  /* Textblock mobil */
  body.site-page-home .home-textblock {
      font-size: 18px !important;
      line-height: 1.5 !important;
      text-align: left !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      margin-top: 10px !important;
      margin-bottom: 20px !important;
  }

  /* Button im Textblock mobil */
  body.site-page-home .home-textblock a {
      font-size: 16px !important;
      padding: 14px 18px !important;
      display: inline-block;
      margin-top: 15px !important;
  }

  /* Resource-Text weiter unten mobil */
  body.site-page-home .resources.resource-grid .item.resource .resource__meta {
      margin-top: 20px !important;
  }
}
/*_____________________________________________________________________________*/

/* fuck*/
/* LOGOS links & rechts über volle Breite */
.logo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100vw;              /* volle Bildschirmbreite */
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* aus Container rausziehen */
}

/* optional: etwas Abstand zum Rand */
.logo-bar img:first-child {
    margin-left: 15px;
}

.logo-bar img:last-child {
    margin-right: 15px;
}
/* größere Screens */
@media (min-width: 1200px) {
    .logo-bar {
        padding-left: 1200px;
        padding-right: 1200px;
    }
}



.main-footer__col3 {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    overflow: visible !important;
}

.logo-bar {
    display: flex !important;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap !important;
}

.logo-bar img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: none !important;
    height: 40px !important;
    width: auto !important;
}

/* "------------------------------Filtern nach-------------------------------------" */
/* =========================================
   FACETED BROWSE – DESKTOP
   ========================================= */

/* Die einzelnen Ergebnisse als 3-Spalten-Grid */
.faceted-browse-page .resource-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 40px 25px !important;
}

/* Einzelnes Ergebnis */
.faceted-browse-page .facet-item-contnr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Bildbereich */
.faceted-browse-page .facet-img {
    width: 100% !important;
    text-align: left !important;
}

.faceted-browse-page .facet-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    margin: 0 !important;
}

/* Text UNTER dem Bild */
.faceted-browse-page .facet-txt {
    width: 100% !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Kein Einrücken des Textes */
.faceted-browse-page .resource-list span {
    margin-left: 0 !important;
}


/* =========================================
   MOBILE – 1 BILD PRO ZEILE
   ========================================= */

@media (max-width: 768px) {

    .faceted-browse-page .resource-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .faceted-browse-page .facet-item-contnr {
        width: 100% !important;
    }

    .faceted-browse-page .facet-img img {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
    }

    .faceted-browse-page .facet-txt {
        width: 100% !important;
        text-align: left !important;
    }
}


/* =========================================
   FILTERN NACH
   ========================================= */

.faceted-browse-page .facets-container legend {
    font-family: 'SansSource3', sans-serif !important;
}


/* =========================================
   TITEL
   ========================================= */

.faceted-browse-page .facet-txt {
    width: 100% !important;
    margin: 5px 0 0 0 !important;
    padding: 1 !important;
    text-align: left !important;
    font-weight: bold !important;
}

.faceted-browse-page .facet-txt *,
.faceted-browse-page .facet-txt a,
.faceted-browse-page .facet-txt span {
    font-weight: bold !important;
}


/* Gleiche linke Kante für Bild und Text */
.faceted-browse-page .facet-img,
.faceted-browse-page .facet-txt {
    margin-left: 0 !important;
    padding-left: 0 !important;
}


/* =========================================
   ABSTÄNDE INNERHALB DES TITELS
   ========================================= */

.faceted-browse-page .facet-txt > * {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
}

.faceted-browse-page .facet-txt a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.faceted-browse-page .facet-txt span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.faceted-browse-page .facet-txt p {
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}


/* =========================================
   FOTOGRAFEN-INFORMATION
   ========================================= */

.faceted-browse-page .facet-txt {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.faceted-browse-page .facet-txt > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.faceted-browse-page .resource .description {
    margin-top: 3px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
}


/* Kein zusätzlicher Abstand zwischen Titel und Fotograf */
.faceted-browse-page .resource {
    margin-bottom: 0 !important;
}

.faceted-browse-page .resource .description {
    margin-top: 3px !important;
}


/* =========================================
   TITEL + FOTOGRAF ALS VERTIKALE EINHEIT
   ========================================= */

/* Jedes Ergebnis als vertikale Einheit */
.faceted-browse-page .resource-list > .item.resource {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
}


/* Bild + Titel */
.faceted-browse-page .resource-list > .item.resource > .resource-link {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Titel */
.faceted-browse-page .resource-list > .item.resource .facet-txt {
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    font-weight: bold !important;
}


/* Fotograf */
.faceted-browse-page .resource-list > .item.resource > .description {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    font-weight: normal !important;
}