@import url('local-fonts.css'); /* Lokale Schriften statt Google Fonts */
/* === Korrekturen nach Migration auf Joomla 5 (Okt. 2026) === */

/* Alte Tabellen-Layouts in Beitraegen: Bilder wieder in voller Groesse */
.item-page table { width: 100% !important; max-width: 960px; margin: 0 auto; }
.item-page td { vertical-align: top; padding: 0 12px; }
.item-page td img { max-width: none !important; width: 250px !important; height: auto !important; display: block; margin-bottom: 12px; border-radius: 4px; }

/* Alte Schriftangaben (Arial/Helvetica, grau, pt) an das Template angleichen */
.item-page p, .item-page td, .item-page span[style], .item-page p[style], .item-page td[style] { font-family: inherit !important; color: inherit !important; font-size: 1.05rem !important; line-height: 1.6 !important; }

/* Hauptmenue: groesser, rechtsbuendig neben dem Logo, in einer Zeile */
.header-block .container-xxl { max-width: 1440px; }
.header-block .t4-navbar { margin-left: auto !important; margin-right: 0 !important; flex: 0 1 auto; }
.header-block .navbar-brand img { height: 54px; width: auto; }
#t4-megamenu-mainmenu .navbar-nav > li > .nav-link { font-size: 16px !important; font-weight: 500; padding-left: 12px !important; padding-right: 12px !important; }
#t4-megamenu-mainmenu .navbar-nav > li:last-child > .nav-link { padding-right: 0 !important; }
@media (min-width: 1200px) and (max-width: 1399px) { #t4-megamenu-mainmenu .navbar-nav > li > .nav-link { font-size: 14px !important; padding-left: 8px !important; padding-right: 8px !important; } .header-block .navbar-brand img { height: 50px; } }
@media (min-width: 992px) and (max-width: 1199px) { #t4-megamenu-mainmenu .navbar-nav > li > .nav-link { font-size: 12px !important; padding-left: 4px !important; padding-right: 4px !important; } .header-block .navbar-brand img { height: 40px; } }
@media (max-width: 991px) { #t4-megamenu-mainmenu .navbar-nav > li > .nav-link { padding-left: 16px !important; padding-right: 16px !important; } }

/* Blocksatz aus alten Beitraegen aufheben */
.item-page [style*="justify"], .item-page [align="justify"] { text-align: left !important; }

/* Mobile Ansicht: Text und Bilder untereinander statt nebeneinander */
@media (max-width: 767px) { .item-page table, .item-page tbody, .item-page tr, .item-page td { display: block !important; width: 100% !important; } .item-page td { padding: 0 !important; } .item-page td img { width: 100% !important; max-width: 100% !important; margin: 16px 0 0; } }

/* Mobile Menue: Klappmenue zeigt alle Punkte (vorher auf 320px begrenzt) */
@media (max-width: 991px) { #t4-megamenu-mainmenu { max-height: calc(100vh - 110px) !important; max-height: calc(100dvh - 110px) !important; } }

/* Telefonnummern nie mitten in der Nummer umbrechen */
.item-page a[href^="tel:"], .t4-footnav a[href^="tel:"] { white-space: nowrap; }

/* Bildvergroesserung (Lightbox) - zugehoeriges Skript: local/js/bildvergroesserung.js */
.item-page img.bc-zoomable { cursor: zoom-in; transition: opacity .2s ease; }
.item-page img.bc-zoomable:hover { opacity: .85; }
.item-page img.bc-zoomable:focus-visible { outline: 3px solid #e30613; outline-offset: 2px; }
html.bc-lb-open { overflow: hidden; }
dialog.bc-lightbox { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; overflow: hidden; }
dialog.bc-lightbox[open] { display: flex; align-items: center; justify-content: center; }
dialog.bc-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.bc-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 92vw; }
.bc-lightbox figure img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #fff; }
.bc-lightbox figcaption { color: #fff; margin-top: 10px; text-align: center; font-size: .95rem; }
.bc-lightbox figcaption:empty { display: none; }
.bc-lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.bc-lightbox button:hover, .bc-lightbox button:focus-visible { background: #e30613; }
.bc-lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.bc-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.bc-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.bc-single .bc-lb-prev, .bc-single .bc-lb-next { display: none; }
.bc-lb-count { position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .8; }
