/* =========================================
   HOLLSTEIN – HEADER & NAVIGATION
   ========================================= */

/* Header: weiß statt Joomla-Blau */
.container-header {
    background: #ffffff;
    background-image: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);

    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: center;

    padding: 14px max(30px, calc((100vw - 1180px) / 2));
}

/* Joomla begrenzt diese Bereiche standardmäßig – hier aufheben */
.container-header > .grid-child {
    width: auto;
    max-width: none;
    margin: 0;
}

/* Logo */
.container-header .navbar-brand {
    padding: 0;
    margin: 0;
}

.container-header .navbar-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 82px;
}

/* Menü rechts neben dem Logo */
.container-header .container-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

/* Navigation */
.container-header .mod-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
}

/* Menülinks */
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    color: #172f5f;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 0;
}

/* Hover */
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
    color: #26bdea;
}

/* Aktiver Menüpunkt */
.container-header .mod-menu > li.active > a {
    color: #26bdea;
}

/* Kleine Akzentlinie unter aktivem Menüpunkt */
.container-header .mod-menu > li.active > a::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 5px;
    background: #ef3340;
    border-radius: 2px;
}

/* Mobile */
@media (max-width: 900px) {
    .container-header {
        display: block;
        padding: 14px 20px;
    }

    .container-header .navbar-brand img {
        max-height: 68px;
    }

    .container-header .container-nav {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .container-header .mod-menu {
        gap: 18px;
    }
}
/* =========================================
   HOLLSTEIN – CONTENT / PREMIUM VERSION
   ========================================= */

body.site {
    background: #f7f9fc;
    color: #17233a;
}

/* Inhaltsfläche */
.com-content-article {
    max-width: 1180px;
    margin: 48px auto 35px;
    padding: 70px 64px 74px;

    background: #ffffff;

    border: 1px solid rgba(23, 47, 95, 0.08);
    border-radius: 10px;

    box-shadow:
        0 8px 30px rgba(23, 47, 95, 0.045);

    position: relative;
    overflow: hidden;
}

/* Markenakzent */
.com-content-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 64px;

    width: 96px;
    height: 3px;

    background: linear-gradient(
        90deg,
        #23bde7 0%,
        #23bde7 68%,
        #ef3340 68%,
        #ef3340 100%
    );
}

/* Hauptüberschrift */
.com-content-article h1 {
    max-width: 900px;

    margin: 0 0 26px;

    color: #193567;

    font-size: clamp(42px, 4vw, 55px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -1.6px;
}

/* Normaler Fließtext */
.com-content-article p {
    max-width: 940px;

    margin: 0 0 21px;

    color: #465266;

    font-size: 17px;
    line-height: 1.78;
    font-weight: 400;
}

/* Einleitung */
.com-content-article h1 + p {
    max-width: 850px;

    margin-bottom: 32px;

    color: #1f2f49;

    font-size: 19px;
    line-height: 1.65;
    font-weight: 600;
}

/* Links */
.com-content-article a {
    color: #193567;
    text-decoration-color: #23bde7;
    text-underline-offset: 3px;
}

/* Mobile */
@media (max-width: 900px) {

    .com-content-article {
        margin: 28px 16px 48px;
        padding: 44px 26px 48px;

        border-radius: 8px;
    }

    .com-content-article::before {
        left: 26px;
        width: 80px;
    }

    .com-content-article h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .com-content-article p {
        font-size: 16px;
        line-height: 1.7;
    }

    .com-content-article h1 + p {
        font-size: 18px;
    }
}
/* =========================================
   HOLLSTEIN – KONTAKT BUTTON
   ========================================= */

.container-header .mod-menu > li:last-child > a {
    border: 1px solid #193567;
    border-radius: 6px;
    padding: 9px 18px;
    transition: all 0.2s ease;
}

.container-header .mod-menu > li:last-child > a:hover,
.container-header .mod-menu > li:last-child > a:focus {
    background: #193567;
    color: #ffffff;
}

/* Beim Kontakt-Button keine aktive Linie darunter */
.container-header .mod-menu > li:last-child.active > a::after {
    display: none;
}
/* =========================================
   HOLLSTEIN – PREMIUM HOVER DROPDOWN
   Joomla / Cassiopeia MetisMenu
   ========================================= */

@media (min-width: 901px) {

    /* Hauptmenüpunkt */
    .container-header
    .mod-menu_dropdown-metismenu
    > .metismenu-item {
        position: relative;
    }

    /* Untermenü grundsätzlich vorhanden,
       aber unsichtbar */
    .container-header
    .mod-menu_dropdown-metismenu
    > .metismenu-item
    > ul.mm-collapse {

        display: block !important;
        position: absolute !important;

        top: calc(100% + 8px);
        left: -18px;

        width: max-content;
        min-width: 290px;
        height: auto !important;

        margin: 0;
        padding: 9px;

        overflow: visible !important;

        background: #ffffff;
        border: 1px solid rgba(25, 53, 103, 0.10);
        border-radius: 8px;

        box-shadow: 0 16px 38px rgba(25, 53, 103, 0.14);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(7px);

        transition:
            opacity 0.18s ease,
            transform 0.18s ease,
            visibility 0.18s ease;

        z-index: 9999;
    }

    /* Beim Hover über Unternehmen anzeigen */
    .container-header
    .mod-menu_dropdown-metismenu
    > .metismenu-item:hover
    > ul.mm-collapse,

    .container-header
    .mod-menu_dropdown-metismenu
    > .metismenu-item:focus-within
    > ul.mm-collapse {

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Unterpunkte */
    .container-header
    .mod-menu_dropdown-metismenu
    ul.mm-collapse
    > li
    > a {

        display: block;

        padding: 11px 14px;

        color: #193567;
        font-size: 14px;
        font-weight: 500;

        text-decoration: none;
        border-radius: 5px;
    }

    /* Hover Unterpunkt */
    .container-header
    .mod-menu_dropdown-metismenu
    ul.mm-collapse
    > li
    > a:hover {

        background: #f4f7fb;
        color: #20bde7;
    }
}
/* =========================================
   HOLLSTEIN – PREMIUM FOOTER
   ========================================= */

.container-footer {
    margin-top: 0;
    padding: 0;

    background: linear-gradient(
        110deg,
        #172f5f 0%,
        #263a75 100%
    );

    color: #ffffff;
}

/* Inhalt des Footers */
.container-footer .grid-child {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 38px 32px;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;

    align-items: start;
}

/* Kontaktbereich */
.hs-footer-contact strong {
    display: block;

    margin-bottom: 14px;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.hs-footer-contact p {
    margin: 0 0 12px;

    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
    line-height: 1.65;
}

/* Alle Footer-Links */
.container-footer a {
    color: #ffffff;
    text-decoration: none;

    transition: color 0.2s ease;
}

.container-footer a:hover,
.container-footer a:focus {
    color: #23bde7;
}

/* Impressum / Datenschutz */
.container-footer .mod-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin: 3px 0 0;
    padding: 0;

    list-style: none;
}

.container-footer .mod-menu > li > a {
    color: rgba(255, 255, 255, 0.88);

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 700px) {

    .container-footer .grid-child {
        grid-template-columns: 1fr;
        gap: 22px;

        padding: 32px 24px;
    }

    .container-footer .mod-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px;
    }
}
/* =========================================
   HOLLSTEIN – FOOTER FEINSCHLIFF
   ========================================= */

.container-footer .grid-child {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 32px 30px;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: start;
}

/* Kontaktmodul nach links */
.container-footer .grid-child > *:has(.hs-footer-contact) {
    grid-column: 1;
    grid-row: 1;
}

/* Footer-Menü nach rechts */
.container-footer .grid-child > *:not(:has(.hs-footer-contact)) {
    grid-column: 2;
    grid-row: 1;
}

/* Firmenname */
.hs-footer-contact strong {
    display: block;
    margin-bottom: 13px;

    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

/* Adresse & Kontakt */
.hs-footer-contact p {
    margin: 0 0 12px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.65;
}

.hs-footer-contact a {
    color: rgba(255, 255, 255, 0.92);
}

/* Impressum + Datenschutz nebeneinander */
.container-footer .mod-menu {
    display: flex;
    flex-direction: row;
    gap: 22px;

    margin: 3px 0 0;
    padding: 0;
}

.container-footer .mod-menu > li > a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
}

/* Hover */
.container-footer a:hover {
    color: #23bde7;
}

/* Smartphone */
@media (max-width: 700px) {

    .container-footer .grid-child {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 24px;
    }

    .container-footer .grid-child > *:has(.hs-footer-contact),
    .container-footer .grid-child > *:not(:has(.hs-footer-contact)) {
        grid-column: 1;
        grid-row: auto;
    }

    .container-footer .mod-menu {
        flex-wrap: wrap;
    }
}
/* =========================================
   HOLLSTEIN – LEISTUNGEN
   ========================================= */

.hs-services-page {
    max-width: 100%;
}

.hs-services-intro {
    max-width: 900px;
    margin-bottom: 48px;
}

.hs-services-intro h1 {
    margin-bottom: 20px;
}

.hs-services-intro p {
    font-size: 18px;
    line-height: 1.7;
}


/* ===== LEISTUNGS-KARTEN ===== */

.hs-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.hs-service-card {
    position: relative;

    padding: 34px 34px 32px;

    background: #f9fbfd;

    border: 1px solid rgba(25, 53, 103, 0.10);
    border-radius: 8px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.hs-service-card::before {
    display: none !important;
    content: none !important;
}

.hs-service-card:hover {
    transform: translateY(-3px);

    border-color: rgba(25, 53, 103, 0.18);

    box-shadow:
        0 14px 30px rgba(25, 53, 103, 0.08);
}

.hs-service-number {
    display: block;

    margin-bottom: 20px;

    color: #23bde7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hs-service-card h2 {
    margin: 0 0 14px;

    color: #193567;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.hs-service-card p {
    margin: 0;

    color: #536075;

    font-size: 15px;
    line-height: 1.7;
}


/* fünfte Karte mittig */

.hs-service-card-last {
    grid-column: 1 / -1;

    width: calc(50% - 11px);
    justify-self: center;
}


/* ===== UNSER SERVICE ===== */

.hs-service-process {
    margin-top: 72px;
    padding-top: 54px;

    border-top: 1px solid rgba(25, 53, 103, 0.10);
}

.hs-service-process-head {
    margin-bottom: 32px;
}

.hs-service-process-head h2 {
    margin: 0;

    color: #193567;
    font-size: 34px;
    font-weight: 700;
}

.hs-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.hs-process-item {
    position: relative;

    padding-left: 18px;

    border-left: 2px solid #e7edf5;

}

.hs-process-item > span {
    display: none !important;
}

.hs-process-item h3 {
    margin: 0 0 12px;

    color: #193567;

    font-size: 18px;
    font-weight: 700;
}

.hs-process-item p {
    margin: 0;

    color: #536075;

    font-size: 14px;
    line-height: 1.65;
}


/* ===== TABLET ===== */

@media (max-width: 900px) {

    .hs-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===== SMARTPHONE ===== */

@media (max-width: 650px) {

    .hs-services-grid {
        grid-template-columns: 1fr;
    }

    .hs-service-card-last {
        grid-column: auto;
        width: 100%;
    }

    .hs-service-card {
        padding: 28px 24px;
    }

    .hs-service-card::before {
        left: 24px;
    }

    .hs-process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hs-service-process {
        margin-top: 54px;
    }
/* =========================================
   HOLLSTEIN – UNTERNEHMEN
   ========================================= */

.hs-company-page {
    max-width: 100%;
}


/* ===== INTRO ===== */

.hs-company-intro {
    max-width: 900px;
    margin-bottom: 58px;
}

.hs-company-intro h1 {
    max-width: 800px;
    margin-bottom: 24px;
}

.hs-company-intro .hs-company-lead {
    max-width: 760px;
    margin-bottom: 25px;

    color: #1f2f49;
    font-size: 19px;
    line-height: 1.65;
    font-weight: 600;
}


/* ===== QUALITÄT + TECHNOLOGIE ===== */

.hs-company-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;

    margin: 10px 0 66px;
    padding-top: 46px;

    border-top: 1px solid rgba(25, 53, 103, 0.10);
}

.hs-company-section {
    max-width: 100%;
}

.hs-company-label {
    display: block;

    margin-bottom: 12px;

    color: #23bde7;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hs-company-section h2,
.hs-certifications h2,
.hs-history-teaser h2 {
    margin: 0 0 18px;

    color: #193567;

    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
}

.hs-company-section p {
    margin-bottom: 16px;

    color: #536075;
    font-size: 15px;
    line-height: 1.75;
}


/* ===== ZERTIFIZIERUNGEN ===== */

.hs-certifications {
    margin-bottom: 64px;
    padding: 42px 46px;

    background: #f7f9fc;

    border: 1px solid rgba(25, 53, 103, 0.09);
    border-radius: 8px;
}

.hs-certifications-head {
    max-width: 780px;
    margin-bottom: 30px;
}

.hs-certifications-head p {
    margin: 0;

    color: #536075;
    font-size: 15px;
    line-height: 1.7;
}

.hs-certification-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 34px;
}

.hs-certification-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;

    align-items: start;

    padding: 13px 0;

    color: #26364e;
    font-size: 14px;
    line-height: 1.55;

    border-bottom: 1px solid rgba(25, 53, 103, 0.08);
}

.hs-check {
    color: #23bde7;
    font-weight: 800;
}


/* ===== FIRMENGESCHICHTE ===== */

.hs-history-teaser {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;

    align-items: center;

    padding: 38px 42px;

    background: #193567;
    border-radius: 8px;
}

.hs-history-teaser .hs-company-label {
    color: #23bde7;
}

.hs-history-teaser h2 {
    color: #ffffff;
}

.hs-history-teaser p {
    max-width: 730px;
    margin: 0;

    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.7;
}

.hs-history-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 18px;

    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.hs-history-link:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: #ffffff;
}

.hs-history-link span {
    font-size: 18px;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 800px) {

    .hs-company-columns {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hs-certification-list {
        grid-template-columns: 1fr;
    }

    .hs-certifications {
        padding: 34px 26px;
    }

    .hs-history-teaser {
        grid-template-columns: 1fr;
        gap: 26px;

        padding: 34px 26px;
    }

    .hs-history-link {
        justify-self: start;
    }
}