/*
 * Version 1.4 – Kopfbereich und Nachrichtenkarten
 * Behutsame Gestaltung für das vorhandene BabyKids-/Nicdark-Markup.
 * Keine Änderungen an Seitenreihenfolge, Bildquellen oder WPBakery-Inhalten.
 */
:root{
  --sos-teal:#008b95;
  --sos-yellow:#f5c928;
  --sos-red:#df3438;
  --sos-navy:#172b4d;
  --sos-light:#f5f7f7;
}

/* HEADER: keep existing Nicdark header, logo, top links and menu intact. */
.nicdark_site .nicdark_bg_greydark{
  background-color:#263b4e;
}
.nicdark_site .nicdark_navigation_1{
  padding-top:3px;
  padding-bottom:3px;
}
.nicdark_site .nicdark_navigation_1 > ul{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:3px;
}
.nicdark_site .nicdark_navigation_1 > ul > li{
  margin:0 2px;
}
.nicdark_site .nicdark_navigation_1 > ul > li > a{
  display:block;
  padding:12px 14px;
  border-radius:4px;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  transition:background-color .18s ease,color .18s ease;
}
.nicdark_site .nicdark_navigation_1 > ul > li > a:hover,
.nicdark_site .nicdark_navigation_1 > ul > li.current-menu-item > a,
.nicdark_site .nicdark_navigation_1 > ul > li.current_page_item > a{
  color:#fff;
  background:var(--sos-teal);
}
.nicdark_site .nicdark_navigation_1 ul li ul{
  background:#fff;
  border-top:3px solid var(--sos-yellow);
  box-shadow:0 10px 24px rgba(20,38,55,.16);
}
.nicdark_site .nicdark_navigation_1 ul li ul li a{
  color:var(--sos-navy);
  padding:11px 15px;
}
.nicdark_site .nicdark_navigation_1 ul li ul li a:hover{
  color:var(--sos-teal);
  background:#eef8f8;
}
.nicdark_site .nicdark_navigation_1_sidebar_content{
  background:#263b4e;
}
.nicdark_site .nicdark_navigation_1_sidebar a{
  color:#fff;
}
.nicdark_site .nicdark_navigation_1_sidebar a:hover{
  color:var(--sos-yellow);
}

/* Logo image: preserve original asset and proportions. */
.nicdark_site .nicdark_grid_3 > a > img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:118px;
  object-fit:contain;
  margin:0 auto;
}
@media(min-width:768px){
  .nicdark_site .nicdark_grid_3,
  .nicdark_site .nicdark_grid_9{
    padding-top:5px;
    padding-bottom:5px;
  }
}

/* Keep the anniversary/hero banner untouched; only prevent accidental overflow. */
.nicdark_site .nicdark_site,
.nicdark_site .nicdark_section{
  max-width:100%;
}
.nicdark_site img{
  max-width:100%;
}

/* NEWS / POST CARDS: style common WPBakery and Nicdark post-grid wrappers.
   These rules are intentionally limited to card-like elements. */
.nicdark_site .vc_grid-item,
.nicdark_site .vc_gitem,
.nicdark_site .nd_options_masonry_item,
.nicdark_site .nd_options_postgrid_item,
.nicdark_site .nd_options_postgrid article,
.nicdark_site article.post,
.nicdark_site .nicdark_archive1,
.nicdark_site .nicdark_archive2{
  border-radius:6px;
}
.nicdark_site .vc_grid-item .vc_gitem-animated-block,
.nicdark_site .vc_grid-item .vc_gitem-zone,
.nicdark_site .nd_options_masonry_item img,
.nicdark_site .nd_options_postgrid_item img,
.nicdark_site .nicdark_archive1 img,
.nicdark_site .nicdark_archive2 img{
  overflow:hidden;
  border-radius:6px;
}
.nicdark_site .vc_grid-item .vc_gitem-zone,
.nicdark_site .nd_options_masonry_item,
.nicdark_site .nd_options_postgrid_item{
  transition:box-shadow .18s ease,transform .18s ease;
}
.nicdark_site .vc_grid-item:hover .vc_gitem-zone,
.nicdark_site .nd_options_masonry_item:hover,
.nicdark_site .nd_options_postgrid_item:hover{
  box-shadow:0 8px 22px rgba(23,43,77,.09);
}
.nicdark_site .vc_grid-item h2,
.nicdark_site .vc_grid-item h3,
.nicdark_site .nd_options_masonry_item h2,
.nicdark_site .nd_options_masonry_item h3,
.nicdark_site .nd_options_postgrid_item h2,
.nicdark_site .nd_options_postgrid_item h3{
  color:var(--sos-navy);
  line-height:1.3;
  font-weight:800;
}
.nicdark_site .vc_grid-item a,
.nicdark_site .nd_options_masonry_item a,
.nicdark_site .nd_options_postgrid_item a{
  text-decoration:none;
}
.nicdark_site .vc_grid-item a:hover,
.nicdark_site .nd_options_masonry_item a:hover,
.nicdark_site .nd_options_postgrid_item a:hover{
  color:var(--sos-teal);
}
.nicdark_site .vc_grid-item .vc_btn3,
.nicdark_site .nd_options_masonry_item .nd_options_button,
.nicdark_site .nd_options_postgrid_item .nd_options_button{
  border-radius:4px;
  font-weight:700;
}

/* Brand accents for separators and small emphasis elements only. */
.nicdark_site .vc_separator .vc_sep_line{
  border-color:#dce7e8;
}
.nicdark_site .vc_separator .vc_sep_holder:before{
  border-color:var(--sos-teal);
}
.nicdark_site a:focus-visible,
.nicdark_site button:focus-visible{
  outline:3px solid var(--sos-yellow);
  outline-offset:3px;
}

/* Mobile: preserve the existing responsive menu, improve touch targets. */
@media(max-width:767px){
  .nicdark_site .nicdark_navigation_1 > ul{
    display:block;
  }
  .nicdark_site .nicdark_navigation_1 > ul > li > a{
    padding:13px 15px;
  }
  .nicdark_site .nicdark_grid_3 > a > img{
    max-height:95px;
  }
}


/* Aktuelles: gezielte, zurückhaltende Gestaltung für das Display Posts Plugin.
   Die vorhandene Dreispalten-Anordnung und die Bildquellen bleiben unverändert. */
#start_nicdark_framework .display-posts-listing{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:0;
  padding:0;
  list-style:none;
}
#start_nicdark_framework .display-posts-listing .listing-item{
  min-width:0;
  margin:0;
  padding:0 0 12px;
  list-style:none;
  background:#fff;
  border:1px solid #e5ebec;
  border-radius:7px;
  overflow:hidden;
  box-shadow:0 3px 12px rgba(23,43,77,.045);
}
#start_nicdark_framework .display-posts-listing .image,
#start_nicdark_framework .display-posts-listing img{
  display:block;
  width:100%;
}
#start_nicdark_framework .display-posts-listing img{
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:0;
}
#start_nicdark_framework .display-posts-listing .title{
  display:block;
  margin:12px 13px 5px;
  color:var(--sos-ink,#172b4d);
  font-weight:800;
  line-height:1.35;
  text-decoration:none!important;
}
#start_nicdark_framework .display-posts-listing .title:hover{
  color:var(--sos-primary,#008b95);
}
#start_nicdark_framework .display-posts-listing .date,
#start_nicdark_framework .display-posts-listing .category{
  display:inline-block;
  margin:2px 13px 0;
  color:#71808a;
  font-size:12px;
  line-height:1.45;
  font-weight:600;
  text-decoration:none!important;
}
#start_nicdark_framework .display-posts-listing .category a{
  color:#71808a;
  text-decoration:none;
}
#start_nicdark_framework .display-posts-listing .category a:hover{
  color:var(--sos-primary,#008b95);
}
@media(max-width:767px){
  #start_nicdark_framework .display-posts-listing{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
}
@media(max-width:520px){
  #start_nicdark_framework .display-posts-listing{
    grid-template-columns:1fr;
  }
}


/* Talentklassen: preserve the original round logo artwork and its colors.
   Refine only the text panel in a WPBakery column that also contains an image. */
@supports selector(.vc_column_container:has(.wpb_single_image)) {
  #start_nicdark_framework .vc_column_container:has(.wpb_single_image) .wpb_text_column {
    background: #fff !important;
    border: 1px solid #e7ecee;
    border-radius: 9px;
    padding: 18px 18px 16px;
    box-shadow: 0 5px 18px rgba(23, 43, 77, .07);
    min-height: 245px;
    box-sizing: border-box;
  }
}
#start_nicdark_framework .wpb_text_column p {
  line-height: 1.6;
}
#start_nicdark_framework .wpb_text_column h2,
#start_nicdark_framework .wpb_text_column h3,
#start_nicdark_framework .wpb_text_column h4 {
  margin-top: 0;
  margin-bottom: 14px;
}
#start_nicdark_framework .wpb_text_column a.vc_btn3,
#start_nicdark_framework .wpb_text_column .wpb_button,
#start_nicdark_framework .wpb_text_column a.nd_options_button {
  border-radius: 5px !important;
  padding: 11px 19px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
#start_nicdark_framework .wpb_text_column a:not(.vc_btn3):not(.wpb_button):not(.nd_options_button) {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media(max-width:767px) {
  @supports selector(.vc_column_container:has(.wpb_single_image)) {
    #start_nicdark_framework .vc_column_container:has(.wpb_single_image) .wpb_text_column {
      min-height: 0;
      margin-bottom: 18px;
    }
  }
}


/* Version 1.7 – Footer: preserve the existing three-column content and logos,
   improve contrast, spacing and responsive behavior only. */
#nd_options_footer,
.nd_options_footer,
footer#nd_options_footer,
#start_nicdark_framework footer,
#start_nicdark_framework .nd_options_footer,
#start_nicdark_framework .nicdark_section.nd_options_section{
  color:#f5f7f8;
}
#nd_options_footer a,
.nd_options_footer a,
#start_nicdark_framework footer a,
#start_nicdark_framework .nd_options_footer a{
  color:#ffffff;
  text-decoration:none;
  text-underline-offset:3px;
}
#nd_options_footer a:hover,
.nd_options_footer a:hover,
#start_nicdark_framework footer a:hover,
#start_nicdark_framework .nd_options_footer a:hover{
  color:#f5c928;
  text-decoration:underline;
}
#nd_options_footer h1,#nd_options_footer h2,#nd_options_footer h3,
.nd_options_footer h1,.nd_options_footer h2,.nd_options_footer h3,
#start_nicdark_framework footer h1,#start_nicdark_framework footer h2,
#start_nicdark_framework footer h3{
  color:#ffffff;
  font-weight:800;
  letter-spacing:0;
}
#nd_options_footer p,
.nd_options_footer p,
#start_nicdark_framework footer p{
  color:#edf1f2;
  line-height:1.75;
}
#nd_options_footer img,
.nd_options_footer img,
#start_nicdark_framework footer img{
  max-width:100%;
  height:auto;
  object-fit:contain;
  border-radius:2px;
}
#nd_options_footer .vc_row,
.nd_options_footer .vc_row,
#start_nicdark_framework footer .vc_row{
  align-items:flex-start;
}
#nd_options_footer .vc_column-inner,
.nd_options_footer .vc_column-inner,
#start_nicdark_framework footer .vc_column-inner{
  padding-top:12px;
  padding-bottom:12px;
}
#nd_options_footer .vc_single_image-wrapper,
.nd_options_footer .vc_single_image-wrapper,
#start_nicdark_framework footer .vc_single_image-wrapper{
  display:inline-block;
  max-width:100%;
}
#nd_options_footer .vc_single_image-wrapper img,
.nd_options_footer .vc_single_image-wrapper img,
#start_nicdark_framework footer .vc_single_image-wrapper img{
  margin:0 auto;
}
#nd_options_footer .vc_separator .vc_sep_line,
.nd_options_footer .vc_separator .vc_sep_line{
  border-color:rgba(255,255,255,.2);
}
@media(max-width:767px){
  #nd_options_footer .vc_column_container,
  .nd_options_footer .vc_column_container,
  #start_nicdark_framework footer .vc_column_container{
    margin-bottom:22px;
  }
  #nd_options_footer .vc_column-inner,
  .nd_options_footer .vc_column-inner,
  #start_nicdark_framework footer .vc_column-inner{
    padding-left:18px;
    padding-right:18px;
  }
  #nd_options_footer img,
  .nd_options_footer img,
  #start_nicdark_framework footer img{
    max-height:115px;
    width:auto;
  }
  #nd_options_footer,
  .nd_options_footer,
  #start_nicdark_framework footer{
    text-align:left;
  }
}


/* Version 1.8 – Unterseiten und Über-uns-Navigation.
   Layout, Menüeinträge, Texte, Bilder und WPBakery-Struktur bleiben unangetastet. */

/* Dropdown navigation: preserve Nicdark menu placement and dimensions. */
#start_nicdark_framework .nd_options_navigation_2 div li ul,
#start_nicdark_framework .nd_options_navigation_2 div li ul.sub-menu,
#start_nicdark_framework .nd_options_navigation_2 li ul.sub-menu,
#start_nicdark_framework .nicdark_navigation li ul,
#start_nicdark_framework .nicdark_menu li ul{
  background:#fff;
  border:1px solid #e4ebed;
  border-top:3px solid #008b95;
  border-radius:0 0 6px 6px;
  box-shadow:0 10px 26px rgba(23,43,77,.14);
  padding:5px 0;
}
#start_nicdark_framework .nd_options_navigation_2 div li ul li a,
#start_nicdark_framework .nd_options_navigation_2 li ul.sub-menu li a,
#start_nicdark_framework .nicdark_navigation li ul li a,
#start_nicdark_framework .nicdark_menu li ul li a{
  display:block;
  color:#26384b;
  background:#fff;
  padding:11px 17px;
  line-height:1.35;
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid #edf1f2;
  transition:background-color .18s ease,color .18s ease,padding-left .18s ease;
}
#start_nicdark_framework .nd_options_navigation_2 div li ul li:last-child a,
#start_nicdark_framework .nd_options_navigation_2 li ul.sub-menu li:last-child a,
#start_nicdark_framework .nicdark_navigation li ul li:last-child a,
#start_nicdark_framework .nicdark_menu li ul li:last-child a{
  border-bottom:0;
}
#start_nicdark_framework .nd_options_navigation_2 div li ul li a:hover,
#start_nicdark_framework .nd_options_navigation_2 li ul.sub-menu li a:hover,
#start_nicdark_framework .nicdark_navigation li ul li a:hover,
#start_nicdark_framework .nicdark_menu li ul li a:hover{
  color:#006f78;
  background:#eaf7f6;
  padding-left:21px;
}

/* Page content: typography and readable text measure, without changing columns. */
#start_nicdark_framework .vc_column_text p,
#start_nicdark_framework .wpb_text_column p{
  line-height:1.75;
  margin-bottom:16px;
  color:#465360;
}
#start_nicdark_framework .vc_column_text h1,
#start_nicdark_framework .vc_column_text h2,
#start_nicdark_framework .vc_column_text h3,
#start_nicdark_framework .wpb_text_column h1,
#start_nicdark_framework .wpb_text_column h2,
#start_nicdark_framework .wpb_text_column h3{
  color:#172b4d;
  margin-top:0;
  margin-bottom:18px;
}

/* Existing right-hand page navigation buttons (Über Uns sidebar). */
#start_nicdark_framework .vc_column_container .vc_btn3,
#start_nicdark_framework .vc_column_container a.nd_options_button{
  text-decoration:none;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease;
}
#start_nicdark_framework .vc_column_container .vc_btn3.vc_btn3-color-primary,
#start_nicdark_framework .vc_column_container .vc_btn3.vc_btn3-color-blue{
  background:#8fc8b8;
  border-color:#8fc8b8;
  color:#173b3c;
}
#start_nicdark_framework .vc_column_container .vc_btn3.vc_btn3-color-primary:hover,
#start_nicdark_framework .vc_column_container .vc_btn3.vc_btn3-color-blue:hover{
  background:#008b95;
  border-color:#008b95;
  color:#fff;
}

/* Info/notice boxes: keep their existing plugin markup and color semantics,
   add a restrained radius and readable spacing. */
#start_nicdark_framework .wpb_alert,
#start_nicdark_framework .vc_message_box{
  border-radius:5px;
  line-height:1.65;
}
#start_nicdark_framework .vc_message_box.vc_message_box-info{
  border-color:#58b4e8;
}

/* Responsive submenu and sidebar refinements; no content is hidden. */
@media(max-width:767px){
  #start_nicdark_framework .nd_options_navigation_2 div li ul,
  #start_nicdark_framework .nd_options_navigation_2 li ul.sub-menu,
  #start_nicdark_framework .nicdark_navigation li ul,
  #start_nicdark_framework .nicdark_menu li ul{
    box-shadow:none;
    border-radius:4px;
  }
  #start_nicdark_framework .vc_column_text p,
  #start_nicdark_framework .wpb_text_column p{
    line-height:1.7;
  }
}


/* Version 1.9 – behutsame Verfeinerung der Unterseiten.
   Keine Templates, WPBakery-Reihen, Inhalte oder Medien werden ersetzt. */

/* Keep the existing hero image and overlay; refine title legibility only. */
#start_nicdark_framework .nd_options_page_header_title,
#start_nicdark_framework .nd_options_page_header_title h1,
#start_nicdark_framework .nd_options_page_header_title h2{
  text-shadow:0 2px 10px rgba(0,0,0,.22);
}

/* Main content typography: readable line length and consistent rhythm. */
#start_nicdark_framework .wpb_text_column,
#start_nicdark_framework .vc_column_text{
  color:#465360;
}
#start_nicdark_framework .wpb_text_column p,
#start_nicdark_framework .vc_column_text p{
  line-height:1.78;
  margin-bottom:17px;
}
#start_nicdark_framework .wpb_text_column h2,
#start_nicdark_framework .wpb_text_column h3,
#start_nicdark_framework .vc_column_text h2,
#start_nicdark_framework .vc_column_text h3{
  margin-top:24px;
  margin-bottom:13px;
}

/* Existing sidebar navigation: distinguish current page and keep all links. */
#start_nicdark_framework .vc_column_container a.vc_btn3,
#start_nicdark_framework .vc_column_container a.nd_options_button{
  border-radius:5px;
  font-weight:700;
  text-decoration:none;
  box-shadow:none;
}
#start_nicdark_framework .vc_column_container a.vc_btn3:hover,
#start_nicdark_framework .vc_column_container a.nd_options_button:hover{
  background:#008b95;
  border-color:#008b95;
  color:#fff;
}
/* The current/selected sidebar item is already rendered dark by the page builder.
   Preserve that state rather than applying one color to every item. */

/* Information callouts: improve spacing while preserving their original colors. */
#start_nicdark_framework .vc_message_box,
#start_nicdark_framework .wpb_alert{
  border-radius:5px;
  padding-top:15px;
  padding-bottom:15px;
}
#start_nicdark_framework .vc_message_box p,
#start_nicdark_framework .wpb_alert p{
  line-height:1.65;
}

/* Keep the two-column page layout; only improve the gutter and mobile stacking. */
@media(min-width:768px){
  #start_nicdark_framework .vc_row{
    row-gap:0;
  }
}
@media(max-width:767px){
  #start_nicdark_framework .wpb_text_column p,
  #start_nicdark_framework .vc_column_text p{
    line-height:1.7;
  }
  #start_nicdark_framework .vc_column_container a.vc_btn3,
  #start_nicdark_framework .vc_column_container a.nd_options_button{
    min-height:42px;
    display:flex;
    align-items:center;
  }
}


/* Version 2.0 – Schulleitungsprofile.
   Only profile columns on the Schulleitung page are styled. The existing
   WPBakery grid, image sources, copy, email addresses and sidebar remain. */
body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) > .vc_column-inner{
  height:100%;
  box-sizing:border-box;
  padding:26px 22px 22px;
  background:#fff;
  border:1px solid #e6eeee;
  border-top:3px solid #008b95;
  border-radius:8px;
  box-shadow:0 5px 18px rgba(23,43,77,.07);
  transition:box-shadow .2s ease,transform .2s ease;
}
body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img):hover > .vc_column-inner{
  box-shadow:0 9px 24px rgba(23,43,77,.11);
}
body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) .wpb_single_image img,
body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) .vc_single_image-wrapper img{
  width:auto;
  max-width:100%;
  max-height:310px;
  object-fit:contain;
  border-radius:5px;
}
body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) h4{
  color:#172b4d;
  font-size:19px;
  font-weight:800;
  margin-top:18px;
  margin-bottom:9px;
}
body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) p{
  line-height:1.6;
}
body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) a{
  color:#007e87;
  text-decoration:none;
  overflow-wrap:anywhere;
}
body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) a:hover{
  color:#df3438;
  text-decoration:underline;
}
@media(max-width:767px){
  body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) > .vc_column-inner{
    padding:20px 16px;
    margin-bottom:18px;
  }
  body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) .wpb_single_image img,
  body.page-schulleitung #start_nicdark_framework .wpb_column:has(.wpb_wrapper h4):has(.wpb_wrapper img) .vc_single_image-wrapper img{
    max-height:280px;
  }
}


/* Version 2.1 – remove underline only from the primary header navigation.
   Content links on homepages and subpages retain their existing decoration. */
#start_nicdark_framework .nd_options_navigation_2 > div > ul > li > a,
#start_nicdark_framework .nd_options_navigation_2 > ul > li > a,
#start_nicdark_framework .nd_options_navigation_2 li.menu-item > a,
#start_nicdark_framework .nicdark_navigation > ul > li > a,
#start_nicdark_framework .nicdark_menu > ul > li > a,
#start_nicdark_framework header nav > ul > li > a,
#start_nicdark_framework .nd_options_navigation_2 a.nd_options_font_size_15{
  text-decoration:none !important;
}
#start_nicdark_framework .nd_options_navigation_2 > div > ul > li > a:hover,
#start_nicdark_framework .nd_options_navigation_2 > ul > li > a:hover,
#start_nicdark_framework .nd_options_navigation_2 li.menu-item > a:hover,
#start_nicdark_framework .nicdark_navigation > ul > li > a:hover,
#start_nicdark_framework .nicdark_menu > ul > li > a:hover,
#start_nicdark_framework header nav > ul > li > a:hover{
  text-decoration:none !important;
}
/* Do not apply this rule to dropdown links or any page-content links. */


/* Version 2.2 – reduce vertical gaps between download/service buttons.
   Scope: download-list buttons only; preserve button colors and typography. */
#start_nicdark_framework .vc_column_text a.vc_btn3,
#start_nicdark_framework .wpb_text_column a.vc_btn3,
#start_nicdark_framework .vc_column_text .nd_options_button,
#start_nicdark_framework .wpb_text_column .nd_options_button{
  margin-top:5px;
  margin-bottom:5px;
}
#start_nicdark_framework .vc_column_text .vc_btn3-container,
#start_nicdark_framework .wpb_text_column .vc_btn3-container{
  margin-top:5px;
  margin-bottom:5px;
}


/* Version 2.3 – compact top strip "Unsere Onlineplattformen".
   Only the narrow platform strip is styled; the main navigation and page
   content are deliberately excluded. Original platform logos and links stay. */
.nicdark_site .nd_options_top_header,
.nicdark_site .nd_options_top_header_1,
.nicdark_site .nd_options_top_header_2,
.nicdark_site .nd_options_top_header_3,
.nicdark_site .nicdark_top_header,
.nicdark_site .nicdark_top_header_1,
.nicdark_site .nicdark_top_header_2,
.nicdark_site .nicdark_top_header_3{
  background:linear-gradient(105deg,#172b4d 0%,#21485b 58%,#087f86 100%) !important;
  color:#fff;
  padding-top:7px;
  padding-bottom:7px;
  border-bottom:2px solid #f5c928;
}
.nicdark_site .nd_options_top_header *,
.nicdark_site .nd_options_top_header_1 *,
.nicdark_site .nd_options_top_header_2 *,
.nicdark_site .nd_options_top_header_3 *,
.nicdark_site .nicdark_top_header *,
.nicdark_site .nicdark_top_header_1 *,
.nicdark_site .nicdark_top_header_2 *,
.nicdark_site .nicdark_top_header_3 *{
  color:#fff;
}
.nicdark_site .nd_options_top_header a,
.nicdark_site .nd_options_top_header_1 a,
.nicdark_site .nd_options_top_header_2 a,
.nicdark_site .nd_options_top_header_3 a,
.nicdark_site .nicdark_top_header a,
.nicdark_site .nicdark_top_header_1 a,
.nicdark_site .nicdark_top_header_2 a,
.nicdark_site .nicdark_top_header_3 a{
  text-decoration:none;
  opacity:.96;
  transition:opacity .18s ease,transform .18s ease;
}
.nicdark_site .nd_options_top_header a:hover,
.nicdark_site .nd_options_top_header_1 a:hover,
.nicdark_site .nd_options_top_header_2 a:hover,
.nicdark_site .nd_options_top_header_3 a:hover,
.nicdark_site .nicdark_top_header a:hover,
.nicdark_site .nicdark_top_header_1 a:hover,
.nicdark_site .nicdark_top_header_2 a:hover,
.nicdark_site .nicdark_top_header_3 a:hover{
  opacity:1;
}
.nicdark_site .nd_options_top_header img,
.nicdark_site .nd_options_top_header_1 img,
.nicdark_site .nd_options_top_header_2 img,
.nicdark_site .nd_options_top_header_3 img,
.nicdark_site .nicdark_top_header img,
.nicdark_site .nicdark_top_header_1 img,
.nicdark_site .nicdark_top_header_2 img,
.nicdark_site .nicdark_top_header_3 img{
  display:inline-block;
  width:auto;
  max-width:150px;
  max-height:34px;
  object-fit:contain;
  padding:4px 8px;
  margin:2px 0 2px 9px;
  background:#fff;
  border-radius:5px;
  box-shadow:0 2px 8px rgba(0,0,0,.13);
}
@media(max-width:767px){
  .nicdark_site .nd_options_top_header,
  .nicdark_site .nd_options_top_header_1,
  .nicdark_site .nd_options_top_header_2,
  .nicdark_site .nd_options_top_header_3,
  .nicdark_site .nicdark_top_header,
  .nicdark_site .nicdark_top_header_1,
  .nicdark_site .nicdark_top_header_2,
  .nicdark_site .nicdark_top_header_3{
    padding:6px 10px;
  }
  .nicdark_site .nd_options_top_header img,
  .nicdark_site .nd_options_top_header_1 img,
  .nicdark_site .nd_options_top_header_2 img,
  .nicdark_site .nd_options_top_header_3 img,
  .nicdark_site .nicdark_top_header img,
  .nicdark_site .nicdark_top_header_1 img,
  .nicdark_site .nicdark_top_header_2 img,
  .nicdark_site .nicdark_top_header_3 img{
    max-width:112px;
    max-height:29px;
    margin-left:5px;
  }
}


/* Version 2.4 – archive page redesigned to match the homepage news cards.
   Targets archive/blog listing views only. Original post content, image URLs,
   dates, categories, links and pagination remain controlled by WordPress. */
body.archive #start_nicdark_framework .nicdark_archive1,
body.blog #start_nicdark_framework .nicdark_archive1,
body.archive #start_nicdark_framework .nicdark_archive2,
body.blog #start_nicdark_framework .nicdark_archive2,
body.archive #start_nicdark_framework .vc_grid-item,
body.blog #start_nicdark_framework .vc_grid-item,
body.archive #start_nicdark_framework .nd_options_masonry_item,
body.blog #start_nicdark_framework .nd_options_masonry_item,
body.archive #start_nicdark_framework .nd_options_postgrid_item,
body.blog #start_nicdark_framework .nd_options_postgrid_item{
  background:#fff;
  border:1px solid #e7eeee;
  border-radius:7px;
  overflow:hidden;
  box-shadow:0 4px 15px rgba(23,43,77,.07);
  margin-bottom:24px;
  transition:transform .2s ease,box-shadow .2s ease;
}
body.archive #start_nicdark_framework .nicdark_archive1:hover,
body.blog #start_nicdark_framework .nicdark_archive1:hover,
body.archive #start_nicdark_framework .nicdark_archive2:hover,
body.blog #start_nicdark_framework .nicdark_archive2:hover,
body.archive #start_nicdark_framework .vc_grid-item:hover,
body.blog #start_nicdark_framework .vc_grid-item:hover,
body.archive #start_nicdark_framework .nd_options_masonry_item:hover,
body.blog #start_nicdark_framework .nd_options_masonry_item:hover,
body.archive #start_nicdark_framework .nd_options_postgrid_item:hover,
body.blog #start_nicdark_framework .nd_options_postgrid_item:hover{
  transform:translateY(-3px);
  box-shadow:0 9px 22px rgba(23,43,77,.12);
}

/* Remove the oversized image-overlay treatment and give archive thumbnails
   a consistent landscape crop. */
body.archive #start_nicdark_framework .nicdark_archive1 img,
body.blog #start_nicdark_framework .nicdark_archive1 img,
body.archive #start_nicdark_framework .nicdark_archive2 img,
body.blog #start_nicdark_framework .nicdark_archive2 img,
body.archive #start_nicdark_framework .vc_grid-item .vc_gitem-zone-img,
body.blog #start_nicdark_framework .vc_grid-item .vc_gitem-zone-img,
body.archive #start_nicdark_framework .nd_options_masonry_item img,
body.blog #start_nicdark_framework .nd_options_masonry_item img,
body.archive #start_nicdark_framework .nd_options_postgrid_item img,
body.blog #start_nicdark_framework .nd_options_postgrid_item img{
  display:block;
  width:100%;
  height:210px;
  max-height:210px;
  object-fit:cover;
  border-radius:0;
}

/* Card text area: title, date/category metadata and action sit below image. */
body.archive #start_nicdark_framework .nicdark_archive1 .nicdark_archive1_content,
body.blog #start_nicdark_framework .nicdark_archive1 .nicdark_archive1_content,
body.archive #start_nicdark_framework .nicdark_archive2 .nicdark_archive2_content,
body.blog #start_nicdark_framework .nicdark_archive2 .nicdark_archive2_content,
body.archive #start_nicdark_framework .vc_grid-item .vc_gitem-zone,
body.blog #start_nicdark_framework .vc_grid-item .vc_gitem-zone,
body.archive #start_nicdark_framework .nd_options_masonry_item .nd_options_padding_20,
body.blog #start_nicdark_framework .nd_options_masonry_item .nd_options_padding_20,
body.archive #start_nicdark_framework .nd_options_postgrid_item .nd_options_padding_20,
body.blog #start_nicdark_framework .nd_options_postgrid_item .nd_options_padding_20{
  position:static;
  background:#fff !important;
  padding:17px 18px 19px;
  color:#3d4652;
}
body.archive #start_nicdark_framework .nicdark_archive1 h2,
body.blog #start_nicdark_framework .nicdark_archive1 h2,
body.archive #start_nicdark_framework .nicdark_archive2 h2,
body.blog #start_nicdark_framework .nicdark_archive2 h2,
body.archive #start_nicdark_framework .vc_grid-item h2,
body.blog #start_nicdark_framework .vc_grid-item h2,
body.archive #start_nicdark_framework .vc_grid-item h3,
body.blog #start_nicdark_framework .vc_grid-item h3,
body.archive #start_nicdark_framework .nd_options_masonry_item h2,
body.blog #start_nicdark_framework .nd_options_masonry_item h2,
body.archive #start_nicdark_framework .nd_options_postgrid_item h2,
body.blog #start_nicdark_framework .nd_options_postgrid_item h2{
  color:#172b4d;
  font-size:18px;
  line-height:1.35;
  font-weight:800;
  margin:0 0 11px;
}
body.archive #start_nicdark_framework .nicdark_archive1 p,
body.blog #start_nicdark_framework .nicdark_archive1 p,
body.archive #start_nicdark_framework .nicdark_archive2 p,
body.blog #start_nicdark_framework .nicdark_archive2 p,
body.archive #start_nicdark_framework .vc_grid-item p,
body.blog #start_nicdark_framework .vc_grid-item p,
body.archive #start_nicdark_framework .nd_options_masonry_item p,
body.blog #start_nicdark_framework .nd_options_masonry_item p,
body.archive #start_nicdark_framework .nd_options_postgrid_item p,
body.blog #start_nicdark_framework .nd_options_postgrid_item p{
  color:#46515e;
  font-size:14px;
  line-height:1.55;
}

/* Date/category metadata uses the same restrained teal accent as the homepage. */
body.archive #start_nicdark_framework .nicdark_archive1 .nicdark_font_size_12,
body.blog #start_nicdark_framework .nicdark_archive1 .nicdark_font_size_12,
body.archive #start_nicdark_framework .nicdark_archive2 .nicdark_font_size_12,
body.blog #start_nicdark_framework .nicdark_archive2 .nicdark_font_size_12,
body.archive #start_nicdark_framework .vc_grid-item .vc_gitem-post-data-source-post_date,
body.blog #start_nicdark_framework .vc_grid-item .vc_gitem-post-data-source-post_date,
body.archive #start_nicdark_framework .vc_grid-item .vc_gitem-post-data-source-post_categories,
body.blog #start_nicdark_framework .vc_grid-item .vc_gitem-post-data-source-post_categories{
  color:#008b95;
  font-size:12px;
  font-weight:700;
}

/* Match the homepage's mint/turquoise call-to-action treatment. */
body.archive #start_nicdark_framework .nicdark_archive1 a.nicdark_btn,
body.blog #start_nicdark_framework .nicdark_archive1 a.nicdark_btn,
body.archive #start_nicdark_framework .nicdark_archive2 a.nicdark_btn,
body.blog #start_nicdark_framework .nicdark_archive2 a.nicdark_btn,
body.archive #start_nicdark_framework .vc_grid-item .vc_btn3,
body.blog #start_nicdark_framework .vc_grid-item .vc_btn3,
body.archive #start_nicdark_framework .nd_options_masonry_item .nd_options_button,
body.blog #start_nicdark_framework .nd_options_masonry_item .nd_options_button,
body.archive #start_nicdark_framework .nd_options_postgrid_item .nd_options_button,
body.blog #start_nicdark_framework .nd_options_postgrid_item .nd_options_button{
  display:inline-block;
  background:#8fc7b8 !important;
  color:#173b43 !important;
  border:0 !important;
  border-radius:4px;
  padding:11px 18px;
  font-size:14px;
  font-weight:700;
  text-decoration:none !important;
  box-shadow:none;
}
body.archive #start_nicdark_framework .nicdark_archive1 a.nicdark_btn:hover,
body.blog #start_nicdark_framework .nicdark_archive1 a.nicdark_btn:hover,
body.archive #start_nicdark_framework .nicdark_archive2 a.nicdark_btn:hover,
body.blog #start_nicdark_framework .nicdark_archive2 a.nicdark_btn:hover,
body.archive #start_nicdark_framework .vc_grid-item .vc_btn3:hover,
body.blog #start_nicdark_framework .vc_grid-item .vc_btn3:hover,
body.archive #start_nicdark_framework .nd_options_masonry_item .nd_options_button:hover,
body.blog #start_nicdark_framework .nd_options_masonry_item .nd_options_button:hover,
body.archive #start_nicdark_framework .nd_options_postgrid_item .nd_options_button:hover,
body.blog #start_nicdark_framework .nd_options_postgrid_item .nd_options_button:hover{
  background:#172b4d !important;
  color:#fff !important;
}

/* Responsive listing: three cards on desktop, two on tablet, one on mobile.
   Applies only to common post-list containers, not the homepage layout. */
@media(min-width:992px){
  body.archive #start_nicdark_framework .nicdark_masonry_container,
  body.blog #start_nicdark_framework .nicdark_masonry_container,
  body.archive #start_nicdark_framework .nd_options_masonry_container,
  body.blog #start_nicdark_framework .nd_options_masonry_container{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
  }
}
@media(min-width:768px) and (max-width:991px){
  body.archive #start_nicdark_framework .nicdark_masonry_container,
  body.blog #start_nicdark_framework .nicdark_masonry_container,
  body.archive #start_nicdark_framework .nd_options_masonry_container,
  body.blog #start_nicdark_framework .nd_options_masonry_container{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
  }
}
@media(max-width:767px){
  body.archive #start_nicdark_framework .nicdark_archive1 img,
  body.blog #start_nicdark_framework .nicdark_archive1 img,
  body.archive #start_nicdark_framework .nicdark_archive2 img,
  body.blog #start_nicdark_framework .nicdark_archive2 img,
  body.archive #start_nicdark_framework .vc_grid-item .vc_gitem-zone-img,
  body.blog #start_nicdark_framework .vc_grid-item .vc_gitem-zone-img,
  body.archive #start_nicdark_framework .nd_options_masonry_item img,
  body.blog #start_nicdark_framework .nd_options_masonry_item img,
  body.archive #start_nicdark_framework .nd_options_postgrid_item img,
  body.blog #start_nicdark_framework .nd_options_postgrid_item img{
    height:195px;
    max-height:195px;
  }
}
