/* ==========================================
   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);
}

/* Abstand danach */
.frame-space-after-extra-small {
    margin-bottom: var(--ak-space-xs);
}

.frame-space-after-small {
    margin-bottom: var(--ak-space-sm);
}

.frame-space-after-medium {
    margin-bottom: var(--ak-space-md);
}

.frame-space-after-large {
    margin-bottom: var(--ak-space-lg);
}

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


/* ==========================================
   Tablet / iPad Portrait und kleiner
   ========================================== */

@media (max-width: 1024px) {
    :root {
        --ak-frame-gutter: 32px;

        --ak-space-xs: 0.75rem;
        --ak-space-sm: 1.5rem;
        --ak-space-md: 2rem;
        --ak-space-lg: 2.75rem;
        --ak-space-xl: 3.5rem;
    }
}


/* ==========================================
   Smartphone
   ========================================== */

@media (max-width: 767px) {
    :root {
        --ak-frame-gutter: 24px;

        --ak-space-xs: 0.5rem;
        --ak-space-sm: 1rem;
        --ak-space-md: 1.5rem;
        --ak-space-lg: 2rem;
        --ak-space-xl: 2.5rem;
    }
}
}

/* ==========================================
   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;
    }
}