/* =========================================================
   ALLGEMEIN
   ========================================================= */

:root {
    --home-side-space: clamp(18px, 2.5vw, 48px);
    --home-blue: #1769aa;
    --home-dark: #122b4a;
}

.com-content-categories__items .btn {
    display: none;
}

.com-content-categories__items .badge {
    display: inline-block;
    width: 105px;
    margin-left: 10px;
    text-align: center;
}

.projekt-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    background: #2f6690;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

.projekt-button:hover {
    opacity: 0.85;
}

/* PROJEKTANFRAGE – KONTAKTFORMULAR */

.com-contact {
    width: 100%;
    max-width: 820px;
    margin: 32px auto 48px;
}

/* Echte Seitenüberschrift anzeigen */
.com-contact > .page-header {
    display: block;
    margin-bottom: 24px;
}

.com-contact .page-header h1 {
    margin: 0;
    color: #122b4a;
    font-size: clamp(28px, 4vw, 36px);
}

/* Aktuell leerer Kontaktdatenbereich und doppelte Titel */
.com-contact > .com-contact__container,
.com-contact > h2,
.com-contact__form legend {
    display: none;
}

/* Formularfläche */
.com-contact__form {
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    background: #f3f9fc;
}

.com-contact__form .control-group {
    margin-bottom: 18px;
}

.com-contact__form .control-label {
    margin-bottom: 6px;
    color: #122b4a;
    font-weight: 600;
}

.com-contact__form input[type="text"],
.com-contact__form input[type="email"],
.com-contact__form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #b8c8d6;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
}

.com-contact__form textarea {
    min-height: 180px;
    resize: vertical;
}

.com-contact__form button[type="submit"] {
    padding: 12px 24px;
    border: 0;
    border-radius: 4px;
    background: #1769aa;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.com-contact__form button[type="submit"]:hover {
    background: #0d4f82;
}
/* =========================================================
   STARTSEITE – GRUNDLAYOUT
   ========================================================= */

.home-hero,
.home-products {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
}
/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    display: flex;
    align-items: center;
    min-height: 330px;
    margin-bottom: 42px;
    padding: 50px 55px;
    overflow: hidden;
    border-left: 5px solid var(--home-blue);
    background:
        linear-gradient(
            90deg,
            rgba(7, 28, 55, 0.82) 0%,
            rgba(7, 28, 55, 0.52) 48%,
            rgba(7, 28, 55, 0.08) 100%
        ),
        url("/images/Frontpage/LandingpageFront.jpg") center center / cover no-repeat;
}

.home-hero-content {
    max-width: 620px;
    color: #fff;
}

.home-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--home-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.home-hero .home-eyebrow {
    color: #8fc7ee;
}

.home-hero h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.08;
}

.home-hero p {
    max-width: 650px;
    margin: 0 0 20px;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

.home-hero-button,
.home-contact-button {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 4px;
    background: var(--home-blue);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.home-hero-button:hover,
.home-contact-button:hover {
    background: #0d4f82;
}

/* =========================================================
   LÖSUNGEN UND KARTEN
   ========================================================= */

.home-products {
    margin-bottom: 24px;
}

.home-section-heading {
    margin-bottom: 18px;
}

.home-section-heading h2 {
    margin: 0 0 7px;
    color: var(--home-dark);
    font-size: 28px;
    line-height: 1.2;
}

.home-section-heading p {
    max-width: 850px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-card {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid #d9e0e7;
    border-radius: 5px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(18, 43, 74, 0.12);
}

.home-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    min-height: 190px;
    overflow: hidden;
    background: #dceaf4;
}

.home-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-card--software .home-card-image {
    position: relative;
    padding: 12px;
    box-sizing: border-box;
    background: #07131d;
}

.home-card--software .home-card-image::before {
    position: absolute;
    inset: -14px;
    z-index: 0;
    content: "";
    background: url("/images/Frontpage/Software.png") center center / cover no-repeat;
    filter: blur(12px);
    opacity: 0.38;
    transform: scale(1.08);
}

.home-card--software .home-card-image img {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center;
}

.home-card--hardware .home-card-image,
.home-card--sensoren .home-card-image {
    position: relative;
    padding: 12px;
    box-sizing: border-box;
    background: #07131d;
}

.home-card--hardware .home-card-image::before {
    position: absolute;
    inset: -14px;
    z-index: 0;
    content: "";
    background: url("/images/Frontpage/Hardware.jpg") center center / cover no-repeat;
    filter: blur(12px);
    opacity: 0.38;
    transform: scale(1.08);
}

.home-card--sensoren .home-card-image::before {
    position: absolute;
    inset: -14px;
    z-index: 0;
    content: "";
    background: url("/images/Frontpage/sensoren.jpg") center center / cover no-repeat;
    filter: blur(12px);
    opacity: 0.38;
    transform: scale(1.08);
}

.home-card--hardware .home-card-image img,
.home-card--sensoren .home-card-image img {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center;
}
.home-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.home-card h3 {
    margin: 0 0 8px;
    color: var(--home-dark);
    font-size: 22px;
    line-height: 1.2;
}

.home-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.home-card a {
    margin-top: auto;
    padding-top: 15px;
    color: var(--home-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-card a:hover {
    text-decoration: underline;
}

/* =========================================================
   PROJEKTANFRAGE AUF DER STARTSEITE
   ========================================================= */

.home-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(900px, calc(100vw - (2 * var(--home-side-space))));
    margin: 38px auto 48px;
    padding: 38px 32px;
    box-sizing: border-box;
    border: 1px solid #c9ddea;
    border-radius: 18px;
    background: #f3f9fc;
    box-shadow: 0 8px 24px rgba(18, 43, 74, 0.08);
    text-align: center;
}

.home-contact > * {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.home-contact .home-eyebrow {
    margin-bottom: 10px;
}

.home-contact h2 {
    margin: 0 0 12px;
    color: var(--home-dark);
    font-size: 26px;
}

.home-contact p {
    max-width: 850px;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.45;
}

.home-contact-note {
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid #c9ddea;
    color: #36536d;
    font-weight: 600;
    line-height: 1.5;
}

.home-contact .home-contact-button {
    margin-top: 22px;
}

/* =========================================================
   HEADER – DESKTOP (≥ 992px, entspricht Bootstraps
   navbar-expand-lg-Breakpoint, damit sich diese Regeln nicht
   mehr mit Bootstrap-/MetisMenu-eigenen Vorgaben überschneiden)
   ========================================================= */

@media (min-width: 992px) {
    .container-header {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .container-header > .grid-child:first-child {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        width: auto;
        height: 74px !important;
        min-height: 74px !important;
        margin: 0 !important;
        padding: 0 20px 0 0 !important;
        box-sizing: border-box !important;
    }

    .container-header > .container-nav {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        width: auto;
        height: 74px !important;
        min-height: 74px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .container-header > .container-nav .navbar {
        display: flex !important;
        align-items: center;
        height: 74px !important;
        min-height: 74px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header > .container-nav .navbar-toggler {
        display: none !important;
    }

    .container-header > .container-nav .navbar-collapse {
        position: static !important;
        display: block !important;
        height: auto !important;
    }

    /* Erzwingt ein horizontales Menü und überschreibt damit
       gezielt MetisMenus eigene, vertikal ausgelegte
       Standardstile für Liste, Listenpunkte und Links. */
    .container-header > .container-nav .mod-menu,
    .container-header > .container-nav .navbar-collapse .mod-menu {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .container-header > .container-nav .mod-menu > li {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .container-header > .container-nav .mod-menu > li > a {
        display: inline-flex !important;
        align-items: center !important;
        height: 74px !important;
        padding: 0 16px !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    .container-header .navbar-brand,
    .container-header .navbar-brand img {
        display: block;
        width: auto;
        height: auto;
        max-height: 46px;
        margin: 0;
    }
}

/* =========================================================
   FOOTER – KOMPLETT NEU
   ========================================================= */

.site-footer {
    position: relative;
    left: 50vw;
    width: 100vw;
    margin-top: 50px;
    transform: translateX(-50%);
    background: #122b4a;
    color: #dce8f2;
    box-sizing: border-box;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    align-items: start;
    gap: 70px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 40px;
    box-sizing: border-box;
}

.site-footer-brand {
    min-width: 0;
}

.site-footer-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 55px;
    margin: 0 0 18px;
}

.site-footer-brand p {
    max-width: 230px;
    margin: 0;
    color: #b9cad8;
    font-size: 13px;
    line-height: 1.55;
}

.site-footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.site-footer-column h3 {
    width: 100%;
    margin: 0 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.site-footer-column a {
    display: block;
    width: fit-content;
    margin: 0 0 12px;
    color: #b9cad8;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-column a:hover {
    color: #8fc7ee;
}

.site-footer-login-button {
    display: inline-block !important;
    width: auto !important;
    padding: 0 !important;
    margin-top: 0;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    color: #b9cad8 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.site-footer-login-button:hover {
    background: none !important;
    border: none !important;
    color: #8fc7ee !important;
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 9px 40px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #122b4a;
    color: #8fa5b8;
    font-size: 11px;
}

.site-footer,
.site-footer-inner,
.site-footer-bottom,
footer,
.container-footer,
.footer,
.container-footer > *,
footer.site-footer {
    background: #122b4a !important;
}

footer.site-footer::before {
    display: none !important;
}

.container-footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.container-footer > .grid-child,
.container-footer .grid-child {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.site-footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.site-footer-inner {
    margin-top: 18px !important;
    padding-top: 10px !important;
}

.site-footer + *,
.site-footer ~ * {
    margin-top: 0 !important;
}

/* =========================================================
   FOOTER – TABLET / INTERMEDIATE (≤ 900px)
   ========================================================= */

@media (max-width: 900px) {
    .site-footer-inner {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 40px;
        padding: 38px 30px 30px;
    }

    .site-footer-login {
        grid-column: 3;
    }
}

/* =========================================================
   FOOTER – MOBILE (≤ 650px)
   ========================================================= */

@media (max-width: 650px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 35px 30px;
        padding: 35px 24px 30px;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer-login {
        grid-column: auto;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 24px;
    }
}

/* =========================================================
   FOOTER – SMALL MOBILE (≤ 450px)

   Einzige Stelle, an der der Footer vollständig gestapelt
   wird – zuvor gab es dafür zwei widersprüchliche Regelsätze
   (hier und zusätzlich innerhalb des alten 760px-Blocks),
   die sich gegenseitig überschrieben haben.
   ========================================================= */

@media (max-width: 450px) {
    .site-footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: 28px 20px 18px;
        text-align: center;
    }

    .site-footer-brand {
        max-width: 280px;
        text-align: center;
    }

    .site-footer-logo {
        margin: 0 auto 14px;
    }

    .site-footer-column {
        min-width: 110px;
        text-align: center;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 20px;
        text-align: center;
    }
}

/* =========================================================
   NAVIGATION – TABLET UND MOBILE (≤ 991px)

   Deckt kleine Smartphones, große Smartphones UND Tablets
   einheitlich mit dem Hamburger-Menü ab. Erst ab 992px
   (siehe "HEADER – DESKTOP" oben) wird auf die horizontale
   Navigation umgeschaltet – exakt an Bootstraps eigenem
   navbar-expand-lg-Breakpoint, damit sich die beiden Systeme
   nicht mehr in einem Zwischenbereich widersprechen.
   ========================================================= */

@media (max-width: 991px) {
    .container-header {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 60px !important;
        height: 60px !important;
        padding: 6px 14px !important;
        box-sizing: border-box !important;
    }

    /* LOGO */

    .container-header > .grid-child:first-child {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header .navbar-brand {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header .navbar-brand img {
        display: block !important;
        width: auto !important;
        max-width: 95px !important;
        max-height: 38px !important;
        margin: 0 !important;
    }

    /* NAVIGATION */

    .container-header > .container-nav {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        height: 60px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header > .container-nav .navbar {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* HAMBURGER */

    .container-header .navbar-toggler {
        position: relative !important;
        top: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.45) !important;
        border-radius: 4px !important;
        background: transparent !important;
        color: #ffffff !important;
        cursor: pointer !important;
        transform: none !important;
    }

    .container-header .navbar-toggler .icon-menu {
        color: #ffffff !important;
        font-size: 22px !important;
    }

    /* MENÜ – STANDARDMÄSSIG GESCHLOSSEN, folgt Bootstraps
       eigener .collapse/.show-Logik statt sie zu überschreiben */

    .container-header .navbar-collapse {
        position: absolute !important;
        top: 54px !important;
        right: 0 !important;
        z-index: 9999 !important;
        width: 220px !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        border-radius: 4px !important;
        background: #122b4a !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    }

    .container-header .navbar-collapse:not(.show) {
        display: none !important;
    }

    .container-header .navbar-collapse.show {
        display: block !important;
    }

    .container-header .navbar-collapse .mod-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .container-header .navbar-collapse .mod-menu > li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .container-header .navbar-collapse .mod-menu > li > a {
        display: block !important;
        width: 100% !important;
        padding: 12px 18px !important;
        box-sizing: border-box !important;
        color: #ffffff !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
    }

    .container-header .navbar-collapse .mod-menu > li > a:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #8fc7ee !important;
    }

    /* HOME AUF MOBIL/TABLET AUSBLENDEN */

    .container-header .navbar-collapse .mod-menu > li:first-child {
        display: none !important;
    }
}

/* =========================================================
   MOBILE – STARTSEITE (≤ 760px)
   ========================================================= */

@media (max-width: 760px) {
    :root {
        --home-side-space: 14px;
    }

    /* HERO */

    .home-hero {
        min-height: 420px !important;
        margin-bottom: 30px !important;
        padding: 35px 24px !important;
        background-position: center center !important;
    }

    .home-hero-content {
        max-width: 100% !important;
    }

    .home-hero h2 {
        font-size: 29px !important;
        line-height: 1.15 !important;
    }

    .home-hero p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    /* LÖSUNGEN UND KARTEN */

    .home-section-heading h2 {
        font-size: 24px !important;
    }

    .home-section-heading p {
        font-size: 14px !important;
    }

    .home-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .home-card {
        min-height: 0 !important;
    }

    .home-card-image {
        height: 180px !important;
        min-height: 180px !important;
    }

    .home-card-content {
        padding: 18px !important;
    }

    .home-card h3 {
        font-size: 20px !important;
    }

    /* PROJEKTANFRAGE */

    .home-contact {
        width: calc(100vw - 28px) !important;
        margin: 30px auto 35px !important;
        padding: 30px 20px !important;
        border-radius: 14px !important;
    }

    .home-contact h2 {
        font-size: 23px !important;
    }

    .home-contact p {
        font-size: 14px !important;
    }
}

/* =========================================================
   KLEINE HANDYS (≤ 450px)
   ========================================================= */

@media (max-width: 450px) {
    .container-header .navbar-brand img {
        max-width: 88px !important;
        max-height: 36px !important;
    }

    .container-header .navbar-toggler {
        width: 40px !important;
        height: 40px !important;
    }

    .container-header .navbar-collapse {
        width: 210px !important;
    }

    .home-hero {
        padding: 34px 20px !important;
    }

    .home-hero h2 {
        font-size: 28px !important;
    }

    .home-contact {
        width: calc(100vw - 24px) !important;
        padding: 28px 18px !important;
    }
}

/* =========================================================
   SEITENBREITE KONSTANT HALTEN

   html { overflow-y: scroll } erzwingt eine dauerhaft
   reservierte Scrollbar. Dadurch ist 100vw (verwendet bei
   .home-hero, .home-products und .site-footer) immer um die
   Breite dieser Scrollbar größer als die tatsächlich
   sichtbare Fensterbreite (100%). Auf breiten Desktop-
   Bildschirmen fällt dieser Unterschied von 15–17px kaum auf,
   bei knapperen Tablet-Breiten führt er aber genau zu dem
   abgeschnittenen/verschobenen Footer aus den Screenshots.
   overflow-x hier ist daher keine Symptombehandlung für ein
   fehlerhaftes Footer-Layout, sondern behebt die eigentliche
   Ursache dieser bekannten vw-/Scrollbar-Differenz.
   ========================================================= */

html {
    overflow-x: hidden;
    overflow-y: scroll;
}

/* Footer innerhalb des Template-Containers zentrieren */
.container-footer > .grid-child {
    width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
}

.container-footer .mod-custom {
    width: 100%;
    min-width: 0;
}

.container-footer .site-footer {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
}

.site-footer-inner,
.site-footer-bottom {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Leere Überschriften als Abstandshalter ausblenden */
.site-footer-column > h5 {
    display: none;
}

/* Kompaktere Abstände innerhalb der Bereiche */
.site-footer-logo {
    margin-bottom: 12px;
}

.site-footer-column h3 {
    margin-bottom: 12px;
}

.site-footer-column a {
    margin-bottom: 8px;
}

/* Weniger Abstand zwischen den Bereichen auf kleinen Handys */
@media (max-width: 450px) {
    .site-footer-inner {
        gap: 20px;
    }
}

/* Desktop: Linkbereiche tiefer, Login unter Referenzen */
@media (min-width: 901px) {
    .site-footer-inner > .site-footer-column {
        padding-top: 22px;
    }

    .site-footer-bottom {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
        column-gap: 70px;
        align-items: center;
    }

    .site-footer-copyright {
        grid-column: 1 / 4;
    }

    .site-footer-bottom > a {
        grid-column: 4;
        justify-self: center;
    }
}
/* Logo auf Desktop vertikal zentrieren */
@media (min-width: 992px) {
    .container-header .navbar-brand {
        display: flex;
        align-items: center;
        padding: 0;
    }

    .container-header .brand-logo {
        display: flex;
        align-items: center;
    }
}

/* Kontaktüberschrift an die übrigen Seiten angleichen */
.com-contact {
    max-width: none;
    margin-top: 0;
}

.com-contact .page-header h1 {
    font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
    .com-contact .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Formular bündig zur Seitenüberschrift */
.com-contact__form {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
}

/* Referenzkarte: Freigabe vor dem Laden */
.reference-map-consent {
    margin: 24px 0 32px;
}

.reference-map-consent [hidden] {
    display: none !important;
}

.reference-map-notice {
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid #c9ddea;
    border-radius: 8px;
    background: #f3f9fc;
    text-align: center;
}

.reference-map-notice h2 {
    margin: 0 0 16px;
    color: #122b4a;
}

.reference-map-notice p {
    max-width: 680px;
    margin: 0 auto 18px;
}

.reference-map-load {
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.reference-map-content iframe {
    display: block;
    width: 100%;
    height: 652px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.reference-map-controls {
    margin: 10px 0 0;
    text-align: right;
}

.reference-map-unload {
    padding: 8px;
    border: 0;
    background: transparent;
    color: #1769aa;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.reference-map-load:focus-visible,
.reference-map-unload:focus-visible {
    outline: 3px solid #1769aa;
    outline-offset: 4px;
}

@media (max-width: 650px) {
    .reference-map-content iframe {
        height: 480px;
    }
}

/* SENSOREN – PRODUKTKARTEN */
@media (min-width: 761px) {
    body.itemid-105 .com-content-category-blog__items {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

body.itemid-105 .com-content-category-blog__item {
    display: flex;
    height: 100%;
    margin: 0;
    border: 1px solid #d9e0e7;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.itemid-105 .com-content-category-blog__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(18, 43, 74, 0.12);
}

body.itemid-105 .com-content-category-blog__item .item-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

body.itemid-105 .com-content-category-blog__item h2 {
    margin: 0 0 16px;
    color: #122b4a;
    font-size: 22px;
    line-height: 1.2;
}

body.itemid-105 .com-content-category-blog__item img {
    display: block;
    width: 100%;
    height: 175px;
    margin: 0 0 18px;
    object-fit: contain;
    object-position: center;
}

body.itemid-105 .com-content-category-blog__item p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
}

body.itemid-105 .com-content-category-blog__item .readmore {
    margin-top: auto;
    margin-bottom: 0;
}

body.itemid-105 .com-content-category-blog__item .readmore .btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1769aa;
    font-weight: 700;
    text-decoration: none;
}

body.itemid-105 .com-content-category-blog__item .readmore .btn:hover {
    color: #0d4f82;
    text-decoration: underline;
}

/* Englischen Standardtext im Button ausblenden */
body.itemid-105 .com-content-category-blog__item .readmore .btn {
    font-size: 0;
}

body.itemid-105 .com-content-category-blog__item .readmore .btn::after {
    content: "Details ansehen";
    font-size: 14px;
}

body.itemid-105 .com-content-category-blog__item .readmore .icon-chevron-right {
    margin-right: 5px;
    font-size: 14px;
}

@media (max-width: 760px) {
    body.itemid-105 .com-content-category-blog__items {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.itemid-105 .com-content-category-blog__item .item-content {
        padding: 20px;
    }
}

/* Sensoren – gleicher blauer Akzent wie Hardware und Software */
body.itemid-105 .com-content-category-blog__item {
  border-top: 5px solid #1769aa;
}

/* HARDWARE UND SOFTWARE – PRODUKTKARTEN */
@media (min-width: 761px) {
    body.itemid-103 .com-content-category-blog__items,
    body.itemid-104 .com-content-category-blog__items {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

body.itemid-103 .com-content-category-blog__item,
body.itemid-104 .com-content-category-blog__item {
    display: flex;
    height: 100%;
    margin: 0;
    border: 1px solid #d9e0e7;
    border-top: 5px solid #1769aa;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.itemid-103 .com-content-category-blog__item:hover,
body.itemid-104 .com-content-category-blog__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(18, 43, 74, 0.12);
}

body.itemid-103 .com-content-category-blog__item .item-content,
body.itemid-104 .com-content-category-blog__item .item-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

body.itemid-103 .com-content-category-blog__item h2,
body.itemid-104 .com-content-category-blog__item h2 {
    margin: 0 0 14px;
    color: #122b4a;
    font-size: 22px;
    line-height: 1.2;
}

body.itemid-103 .com-content-category-blog__item p,
body.itemid-104 .com-content-category-blog__item p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
}

body.itemid-103 .com-content-category-blog__item .readmore,
body.itemid-104 .com-content-category-blog__item .readmore {
    margin-top: auto;
    margin-bottom: 0;
}

body.itemid-103 .com-content-category-blog__item .readmore .btn,
body.itemid-104 .com-content-category-blog__item .readmore .btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1769aa;
    font-size: 0;
    font-weight: 700;
    text-decoration: none;
}

body.itemid-103 .com-content-category-blog__item .readmore .btn::after,
body.itemid-104 .com-content-category-blog__item .readmore .btn::after {
    content: "Details ansehen";
    font-size: 14px;
}

body.itemid-103 .com-content-category-blog__item .readmore .icon-chevron-right,
body.itemid-104 .com-content-category-blog__item .readmore .icon-chevron-right {
    margin-right: 5px;
    font-size: 14px;
}

@media (max-width: 760px) {
    body.itemid-103 .com-content-category-blog__items,
    body.itemid-104 .com-content-category-blog__items {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.itemid-103 .com-content-category-blog__item .item-content,
    body.itemid-104 .com-content-category-blog__item .item-content {
        padding: 20px;
    }
}

/* Software – Screenshot-Galerien */
.software-screenshots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.software-screenshots figure {
    margin: 0;
    padding: 12px;
    border: 1px solid #d9e0e7;
    border-radius: 6px;
    background: #fff;
}

.software-screenshots img {
    display: block;
    width: 100%;
    height: auto;
}

.software-screenshots figcaption {
    margin-top: 10px;
    color: #36536d;
    font-size: 14px;
}

@media (max-width: 760px) {
    .software-screenshots {
        grid-template-columns: 1fr;
    }
}

body.itemid-103 .product-card-image,
body.itemid-104 .product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin: 0 -22px 20px !important;
  overflow: hidden;
  background: #f3f7fa;
}

body.itemid-103 .product-card-image img,
body.itemid-104 .product-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 760px) {
  body.itemid-103 .product-card-image,
  body.itemid-104 .product-card-image {
    margin: 0 -20px 18px !important;
  }
}

/* STARTSEITE – Hardware- und Sensorbild größer darstellen */

.home-card--hardware .home-card-image,
.home-card--sensoren .home-card-image {
    padding: 0 !important;
    background: #d8d8d8;
}

/* Alten unscharfen Hintergrund entfernen */
.home-card--hardware .home-card-image::before,
.home-card--sensoren .home-card-image::before {
    display: none !important;
}

/* Quadratische Bilder auf die breite Kartenfläche zuschneiden */
.home-card--hardware .home-card-image img,
.home-card--sensoren .home-card-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.2);
}

/* Mobile Darstellung */
@media (max-width: 760px) {
    .home-card--hardware .home-card-image,
    .home-card--sensoren .home-card-image {
        height: 190px !important;
        min-height: 190px !important;
    }

    .home-card--hardware .home-card-image img,
    .home-card--sensoren .home-card-image img {
        transform: scale(1.18);
    }
}

/* PARTNER – Logo-Galerie */
.partner-intro {
  max-width: 760px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.6;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 48px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  padding: 18px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
  border-color: #1769aa;
  box-shadow: 0 8px 22px rgba(18, 43, 74, 0.14);
  transform: translateY(-3px);
}

.partner-card:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

.partner-card img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 78px;
  object-fit: contain;
}

@media (max-width: 1000px) {
  .partner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .partner-card {
    min-height: 110px;
    padding: 14px;
  }

  .partner-card img {
    height: 66px;
  }
}

/* DESKTOP-NAVIGATION – aktiver Menüpunkt */
@media (min-width: 992px) {
  .container-header .mod-menu > li > a::after {
    right: 16px;
    bottom: 9px;
    left: 16px;
    width: auto;
    height: 3px;
    border-radius: 3px;
    background: #bfe8ff;
    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: center;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .container-header .mod-menu > li.active > a::after,
  .container-header .mod-menu > li.current > a::after {
    opacity: 0.95;
    transform: scaleX(1);
    animation: navigation-indicator-in 0.45s ease-out;
  }

  .container-header .mod-menu > li:not(.active):not(.current) > a:hover::after {
    opacity: 0.45;
    transform: scaleX(0.8);
  }
}

@keyframes navigation-indicator-in {
  from {
    opacity: 0;
    transform: scaleX(0.25);
  }

  to {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

/* =========================================================
   ENGLISCHE PRODUKTÜBERSICHTEN
   Hardware 113 | Sensoren 114 | Software 115
   ========================================================= */

@media (min-width: 761px) {
  body.itemid-113 .com-content-category-blog__items,
  body.itemid-114 .com-content-category-blog__items,
  body.itemid-115 .com-content-category-blog__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

body.itemid-113 .com-content-category-blog__item,
body.itemid-114 .com-content-category-blog__item,
body.itemid-115 .com-content-category-blog__item {
  display: flex;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9e0e7;
  border-top: 5px solid #1769aa;
  border-radius: 6px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.itemid-113 .com-content-category-blog__item:hover,
body.itemid-114 .com-content-category-blog__item:hover,
body.itemid-115 .com-content-category-blog__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(18, 43, 74, 0.12);
}

body.itemid-113 .com-content-category-blog__item .item-content,
body.itemid-114 .com-content-category-blog__item .item-content,
body.itemid-115 .com-content-category-blog__item .item-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

body.itemid-113 .com-content-category-blog__item h2,
body.itemid-114 .com-content-category-blog__item h2,
body.itemid-115 .com-content-category-blog__item h2 {
  margin: 0 0 14px;
  color: #122b4a;
  font-size: 22px;
  line-height: 1.2;
}

body.itemid-113 .com-content-category-blog__item p,
body.itemid-114 .com-content-category-blog__item p,
body.itemid-115 .com-content-category-blog__item p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}

body.itemid-113 .com-content-category-blog__item .readmore,
body.itemid-114 .com-content-category-blog__item .readmore,
body.itemid-115 .com-content-category-blog__item .readmore {
  margin-top: auto;
  margin-bottom: 0;
}

body.itemid-113 .com-content-category-blog__item .readmore .btn,
body.itemid-114 .com-content-category-blog__item .readmore .btn,
body.itemid-115 .com-content-category-blog__item .readmore .btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1769aa;
  font-size: 0;
  font-weight: 700;
  text-decoration: none;
}

body.itemid-113 .com-content-category-blog__item .readmore .btn::after,
body.itemid-114 .com-content-category-blog__item .readmore .btn::after,
body.itemid-115 .com-content-category-blog__item .readmore .btn::after {
  content: "View details";
  font-size: 14px;
}

body.itemid-113 .com-content-category-blog__item .readmore .btn:hover,
body.itemid-114 .com-content-category-blog__item .readmore .btn:hover,
body.itemid-115 .com-content-category-blog__item .readmore .btn:hover {
  color: #0d4f82;
  text-decoration: underline;
}

body.itemid-113 .com-content-category-blog__item .readmore .icon-chevron-right,
body.itemid-114 .com-content-category-blog__item .readmore .icon-chevron-right,
body.itemid-115 .com-content-category-blog__item .readmore .icon-chevron-right {
  margin-right: 5px;
  font-size: 14px;
}

/* Hardware- und Software-Bilder */
body.itemid-113 .product-card-image,
body.itemid-115 .product-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin: 0 -22px 20px !important;
  overflow: hidden;
  background: #f3f7fa;
}

body.itemid-113 .product-card-image img,
body.itemid-115 .product-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

/* Sensorbilder */
body.itemid-114 .com-content-category-blog__item img {
  display: block;
  width: 100%;
  height: 175px;
  margin: 0 0 18px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 760px) {
  body.itemid-113 .com-content-category-blog__items,
  body.itemid-114 .com-content-category-blog__items,
  body.itemid-115 .com-content-category-blog__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.itemid-113 .com-content-category-blog__item .item-content,
  body.itemid-114 .com-content-category-blog__item .item-content,
  body.itemid-115 .com-content-category-blog__item .item-content {
    padding: 20px;
  }

  body.itemid-113 .product-card-image,
  body.itemid-115 .product-card-image {
    margin: 0 -20px 18px !important;
  }
}