

/* ==========================================================
   WEBFONT – BASIC
   ========================================================== */

@font-face {
    font-family: 'Basic';
    src: url('../fonts/Basic-Regular.woff2') format('woff2'),
         url('../fonts/Basic-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================
   INFOKASTEN
   ========================================================== */

.hinweis-kasten {
    display: block;
    background-color: #F5F2F7 !important;
    border-radius: 10px !important;
    padding: 22px 28px !important;
    margin: 15px 10px !important;
    color: #666666 !important;
}


/* ==========================================================
   TYPOGRAFIE – BASIC
   Globale Schrift, 20 % groessere Schriftgroessen und gezielte
   Überschreibungen für PiTech,
   Helix Ultimate und SP Page Builder.
   Keine pauschalen *-Selektoren: Icon-Fonts bleiben erhalten.
   ========================================================== */

/* Globale Grundschrift: von 16 px auf 19,2 px (+20 %).
   Vererbende Schriftgroessen skalieren mit; feste Template-Werte
   muessen gegebenenfalls einzeln erhoeht werden. */
html {
    font-size: 120%;
}

body {
    font-size: 19.2px;
}

/* Standard für reguläre Texte, Joomla-Artikel und Formulare */
body,
body button,
body input,
body select,
body textarea {
    font-family: 'Basic', Arial, sans-serif !important;
}

/* Überschriften – auch bei abweichenden Template-Vorgaben */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    font-family: 'Basic', Arial, sans-serif !important;
    color: #31465d !important;
}

/* Fließtext, Listen, Links sowie Joomla-Artikel */
body p,
body li,
body .article-details,
body .article-details a,
body .article-details span {
    font-family: 'Basic', Arial, sans-serif !important;
}

/* SP Page Builder – reguläre Textinhalte */
body .sppb-addon-text-block,
body .sppb-addon-text-block p,
body .sppb-addon-text-block a,
body .sppb-addon-text-block span,
body .sppb-addon-content,
body .sppb-article-info-wrap,
body .sppb-article-info-wrap a,
body .sppb-article-introtext,
body .sppb-btn {
    font-family: 'Basic', Arial, sans-serif !important;
}

/* SP Page Builder – Heading-Addons:
   Dieser Selektor wurde im Firefox erfolgreich getestet. */
body .sppb-addon-header .sppb-addon-title,
body .sppb-addon-header .sppb-addon-title span {
    font-family: 'Basic', Arial, sans-serif !important;
    font-weight: 400 !important;
}

/* Weitere SP-Page-Builder-Titel */
body .sppb-addon-title {
    font-family: 'Basic', Arial, sans-serif !important;
}

/* PiTech / Helix – Hauptmenü, Dropdown und Mobilmenü */
#sp-header .sp-megamenu-parent,
#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent .sp-dropdown a,
.offcanvas-menu a,
.offcanvas-menu .offcanvas-inner a {
    font-family: 'Basic', Arial, sans-serif !important;
}

/* Footer-Texte */
#sp-bottom,
#sp-bottom p,
#sp-bottom li,
#sp-bottom a {
    font-family: 'Basic', Arial, sans-serif !important;
}

/* Blaugrau-Abstufung beibehalten */
h1 { color: #303D4B; }
h2 { color: #404D5C; }
h3 { color: #42474C; }
h4 { color: #505A65; }
h5 { color: #5C656E; }
h6 { color: #68717A; }


/* ==========================================================
   SP PAGE BUILDER – SLIDER-ÜBERSCHRIFTEN
   ========================================================== */

/* Animierte Slider-Titel (sp-letter-trimed):
   Buchstaben werden vom Slider in einzelne span-Elemente zerlegt. */
body h3.sppb-sp-slider-title,
body h3.sppb-sp-slider-title span {
    font-family: 'Basic', Arial, sans-serif !important;
}

.sp-slider .sppb-sp-slider-title,
.sp-slider .sppb-sp-slider-title span {
    color: #FFFFFF !important;
}


/* ==========================================================
   HEADER
   Desktop: 140 px über Helix Ultimate
   Mobil: 110 px über custom.css
   ========================================================== */

#sp-header {
    background: #FFFFFF;
    backdrop-filter: blur(3px);
}

#sp-header.header-sticky {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    animation: spFadeInDown .5s;
    background-color: #FFFFFF;
}

/* Hamburger-Menü: schwarze Striche */

#offcanvas-toggler .burger-icon span {
    background-color: #000000 !important;
}

/* Mobile Header */

@media (max-width: 767px) {

    /* Headerhöhe */
    #sp-header {
        height: 110px !important;
        min-height: 110px;
    }

    /* Innere Container auf Headerhöhe */
    #sp-header .container-fluid,
    #sp-header .container-inner {
        height: 100%;
    }

    /* Logo vertikal zentrieren */
    #sp-header .logo {
        height: 100%;
        display: flex;
        align-items: center;
    }

    /* Mobiles Logo */
    #sp-header .logo-image-phone {
        height: 82px !important;
        max-height: 82px;
        width: auto;
        margin-top: 0 !important;
        padding-top:10px;
    }
}


/* ==========================================================
   SP PAGE BUILDER – ARTICLES CAROUSEL
   Datum und Kategorie ausblenden
   ========================================================== */

.sppb-articles-carousel-meta,
.sppb-articles-carousel-meta-category {
    display: none !important;
}


/* ==========================================================
   SP PAGE BUILDER – BLOG-THUMBNAILS
   Einheitliches Seitenverhältnis 1,87:1
   ========================================================== */

.sppb-addon-articles .sppb-article-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1.87 / 1;
    overflow: hidden;
}

.sppb-addon-articles .sppb-article-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ==========================================================
   SP PAGE BUILDER – BLOG-ÜBERSCHRIFTEN
   ========================================================== */

.sppb-addon-articles .sppb-article-info-wrap h3 {
    font-size: 33.6px;
    line-height: 1.2;
    margin-top: 12px;
    margin-bottom: 10px;
}


/* ==========================================================
   HELIX – FOOTER Breiten #BOTTOM 1 - 4
   ========================================================== */
@media (min-width: 992px) {
    #sp-bottom1 {
        flex: 0 0 28%;
        max-width: 28%;
    }

    #sp-bottom2,
    #sp-bottom3,
    #sp-bottom4 {
        flex: 0 0 24%;
        max-width: 24%;
    }
}

/* ==========================================================
   HELIX – DUNKLER FOOTER (#sp-bottom)
   ========================================================== */

#sp-bottom {
    color: #D5D9DF;
}

#sp-bottom h1,
#sp-bottom h2,
#sp-bottom h3,
#sp-bottom h4,
#sp-bottom h5,
#sp-bottom h6,
#sp-bottom .sp-module-title {
    color: #FFFFFF !important;
}

#sp-bottom p,
#sp-bottom li {
    color: #D5D9DF;
}

#sp-bottom a {
    color: #A9C8F0 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

#sp-bottom a:hover,
#sp-bottom a:focus-visible {
    color: #FFFFFF !important;
}

#sp-bottom .current > a,
#sp-bottom .active > a {
    color: #FFFFFF !important;
}


/* ==========================================================
   JOOMLA – EINZELARTIKEL
   Breite und Zentrierung
   ========================================================== */

body.view-article #sp-component .article-details {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    body.view-article #sp-component .article-details {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ==========================================================
   JOOMLA – EINZELARTIKEL
   Oberen Abstand reduzieren
   ========================================================== */

body.view-article #sp-main-body {
    padding-top: 50px;
}


/* ==========================================================
   PITECH – KATEGORIEBLOG
   "Most Trending now" entfernen
   ========================================================== */

.blog .blog-list-title-wrap {
    display: none !important;
}


/* ==========================================================
   SP PAGE BUILDER – ARTICLES CAROUSEL
   Desktop: maximal 250 x 170 px
   Mobil: flexible Höhe
   ========================================================== */

.sppb-articles-carousel-content {
    width: 100%;
    max-width: 250px;
    height: 170px;
    box-sizing: border-box;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.sppb-articles-carousel-introtext {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

@media (max-width: 767px) {

    .sppb-articles-carousel-content {
        height: auto;
        min-height: 170px;
        max-height: none;
    }

    .sppb-articles-carousel-content
    .sppb-articles-carousel-link {
        font-size: 28.8px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}


/* ==========================================================
   MITTAGSTISCH – ARTICLES-ADDON

   Addon-ID:
   sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d

   Desktop ab 1200 px: 4 Spalten
   Desktop 992–1199 px: 4 Spalten
   Tablet 768–991 px: 2 Spalten
   Smartphone bis 767 px: 1 Spalte

   Boxbreite: maximal 250 px
   Mindesthöhe: 170 px
   ========================================================== */

/* Einzelne Rasterspalten */

#sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
.sppb-addon-article-layout {
    display: flex;
    padding: 10px;
    box-sizing: border-box;
}

/* Artikelbox */

#sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
.sppb-addon-article-layout-content {
    width: 100%;
    max-width: 250px;
    min-height: 170px;
    padding: 15px;
    margin: 0 auto;
    background-color: #FFFAF2;
    border: 1px solid #E3D9C9;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Artikeltitel */

#sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
.sppb-article-info-wrap h3 {
    font-size: 25.2px;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Lange Titel umbrechen */

#sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
.sppb-article-info-wrap h3 a {
    overflow-wrap: anywhere;
}


/* ==========================================================
   MITTAGSTISCH – GROSSER DESKTOP
   Ab 1200 px: 4 Spalten
   ========================================================== */

@media (min-width: 1200px) {

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-addon-article-layout {
        flex: 0 0 25%;
        max-width: 25%;
    }
}


/* ==========================================================
   MITTAGSTISCH – KOMPAKTER DESKTOP
   992 bis 1199,98 px

   Übergeordnete Column auf 100 % setzen.
   ========================================================== */

@media (min-width: 992px) and (max-width: 1199.98px) {

    /* Übergeordnete Spalte: volle Breite */

    #column-wrap-id-3d18cd7a-acd7-425c-ace8-5f318facd583 {
        max-width: 100% !important;
        flex-basis: 100% !important;
    }

    /* Vier Artikel nebeneinander */

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-addon-article-layout {
        flex: 0 0 25%;
        max-width: 25%;
        padding: 6px;
    }

    /* Kompakte Artikelboxen */

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-addon-article-layout-content {
        max-width: 100%;
        min-height: 170px;
        padding: 10px;
    }

    /* Kompakte Titel */

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-article-info-wrap h3 {
        font-size: 21.6px;
        line-height: 1.25;
    }

    /* Kompakter Beschreibungstext */

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-article-info-wrap {
        font-size: 16.8px;
        line-height: 1.4;
    }
}


/* MOBIL */
.offcanvas-menu {
  background-color: #dfdfdf;
  color: #1b2025;
}	

/* ==========================================================
   MITTAGSTISCH – TABLET
   768 bis 991 px: 2 Spalten
   ========================================================== */

@media (min-width: 768px) and (max-width: 991px) {

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-addon-article-layout {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-addon-article-layout-content {
        max-width: 250px;
    }
}


/* ==========================================================
   MITTAGSTISCH – SMARTPHONE
   Bis 767 px: 1 Spalte
   ========================================================== */

@media (max-width: 767px) {

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-addon-article-layout {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 8px 0;
    }

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-addon-article-layout-content {
        max-width: 80%;
        min-height: 0;
        padding: 12px;
    }

    #sppb-addon-0db98168-2cce-4f40-b3ba-aa0a4de2862d
    .sppb-article-info-wrap h3 {
        font-size: 22.8px;
        line-height: 1.3;
    }
}

.sppb-addon-content li > p {
    margin-bottom: 0;
    margin-top: -12px;
}

/* ==========================================================
   JOOMLA / PITECH – KATEGORIEBLOG
   Struktur: Titel über die volle Breite; Vorschaubild links;
   Einleitungstext fließt rechts und unter dem Bild weiter.
   Diese Regeln betreffen nur den Joomla-Kategorieblog.
   ========================================================== */

/* Führende Beiträge nutzen in PiTech eine separate 7/5-Spaltenstruktur.
   Auch diese erhalten dieselbe Inhaltsbreite wie die übrigen Beiträge. */
body.com-content.view-category #sp-component .blog > .row:has(.articles-leading) {
    margin-left: 0;
    margin-right: 0;
}

body.com-content.view-category #sp-component .blog > .row > .col-lg-7:has(> .articles-leading) {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.com-content.view-category #sp-component .blog .blog-list-leading-title-wrap {
    display: none !important;
}

/* Pro Artikel eine eigene, durchgehende Zeile. */
body.com-content.view-category #sp-component .blog .article-list > .row {
    display: block;
    margin-left: 0;
    margin-right: 0;
}

body.com-content.view-category #sp-component .blog .article-list > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
}

body.com-content.view-category #sp-component .blog .article-list .article {
    display: flow-root;
    width: 100%;
    margin: 0 0 32px;
    padding: 0 0 32px;
    border-bottom: 1px solid #e2e5e9;
}

body.com-content.view-category #sp-component .blog .article-list .article-body {
    display: flow-root;
    margin: 0;
    width: 100%;
}

/* Auch unveröffentlichte ("Versteckt") Artikel umfließen das Bild korrekt.
   Joomla legt deren Inhalt zusätzlich in .system-unpublished ab. */
body.com-content.view-category #sp-component .blog .article-list .article-body > .system-unpublished {
    display: flow-root;
}

/* Der Titel steht VOR dem Bild, nicht mehr seitlich davon.
   Die Ausgabereihenfolge wird von blog_item.php hergestellt. */
body.com-content.view-category #sp-component .blog .article-list .article-header {
    display: block;
    width: 100%;
    margin: 0 0 14px;
}

body.com-content.view-category #sp-component .blog .article-list .article-header h2 {
    font-size: 1.65rem;
    line-height: 1.25;
    font-weight: 400;
    margin: 0;
}

/* Das Vorschaubild schwebt links im Textfluss.
   Nur die Breite wird vorgegeben; die Bildhoehe bleibt proportional.
   Keine feste Aspect-Ratio, kein Crop und keine Bildbeschneidung. */
body.com-content.view-category #sp-component .blog .article-list .article-body a:has(> .article-intro-image) {
    display: block;
    float: left;
    width: 29%;
    max-width: 260px;
    margin: 0 26px 10px 0;
}

body.com-content.view-category #sp-component .blog .article-list .article-intro-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
}

body.com-content.view-category #sp-component .blog .article-list .article-intro-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
    object-position: initial;
}

/* Kein Grid/Flex auf dem Einleitungstext: echte Textumfließung. */
body.com-content.view-category #sp-component .blog .article-list .article-introtext {
    display: block;
    margin: 0;
    line-height: 1.5;
}

body.com-content.view-category #sp-component .blog .article-list .article-introtext p {
    margin-top: 0;
    margin-bottom: 1em;
}

body.com-content.view-category #sp-component .blog .article-list .readmore {
    margin-top: 12px;
}

/* ==========================================================
   JOOMLA / PITECH – ARTIKELDETAIL
   Titel links oben; Hauptbild rechts neben dem Text.
   Dekorativen PiTech-Streifenhintergrund entfernen.
   ========================================================== */

body.com-content.view-article #sp-component .article-details > figure.article-full-image {
    float: right !important;
    clear: none !important;
    display: block;
    width: 32%;
    max-width: 360px;
    margin: 0 0 20px 28px !important;
    padding: 0;
    text-align: left;
}

body.com-content.view-article #sp-component .article-details > figure.article-full-image::after {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

body.com-content.view-article #sp-component .article-details > figure.article-full-image img {
    display: block;
    width: 100%;
    height: auto;
}

body.com-content.view-article #sp-component .article-details .article-header h1 {
    margin-bottom: 22px;
}

body.com-content.view-article #sp-component .article-details::after {
    content: "";
    display: block;
    clear: both;
}

/* ==========================================================
   MOBIL – Bilder über den Text stellen
   ========================================================== */

@media (max-width: 767px) {
    body.com-content.view-category #sp-component .blog .article-list .article-body a:has(> .article-intro-image) {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 15px;
    }

    body.com-content.view-category #sp-component .blog .article-list .article-header h2 {
        font-size: 1.45rem;
    }

    body.com-content.view-article #sp-component .article-details > figure.article-full-image {
        float: none !important;
        width: 100%;
        max-width: none;
        margin: 0 0 24px !important;
    }
}
