/* HFW Villach - Template hfw: Korrekturen, die NACH der Design-Schicht (custom.css, hfw-fresh-*, hfw-mobile.css) greifen muessen. */


/* Einsatz-Detail (Handy): Hauptfoto hatte 40px linken Rand und ragte rechts aus der Seite
   (Fehler auch im alten Template, dort durch overflow-x versteckt) */
@media (max-width: 767.98px) {
  img.eiko_detail_image_2 { margin: 0 0 16px !important; width: 100% !important; max-width: 100% !important; }
}

/* =====================================================================================
   Optik-Review 23.10.2026 (Template seit 14:30 live)
   ===================================================================================== */

/* [2] Font Awesome 4 fuer alle .fa-Symbole erzwingen. myShariff (shariff.custom.css) setzt
   .fa auf "Font Awesome 5 Free" -> FA4-Symbole (Footer Facebook/Instagram usw.) waren leer.
   Shariff selbst nutzt .fab/.fas/.far und bleibt unberuehrt. */
.fa:not(.fab):not(.fas):not(.far):not(.fal) { font-family: FontAwesome !important; font-weight: normal !important; }

/* [4] Seitenzahlen ueberall wie bei "Berichte aus der Wache": runde Knoepfe, aktiv rot, umbrechend */
ul.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 24px !important; padding: 0; list-style: none; }
ul.pagination > li { margin: 0; }
ul.pagination .page-link {
  min-width: 40px; height: 40px; padding: 0 12px !important; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #d5dadd !important; border-radius: 999px !important; background: #fff !important; color: #2b3338 !important;
  font-size: 14px; font-weight: 600; line-height: 1; margin: 0 !important; box-shadow: none !important; transition: background .15s, color .15s, border-color .15s;
}
ul.pagination a.page-link:hover, ul.pagination a.page-link:focus-visible { border-color: #c00d0e !important; color: #c00d0e !important; }
ul.pagination .active > .page-link, ul.pagination .page-link[aria-current] { background: #c00d0e !important; border-color: #c00d0e !important; color: #fff !important; }
ul.pagination .disabled > .page-link:not([aria-current]) { color: #b9c0c4 !important; background: #f5f6f7 !important; }
.pagination__wrapper { display: flex; justify-content: center; }
@media (max-width: 767.98px) { ul.pagination { gap: 6px 5px; } ul.pagination .page-link { min-width: 44px; height: 44px !important; padding: 0 10px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; text-align: center; } }

/* [5] Fussbereich bei kurzen Seiten immer unten (kein weisser Streifen) */
.body-wrapper { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.body-innerwrapper { flex: 1 0 auto; display: flex; flex-direction: column; }
#sp-main-body { flex: 1 0 auto; }

/* [6] Seitenueberschriften einheitlich: 34px/700 (Handy 26px) */
body.view-article #sp-component article .entry-header h2,
#sp-component .page-header h1,
h1.eiko_headline_2 { font-size: 34px !important; line-height: 1.2 !important; font-weight: 700 !important; color: #1f272c; }
@media (max-width: 767.98px) {
  body.view-article #sp-component article .entry-header h2,
  #sp-component .page-header h1,
  h1.eiko_headline_2 { font-size: 26px !important; }
}

/* [8] Social-Media-Wall-Seite: leeren Beitragsbereich ausblenden (Wand kommt aus Modul) */
.blog-featured:not(:has(article, .item, .items-leading > *, .items-row)) { display: none; }
#sp-main-body:has(.blog-featured):not(:has(.blog-featured article, .blog-featured .item)) { display: none; }
/* Ueberschrift der Social Wall (Modultitel) im Stil der Startseiten-Ueberschriften */
#sp-hfw-social-home .sp-module-title { margin: 0 0 24px; font-size: 28px; line-height: 1.2; font-weight: 700; color: #1f272c; text-transform: none; }
#sp-hfw-social-home .sp-module-title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; background: #c00d0e; border-radius: 2px; }
@media (max-width: 767.98px) { #sp-hfw-social-home .sp-module-title { font-size: 24px; } }

/* [9] Einsaetze: Filter am Handy volle Breite, Zeile "Aktive Filter" dezent */
@media (max-width: 767.98px) {
  .js-stools-container-filters { grid-template-columns: 1fr !important; }
  .js-stools-container-filters select, .js-stools-container-filters select.form-select,
  .js-stools-container-filters .chosen-container, .js-stools-container-filters .chzn-container { width: 100% !important; }
}
.js-stools > div:has(> .label-info) { font-size: 12px; color: #6b7378; margin: 0 0 10px; }
.js-stools > div:has(> .label-info) .label-info { display: inline-block; background: #f5f6f7; color: #4a5358; border-radius: 999px; padding: 1px 8px; font-weight: 600; }

/* [10] Kopfbilder/Galerien in Beitraegen nicht ueber die echte Bildgroesse hochskalieren und nicht beschneiden */
body.view-article #sp-main-body .item-page .entry-gallery .carousel-item { background: #f5f6f7; }
body.view-article #sp-main-body .item-page .entry-gallery .carousel-item img,
body.view-article #sp-main-body .item-page .entry-image.full-image img { width: auto !important; max-width: 100% !important; height: auto !important; max-height: 480px; margin: 0 auto !important; object-fit: contain; }

/* [11] Kontrast Hauptmenue / obere Leiste */
/* Menuefarbe: Token --hfw-menu in template.css jetzt #4a5359; "Notruf 122" ebenso */
#sp-top-bar, #sp-top-bar #mod-custom139 { color: #4a5359; }
/* [21] Tablet: obere Leiste darf umbrechen, Suchfeld nicht abschneiden */
@media (max-width: 991.98px) {
  #sp-top-bar { height: auto; min-height: 34px; padding: 6px 0; }
  #sp-top-bar #sp-top2 .mod-finder input.form-control, #sp-top-bar #sp-top2 .js-finder-search-query { width: 180px; }
}

/* [13] Einsatz-Detail */
.mobile_show_320 { display: none !important; }
.shariff .shariff-button, .shariff .shariff-button a, .shariffline .shariff-button { border-radius: 999px !important; overflow: hidden; }
.eiko_thumbnails_2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }
.eiko_thumbnails_2 .eiko_thumbnail_2, .eiko_thumbnails_2 .eiko_thumbnail_2 a { display: block; width: 100% !important; }
.eiko_thumbnails_2 img.eiko_thumbs_2 { width: 100% !important; height: 170px !important; object-fit: cover; }
@media (max-width: 767.98px) { .eiko_thumbnails_2 img.eiko_thumbs_2 { height: 120px !important; } }

/* [16] Groessere Trefferflaechen ohne Optikaenderung */
#sp-page-title .breadcrumb a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
#sp-footer a, #sp-bottom a { position: relative; }
#sp-footer a::after, #sp-bottom .hfw-footer-emblems a::after, #sp-bottom p a::after { content: ""; position: absolute; inset: -8px -4px; }
.hfw-slider-dot { position: relative; }
.hfw-slider-dot::after { content: ""; position: absolute; inset: -8px; }

/* [17] Kleine Vorschau-Galerien in Blog-Listen: keine Pfeile */
body:not(.view-article) .entry-gallery .carousel-left, body:not(.view-article) .entry-gallery .carousel-right { display: none !important; }
/* [18] Such-Markierung ohne Innenabstand */
.com-finder mark, .com-finder .highlight, #search-results mark { padding: 0 !important; }
/* [19] Flipbook-Knoepfe am Handy */
@media (max-width: 575.98px) {
  .hfw-flipbook-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hfw-flipbook-bar .hfw-fb-counter { grid-column: 1 / -1; order: -1; }
  .hfw-flipbook-bar a.hfw-fb-download { grid-column: 1 / -1; justify-content: center; }
  .hfw-flipbook-bar button { justify-content: center; }
}
/* [20] Jahresberichte-Knoepfe am Handy einzeilig */
@media (max-width: 991.98px) { .hfw-sc-btn { white-space: nowrap; font-size: 14px; padding: 10px 14px; } }
/* [22] aktiver Punkt im Handy-Menue weiss statt rosa */
.hfw-offcanvas ul.menu li.active:not(.current) > a { color: #fff; font-weight: 700; }
/* [23] Kommando-Karten: Silbentrennung */
body.itemid-661 #sp-component .item-page [itemprop="articleBody"], body.itemid-663 #sp-component .item-page [itemprop="articleBody"] { -webkit-hyphens: auto; hyphens: auto; }

/* [F] Slider: horizontales Wischen nicht als 'Seite zurueck' interpretieren */
.hfw-slider { touch-action: pan-y; }
