/* ==========================================
   TYPO3 Content Frames
   ========================================== */

:root {
    --ak-frame-width: 1320px;
    --ak-frame-gutter: 24px;

    --ak-space-xs: 1rem;
    --ak-space-sm: 2rem;
    --ak-space-md: 3rem;
    --ak-space-lg: 4rem;
    --ak-space-xl: 5rem;
}

.frame-default {
    width: min(100% - var(--ak-frame-gutter), var(--ak-frame-width));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.frame-none {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Abstand davor */
.frame-space-before-extra-small {
    margin-top: var(--ak-space-xs);
}

.frame-space-before-small {
    margin-top: var(--ak-space-sm);
}

.frame-space-before-medium {
    margin-top: var(--ak-space-md);
}

.frame-space-before-large {
    margin-top: var(--ak-space-lg);
}

.frame-space-before-extra-large {
    margin-top: var(--ak-space-xl);
}


/* ==========================================
   Breadcrumb Subtitle
   ========================================== */

.breadcumb-subtitle {
    max-width: 760px;
    margin-top: 14px;
    margin-bottom: 24px;

    color: #332217;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .breadcumb-subtitle {
        font-size: 17px;
        line-height: 1.45;
    }
}

/* ==========================================
   Header CTA Buttons
   Desktop Button + Mobile Menü Buttons
   ========================================== */


/* ------------------------------------------
   Grundzustand Desktop
   ------------------------------------------ */

/* Desktop Button sichtbar */
.ak-header-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Mobile CTA im Desktop immer ausblenden */
.ak-mobile-menu-cta {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}


/* Desktop Button Styling */
.ak-header-cta .th-btn,
.ak-header-cta a {
    white-space: nowrap;
}


/* ------------------------------------------
   Mobile CTA Buttons im Menü
   ------------------------------------------ */

.ak-mobile-cta-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ak-mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 14px 18px;

    border-radius: 999px;
    border: 1px solid #111;

    background: #ffe100;
    color: #111;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.ak-mobile-cta-btn:hover,
.ak-mobile-cta-btn:focus {
    background: #111;
    color: #fff;
    text-decoration: none;
}

.ak-mobile-cta-btn i {
    font-size: 16px;
    line-height: 1;
}


/* ------------------------------------------
   Umschaltung auf Mobile Menü
   Breakpoint passend zum Template
   ------------------------------------------ */

@media (max-width: 1199.98px) {

    /* Desktop Button ausblenden */
    .ak-header-cta {
        display: none !important;
        visibility: hidden;
        opacity: 0;
    }

    /* Mobile CTA im mobilen Menü anzeigen */
    .ak-mobile-menu-cta {
        display: block !important;
        visibility: visible;
        opacity: 1;

        padding: 24px 20px;
        margin-top: 30px;

        border-top: 2px solid rgba(0, 0, 0, 0.08);
    }
}


/* ------------------------------------------
   Smartphone Feinschliff
   ------------------------------------------ */

@media (max-width: 767.98px) {

    .ak-mobile-menu-cta {
        padding: 20px 16px;
    }

    .ak-mobile-cta-btn {
        padding: 13px 16px;
        font-size: 15px;
    }
}


/* ==========================================
   Header mit farbiger Headline
   ========================================== */

.frame-header.sec-title {
    margin-bottom: 28px;
}

.frame-header.sec-title .element-header {
    margin: 0;
    color: #332217;
    line-height: 1.12;
}

/* Gelber Teil der Headline */
.ak-colored-header {
    display: block;
    color: #ffdf00;
}


/* ==========================================
   Unterseiten Header / Breadcrumb Fix
   ========================================== */

.ak-subpage-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 99 !important;
    background: #fff !important;
}

.ak-subpage-header .sticky-wrapper,
.ak-subpage-header .menu-area {
    background: #fff !important;
}

.ak-subpage-header .main-menu > ul > li > a {
    color: #111 !important;
}

.ak-subpage-header .main-menu > ul > li > a:hover,
.ak-subpage-header .main-menu > ul > li.active > a {
    color: #332217 !important;
}

.ak-subpage-header .main-menu > ul > li.menu-item-has-children > a:after {
    color: #111 !important;
}


/* Startseite: transparenter/absoluter Header */
.ak-home-header {
    background: transparent;
}

.ak-home-header.header-absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99;
}

/* Unterseiten: weißer normaler Header */
.ak-subpage-header {
    position: relative !important;
    background: #fff !important;
    z-index: 99;
}

.ak-subpage-header .sticky-wrapper,
.ak-subpage-header .menu-area {
    background: #fff !important;
}

.ak-subpage-header .main-menu > ul > li > a {
    color: #111 !important;
}

/* Breadcrumb */

.breadcumb-subtitle {
    max-width: 760px;
    margin-top: 14px;
    margin-bottom: 24px;

    color: #332217;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .breadcumb-subtitle {
        font-size: 17px;
        line-height: 1.45;
    }
}
.breadcumb-menu li + li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;

    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);

    color: #332217;
    font-size: 14px;
}

/* Inhaltselement: Zwei Bilder nebeneinander */
.ak-two-images .service-img img {
    object-fit: cover;
}

