.cd-header__topbar,
.cd-header__main {
	padding: 0px 12px;
}

/* ===== Newsletter Popup ===== */
.cd-newsletter-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cd-newsletter-popup.active {
    display: flex;
}

.cd-newsletter-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cd-newsletter-popup__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 706px;
    max-height: 642px;
    overflow-y: auto;
    background: #fff;
    padding: 48px 40px;
    margin: 0 16px;
}

.cd-newsletter-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--formoline-aqua-2);
}

.cd-newsletter-popup__overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.cd-newsletter-popup__overlay.active {
    display: flex;
}

.cd-newsletter-popup__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--formoline-aqua-3);
    border-top-color: var(--formoline-aqua-1);
    border-radius: 50%;
    animation: cd-newsletter-popup-spin 0.8s linear infinite;
}

@keyframes cd-newsletter-popup-spin {
    to { transform: rotate(360deg); }
}

.cd-newsletter-popup__screen {
    display: none;
}

.cd-newsletter-popup__screen--active {
    display: block;
}

.cd-newsletter-popup__icon {
    text-align: center;
    margin-bottom: 16px;
}

.cd-newsletter-popup__icon img {
    height: 64px;
    width: auto;
}

.cd-newsletter-popup__title {
    text-align: center;
    margin-bottom: 8px;
    color: var(--formoline-aqua-2);
}

.cd-newsletter-popup__subtitle {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
    color: black;
}

.cd-newsletter-popup__form-row {
    display: flex;
    gap: 16px;
}

.cd-newsletter-popup__form-row--2col > * {
    flex: 1;
}

.cd-newsletter-popup__form-group {
    margin-bottom: 16px;
}

.cd-newsletter-popup__form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--formoline-gray);
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.cd-newsletter-popup__form-group input::placeholder {
    color: #717182 !important;
}

.cd-newsletter-popup__form-group input:focus {
    border-color: var(--formoline-aqua-1);
}

.cd-newsletter-popup__actions {
    text-align: center;
    margin-bottom: 16px;
}

.cd-newsletter-popup__submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--formoline-orange-1);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 20px 32px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    width: 100%;
}

.cd-newsletter-popup__submit-btn i {
    position: absolute;
    right: 32px;
}

.cd-newsletter-popup__submit-btn:hover {
    opacity: 0.9;
}

.cd-newsletter-popup__submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cd-newsletter-popup__privacy {
    font-size: 12px;
    color: #6A7282;
}

@media (max-width: 991px) {
    .cd-newsletter-popup__box {
        padding: 24px 20px;
        max-height: 90vh;
    }

    .cd-newsletter-popup__form-row--2col {
        flex-direction: column;
        gap: 0;
    }
	
	.cd-newsletter-popup__submit-btn {
		font-size: 14px;
		padding: 14px 32px;
    }
}

/* ===== Scroll to top button ===== */
.cd-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--formoline-orange-1);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.cd-scroll-top:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* ===== FONT ===== */
.cd-header__topbar-text,
.cd-header__nav-item {
	font-family: 'Barlow', sans-serif !important;
}

/* ===== TOPBAR ===== */
.cd-header__topbar {
    background-color: var(--formoline-aqua-4);
    padding: 8px 0;
    text-align: center;
	height: 56px;
}

.cd-header__topbar-inner {
    max-width: 1440px;
    margin: auto;
	display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cd-header__topbar-text {
    font-size: 20px;
    color: var(--formoline-aqua-2);
}

.cd-header__topbar-phone {
    color: var(--formoline-aqua-2);
    font-weight: 600;
    text-decoration: none;
}

.cd-header__topbar-phone:hover {
    text-decoration: underline;
}

.cd-header__topbar-icon {
	margin-right:8px;
	height: 32px;
	width: 32px;
}

/* ===== MAIN HEADER ===== */
.cd-header__main {
    background-color: white;
}

.cd-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
}

/* ===== LOGO ===== */
.cd-header__logo img {
    height: 40px;
    width: auto;
}

/* ===== NAVIGATION ===== */
.cd-header__nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 36px;
}

.cd-header__nav-item {
    position: relative;
}

.cd-header__nav-link {
    font-size: 18px;
    font-weight: 400;
    color: var(--formoline-black)!important;
    text-decoration: none!important;
    padding: 8px 0;
    display: block;
}

.cd-header__nav-link:hover,
.cd-header__nav-item.active .cd-header__nav-link {
    font-weight: 600;
}

.cd-header__nav-item.active .cd-header__nav-link {
	border-bottom: 2px solid var(--formoline-yellow);
	padding-bottom: 8px;
}

/* Dropdown */
.cd-header__nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.cd-header__nav-item:hover .cd-header__nav-dropdown {
    display: block;
}

.cd-header__nav-dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    color: var(--formoline-black);
    text-decoration: none;
}

.cd-header__nav-dropdown-link:hover {
    color: var(--formoline-aqua-2);
    background-color: var(--formoline-aqua-4);
}

/* ===== RIGHT SIDE ===== */
.cd-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cd-header__search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--formoline-black);
    padding: 8px;
}

.cd-header__search-btn:hover {
    color: var(--formoline-aqua-2);
}

.cd-header__cta {
    background-color: var(--formoline-orange-1);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.cd-header__cta:hover {
    color: white;
    opacity: 0.9;
}

/* ===== HAMBURGER ===== */
.cd-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.cd-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--formoline-black);
    transition: all 0.3s ease;
}

.cd-header__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cd-header__hamburger.open span:nth-child(2) {
    opacity: 0;
}

.cd-header__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== STICKY ===== */
.cd-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ===== SEARCH ===== */
.cd-header__search {
    position: relative;
    display: flex;
    align-items: center;
}

.cd-header__search-field {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--formoline-aqua-3);
    border-radius: 12px;
    padding: 8px 16px;
    align-items: center;
    gap: 8px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cd-header__search-field.open {
    display: flex;
}

.cd-header__search-input {
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
}

.cd-header__search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--formoline-gray);
    font-size: 14px;
    padding: 0;
}

/* ===== RIGHT GROUP ===== */
.cd-header__right-group {
    display: flex;
    align-items: center;
    gap: 36px;
}

/* ===== MOBILE NAV CLOSE ===== */
.cd-header__nav-close {
    position: fixed;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--formoline-black);
    z-index: 1001;
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {
	.cd-hide-mobile {
		display: none;
	}
    .cd-header__nav {
        display: none;
        position: fixed;
        top: 0px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 32px 48px;
        z-index: 999;
        overflow-y: auto;
    }

    .cd-header__nav.open {
        display: block;
    }

    .cd-header__nav-list {
        flex-direction: column;
        gap: 0;
    }

    .cd-header__nav-link {
        font-size: 20px;
        padding: 16px 0;
        border-bottom: 1px solid var(--formoline-aqua-3);
    }

    .cd-header__nav-dropdown {
        position: static;
        box-shadow: none;
        display: block;
        padding-left: 16px;
    }

    .cd-header__hamburger {
        display: flex;
    }

    .cd-header__cta {
        display: none;
    }

    .cd-header__search-btn {
        display: none;
    }
}

/* ===== SIDEBAR ===== */
.cd-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 998;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    width: 127px;
    background-color: var(--formoline-blue);
    padding: 20px 8px;
    gap: 32px;
}

.cd-sidebar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s ease;
    border-bottom: none;
    padding: 0;
    width: 100%;
	border: none
}

.cd-sidebar__item:last-child {
    border-bottom: none;
}

.cd-sidebar__item:hover {
    opacity: 0.8;
    color: white;
}

.cd-sidebar__item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cd-sidebar__item span {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: white !important;
    line-height: 1.3 !important;
}

.cd-header__language {
    position: relative;
    display: flex;
    align-items: center;
	padding-left: 16px;
    border-left: 1px solid var(--formoline-gray);
}

.cd-header__language-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: var(--formoline-black);
    font-family: 'Barlow', sans-serif;
    display: flex;
	height: 100%;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.cd-header__language-btn i {
    font-size: 12px;
    color: var(--formoline-gray);
}

.cd-header__language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    list-style: none;
    padding: 16px;
    margin: 0;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.cd-header__language-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.cd-header__language:hover .cd-header__language-dropdown {
    display: block;
}

.cd-header__language-option {
    display: block;
    font-size: 18px;
    color: var(--formoline-black) !important;
    text-decoration: none !important;
	width: fit-content;
}

.cd-header__language-option:hover,
.cd-header__language-option.active {
	font-weight: 600;
}

.cd-header__language-link.active {
    font-weight: 600;
    color: var(--formoline-aqua-2) !important;
}

/* ===== MOBILE — Sidebar ausblenden ===== */
/* ===== MOBILE HEADER ===== */
@media (max-width: 991px) {

    /* Topbar */
    .cd-header__topbar {
        height: auto !important;
        padding: 12px 20px !important;
    }
	
	 .cd-header__search-field {
        position: fixed;
        top: 136px;
        left: 16px;
        right: 16px;
        width: auto;
        transform: none;
        border-radius: 12px;
    }

    .cd-header__topbar-inner {
        /*justify-content: flex-start !important;*/
        gap: 12px !important;
    }

    .cd-header__topbar-icon {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
    }

    .cd-header__topbar-text {
        font-size: 14px !important;
        /*text-align: left !important;*/
    }

    /* Main header */
    .cd-header__inner {
        height: 80px !important;
        padding: 0 20px !important;
    }

    .cd-header__logo img {
        height: 36px !important;
    }

    /* Show search on mobile */
    .cd-header__search-btn {
        display: flex !important;
        font-size: 26px !important;
        color: var(--formoline-black) !important;
    }


    /* Hamburger — teal, thicker lines */
    .cd-header__hamburger {
        gap: 6px !important;
    }

    .cd-header__hamburger span {
        width: 28px !important;
        height: 3px !important;
        background-color: var(--formoline-aqua-1) !important;
    }

    /* Right group */
    .cd-header__right-group {
        gap: 16px !important;
    }

    .cd-header__right {
        gap: 20px !important;
    }
	
	.cd-sidebar {
		flex-direction: row;
		width: 100%;
		border-radius: 8px 8px 0 0;
		top: unset;
		bottom: 0%;
		transform: none;
		padding: 18px 8px;
	}
	
	.cd-scroll-top {
		bottom: 113px;
	}
	
	.cd-sidebar__item span {
		font-size: 10px!important;
	}
}