:root {
    --heidecke-bg: #f8f5ef;
    --heidecke-beige: #e8ddc9;
    --heidecke-hover: #d6c4a5;
    --heidecke-text: #29251f;
    --heidecke-accent: #914f1b;
    --heidecke-radius: 22px;
}

/* 01 | Lokale Schriftdateien (WOFF2) */
@font-face {
    font-family: "Fira Sans Condensed Local";
    src: url("/media/fonts/heidecke/fira-sans-condensed-v11-latin-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Fira Sans Condensed Local";
    src: url("/media/fonts/heidecke/fira-sans-condensed-v11-latin-600.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Fira Sans Condensed Local";
    src: url("/media/fonts/heidecke/fira-sans-condensed-v11-latin-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
.leistungen .astroid-article-heading {
    display: none !important;
}
.content-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}
.content-image-contain {
    object-fit: contain;
}
.heidecke-box,
.heidecke-kontakt-box {
    background: var(--heidecke-bg);
    color: var(--heidecke-text);
    border-radius: var(--heidecke-radius);
}
.heidecke-box h2,
.heidecke-box h3 {
    color: inherit;
}
.heidecke-link {
    color: var(--heidecke-text);
    text-decoration: none;
    transition: color .25s ease;
}
.heidecke-link:hover {
    color: var(--heidecke-accent);
    text-decoration: underline;
}
.heidecke-btn,
.heidecke-hinweis,
.readmore a {
    background: var(--heidecke-beige);
    color: var(--heidecke-text);
    border: 1px solid var(--heidecke-beige);
    border-radius: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}
.heidecke-btn,
.readmore a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 22px;
    text-decoration: none;
    transition: background .25s, border-color .25s,
        box-shadow .25s, transform .25s;
}
.heidecke-btn {
    width: 100%;
}
.readmore a {
    width: auto;
}
.heidecke-hinweis {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 14px 28px;
}
.heidecke-btn:hover,
.heidecke-btn:focus-visible,
.readmore a:hover,
.readmore a:focus-visible {
    background: var(--heidecke-hover);
    border-color: var(--heidecke-hover);
    color: var(--heidecke-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgb(0 0 0 / 10%);
}
.heidecke-btn:focus-visible,
.readmore a:focus-visible {
    outline: 2px solid var(--heidecke-text);
    outline-offset: 3px;
}
/* 03 | Leistungskacheln */
.heidecke-service {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 35px;
    border-radius: var(--heidecke-radius);
    color: var(--heidecke-text);
    transition: transform .3s, box-shadow .3s;
}
.heidecke-service-1 {
    background: #f1e5d2;
}
.heidecke-service-2 {
    background: #e1d4bf;
}
.heidecke-service-3 {
    background: #e5e3d7;
}
.heidecke-service-4 {
    background: #d8c5ae;
}
.heidecke-service-label {
    display: block;
    margin-bottom: 16px;
    color: #594a35;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.heidecke-service h3 {
    margin: 0 0 16px;
    color: #36291e;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.25;
}
.heidecke-service p {
    margin: 0;
    color: #4e4033;
    font-size: 1rem;
    line-height: 1.7;
}
.heidecke-service:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgb(55 43 31 / 10%);
}
/* 04 | Zweispaltige Astroid-Leistungsmodule */
.heidecke-module .astroid-row {
    --bs-gutter-x: 24px;
    align-items: stretch;
    column-gap: 24px;
    row-gap: 24px;
    margin-bottom: 24px;
}
.heidecke-module .astroid-row:last-child {
    margin-bottom: 0;
}
.heidecke-module .astroid-column {
    padding: 35px;
    background: var(--heidecke-bg);
    border-radius: var(--heidecke-radius);
}
.heidecke-module .astroid-column h2 {
    margin-bottom: 20px;
    text-transform: uppercase;
}
.heidecke-module .astroid-column img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}
.heidecke-module .astroid-column li {
    margin-bottom: 10px;
    line-height: 1.6;
}
/* Breite Bild-Text-Beiträge: nicht als .heidecke-module-Zweispaltenlayout einsetzen */
.heidecke-modul-breit .row {
    align-items: center;
}
.heidecke-modul-breit .content-image,
.heidecke-module .astroid-column .heidecke-modul-breit .content-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 16px;
}
/* 05 | Kontaktbereich und Google Maps */
.heidecke-kontakt-row {
    --bs-gutter-x: 24px;
    align-items: stretch;
}
.heidecke-kontakt-row>.astroid-column,
.heidecke-kontakt-row>.astroid-column>*,
.heidecke-kontakt-row .moduletable,
.heidecke-kontakt-row .mod-custom {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.heidecke-kontakt-box {
    height: 100%;
    padding: 35px;
}
.heidecke-kontakt-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.heidecke-kontakt-buttons .heidecke-btn {
    flex: 1;
    min-width: 0;
    gap: 10px;
}
.heidecke-map-box {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--heidecke-radius);
}
.heidecke-map-box iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
/* 06 | Retina-Care */
.heidecke-retina-video {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--heidecke-text);
}
.heidecke-retina-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
article:has(.heidecke-retina) .readmore,
.blog-item:has(.heidecke-retina) .readmore {
    box-sizing: border-box;
    width: 50%;
    margin-left: auto;
    padding-left: 24px;
}
/* 07 | Header und Social Media */
.heidecke-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}
.heidecke-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--heidecke-text);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.heidecke-header-phone:hover {
    color: var(--heidecke-accent);
}
.heidecke-header-termin {
    width: auto;
    min-height: 42px;
    padding: 10px 20px;
    gap: 9px;
}
.heidecke-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.heidecke-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--heidecke-beige);
    border-radius: 50%;
    color: var(--heidecke-text);
    text-decoration: none;
    transition: background .25s, color .25s;
}
.heidecke-social a:hover,
.heidecke-social a:focus-visible {
    background: var(--heidecke-beige);
    color: var(--heidecke-accent);
}
.heidecke-social a:focus-visible {
    outline: 2px solid var(--heidecke-accent);
    outline-offset: 3px;
}
.heidecke-social-footer {
    justify-content: center;
    width: 100%;
}

.heidecke-social-footer a {
    color: #fff;
}
.heidecke-social-footer a:hover,
.heidecke-social-footer a:focus-visible {
    color: #fff;
    background: var(--heidecke-accent);
}
/* 08 | Startseiten-Hero */
.heidecke-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 650px;
    overflow: hidden;
    background: var(--heidecke-bg);
}
.heidecke-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    transform-origin: center;
    animation: heidecke-hero-zoom 18s ease-in-out infinite alternate;
}
.heidecke-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
            var(--heidecke-bg) 0%,
            rgb(248 245 239 / 90%) 28%,
            rgb(248 245 239 / 45%) 55%,
            transparent 80%);
}
.heidecke-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1320px);
    margin: auto;
    padding: 80px 50px;
}
.heidecke-hero-label {
    color: var(--heidecke-accent);
    font-weight: 600;
    letter-spacing: 2px;
}
.heidecke-hero h1 {
    max-width: 650px;
    margin: 20px 0 28px;
    color: var(--heidecke-text);
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
}
.heidecke-hero-description {
    max-width: 500px;
    margin-bottom: 36px;
    font-size: 1.2rem;
    line-height: 1.6;
}
.heidecke-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.heidecke-hero-actions .heidecke-btn {
    width: auto;
}
.heidecke-hero-actions .heidecke-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 6px;
}
@keyframes heidecke-hero-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* 09 | Astroid Mega-Menü (Desktop) */
@media (min-width: 992px) {
    .heidecke-module .astroid-row>.astroid-column {
        width: calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);
    }
    .megamenu-container {
        padding: 20px;
        background: var(--heidecke-bg);
        border-radius: var(--heidecke-radius);
        box-shadow: 0 15px 40px rgb(41 37 31 / 12%);
    }
    .megamenu-container .nav-submenu {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .megamenu-container .nav-submenu a.as-menu-item {
        display: flex;
        align-items: center;
        min-height: 60px;
        margin-bottom: 10px;
        padding: 15px 20px;
        background: var(--heidecke-beige);
        color: var(--heidecke-text);
        border-radius: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: background .25s, transform .25s;
    }
    .megamenu-container .nav-submenu a.as-menu-item:hover,
    .megamenu-container .nav-submenu a.as-menu-item:focus-visible {
        background: var(--heidecke-hover);
        color: var(--heidecke-text);
        transform: translateY(-2px);
    }
    .megamenu-container .nav-title-text {
        color: inherit;
    }
    .nav-submenu.megamenu-submenu-level-1 {
        padding: 8px;
        background: var(--heidecke-bg);
        border-radius: 16px;
    }
    .nav-submenu.megamenu-submenu-level-1>li {
        margin: 0;
        padding: 0;
    }
    .nav-submenu.megamenu-submenu-level-1>li>a.as-menu-item {
        margin: 0 0 6px;
        border-radius: 10px;
    }
    .nav-submenu.megamenu-submenu-level-1>li:last-child>a {
        margin-bottom: 0;
    }
    .nav-submenu li.active>a.as-menu-item,
    .nav-submenu li.current>a.as-menu-item,
    .nav-submenu a.as-menu-item.active,
    .nav-submenu a.as-menu-item[aria-current="page"] {
        background: var(--heidecke-hover) !important;
        color: var(--heidecke-text) !important;
    }
    .nav-submenu li.active>a .nav-title-text,
    .nav-submenu li.current>a .nav-title-text,
    .nav-submenu a.active .nav-title-text,
    .nav-submenu a[aria-current="page"] .nav-title-text {
        color: var(--heidecke-text) !important;
    }
}
/* 10 | Tablet / Smartphone */
@media (min-width: 768px) {
    .content-image {
        height: 500px;
    }
}
@media (max-width: 767.98px) {
    .heidecke-service {
        padding: 27px;
        border-radius: 16px;
    }
    .heidecke-service h3 {
        font-size: 1.5rem;
    }
    .heidecke-module .astroid-column {
        padding: 25px;
        border-radius: 16px;
    }
    .heidecke-module .astroid-column img {
        height: 200px;
    }
    .heidecke-modul-breit .content-image,
    .heidecke-module .astroid-column .heidecke-modul-breit .content-image {
        height: 280px;
        min-height: 0;
    }
    .heidecke-kontakt-box {
        padding: 25px;
    }
    .heidecke-kontakt-buttons {
        flex-direction: column;
    }
    .heidecke-map-box {
        flex: none;
        height: 300px;
        min-height: 300px;
        border-radius: 16px;
    }
    .heidecke-retina-video {
        height: 300px;
    }
    article:has(.heidecke-retina) .readmore,
    .blog-item:has(.heidecke-retina) .readmore {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
    .heidecke-header-actions {
        justify-content: center;
        gap: 12px;
    }
    .heidecke-hero {
        min-height: 580px;
        align-items: flex-end;
    }
    .heidecke-hero-image {
        animation: none;
    }
    .heidecke-hero::before {
        background: linear-gradient(0deg,
                var(--heidecke-bg) 0%,
                rgb(248 245 239 / 90%) 50%,
                transparent 100%);
    }
    .heidecke-hero-content {
        padding: 60px 24px 40px;
    }
    .heidecke-hero-description {
        font-size: 1rem;
    }
}
@media (max-width: 575.98px) {
    .heidecke-box {
        border-radius: 16px;
    }
    .heidecke-btn,
    .readmore a {
        padding: 13px 10px;
        border-radius: 12px;
        font-size: .95rem;
    }
}
/* 11 | Barrierefreiheit – Animationen auf Wunsch abschalten */
@media (prefers-reduced-motion: reduce) {
    .heidecke-btn,
    .heidecke-link,
    .heidecke-service,
    .readmore a,
    .heidecke-social a,
    .megamenu-container .nav-submenu a.as-menu-item {
        transition: none;
    }
    .heidecke-btn:hover,
    .heidecke-btn:focus-visible,
    .heidecke-service:hover,
    .readmore a:hover,
    .readmore a:focus-visible,
    .megamenu-container .nav-submenu a.as-menu-item:hover,
    .megamenu-container .nav-submenu a.as-menu-item:focus-visible {
        transform: none;
    }
    .heidecke-hero .heidecke-hero-image {
        animation: none;
    }
}
/* OPTIKER HEIDECKE – OFFCANVAS-NAVIGATION – Joomla 6 / Astroid III / Bootstrap 5 */

@media (max-width: 991.98px) {

    /* 1. MENÜMODUL */

    .heidecke-offcanvas-menu {
        font-family: "Fira Sans", sans-serif;
        color: var(--heidecke-text);
    }

    /* Hauptmenüliste */
    .heidecke-offcanvas-menu ul.mod-menu,
    .heidecke-offcanvas-menu ul.menu {
        display: flex;
        flex-direction: column;
        gap: 9px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .heidecke-offcanvas-menu li {
        list-style: none;
    }

    /* 2. HAUPTMENÜPUNKTE */

    /* Links und Joomla-Trennzeichen */
    .heidecke-offcanvas-menu ul.mod-menu>li>a,

    .heidecke-offcanvas-menu ul.mod-menu>li>span,

    .heidecke-offcanvas-menu ul.menu>li>a,

    .heidecke-offcanvas-menu ul.menu>li>span {

        display: flex;
        align-items: center;
        min-height: 54px;
        padding: 15px 18px;

        background: var(--heidecke-beige);
        color: var(--heidecke-text);

        border-radius: 14px;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;

        text-decoration: none;
        transition: background .25s ease;
    }

    /* Hover für anklickbare Menüpunkte */
    .heidecke-offcanvas-menu ul.mod-menu>li>a:hover,

    .heidecke-offcanvas-menu ul.menu>li>a:hover {

        background: var(--heidecke-hover);
        color: var(--heidecke-text);
    }

    /* Aktiver Menüpunkt */
    .heidecke-offcanvas-menu ul.mod-menu>li.active>a,

    .heidecke-offcanvas-menu ul.menu>li.active>a,

    .heidecke-offcanvas-menu ul.mod-menu>li.current>a,

    .heidecke-offcanvas-menu ul.menu>li.current>a {

        background: var(--heidecke-hover);
        color: var(--heidecke-text);
    }

    /* 3. UNTERMENÜS */

    /* Untermenücontainer */
    .heidecke-offcanvas-menu ul.mod-menu__sub,

    .heidecke-offcanvas-menu ul.nav-child {

        margin: 7px 0 12px 12px;
        padding: 0 0 0 14px;

        border-left: 2px solid var(--heidecke-beige);
        list-style: none;
    }

    /* Untermenüeinträge */
    .heidecke-offcanvas-menu ul.mod-menu__sub li,

    .heidecke-offcanvas-menu ul.nav-child li {

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

    /* Untermenülinks */
    .heidecke-offcanvas-menu ul.mod-menu__sub a,

    .heidecke-offcanvas-menu ul.nav-child a {

        display: block;
        padding: 11px 14px;

        border-radius: 10px;
        background: transparent;

        color: var(--heidecke-text);
        font-size: .94rem;
        font-weight: 400;
        line-height: 1.4;

        text-decoration: none;
        transition: background .25s ease;
    }

    /* Hover Untermenüs */
    .heidecke-offcanvas-menu ul.mod-menu__sub a:hover,

    .heidecke-offcanvas-menu ul.nav-child a:hover {

        background: var(--heidecke-beige);
        color: var(--heidecke-accent);
    }

    /* Aktiver Untermenüpunkt */
    .heidecke-offcanvas-menu ul.mod-menu__sub li.current>a,

    .heidecke-offcanvas-menu ul.nav-child li.current>a {

        background: var(--heidecke-beige);
        color: var(--heidecke-accent);
        font-weight: 600;
    }

    /* 4. AUF- UND ZUKLAPPEN */

    /* Geschlossene Joomla-Untermenüs
       dürfen nicht durch CSS geöffnet werden */

    .heidecke-offcanvas-menu .mod-menu__sub[hidden],

    .heidecke-offcanvas-menu .nav-child[hidden] {

        display: none !important;
    }

    /* Joomla-Toggle-Buttons */
    .heidecke-offcanvas-menu .mod-menu__toggle-sub {

        color: var(--heidecke-accent);
        cursor: pointer;
    }

    /* Pfeile und Toggle-Buttons */
    .heidecke-offcanvas-menu button {

        color: var(--heidecke-accent);
    }

    /* Tastaturfokus */
    .heidecke-offcanvas-menu a:focus-visible,

    .heidecke-offcanvas-menu button:focus-visible {

        outline: 2px solid var(--heidecke-accent);
        outline-offset: 3px;
    }

}

/* 5. BARRIEREFREIHEIT */

@media (prefers-reduced-motion: reduce) {

    .heidecke-offcanvas-menu a,
    .heidecke-offcanvas-menu button {
        transition: none;
    }

}
/* HEIDECKE – OFFCANVAS TRENNZEICHEN */

@media (max-width: 991.98px) {

    /* Joomla-Trennzeichen wie Menübuttons gestalten */
    .heidecke-offcanvas-menu .separator,
    .heidecke-offcanvas-menu .mod-menu__heading,
    .heidecke-offcanvas-menu .mod-menu__separator {

        display: flex;
        align-items: center;
        width: 100%;
        min-height: 54px;
        padding: 15px 18px;

        background: var(--heidecke-beige);
        color: var(--heidecke-text);

        border-radius: 14px;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
    }

    /* Falls Joomla das Trennzeichen in einen
       eigenen Container setzt */
    .heidecke-offcanvas-menu .mod-menu__heading>span,
    .heidecke-offcanvas-menu .mod-menu__separator>span {
        color: inherit;
        font-weight: inherit;
    }

    /* Aktiver Hauptmenüpunkt */
    .heidecke-offcanvas-menu li.active>.separator,
    .heidecke-offcanvas-menu li.active>.mod-menu__heading,
    .heidecke-offcanvas-menu li.active>.mod-menu__separator {

        background: var(--heidecke-hover);
    }
}
/* HEIDECKE – OFFCANVAS TRENNZEICHEN – Breite und Pfeile korrigieren */

@media (max-width: 991.98px) {

    /* Hauptmenüeinträge als vollständige Zeile */
    .heidecke-offcanvas-menu .mod-menu>li,
    .heidecke-offcanvas-menu .menu>li {
        width: 100%;
        min-width: 0;
    }

    /* Joomla-Trennzeichen */
    .heidecke-offcanvas-menu .separator,
    .heidecke-offcanvas-menu .mod-menu__heading,
    .heidecke-offcanvas-menu .mod-menu__separator {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        background: var(--heidecke-beige);
        color: var(--heidecke-text);
        border-radius: 14px;
    }

    /* Kein absolut positionierter Toggle */
    .heidecke-offcanvas-menu .mod-menu__toggle-sub {
        position: static;
        color: var(--heidecke-accent);
    }
}
/* HEIDECKE – OFFCANVAS HAUPTMENÜ – Joomla 6 – Button mit Trennzeichen */

@media (max-width: 991.98px) {

    /* Hauptmenüeinträge */
    /* Gesamter Button inklusive Pfeil */
    .heidecke-offcanvas-menu .mod-menu>li>button.mod-menu__toggle-sub {

        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-height: 54px;
        padding: 15px 18px;
        margin: 0;

        background: var(--heidecke-beige);
        color: var(--heidecke-text);

        border: 0;
        border-radius: 14px;

        font-family: "Fira Sans", sans-serif;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        text-align: left;

        cursor: pointer;
        box-sizing: border-box;
        transition: background .25s ease;
    }

    /* Trennzeichen innerhalb des Buttons */
    .heidecke-offcanvas-menu .mod-menu>li>button.mod-menu__toggle-sub .mod-menu__separator {

        display: inline;
        width: auto;
        min-height: 0;
        padding: 0;
        margin: 0;

        background: transparent;
        border: 0;
        border-radius: 0;

        color: inherit;
        font: inherit;
    }

    /* Pfeil rechts */
    .heidecke-offcanvas-menu .mod-menu>li>button.mod-menu__toggle-sub .icon-chevron-down {

        flex: 0 0 auto;
        margin-left: 16px;
        color: var(--heidecke-accent);
        transition: transform .25s ease;
    }

    /* Geöffnetes Menü */
    .heidecke-offcanvas-menu .mod-menu>li>button.mod-menu__toggle-sub[aria-expanded="true"] {

        background: var(--heidecke-hover);
    }

    /* Pfeil beim Öffnen drehen */
    .heidecke-offcanvas-menu .mod-menu>li>button.mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down {

        transform: rotate(180deg);
    }

    /* Hover */
    .heidecke-offcanvas-menu .mod-menu>li>button.mod-menu__toggle-sub:hover {

        background: var(--heidecke-hover);
    }

    /* Tastaturfokus */
    .heidecke-offcanvas-menu .mod-menu>li>button.mod-menu__toggle-sub:focus-visible {

        outline: 2px solid var(--heidecke-accent);
        outline-offset: 3px;
    }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {

    .heidecke-offcanvas-menu .mod-menu__toggle-sub,
    .heidecke-offcanvas-menu .mod-menu__toggle-sub .icon-chevron-down {
        transition: none;
    }
}
/* HEIDECKE – OFFCANVAS LOGO & KONTAKT */

@media (max-width: 991.98px) {

    /* Logo */
    .heidecke-offcanvas-logo {
        text-align: center;
        margin: 0 0 30px;
    }

    .heidecke-offcanvas-logo img {
        display: block;
        width: min(100%, 260px);
        height: auto;
        margin: 0 auto;
    }

    /* Kontakt unterhalb der Navigation */
    .heidecke-offcanvas-kontakt {
        margin-top: 32px;
        padding-top: 26px;
        border-top: 1px solid var(--heidecke-beige);
        color: var(--heidecke-text);
    }

    .heidecke-offcanvas-label {
        margin: 0 0 8px;
        color: var(--heidecke-accent);
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: 1.2px;
    }

    .heidecke-offcanvas-kontakt h3 {
        margin: 0 0 14px;
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--heidecke-text);
    }

    .heidecke-offcanvas-kontakt h4 {
        margin: 22px 0 8px;
        font-size: .9rem;
        font-weight: 700;
        color: var(--heidecke-text);
    }

    .heidecke-offcanvas-kontakt p {
        margin-bottom: 12px;
        font-size: .94rem;
        line-height: 1.65;
    }

    /* Kontaktbuttons */
    .heidecke-offcanvas-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
    }

    .heidecke-offcanvas-actions .heidecke-btn {
        width: 100%;
        min-height: 50px;
        padding: 12px 18px;
        border-radius: 14px;
    }
}

/* HEIDECKE – HEADER SMARTPHONE & TABLET */

@media (max-width: 991.98px) {

    #astroid-header {
        position: relative;
    }

    /* Logo mittig positionieren */
    #astroid-header .astroid-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        z-index: 2;
    }

    /* Normales Logo ausblenden */
    #astroid-header img.astroid-logo-default {
        display: none !important;
    }

    /* Mobiles Logo anzeigen */
    #astroid-header img.astroid-logo-mobile {
        display: block !important;
        width: auto;
        max-width: min(65vw, 280px);
        height: auto;
    }
}

/* HEIDECKE – MOBILER HERO FEINSCHLIFF */

@media (max-width: 767.98px) {

    /* Hero kompakter */
    .heidecke-hero {
        min-height: 510px;
    }

    /* Weniger Innenabstand */
    .heidecke-hero-content {
        padding: 42px 24px 32px;
    }

    /* Kleine Überschrift */
    .heidecke-hero-label {
        font-size: .78rem;
        letter-spacing: 1.5px;
    }

    /* Hauptüberschrift */
    .heidecke-hero h1 {
        max-width: 100%;
        margin: 14px 0 20px;
        font-size: clamp(2.3rem, 8vw, 3.4rem);
        line-height: 1.12;
    }

    /* Beschreibung */
    .heidecke-hero-description {
        margin-bottom: 24px;
        font-size: 1rem;
        line-height: 1.55;
    }

    /* Buttons */
    .heidecke-hero-actions {
        gap: 14px;
    }

    .heidecke-hero-actions .heidecke-btn {
        min-height: 48px;
        padding: 12px 16px;
    }
}
/* HEIDECKE – STARTSEITE MOBILER BLOGABSTAND */

@media (max-width: 767.98px) {

    /* Nur die Startseite (Menü-ID 101) */
    body.itemid-101 .blog-featured .blog-items {
        margin-top: 0;
        padding-top: 0;
    }

    /* Ersten Blogeintrag ohne zusätzlichen
       oberen Abstand darstellen */
    body.itemid-101 .blog-featured .blog-items .blog-item:first-child {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }
}

.blog .article-intro-text {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
/* HEIDECKE – MOBILE ABSTÄNDE BILD / TEXT */

@media (max-width: 767.98px) {

    /* Bild-Text-Abstand im ersten Beitrag */
    body.itemid-101 .article-intro-text .row.align-items-stretch {
        --bs-gutter-y: 20px;
    }

    /* Text direkt unter dem Bild */
    body.itemid-101 .article-intro-text .row.align-items-stretch>.col-12:nth-child(2) .py-4 {
        padding-top: 0 !important;
    }
}
/* HEIDECKE – MOBILE LEISTUNGSKACHELN */

@media (max-width: 767.98px) {

    /* Kacheln etwas kompakter */
    .heidecke-service {
        padding: 24px;
    }

    /* Überschrift der Kacheln */
    .heidecke-service h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    /* Beschreibung */
    .heidecke-service p {
        line-height: 1.6;
    }

    /* Kleine Kategorieüberschrift */
    .heidecke-service-label {
        margin-bottom: 12px;
    }
}
/* HEIDECKE – MOBILER KONTAKTBEREICH */

@media (max-width: 767.98px) {

    .heidecke-kontakt-box {
        padding: 24px;
    }

    .heidecke-kontakt-box h2 {
        font-size: clamp(1.6rem, 6vw, 2rem);
        line-height: 1.2;
    }

    .heidecke-kontakt-box p {
        margin-bottom: 14px;
    }

    .heidecke-kontakt-buttons {
        margin-top: 18px;
        gap: 10px;
    }
}
/* HEIDECKE – GOOGLE MAPS MOBILE */

@media (max-width: 767.98px) {

    .heidecke-map-box,
    .heidecke-kontakt-row .heidecke-map-box {
        height: 280px;
        min-height: 280px;
        flex: none;
    }
}
/* HEIDECKE – COPYRIGHT RESPONSIVE */

/* Desktop: linksbündig und einzeilig */
.heidecke-copyright {
    text-align: left;
    line-height: 1.5;
}

/* Smartphone und Tablet: mittig, zweizeilig */
@media (max-width: 991.98px) {
    .heidecke-copyright {
        text-align: center;
    }
}
/* HEIDECKE – KOMPAKTER DESKTOP-HEADER – 1200 bis einschließlich 1420 Pixel */

@media (min-width: 1200px) and (max-width: 1420px) {

    /* Social-Media-Icons ausblenden */
    #astroid-header .heidecke-header-actions .heidecke-social {
        display: none !important;
    }

    /* Terminbutton ausblenden */
    #astroid-header .heidecke-header-actions .heidecke-header-termin {
        display: none !important;
    }

    /* Telefonnummer sichtbar lassen */
    #astroid-header .heidecke-header-actions .heidecke-header-phone {
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
    }
}
/* Hero-Überschrift */
.heidecke-hero-content h1 {
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
}
/* Globale Schriftzuordnung – inklusive Astroid-Elemente */

body,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body a,
body span,
body li,
body button,
body input,
body select,
body textarea,
.astroid-nav,
.astroid-nav a,
.heidecke-hero-content,
.heidecke-hero-content * {
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
}
/* Font Awesome Pfeil im Hero korrigieren */

.heidecke-hero-actions .fa-arrow-right {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}
/* Astroid-Überschriften mit lokaler Schrift */

.astroid-framework {
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
}

.astroid-framework h1,
.astroid-framework h2,
.astroid-framework h3,
.astroid-framework h4,
.astroid-framework h5,
.astroid-framework h6,
.astroid-framework .h1,
.astroid-framework .h2,
.astroid-framework .h3,
.astroid-framework .h4,
.astroid-framework .h5,
.astroid-framework .h6 {
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
}
/* Heidecke – mobile Kontaktbuttons */

.heidecke-mobile-contact {
    display: none;
}

@media (max-width: 1199.98px) {
    .heidecke-mobile-contact {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px 16px;
        background: #f8f5ef;
    }

    .heidecke-mobile-contact .heidecke-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100%;
        min-width: 0;
        padding: 12px 10px;
        text-align: center;
        white-space: nowrap;
    }
}
/* Hinweise mit lokaler Schrift */
.astroid-framework .heidecke-hinweis {
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
}


/* ==========================================
   OPTIKER HEIDECKE – 404-FEHLERSEITE
   ========================================== */

/* Hauptbereich */
.heidecke-404 {
    max-width: 850px;
    margin: 40px auto 0;
    padding: 40px 30px 15px;
    text-align: center;
    color: #29251f;
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
}

/* Große 404 im Hintergrundton */
.heidecke-404-number {
    color: #914f1b;
    font-size: clamp(6rem, 18vw, 11rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -5px;
    opacity: 0.25;
}

/* Kleine Oberzeile */
.heidecke-404-label {
    margin: 25px 0 12px;
    color: #914f1b;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Hauptüberschrift */
.astroid-framework .heidecke-404 h1,
.heidecke-404 h1 {
    margin: 0 0 24px;
    color: #29251f;
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
}

/* Beschreibung */
.heidecke-404-text {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Astroid-Button der 404-Seite */
body.error-page .btn,
body.error-page .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    background: #e8ddc9;
    border: 1px solid #e8ddc9;
    border-radius: 16px;
    color: #29251f;
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.25s, border-color 0.25s;
}

/* Hover und Tastaturfokus */
body.error-page .btn:hover,
body.error-page .btn:focus-visible,
body.error-page .btn-primary:hover,
body.error-page .btn-primary:focus-visible {
    background: #d6c4a5;
    border-color: #d6c4a5;
    color: #29251f;
    text-decoration: none;
}

/* Sichtbarer Tastaturfokus */
body.error-page .btn:focus-visible,
body.error-page .btn-primary:focus-visible {
    outline: 2px solid #29251f;
    outline-offset: 3px;
}

/* Smartphone */
@media (max-width: 767.98px) {
    .heidecke-404 {
        margin: 20px auto 0;
        padding: 25px 18px 10px;
    }

    .heidecke-404-number {
        letter-spacing: -2px;
    }

    .heidecke-404-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    body.error-page .btn,
    body.error-page .btn-primary {
        padding: 13px 20px;
        border-radius: 12px;
    }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
    body.error-page .btn,
    body.error-page .btn-primary {
        transition: none;
    }
}

/* ==========================================
   OPTIKER HEIDECKE – LEISTUNGSÜBERSICHT
   ========================================== */

/* Gesamter Leistungsbereich */
.heidecke-leistungen {
    padding: 40px;
    background: #f8f5ef;
    border-radius: 22px;
    color: #29251f;
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
}

/* Kleine Oberzeile */
.heidecke-leistungen .heidecke-leistungen-label {
    margin: 0 0 8px;
    color: #914f1b;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Hauptüberschrift */
.astroid-framework .heidecke-leistungen h2,
.heidecke-leistungen h2 {
    margin: 0 0 30px;
    color: #29251f;
    font-family: "Fira Sans Condensed Local", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

/* Liste – zwei Spalten auf Desktop */
.heidecke-leistungen ul.heidecke-leistungen-liste {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 35px;
    row-gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

/* Einzelne Leistungen */
.heidecke-leistungen .heidecke-leistungen-liste li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #29251f;
    font-size: 1.05rem;
    line-height: 1.45;
    list-style: none !important;
}

/* Standard-Listenpunkte entfernen */
.heidecke-leistungen .heidecke-leistungen-liste li::marker {
    content: "" !important;
}

/* Braune Kreise mit hellen Häkchen */
.heidecke-leistungen .heidecke-leistungen-liste li::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    background: #914f1b;
    border-radius: 50%;
    color: #f8f5ef;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

/* Tablet – weiterhin zwei Spalten */
@media (min-width: 768px) and (max-width: 991.98px) {
    .heidecke-leistungen {
        padding: 32px;
    }

    .heidecke-leistungen ul.heidecke-leistungen-liste {
        column-gap: 20px;
    }
}

/* Smartphone – eine Spalte */
@media (max-width: 767.98px) {
    .heidecke-leistungen {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .heidecke-leistungen ul.heidecke-leistungen-liste {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .heidecke-leistungen .heidecke-leistungen-liste li {
        gap: 12px;
        font-size: 1rem;
    }

    .heidecke-leistungen .heidecke-leistungen-liste li::before {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* ==========================================
   HEIDECKE – GOOGLE MAPS ACCORDION
   ========================================== */

/* Versteckter Checkbox-Schalter */
.heidecke-map-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Desktop: Karte immer sichtbar */
.heidecke-map-button {
    display: none !important;
}

.heidecke-map-accordion {
    width: 100%;
}

/* Mobil */
@media (max-width: 767.98px) {

    .heidecke-map-accordion {
        margin-top: 12px;
    }

    /* Gleiche Breite wie Kontaktbuttons */
    .heidecke-map-accordion .heidecke-map-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 52px;
        padding: 12px 20px;
        margin: 0;
        box-sizing: border-box;
        background: #e8ddc9;
        border: 1px solid #e8ddc9;
        border-radius: 16px;
        color: #29251f;
        font-family: "Fira Sans Condensed Local",
                     Arial, sans-serif;
        font-size: 1.05rem;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
    }

    .heidecke-map-button .map-show,
    .heidecke-map-button .map-hide {
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .heidecke-map-button .map-show {
        display: inline-flex;
    }

    .heidecke-map-button .map-hide {
        display: none;
    }

    .heidecke-map-toggle:checked
    + .heidecke-map-button .map-show {
        display: none;
    }

    .heidecke-map-toggle:checked
    + .heidecke-map-button .map-hide {
        display: inline-flex;
    }

    /* Karte zunächst geschlossen */
    .heidecke-map-accordion .heidecke-map-box {
        display: none;
        margin-top: 14px;
    }

    /* Karte aufklappen */
    .heidecke-map-toggle:checked
    ~ .heidecke-map-box {
        display: block;
    }

    /* Tastaturfokus */
    .heidecke-map-toggle:focus-visible
    + .heidecke-map-button {
        outline: 2px solid #914f1b;
        outline-offset: 3px;
    }
}

/* ==========================================
   OPTIKER HEIDECKE – TRADITIONSHINWEIS
   ========================================== */

.heidecke-tradition {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 26px 35px;
    background: #f8f5ef;
    border-radius: 22px;
    color: #29251f;
}

.heidecke-tradition-text {
    flex: 1;
}

.heidecke-tradition-label {
    margin: 0 0 5px;
    color: #914f1b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.astroid-framework .heidecke-tradition h2 {
    margin: 0 0 5px;
    color: #29251f;
    font-family: "Fira Sans Condensed Local",
                 Arial, sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
}

.heidecke-tradition-text > p:last-child {
    margin: 0;
    font-size: 1rem;
}

.heidecke-tradition .heidecke-tradition-btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}

/* Smartphone */
@media (max-width: 767.98px) {
    .heidecke-tradition {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 25px;
        border-radius: 16px;
    }

    .heidecke-tradition .heidecke-tradition-btn {
        width: 100%;
    }
}

/* Traditionsbereich – volle Breite, ohne Rundungen */
.heidecke-tradition {
    border-radius: 0;
    width: 100%;
    padding: 26px 50px;
    margin: 0;
}

@media (max-width: 767.98px) {
    .heidecke-tradition {
        border-radius: 0;
        padding: 24px 20px;
    }
}

/* ==========================================
   OPTIKER HEIDECKE – UNSERE GESCHICHTE
   ========================================== */

.heidecke-geschichte {
    color: #29251f;
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 20px 80px;
}

.heidecke-geschichte-intro {
    max-width: 850px;
    margin: 0 auto 65px;
    text-align: center;
}

.heidecke-geschichte-label {
    color: #914f1b;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.heidecke-geschichte h1 {
    color: #29251f;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 22px;
}

.heidecke-geschichte-lead {
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Zeitleiste */

.heidecke-geschichte-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 75px;
}

.heidecke-geschichte-station {
    border-top: 3px solid #914f1b;
    padding-top: 22px;
}

.heidecke-geschichte-jahr {
    display: block;
    color: #914f1b;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.heidecke-geschichte-station h2 {
    color: #29251f;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 13px;
}

.heidecke-geschichte-station p {
    line-height: 1.7;
    margin: 0;
}

/* Abschlussbereich */

.heidecke-geschichte-abschluss {
    background: #f8f5ef;
    border-radius: 18px;
    padding: 50px;
    text-align: center;
}

.heidecke-geschichte-abschluss h2 {
    color: #29251f;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 16px;
}

.heidecke-geschichte-abschluss > p:not(
    .heidecke-geschichte-label
) {
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

/* Tablet */
@media (max-width: 991.98px) {
    .heidecke-geschichte-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }
}

/* Smartphone */
@media (max-width: 767.98px) {
    .heidecke-geschichte {
        padding: 25px 10px 50px;
    }

    .heidecke-geschichte-intro {
        margin-bottom: 40px;
    }

    .heidecke-geschichte-lead {
        font-size: 1.05rem;
    }

    .heidecke-geschichte-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 45px;
    }

    .heidecke-geschichte-abschluss {
        padding: 35px 22px;
        border-radius: 14px;
    }
}
/* Kontakt-Menüpunkt auf kleinen Geräten ausblenden */
@media (max-width: 767.98px) {
    .kontakt-desktop-only {
        display: none !important;
    }
}

/* Kontakt im mobilen Offcanvas-Menü ausblenden */
@media (max-width: 991.98px) {
    .astroid-offcanvas a[href="/#kontakt"],
    .astroid-offcanvas a[href="#kontakt"],
    .astroid-offcanvas a[href$="/#kontakt"] {
        display: none !important;
    }
}


