/* ================================
   Global: Typo, Hintergrund, Umbruch
   ================================ */

/* Nur ganze Wörter umbrechen, globale Schrift/Background */
html, body {
  word-break: normal;
  overflow-wrap: normal; /* früher: word-wrap */
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  white-space: normal;
  color: #fff !important;
  background-color: #011544 !important;
}

em { color:#000 !important; }

/* Kursiver Text in Blog- und Artikelansicht weiß */
.article-list :is(em,i),
.article-details :is(em,i),
.article-list a :is(em,i),
.article-details a :is(em,i),
.article-list :is(h1,h2,h3,h4,h5,h6) :is(em,i),
.article-details :is(h1,h2,h3,h4,h5,h6) :is(em,i) {
  color: #fff !important;
}

/* Sicherstellen, dass Wrapper nicht grau übermalen (mobile inkl.) */
#sp-main-body,
.body-innerwrapper,
.container, .container-fluid,
.container-component,
.site, .site-grid, .wrapper, .page, .main, .content,
.grid-child, .grid-container {
  background: transparent !important;
}

/* ======================
   Badges & Offcanvas
   ====================== */

.article-list .article .featured-article-badge,
.article-details .featured-article-badge {
  display: none;
  visibility: hidden;
}

.offcanvas-active .close-offcanvas .burger-icon > span {
  background: #fff !important;
}

/* ======================
   Header / Navigation
   ====================== */

.header-custom-button-margin { margin: 0; }

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span { font-size: 18px !important; }

.sp-megamenu-parent { margin: 0 35px !important; }
.sp-megamenu-parent > li { padding: 0 7px !important; }

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item span:not(.sp-menu-badge) {
  font-size: 16px !important;
  padding: 10px 0 !important;
}

.header-custom-button {
  background-color: transparent;
  border: 1px solid #3B3B3B;
  padding: 7px 25px;
  font-family: Instrument Sans;
  font-size: 18px;
  font-weight: 500;
  display: inline;
  border-radius: 0;
  transition: .3s;
}
.header-custom-button a { color: #fff; }
.header-custom-button:hover { background-color: #fff; }
.header-custom-button:hover a { color: #000; }

.qx-btn { transition: .3s !important; }
.qx-card { padding: 0 !important; }

/* ===========
   Blog-Ansicht
   =========== */

.page-header h1 { font-weight: 700; }
.page-header { padding-bottom: 100px !important; }

/* Intro-Bilder bündig/proportional */
.article-intro-image img {
  display: block;
  width: 100% !important;
  height: auto;
  object-fit: cover;
}

/* Karten-Container */
.article-list .article {
  width: 100%;
  padding: 0;                    /* Bild bündig */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  border: none;
  border-radius: 0;
  background-color: #063a77;
}

/* Abstand unter dem Bildblock */
.article-list .article .article-intro-image,
.article-list .article .article-featured-video,
.article-list .article .article-featured-audio,
.article-list .article .article-feature-gallery {
  margin: 0 0 25px 0;
  border-radius: 10px;           /* falls Bilder abgerundet gewünscht */
  border-bottom: 0;
  overflow: hidden;
}

/* Text-Padding: 20px (links/rechts/unten) */
.article-list .article > *:not(figure):not(.item-image):not(.image):not(.intro-image):not(a:first-child):not(img):not(.readmore):not(.btn):not(.button) {
  padding: 0 20px 20px;
}

/* Erster Textblock direkt unter dem Bild */
.article-list .article > a:first-child + *,
.article-list .article > figure:first-child + *,
.article-list .article > .item-image:first-child + *,
.article-list .article > .image:first-child + *,
.article-list .article > .intro-image:first-child + *,
.article-list .article > img:first-child + * {
  padding-top: 20px;
  margin-top: 0;
}

/* Kein zusätzlicher Top-Margin beim ersten Textelement */
.article-list .article > :not(figure):not(.item-image):not(.image):not(.intro-image):not(a:first-child):not(img):first-child {
  margin-top: 0;
}

/* Readmore-Button */
.article-list .article .readmore,
.article-list .article a.readmore,
.article-list .article .btn.readmore,
.article-list .article .button.readmore {
  margin-top: auto;              /* nach unten drücken */
  align-self: flex-end;          /* rechts ausrichten */
  margin: 0 20px 20px;           /* Abstand zum Kartenrand */
  display: inline-block;
  background: #000;
  color: #fff !important;
  text-decoration: none;
  padding: 7px 15px;             /* 7px vertikal, 15px horizontal */
  border: 0;
  border-radius: 0;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.article-list .article .readmore:hover,
.article-list .article .readmore:focus,
.article-list .article a.readmore:hover,
.article-list .article a.readmore:focus,
.article-list .article .btn.readmore:hover,
.article-list .article .btn.readmore:focus,
.article-list .article .button.readmore:hover,
.article-list .article .button.readmore:focus {
  background: #0067d0;
  color: #fff !important;
  font-weight: 700;
  outline: none;
}
/* Markup-Variante p.readmore > a */
.article-list .article .readmore > a {
  color: #fff !important;
  text-decoration: none;
  padding: 0;
  display: inline-block;
}

/* Typo-Farben Blog + Artikelansicht (weiß) */
.article-list, .article-details { color: #fff !important; }
.article-list h1, .article-list h2, .article-list h3, .article-list h4, .article-list h5, .article-list h6,
.article-details h1, .article-details h2, .article-details h3, .article-details h4, .article-details h5, .article-details h6 {
  color: #fff !important;
}
/* Verlinkte H2 weiß, bei Hover #0067d0 */
.article-list h2 a, .article-details h2 a { color: #fff !important; text-decoration: none; }
.article-list h2 a:hover, .article-list h2 a:focus,
.article-details h2 a:hover, .article-details h2 a:focus { color: #0067d0 !important; }

/* Hover-Zoom Effekt auf Kartenbildern (optional) */
.article:hover .article-intro-image img {
  transform: scale(1.02);
  transition: transform .3s ease-out;
}

/* Artikel-Meta/Info – auf weiß angleichen (dein Wunsch: alles weiß) */
.article-info { padding: 10px 0 0; margin-bottom: 10px; }
.article-info > span { color: #fff; }

/* ==================
   Artikel-Detailseite
   ================== */

.article-details {
  padding: 50px 30px 30px;
  background-color: #063a77;
}

/* Vollständiges Beitragsbild rechts + responsive Breiten */
.article-details .article-full-image {
  float: right;
  width: 40%;
  padding-left: 40px;   /* Abstand zum Text */
  padding-bottom: 40px; /* Abstand nach unten */
}
/* Tablet */
@media (max-width: 1024px) {
  .article-details .article-full-image { width: 50%; }
}
/* Smartphone */
@media (max-width: 640px) {
  .article-details .article-full-image {
    width: 100%;
    float: none;
    padding-left: 0;
  }
}

/* ==================
   Module / Sidebar / Pagination
   ================== */

#sp-left .sp-module, #sp-right .sp-module {
  border: 1px solid rgba(14,15,17,.08);
  border-radius: 8px;
  margin-top: 40px;
}

#sp-main-body {
  padding: 85px 0 100px;
  background-color: #011544;
}
#sp-right { margin-top: 217px; }

#sp-left .sp-module .sp-module-title,
#sp-right .sp-module .sp-module-title:after {
  position: absolute;
  background: #AFF42A;
  height: 1px; width: 40px;
  content: '';
  bottom: 0; left: 0;
}
#sp-left .sp-module .sp-module-title,
#sp-right .sp-module .sp-module-title {
  padding-bottom: 8px;
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
  position: relative;
  border: none !important;
  color: #0e0f11; /* Modul-Titel: wenn auch weiß gewünscht -> auf #fff !important setzen */
}

.awesomplete { width: 100%; position: relative; }
.awesomplete input {
  padding: 15px 20px;
  border: 1px solid rgba(14,15,17,.08);
  border-radius: 8px;
  background: transparent;
}
.awesomplete input::placeholder { opacity: .5; }

button.btn.btn-primary {
  position: absolute; right: 10px; top: 0; bottom: 0;
  background: unset; color: rgba(14,15,17,.7);
  opacity: .7; border: 0;
}

#sp-left .sp-module ul, #sp-right .sp-module ul { margin-top: -7px; }
.list-inline { margin-bottom: 10px; }

.mod-articles-date.list-inline-item {
  /* auf weiß angleichen, falls gewünscht: color:#fff; */
  color: #525355;
  font-size: 15px; line-height: 15px; font-weight: 400;
  display: flex; padding-top: 5px;
}
.mod-articles-item-content { font-family: 'Instrument Sans'; }
.mod-articles-title { font-size: 18px; font-weight: 400; line-height: 1.4; }
.mod-articles-title a { color: #0e0f11; } /* auf weiß umstellen, wenn nötig */

.mod-articles-item {
  position: relative;
  height: 100px;
  padding: 0 0 0 120px;
  justify-content: center;
  margin: 10px 0;
}
.mod-articles-item .article-intro-image {
  position: absolute; top: 0; left: 0;
  width: 100px; height: 100px;
  border-radius: 8px; overflow: hidden;
}
.mod-articles-item .article-intro-image img {
  height: 100%; width: 100%; object-fit: cover; display: block;
}

.sp-module-content { overflow: hidden; }

#sp-right .sp-module .tagscloud .tag-name {
  line-height: 28px;
  border: 1px solid rgba(14,15,17,.08);
  border-radius: 30px;
  padding: 2px 13px;
  background-color: transparent;
  color: #525355;
  text-transform: lowercase;
}
#sp-right .sp-module .tagscloud .tag-name:hover {
  background-color: #0067d0;
  color: #000;
  border-color: #0067d0;
}

.pagination-wrapper .pagination { margin-bottom: 0 !important; }
.pagination-counter { display: none; }

.pagination > li > a {
  width: 50px; height: 50px;
  font-weight: 600; font-size: 18px;
}
.page-link {
  padding: 10px 17px;
  margin: 0 10px;
  border-radius: 10px !important;
  border: 1px solid #555;
}
.pagination > .active > span { 
  background-color: #0067d0; 
  border-color: #0067d0; 
  color: #000; 
  font-weight: 600; 
}
.pagination > .active > span:hover {
  border-color: rgba(14,15,17,.1);
  background: rgba(14,15,17,.1);
}

/* Pagenavigation (vor/Zurück) */
.pagenavigation {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-top: 85px;
  display: none;
}
.pagenavigation .pagination a {
  padding: 5px 15px;
  background: transparent;
  color: #525355;
  font-size: 18px;
  border: none;
  text-transform: uppercase;
  font-weight: 500;
}

.icon-chevron-left, .icon-chevron-right {
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  width: 45px; height: 45px; line-height: 45px;
}
.icon-chevron-left { margin-right: 10px; }
.icon-chevron-right { margin-left: 10px; }
.pagenavigation .pagination a:hover .icon-chevron-left,
.pagenavigation .pagination a:hover .icon-chevron-right {
  background: #0067d0; transition: .3s;
}

/* Karten-Textmetadaten */
.article-header h2 { margin-bottom: 13px; }
.article-introtext p { margin-bottom: 15px; }

/* Einträge kombiniert (statt doppelter Blöcke) */
.article-body { display: flex; flex-direction: column; }

/* ===========
   Mobile Tweaks
   =========== */

@media (max-width: 500px) {
  section#sp-main-body { padding-top: 20px; }
  .article-details { padding: 20px; margin: 0; }
}
