/*
Theme Name: CVG Kulmbach
Theme URI: https://achtbit.digital/
Author: Achtbit Media GmbH
Author URI: https://achtbit.digital/
Description: WordPress-Theme für das Caspar-Vischer-Gymnasium Kulmbach
Version: 1.0
Text Domain: cvg2025
Requires at least: 5.0
Requires PHP: 8
*/

/* hanken-grotesk-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 400;
    src: url('./inc/fonts/hanken-grotesk-v12-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('./inc/fonts/hanken-grotesk-v12-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* hanken-grotesk-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Hanken Grotesk';
    font-style: italic;
    font-weight: 400;
    src: url('./inc/fonts/hanken-grotesk-v12-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('./inc/fonts/hanken-grotesk-v12-latin-italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* hanken-grotesk-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Hanken Grotesk';
    font-style: normal;
    font-weight: 700;
    src: url('./inc/fonts/hanken-grotesk-v12-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('./inc/fonts/hanken-grotesk-v12-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* hanken-grotesk-700italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Hanken Grotesk';
    font-style: italic;
    font-weight: 700;
    src: url('./inc/fonts/hanken-grotesk-v12-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('./inc/fonts/hanken-grotesk-v12-latin-700italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}


@font-face {
    font-family: 'Material Symbols Sharp';
    font-style: normal;
    font-weight: 100 700;
    src: url('./inc/fonts/material-icons/MaterialSymbolsSharp[FILL,GRAD,opsz,wght].woff2') format('woff2'),
    url('./inc/fonts/material-icons/MaterialSymbolsSharp[FILL,GRAD,opsz,wght].ttf') format('truetype');
}

/* Reset and Base Styles */

:root {
    --color-red: rgba(226, 0, 15, 1);
    --color-blue-gray: rgba(96, 134, 167, 1);
    --color-blue-gray-accent: rgba(166, 184, 199, 1);
    --color-light-blue: rgba(20, 151, 249, 1);
    --color-light-blue-accent: rgba(161, 213, 253, 1);
    --color-font: rgba(52, 53, 77, 1);
    --color-font-accent: rgba(214, 215, 219, 1);
    --color-white: rgba(255, 255, 255, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    height: 100%;
    overflow-x: clip; /* clip doesn't break position:sticky in Safari */
}

body {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-font);
    background-color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: clip; /* clip doesn't break position:sticky in Safari */
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
}

.site-main {
    flex: 1;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}


/* Container for content width constraint */
.cvg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .cvg-container {
        padding: 0 30px;
    }
}

/* Header Bar */
.site-header {
    background-color: #EBEFFE;
    width: 100%;
}

/* Hide mobile elements on desktop */
.mobile-quick-actions-bar,
.mobile-header,
.mobile-menu-toggle {
    display: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 140px;
    padding-top: 25px;
    padding-bottom: 5px;
}

/* Left section: Logo + Site Title + Tagline */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo-link {
    position: absolute;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    background-color: white;
    height: 720px;
    width: 800px;
    transform: rotate(300deg);
    padding: 50px;
    margin-top: -635px;
    margin-left: -530px;
    z-index: 10;
}

.site-header {
    z-index: 9;
}

.custom-logo {
    max-height: 150px;
    width: auto;
    display: block;
    transform: rotate(-300deg);
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-light-blue);
}

.site-title a {
    color: var(--color-light-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title a:hover {
    color: var(--color-blue-gray);
    transition: color 0.2s ease;
}

.site-title-first-char {
    color: var(--color-red);
}

.site-title-word {
    font-weight: 500;
}

.site-description {
    font-size: 1rem;
    color: var(--color-font);
    margin: 0;
}

/* Right section: Quick Action Buttons */
.header-right {
    display: flex;
    gap: 10px;
}

.quick-action-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    width: 40px;
    height: 40px;
    transition: width 0.3s ease;
}

.quick-action-wrapper.active {
    width: auto;
    min-width: 180px;
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-font);
    border: none;
    flex-shrink: 0;
}

#phone.quick-action-btn {
    background: var(--color-light-blue-accent);
}

#mail.quick-action-btn {
    background: var(--color-font-accent);
}

#calendar.quick-action-btn {
    background: var(--color-blue-gray-accent);
}

.quick-action-btn:hover {
    background: var(--color-light-blue);
}

/* Active state styling */
.quick-action-btn.active {
    background: var(--color-light-blue) !important;
}

.quick-action-btn.inactive {
    background: #ccc !important;
}

.quick-action-info {
    background: transparent;
    color: var(--color-font);
    padding-left: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    line-height: 40px;
}

.quick-action-info a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action-info a:hover {
    color: var(--color-font);
}

.quick-action-wrapper.active .quick-action-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Navigation Bar */
.main-navigation {
    background-color: #EBEFFE;
    border-bottom: 1px solid #eee;
    width: 100%;
    top: 0;
    position: sticky;
    z-index: 4;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-left: 140px;
}

/* Compact logo for sticky navigation */
.nav-logo-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    margin-left: -140px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-logo-compact.show {
    opacity: 1;
    visibility: visible;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo-img {
    max-height: 40px;
    width: auto;
    padding: 5px;
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light-blue);
}

.nav-logo-text .site-title-first-char {
    color: var(--color-red);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-menu li a {
    color: var(--color-font);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-menu li a:hover {
    color: var(--color-light-blue);
}

.nav-menu li.current-menu-item a {
    color: var(--color-red);
}

/* Dropdown Navigation Styles */
.nav-menu li {
    position: relative;
    display: flex;
}

.nav-menu li.menu-item-has-children > a::after {
    content: '\e5c5';
    font-family: 'Material Symbols Sharp', sans-serif;
    font-size: 20px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin-left: -20px;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu .sub-menu li:last-child {
    border-bottom: none;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-font);
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
    width: 100%;
}

.nav-menu .sub-menu li a:hover {
    background-color: #EBEFFE;
    color: var(--color-light-blue);
}

.nav-menu .sub-menu li.current-menu-item a {
    background-color: #EBEFFE;
    color: var(--color-light-blue);
}

.nav-menu .sub-menu li.current-menu-item a::after {
    display: none;
}

/* Search Icon and Form */
.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-toggle {
    background: none;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 2;
    z-index: 1001;
}

.search-toggle:hover {
    color: var(--color-light-blue);
}

.search-form-container {
    position: absolute;
    top: 0;
    right: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 0;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    order: 1;
}

.search-form-container.active {
    width: 400px;
}

.nav-search-wrapper .search-form {
    display: flex;
    gap: 0;
    align-items: center;
    height: 40px;
}

.nav-search-wrapper .search-field {
    flex: 1;
    padding: 8px 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    border-radius: 0;
    font-family: "Hanken Grotesk", sans-serif;
}

.search-form-container.active .search-field {
    opacity: 1;
    transform: translateX(0);
    -webkit-appearance: none;
}

.search-field::-webkit-search-cancel-button {
    appearance: none;
}

.search-field:focus {
    outline: 1px solid var(--color-light-blue);
    outline-offset: -1px;
}

.nav-search-wrapper .search-submit {
    display: none;
}

/* Menu blend out effect when search is active */
.nav-content.search-active .nav-menu {
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-content.search-active .nav-search-wrapper {
    opacity: 1;
}

/* Smart Slider 3 Integration */
.cvg2025-smart-slider-wrapper {
    width: 100%;
}

.cvg2025-smart-slider-wrapper .nextend-smartslider3 {
    max-width: 100%;
}

/* Ensure Smart Slider respects container width */
.cvg2025-smart-slider-wrapper .nextend-smartslider3-container {
    max-width: 100%;
}

.cvg-slider-button *:not(:has(*)):after {
    content: '\e5c8';
    font-family: 'Material Symbols Sharp', sans-serif;
    vertical-align: middle;
    margin-left: 6px;
    display: inline-block;
}

/* Featured Image Display for Pages */
.header-featured-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.page-featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.page-featured-image--top {
    object-position: center top;
}

.page-featured-image--center {
    object-position: center center;
}

.page-featured-image--bottom {
    object-position: center bottom;
}

.page-featured-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(to right, rgba(52,53,77,1) 0%, rgba(52,53,77,0) 100%);
    z-index: 2; /* Overlay oben */
}

.page-featured-image {
    z-index: 1; /* Bild unten */
    position: relative;
}

.page-featured-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: white;
    text-align: left;
    width: 100%;
    max-width: 1280px;
    padding: 0 40px;
    margin: auto 0;
}

.page-featured-image-text h1 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

span.page-parent-title {
    font-size: 1.2rem;
}


/* Breadcrumbs */
.cvg-breadcrumbs {
    font-size: 0.9rem;
    margin-top: 30px;
}

.cvg-breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.cvg-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cvg-breadcrumbs li a {
    color: var(--color-font);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cvg-breadcrumbs li a:hover {
    color: var(--color-light-blue);
    text-decoration: none;
}

.cvg-breadcrumbs li.active {
    color: var(--color-red);
    font-weight: 500;
}

.cvg-breadcrumbs li:not(:last-child)::after {
    content: 'arrow_right';
    font-family: 'Material Symbols Sharp', sans-serif;
    color: var(--color-font);
    font-weight: 400;
    font-size: 1.4rem;
}

.cvg2025-row-icon {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: var(--color-font);
    transform: rotate(-7deg);
    color: white;
    font-size: 55px !important;
    position: absolute;
    top: -20px;
    margin-left: -90px;
}

/* SiteOrigin panels custom styling */

.panel-grid-row {
    margin-bottom: 30px;
    border-radius: 8px;
    padding: 30px 0;
    transition: all 0.3s ease;
}

.panel-grid-row:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for SiteOrigin rows */
@media (max-width: 768px) {
    .page-featured-image-text h1 {
        font-size: 1.8rem;
    }
    .panel-grid-row {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .cvg-row-with-icon::before {
        font-size: 1.5rem;
    }
    
    .cvg-row-with-icon[data-icon-position="top-left"]::before,
    .cvg-row-with-icon[data-icon-position="top-right"]::before {
        top: 10px;
    }
    
    .cvg-row-with-icon[data-icon-position="top-left"]::before {
        left: 10px;
    }
    
    .cvg-row-with-icon[data-icon-position="top-right"]::before {
        right: 10px;
    }
    
    .cvg-row-with-icon[data-icon-position="center"]::before {
        font-size: 2.5rem;
    }

    .partner-logos-list {
        margin-left: 0 !important;
    }
}

/* Main Content */
.site-main {
    background-color: #fff;
    padding-bottom: 0;
}

.content-area {
    margin-bottom: 40px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8em;
    color: var(--color-font);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

ul:not(:where(.nav-content *, .cvg-breadcrumbs *, .footer-menu *)):not(:has(> li.menu-item)),
ol:not(:where(.nav-content *, .cvg-breadcrumbs *, .footer-menu *)):not(:has(> li.menu-item)) {
    margin-left: 1.5rem;
    padding-left: 0.5rem;
    margin-bottom: 1.2em;
}

ul:not(:where(.nav-content *, .cvg-breadcrumbs *, .footer-menu *)):not(:has(> li.menu-item)) {
    list-style-type: square;
}

ol:not(:where(.nav-content *, .cvg-breadcrumbs *, .footer-menu *)):not(:has(> li.menu-item)) {
    list-style-type: decimal;
}

ul:not(:where(.nav-content *, .cvg-breadcrumbs *, .footer-menu *)) li:not(.menu-item),
ol:not(:where(.nav-content *, .cvg-breadcrumbs *, .footer-menu *)) li:not(.menu-item) {
    margin-bottom: 0.4em;
    padding-left: 0.4rem;
}

ul:not(:where(.nav-content *, .cvg-breadcrumbs *, .footer-menu *)) li:not(.menu-item)::marker {
    color: var(--color-red);
}


.cvg2025-row-content h1,
.cvg2025-row-content h2 {
    position: relative;
    display: inline-block;
}

.cvg2025-row-content h1::after,
.cvg2025-row-content h2::after {
    content: '';
    display: block;
    width: 60%;
    max-width: 100px;
    height: 2px;
    border-bottom: 2px solid var(--color-red);
    margin-top: 10px;
    position: absolute;
}

.underline-font h1::after, .underline-font h2::after {
    border-bottom: 2px solid var(--color-font);
}

.underline-blue-gray h1::after, .underline-blue-gray h2::after {
    border-bottom: 2px solid var(--color-blue-gray);
}

.underline-light-blue h1::after, .underline-light-blue h2::after {
    border-bottom: 2px solid var(--color-light-blue);
}

p {
    margin-bottom: 1.2em;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Posts */
.post {
    margin-bottom: 40px;
}

.post:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.entry-content {
    margin-bottom: 20px;
}

/* Search Form */
.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: "Hanken Grotesk", sans-serif;
}

.search-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-light-blue);
    color: var(--color-light-blue);
    padding: 5px 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background: none;
    font-family: "Hanken Grotesk", sans-serif;
    margin-left: 20px;
    cursor: pointer;
    font-size: 1rem;
}

.search-submit:hover {
    background: var(--color-light-blue);
    color: #fff;
}

/* Footer */
.site-footer {
    background-color: var(--color-font);
    color: #fff;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    padding: 80px 0 80px;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

/* Footer Left - Widget Area */
.footer-left {
    flex: 1;
}

.footer-widget-area {
    color: #fff;
}

.footer-widget-area h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1.8rem;
}

.footer-widget-area p {
    color: #fff;
    line-height: 1.4;
    margin-bottom: 30px;
}

.footer-widget-area a {
    text-decoration: none;
    color: #fff;
}

.footer-widget-area p:last-child {
    margin-bottom: 0;
}

.footer-widget-area .widget-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    flex: 2;
}

/* Footer Right - Partner Logos + Menu */
.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

/* Partner Logos Section */
.footer-partner-logos {
    display: flex;
    justify-content: flex-end;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.partner-logos-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: flex-end;
    align-items: center;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-item a {
    display: block;
    transition: opacity 0.3s ease;
}

.partner-logo-item a:hover {
    opacity: 0.8;
}

.partner-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    transition: filter 0.3s ease;
}

.partner-logo-text a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.partner-logo-text a:hover {
    color: #fff;
}

/* Footer Menu Section */
.footer-menu-area {
    display: flex;
    justify-content: flex-end;
}

.footer-navigation {
    margin-bottom: 0;
}

.footer-menu {
    list-style: none;
    display: flex;
    column-gap: 20px;
    row-gap: 10px;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #fff;
}

.cvg-image-widget__img {
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* CVG Text Widget */
    .cvg-text-widget {
        width: 100%;
        box-sizing: border-box;
    }

    /* Text alignment */
    .cvg-text-widget.text-align-left {
        text-align: left;
    }

    .cvg-text-widget.text-align-center {
        text-align: center;
    }

    .cvg-text-widget.text-align-right {
        text-align: right;
    }

    .cvg-text-widget.text-align-justify {
        text-align: justify;
    }

    /* Font sizes */
    .cvg-text-widget.font-size-small .cvg-text-widget__content {
        font-size: 0.9rem;
    }

    .cvg-text-widget.font-size-normal .cvg-text-widget__content {
        font-size: 1rem;
    }

    .cvg-text-widget.font-size-large .cvg-text-widget__content {
        font-size: 1.25rem;
    }

    .cvg-text-widget.font-size-extra-large .cvg-text-widget__content {
        font-size: 1.5rem;
    }

    /* Background colors */
    .cvg-text-widget.bg-light-blue {
        background-color: var(--color-light-blue);
    }

    .cvg-text-widget.bg-blue-gray {
        background-color: var(--color-blue-gray);
    }

    .cvg-text-widget.bg-font-accent {
        background-color: var(--color-font-accent);
    }

    /* Padding */
    .cvg-text-widget.padding-none {
        padding: 0;
    }

    .cvg-text-widget.padding-small {
        padding: 0;
    }

    .cvg-text-widget.padding-normal {
        padding: 0;
    }

    .cvg-text-widget.padding-large {
        padding: 0;
    }

    /* CVG Image Widget */
    .cvg-image-widget {
        width: 100%;
        display: block;
    }

    .cvg-image-widget__img {
        display: block;
        height: auto;
        max-width: 100%;
    }

    .cvg-image-widget__link {
        display: block;
        text-decoration: none;
        border: none;
    }

    /* Image alignment */
    .cvg-image-widget.align-left {
        text-align: left;
    }

    .cvg-image-widget.align-center {
        text-align: center;
    }

    .cvg-image-widget.align-right {
        text-align: right;
    }

    /* Max width */
    .cvg-image-widget.max-width-25 .cvg-image-widget__img {
        max-width: 25%;
    }

    .cvg-image-widget.max-width-33 .cvg-image-widget__img {
        max-width: 33.333%;
    }

    .cvg-image-widget.max-width-50 .cvg-image-widget__img {
        max-width: 50%;
    }

    .cvg-image-widget.max-width-66 .cvg-image-widget__img {
        max-width: 66.666%;
    }

    .cvg-image-widget.max-width-75 .cvg-image-widget__img {
        max-width: 75%;
    }

    .cvg-image-widget.max-width-100 .cvg-image-widget__img {
        max-width: 100%;
    }

    /* Border radius */
    .cvg-image-widget.radius-small .cvg-image-widget__img {
        border-radius: 4px;
    }

    .cvg-image-widget.radius-medium .cvg-image-widget__img {
        border-radius: 8px;
    }

    .cvg-image-widget.radius-large .cvg-image-widget__img {
        border-radius: 16px;
    }

    .cvg-image-widget.radius-circle .cvg-image-widget__img {
        border-radius: 50%;
        aspect-ratio: 1;
        object-fit: cover;
    }

    /* Shadow effects */
    .cvg-image-widget.has-shadow .cvg-image-widget__img {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .cvg-image-widget.has-shadow .cvg-image-widget__link:hover .cvg-image-widget__img {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        transition: box-shadow 0.3s ease;
    }
}

.cvg2025-row-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
}

/* First colored row gets additional top padding */
.cvg2025-first-colored-row {
    margin-top: 60px;
}

.cvg2025-row-content {
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
    padding: 70px;
    box-sizing: border-box;
}

/* Background color styles */
.row-color-light-blue {
    background-color: var(--color-light-blue-accent);
    color: var(--color-font);
}

.row-color-light-blue h1,
.row-color-light-blue h2,
.row-color-light-blue h3,
.row-color-light-blue h4,
.row-color-light-blue h5,
.row-color-light-blue h6 {
    color: var(--color-font);
}

.row-color-light-blue a {
    color: var(--color-light-blue);
}

.row-color-light-blue a:hover {
    color: var(--color-light-blue-accent);
}

.row-color-lighter-blue {
    background-color: #EBEFFE;
    color: var(--color-font);
}

/* White/default rows - make headlines light-blue ONLY inside cvg-headline-* */
.cvg2025-row-wrapper:not([class*="row-color-"]) [class^="cvg-headline-"] h1,
.cvg2025-row-wrapper:not([class*="row-color-"]) [class^="cvg-headline-"] h2,
.cvg2025-row-wrapper:not([class*="row-color-"]) [class^="cvg-headline-"] h3,
.cvg2025-row-wrapper:not([class*="row-color-"]) [class^="cvg-headline-"] h4,
.cvg2025-row-wrapper:not([class*="row-color-"]) [class^="cvg-headline-"] h5,
.cvg2025-row-wrapper:not([class*="row-color-"]) [class^="cvg-headline-"] h6 {
    color: var(--color-light-blue);
}


/* Remove margin between consecutive rows of the same background color */
.row-color-light-blue + .row-color-light-blue {
    margin-top: -70px !important;
}

.row-color-lighter-blue + .row-color-lighter-blue {
    margin-top: -70px !important;
}

/* Default rows (no background color) following each other */
.cvg2025-row-wrapper:not([class*="row-color-"]) + .cvg2025-row-wrapper:not([class*="row-color-"]) {
    margin-top: -70px !important;
}

@media (max-width: 768px) {
    .row-color-light-blue + .row-color-light-blue,
    .row-color-lighter-blue + .row-color-lighter-blue,
    .cvg2025-row-wrapper:not([class*="row-color-"]) + .cvg2025-row-wrapper:not([class*="row-color-"]) {
        margin-top: -20px;
    }
}

/* Ensure proper spacing for PageBuilder rows */
.cvg2025-row-wrapper + .cvg2025-row-wrapper {
    margin-top: 0;
}

/* Override SiteOrigin default margins */
.so-panel {
    margin-bottom: 0 !important;
}

.panel-grid {
    margin-bottom: 0 !important;
}

.panel-grid-cell {
    margin-bottom: 0 !important;
}

.so-widget-cvg-text p:last-child {
    margin-bottom: 0;
}

.cvg-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cvg-card__content {
    color: var(--color-font);
}

.cvg-card a {
    text-decoration: none;
    color: inherit;
}

.so-widget-cvg-card {
    display: flex;
    flex: 1;
}

.cvg-card[href]:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.10);
}

.cvg-card--light-blue-accent {
    background: var(--color-light-blue-accent);
}

.cvg-card--font-accent {
    background: var(--color-font-accent);
}

.cvg-card--blue-gray-accent {
    background: var(--color-blue-gray-accent);
}

.cvg-card__image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.cvg-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cvg-card[href]:hover .cvg-card__img {
    transform: scale(1.05);
}


.cvg-card__icon {
    position: absolute;
    top: 200px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: var(--color-light-blue);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 45px !important;
    color: white;
    z-index: 2;
}

.cvg-card__icon--blue-gray {
    background: var(--color-blue-gray);
    color: white;
}

.cvg-card__icon--font {
    background: var(--color-font);
}


.cvg-card__content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cvg-card--light-blue .cvg-card__content,
.cvg-card--lighter-blue .cvg-card__content {
    color: inherit;
}

.cvg-card__headline {
    margin: 0 0 15px 0;
    color: inherit;
    font-weight: 700;
    line-height: 1.3;
    max-width: 70%;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.cvg-card__headline--small {
    font-size: 1.2rem;
}

.cvg-card__headline--big {
    font-size: 1.8rem;
}

.cvg-card__text {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.3;
    flex: 1;
}

.cvg-card__text p {
    margin-bottom: 1em;
}

.cvg-card__text p:last-child {
    margin-bottom: 0;
}

.cvg-card__text:last-of-type {
    margin-bottom: 0;
}


.cvg-card__button-wrapper {
    margin-top: auto;
}

.cvg-card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-font);
    color: var(--color-font) !important;
    padding: 5px 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cvg-card--white .cvg-card__button {
    border-color: var(--color-light-blue);
    color: var(--color-light-blue) !important;
}

.cvg-card--white .cvg-card__button:hover {
    background-color: var(--color-light-blue);
    color: white !important;
}

.cvg-card__button:hover {
    background-color: var(--color-font);
    color: white !important;
}

.cvg-card__button::after {
    content: '\e5c8';
    font-family: 'Material Symbols Sharp', sans-serif;
    font-size: 20px;
    margin-left: 0px;
    transition: transform 0.3s ease;
}

/* Equal height cards in SiteOrigin rows */
.panel-grid-cell {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* CVG Button Widget */
.cvg-button-widget {
}

.cvg-widget-button--fullwidth {
    display: block;
    width: 100%;
    justify-content: center;
}

.cvg-button-widget.text-left {
    text-align: left;
}

.cvg-button-widget.text-center {
    text-align: center;
}

.cvg-button-widget.text-right {
    text-align: right;
}

.cvg-button-widget .cvg-widget-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-font);
    color: white;
    padding: 5px 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cvg-button-widget .cvg-widget-button::after {
    content: '\e5c8';
    font-family: 'Material Symbols Sharp', sans-serif;
    font-size: 20px;
    margin-left: 0px;
    transition: transform 0.3s ease;
}

/* Primary button styles */
.cvg-button-widget .cvg-widget-button.primary.color-red {
    background-color: var(--color-red);
    color: white;
    border-color: var(--color-red);
}

.cvg-button-widget .cvg-widget-button.primary.color-red:hover {
    background-color: transparent;
    color: var(--color-red);
    border-color: var(--color-red);
}

.cvg-button-widget .cvg-widget-button.primary.color-font {
    background-color: var(--color-font);
    color: white;
    border-color: var(--color-font);
}

.cvg-button-widget .cvg-widget-button.primary.color-font:hover {
    background-color: transparent;
    color: var(--color-font);
    border-color: var(--color-font);
}

.cvg-button-widget .cvg-widget-button.primary.color-light-blue {
    background-color: var(--color-light-blue);
    color: white;
    border-color: var(--color-light-blue);
}

.cvg-button-widget .cvg-widget-button.primary.color-light-blue:hover {
    background-color: transparent;
    color: var(--color-light-blue);
    border-color: var(--color-light-blue);
}

.cvg-button-widget .cvg-widget-button.primary.color-blue-gray {
    background-color: var(--color-blue-gray);
    color: white;
    border-color: var(--color-blue-gray);
}

.cvg-button-widget .cvg-widget-button.primary.color-blue-gray:hover {
    background-color: transparent;
    color: var(--color-blue-gray);
    border-color: var(--color-blue-gray);
}

/* Secondary button styles */
.cvg-button-widget .cvg-widget-button.secondary.color-red {
    background-color: transparent;
    color: var(--color-red);
    border-color: var(--color-red);
}

.cvg-button-widget .cvg-widget-button.secondary.color-red:hover {
    background-color: var(--color-red);
    color: white;
    border-color: var(--color-red);
}

.cvg-button-widget .cvg-widget-button.secondary.color-font {
    background-color: transparent;
    color: var(--color-font);
    border-color: var(--color-font);
}

.cvg-button-widget .cvg-widget-button.secondary.color-font:hover {
    background-color: var(--color-font);
    color: white;
    border-color: var(--color-font);
}

.cvg-button-widget .cvg-widget-button.secondary.color-light-blue {
    background-color: transparent;
    color: var(--color-light-blue);
    border-color: var(--color-light-blue);
}

.cvg-button-widget .cvg-widget-button.secondary.color-light-blue:hover {
    background-color: var(--color-light-blue);
    color: white;
    border-color: var(--color-light-blue);
}

.cvg-button-widget .cvg-widget-button.secondary.color-blue-gray {
    background-color: transparent;
    color: var(--color-blue-gray);
    border-color: var(--color-blue-gray);
}

.cvg-button-widget .cvg-widget-button.secondary.color-blue-gray:hover {
    background-color: var(--color-blue-gray);
    color: white;
    border-color: var(--color-blue-gray);
}

/* CVG Blog Posts Grid */
.cvg-blog-posts-wrapper {
    position: relative;
}

.cvg-blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
}

/* Mobile Swiper Styles */
.cvg-blog-swiper-wrapper {
    display: contents;
}

.cvg-blog-swiper-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.cvg-blog-swiper-btn {
    background: var(--color-light-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cvg-blog-swiper-btn:hover {
    background: var(--color-blue-gray);
    transform: scale(1.05);
}

.cvg-blog-swiper-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.cvg-blog-swiper-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cvg-blog-swiper-pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cvg-blog-swiper-pagination-dot.active {
    background: var(--color-light-blue);
    transform: scale(1.2);
}

.cvg-blog-card {
    position: relative;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cvg-blog-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.cvg-blog-card__image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.cvg-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cvg-blog-card__img:hover {
    transform: scale(1.05);
}

.cvg-blog-card__icon {
    position: absolute;
    top: 200px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--color-light-blue);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 50px !important;
    transform: rotate(-7deg);
    color: white;
}

/* Adjust icon position for cards without images */
.cvg-card--no-image .cvg-blog-card__icon {
    top: -30px;
}

.cvg-card--no-image {
    overflow: visible;
}

/* Blog card icon color variations */
.cvg-blog-card__icon--font {
    background: var(--color-font);
}

.cvg-blog-card__icon--light-blue {
    background: var(--color-light-blue);
}

.cvg-blog-card__icon--blue-gray {
    background: var(--color-blue-gray);
}

.cvg-blog-card__content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cvg-blog-card__meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.cvg-blog-card__category a {
    color: var(--color-light-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cvg-blog-card__category a:hover {
    color: var(--color-blue-gray);
}

.cvg-blog-card__date {
    color: var(--color-blue-gray);
    font-weight: 400;
}

.cvg-blog-card__title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
}

.cvg-blog-card__title a {
    color: var(--color-font);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cvg-blog-card__title a:hover {
    color: var(--color-light-blue);
}

.cvg-blog-card__excerpt {
    color: var(--color-font);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    font-size: 0.95rem;
}

.cvg-blog-card__button-wrapper {
    margin-top: auto;
}

.cvg-blog-card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--color-light-blue);
    color: var(--color-light-blue) !important;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.cvg-blog-card__button:hover {
    background-color: var(--color-light-blue);
    color: white !important;
}

.cvg-blog-card__button::after {
    content: '\e5c8';
    font-family: 'Material Symbols Sharp', sans-serif;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.cvg-blog-card__button:hover::after {
    transform: translateX(3px);
}

.cvg-card--featured {
    display: flex;
    align-items: stretch;
    flex-direction: row;
}

.cvg-card--featured .cvg-blog-card__image {
    flex: 0 0 50%;
    height: auto;
    overflow: hidden;
    position: relative;
    display: flex;                    /* macht die Höhe vom Container abhängig */
}

.cvg-card--featured .cvg-blog-card__img {
    flex: 1 1 auto;                   /* passt sich Containerhöhe an */
    object-fit: cover;
    object-position: center;
}

.cvg-card--featured .cvg-card__content {
    flex: 0 0 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.cvg-card--featured .cvg-blog-card__icon {
    display: none !important;
}

/* Responsive Design for Blog Grid */
@media (max-width: 1024px) {
    .cvg-blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cvg-blog-posts-grid {
        display: block;
    }
    
    .cvg-blog-swiper-wrapper {
        display: flex;
        gap: 30px;
        transition: transform 0.3s ease;
        align-items: stretch; /* Equal height for cards */
    }
    
    .cvg-blog-swiper-wrapper .cvg-card {
        min-width: 100%;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .cvg-blog-swiper-wrapper .cvg-card .cvg-card__content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .cvg-blog-swiper-wrapper .cvg-card .cvg-blog-card__excerpt {
        flex: 1;
    }
    
    .cvg-blog-swiper-wrapper .cvg-card .cvg-card__button-wrapper {
        margin-top: auto;
    }
    
    .cvg-blog-swiper-controls {
        display: flex;
    }
    
    .cvg-blog-swiper-prev,
    .cvg-blog-swiper-next {
        background: transparent;
        border: none;
        border-radius: 50%;
        color: var(--color-font);
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease, opacity 0.2s ease;
        box-shadow: none;
    }
    
    .cvg-blog-swiper-prev:hover,
    .cvg-blog-swiper-next:hover {
        background: transparent;
        color: var(--color-light-blue);
    }
    
    .cvg-blog-swiper-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .cvg-blog-swiper-dot.active {
        background: var(--color-font);
    }
    
    .cvg-blog-card__image {
        height: 180px;
    }

    .cvg2025-row-wrapper:has(.cvg2025-row-icon) {
        margin-top: 80px;
    }

    .cvg-blog-card__icon {
        width: 50px;
        height: 50px;
        top: 155px;
        right: 15px;
        font-size: 25px !important;
    }
    
    .cvg-blog-card__content {
        padding: 20px;
    }
    
    .cvg-blog-card__title {
        font-size: 1.2rem;
    }
    
    .cvg-blog-card__meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 5px;
    }

    .cvg-card--featured {
        flex-direction: column;
    }

    .cvg-card--featured .cvg-blog-card__image,
    .cvg-card--featured .cvg-card__content {
        flex: 0 0 100%;
        width: 100%;
    }

    .cvg-card--featured .cvg-blog-card__image {
        height: 200px; /* optional – sonst passt Höhe sich am Bild an */
    }

    .cvg-card--featured .cvg-blog-card__img {
        flex: unset;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cvg-card--featured .cvg-blog-card__meta {
        flex-direction: row;
    }
}


/* Page Number Display for pagination pages */
.page-number-display {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-light-blue-accent);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.page-number-icon {
    background: var(--color-light-blue);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-number-icon .material-icons {
    font-size: 28px;
}

.page-number-content h3 {
    margin: 0 0 5px 0;
    color: var(--color-font);
    font-size: 1.4rem;
}

.page-number-content p {
    margin: 0;
    color: var(--color-blue-gray);
    font-size: 1rem;
}

/* Mobile responsive for page number display */
@media (max-width: 768px) {
    .page-number-display {
        padding: 20px;
        gap: 15px;
    }
    
    .page-number-icon {
        width: 50px;
        height: 50px;
    }
    
    .page-number-icon .material-icons {
        font-size: 24px;
    }
    
    .page-number-content h3 {
        font-size: 1.2rem;
    }
}

.panel-grid-cell .so-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.panel-grid-cell .so-panel .panel-widget-style {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.panel-grid-cell .cvg-card {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cvg-card-content {
        padding: 20px;
    }
    
    .cvg-card-title {
        font-size: 1.2rem;
    }
    
    .cvg-card-image {
        height: 180px;
    }
    
    .cvg-card-icon {
        width: 45px;
        height: 45px;
        bottom: -15px;
        right: 15px;
    }
    
    .cvg-card-icon .material-icons {
        font-size: 20px;
    }
    
    .cvg-card__content {
        padding: 20px;
    }
    
    .cvg-card__headline--small {
        font-size: 1.1rem;
    }
    
    .cvg-card__headline--big {
        font-size: 1.4rem;
    }
    
    .cvg-card__image {
        height: 180px;
    }
    
    .cvg-card__icon {
        width: 50px;
        height: 50px;
        top: 155px;
        right: 15px;
        font-size: 26px !important;
    }
}

/* CVG Tabs Widget */
.cvg-tabs-widget {
    width: 100%;
    margin-bottom: 30px;
}

.cvg-tabs-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Tab Headers - 1/3 width */
.cvg-tabs-headers {
    flex: 0 0 33.333%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cvg-tab-header {
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-font);
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
}

.cvg-tab-header::after {
    content: '\e5c8';
    font-family: 'Material Symbols Sharp', sans-serif;
    font-size: 20px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.cvg-tab-header:hover {
    color: var(--color-font);
}

.cvg-tab-header.active {
    color: var(--color-red);
}

/* Tab Content - 2/3 width */
.cvg-tabs-content {
    flex: 0 0 calc(66.666% - 40px);
    position: relative;
}

.cvg-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.cvg-tab-content.active {
    display: block;
}

.cvg-tab-content h1,
.cvg-tab-content h2,
.cvg-tab-content h3,
.cvg-tab-content h4,
.cvg-tab-content h5,
.cvg-tab-content h6 {
    margin-top: 0;
}

.cvg-tab-content p:last-child {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation wrapper for mobile scrolling */
.cvg-tabs-nav-wrapper {
    position: relative;
    width: 100%;
}

.cvg-tabs-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-behavior: smooth;
}

.cvg-tabs-scroll-container::-webkit-scrollbar {
    display: none;
}

.cvg-tabs-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: max-content;
}

.cvg-tabs-nav-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-light-blue);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.cvg-tabs-nav-arrow:hover {
    background: var(--color-blue-gray);
}

.cvg-tabs-nav-left {
    left: -20px;
}

.cvg-tabs-nav-right {
    right: -20px;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .cvg-tabs-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .cvg-tabs-headers {
        flex: none;
        width: 100%;
        position: relative;
    }
    
    .cvg-tabs-nav-wrapper {
    }
    
    .cvg-tabs-scroll-container {
        padding: 10px 0;
        margin: 0 -10px;
    }
    
    .cvg-tabs-scroll-content {
        flex-direction: row;
        gap: 40px;
        padding: 0 10px;
    }
    
    .cvg-tabs-content {
        flex: none;
        width: 100%;
    }
    
    .cvg-tab-header {
        font-size: 1.3rem;
        white-space: nowrap;
        min-width: max-content;
        transition: all 0.3s ease;
    }
    
    .cvg-tab-header:hover {
        color: var(--color-blue-gray);
    }
    
    .cvg-tab-header.active {
        color: var(--color-red);
    }
    
    .cvg-tab-header::after {
        display: none;
    }
    
    .cvg-tabs-nav-arrow {
        display: flex;
    }
    
    .cvg-tabs-nav-left {
        left: 0;
    }
    
    .cvg-tabs-nav-right {
        right: 0;
    }
}

/* CVG Box Widget */
.cvg-box {
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
}

.cvg-box--expandable:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.10);
}

.cvg-box--expandable:hover .cvg-bo__image {

}

.cvg-box--expandable .cvg-box__headline {
    cursor: pointer;
}

.cvg-box--expandable .cvg-box__image {
    cursor: pointer;
}

.cvg-box--light-blue-accent {
    background: var(--color-light-blue-accent);
}

.cvg-box--font-accent {
    background: var(--color-font-accent);
}

.cvg-box--blue-gray-accent {
    background: var(--color-blue-gray-accent);
}

.cvg-box__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.cvg-box--with-image .cvg-box__image {
    flex: 0 0 33.333%;
    width: 33.333%;
    overflow: hidden;
    position: relative; /* bleibt wichtig */
    /* align-self: stretch; kannst du hier sogar weglassen, align-items: stretch reicht */
}

.cvg-box__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.cvg-box--expandable .cvg-box__image:hover .cvg-box__img {
    transform: scale(1.05);
}

.cvg-box__toggle {
    position: absolute;
    left: calc(33.333% - 35px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.cvg-box__toggle-btn {
    width: 70px;
    height: 70px;
    background: var(--color-light-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvg-box__toggle-btn:hover {
    background: var(--color-blue-gray);
}

.cvg-box__arrow {
    font-size: 40px !important;
    transition: transform 0.3s ease;
}

.cvg-box--expandable.cvg-box--expanded .cvg-box__arrow {
    transform: rotate(90deg);
}

.cvg-box__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 40px 40px 40px 60px;
    overflow: hidden;
}

.cvg-box__headline {
    margin: 0;
    color: inherit;
    font-weight: 700;
    line-height: 1.3;
}

.cvg-box__headline--small {
    font-size: 1.2rem;
}

.cvg-box__headline--big {
    font-size: 1.8rem;
}

.cvg-box__text {
    font-size: 1rem;
    line-height: 1.3;
}

.cvg-box__text p {
    margin-bottom: 1em;
    margin-top: 1em;
}

.cvg-box__text p:last-child {
    margin-bottom: 0;
}

.cvg-box__text--expandable {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
}

.cvg-box--expanded .cvg-box__text--expandable {
    max-height: 2000px;
    opacity: 1;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .cvg-box__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cvg-box--with-image .cvg-box__image {
        flex: none;
        width: 100%;
        height: 200px;
    }
    
    .cvg-box__toggle {
        position: absolute;
        top: 170px;
        left: unset;
        right: 20px;
        transform: none;
        align-self: flex-end;
        margin: 10px 0;
        order: 1;
    }
    
    .cvg-box__content {
        order: 2;
        padding: 20px;
    }
    
    .cvg-box__toggle-btn {
        width: 50px;
        height: 50px;
    }

    .cvg-box__headline {
        max-width: 70%;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .cvg-box__arrow {
        font-size: 18px;
    }
    
    .cvg-box__headline--small {
        font-size: 1.1rem;
    }
    
    .cvg-box__headline--big {
        font-size: 1.4rem;
    }
    
}

@media (max-width: 1560px) {
    .cvg-container.desktop-header, .main-navigation > .cvg-container {
        margin-left: 0;
    }

    .cvg2025-row-icon {
        position: relative;
        top: -90px;
        margin-left: 0;
        margin-bottom: -40px;
    }

    .custom-logo-link {
        left: 180px;
        height: 667px;
    }

    .custom-logo {
        max-height: 100px;
    }

    .header-content {
        width: calc(100% - 230px);
        margin-left: 230px;
    }

    .nav-content {
        margin-left: 230px;
    }

    .nav-logo-compact {
        margin-left: -200px;
    }
}

@media (max-width: 1180px) {
    .cvg2025-row-icon {
        position: relative;
        top: -60px;
        margin-left: 0;
        margin-bottom: -40px;
    }

    .row-color-light-blue + .row-color-light-blue {
        margin-top: -40px !important;
    }

    .row-color-lighter-blue + .row-color-lighter-blue {
        margin-top: -40px !important;
    }

    .cvg2025-row-wrapper:not([class*="row-color-"]) + .cvg2025-row-wrapper:not([class*="row-color-"]) {
        margin-top: -40px !important;
    }

    .cvg2025-row-content {
        padding: 40px;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background-color: #fff;
        z-index: 9999;

        display: flex;
        flex-direction: column;

        pointer-events: none;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease, visibility 0.3s ease;

        background-image: url('./inc/img/logo_menu.svg');
        background-size: auto 60%;
        background-position: bottom right;
        background-repeat: no-repeat;

        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-overlay.active {
        visibility: visible;
        transform: translateX(0);
        pointer-events: all;
    }

    /* Mobile menu content */
    .mobile-menu-content {
        width: 100%;
        padding: 40px 40px 20px 40px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Mobile menu header with search */
    .mobile-menu-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-bottom: 10px;
    }

    .mobile-menu-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-font);
        margin: 0;
    }

    .mobile-menu-search-link {
        color: var(--color-font);
        transition: all 0.2s ease;
        margin-top: 10px;
    }

    .mobile-menu-search-link:hover {
        color: var(--color-light-blue);
    }

    .mobile-close-btn {
        background: none;
        border: none;
        color: var(--color-font);
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-close-btn:hover {
        color: var(--color-light-blue);
    }

    .mobile-close-btn .material-icons {
        font-size: 28px;
    }

    .mobile-menu-nav {
        list-style: none;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }

    .mobile-menu-nav li {
        margin-bottom: 15px;
        position: relative;
    }

    /* Main menu item styling */
    .mobile-menu-nav > li > a {
        display: flex;
        align-items: center;
        color: var(--color-font);
        font-size: 1.3rem;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }

    .mobile-menu-nav > li > a:hover {
        color: var(--color-light-blue);
    }

    li.current-page-ancestor > a {
        color: var(--color-red);
    }

    .mobile-menu-nav > li.current-menu-item > a {
        color: var(--color-red);
    }

    /* Arrow for parent menu items */
    .mobile-menu-nav li.menu-item-has-children > a::after {
        content: '\e5df';
        font-family: 'Material Symbols Sharp', sans-serif;
        font-size: 24px;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 10px;
    }

    .mobile-menu-nav li.menu-item-has-children.submenu-open > a::after {
        transform: rotate(90deg);
    }

    /* Mobile submenu styling */
    .mobile-menu-nav .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: padding 0.3s ease;
        border-radius: 8px;
        margin-top: 5px;
    }

    .mobile-menu-nav li.submenu-open .sub-menu {
        max-height: 500px;
        padding: 10px 0;
    }

    .mobile-menu-nav .sub-menu li {
        margin-bottom: 0;
    }

    .submenu-open > a {
        color: var(--color-light-blue) !important;
    }

    .mobile-menu-nav .sub-menu li a {
        display: block;
        font-size: 1.1rem;
        font-weight: 400;
        color: var(--color-font);
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 0;
    }

    .mobile-menu-nav .sub-menu li a:hover {
        color: var(--color-light-blue);
    }

    .mobile-menu-nav .sub-menu li:not(:last-child) {
        margin-bottom: 10px;
    }

    .mobile-menu-nav .sub-menu li.current-menu-item a {
        color: var(--color-red);
    }

    /* Mobile menu bottom with search button */
    .mobile-menu-bottom {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--color-font-accent);
        display: flex;
        justify-content: center;
    }

    .mobile-menu-bottom .mobile-search-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 15px 25px;
        background-color: var(--color-light-blue);
        color: white;
        text-decoration: none;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 140px;
        justify-content: center;
    }

    .mobile-menu-bottom .mobile-search-btn:hover {
        background-color: var(--color-blue-gray);
        transform: translateY(-1px);
    }

    .mobile-menu-bottom .mobile-search-btn .material-icons {
        font-size: 20px;
    }

    .mobile-menu-search .search-form {
        display: flex;
        gap: 10px;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .mobile-menu-search .search-field {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #ddd;
        font-size: 1rem;
        font-family: 'Hanken Grotesk', sans-serif;
    }

    .mobile-menu-search .search-submit {
        padding: 12px 20px;
        background: var(--color-light-blue);
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 1rem;
        transition: background 0.3s ease;
    }

    .mobile-menu-search .search-submit:hover {
        background: var(--color-blue-gray);
    }

    /* Show mobile quick actions bar at top */
    .mobile-quick-actions-bar {
        display: flex;
        background-color: #EBEFFE;
        padding: 10px 0 0 0;
        justify-content: flex-end;
    }

    .mobile-quick-actions-bar .cvg-container {
        margin: 0 0 0 0;
    }

    .mobile-quick-actions {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    /* Mobile direct link buttons styling */
    .mobile-direct-link {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        text-decoration: none;
        color: var(--color-font);
        flex-shrink: 0;
    }

    .mobile-direct-link#mobile-phone {
        background: var(--color-light-blue-accent);
    }

    .mobile-direct-link#mobile-mail {
        background: var(--color-font-accent);
    }

    .mobile-direct-link#mobile-calendar {
        background: var(--color-blue-gray-accent);
    }

    .mobile-direct-link:hover {
        background: var(--color-light-blue) !important;
        color: white;
    }

    .desktop-header {
        padding-bottom: 20px;
    }

    .nav-content {
        background-color: #EBEFFE;
        padding-bottom: 10px !important;
        padding-top: 10px !important;
    }

    .nav-menu {
        display: none;
    }

    .main-navigation {
        position: fixed;
        visibility: hidden;
        opacity: 0;
        top: 0;
        z-index: 20;
    }

    .main-navigation.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s;
    }

    .nav-search-wrapper {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        color: var(--color-font);
        flex-shrink: 0;
        margin-left: 20px;
        transition: all 0.2s ease;
    }

    .mobile-menu-toggle:hover {
        color: var(--color-light-blue);
    }

    .mobile-menu-toggle .material-icons {
        font-size: 36px;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-right .quick-action-wrapper {
        display: none;
    }

    .header-right .mobile-header-toggle {
        display: flex;
    }

    .header-content {
        padding-top: 10px;
    }

    .nav-content > .mobile-menu-toggle {
        justify-content: flex-end;
    }

    .nav-content {
        padding: 0;
        justify-content: space-between;
        margin-left: 0;
    }

    .nav-logo-compact {
        margin-left: 0;
        position: relative;
        transform: translateY(0);
    }

    .custom-logo-link {
        left: 220px;
        height: 600px;
    }

    .custom-logo {
        max-height: 100px;
    }
}

@media (max-width: 980px) {
    .site-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 900px) {
    .panel-grid, .panel-grid-cell {
        gap: 40px;
    }

    .cvg-button-widget {
        text-align: left !important;
    }

    .panel-row-style {
        gap: 30px;
    }

    .cvg-blog-posts-grid {
        gap: 40px;
    }

    .cvg-breadcrumbs {
        margin-top: 0;
    }
}

@media (max-width: 768px) {


    /* Mobile header content row */
    .header-content {
        background-color: #EBEFFE;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        margin-left: 0;
        margin-right: 0;
        gap: 0;
        text-align: left;
    }

    .page-featured-image {
        height: 300px;
    }

    /* Mobile logo - smaller, left side */
    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 15px;
        flex: 1;
    }

    .custom-logo-link {
        height: 120px;
        margin-left: -400px;
        margin-top: -600px;
        padding: 28px;
    }

    .custom-logo {
        max-height: 50px;
    }

    /* Mobile short title */
    .mobile-short-title {
        color: var(--color-light-blue);
        font-size: 1.2rem;
        font-weight: 700;
        text-decoration: none;
        margin: 0;
    }

    .mobile-short-title .site-title-first-char {
        color: var(--color-red);
    }

    /* Show mobile elements and hide desktop on mobile */
    .mobile-quick-actions-bar,
    .mobile-header {
        display: flex;
        justify-content: center;
    }

    .mobile-header {
        margin-left: 130px;
        padding: 20px 30px 20px 10px;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .mobile-quick-actions-bar {
        background-color: #fff;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--color-blue-gray);
        position: relative;
        z-index: 11;
    }

    .desktop-header {
        display: none;
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-font);
        flex-shrink: 0;
    }

    .mobile-menu-toggle:hover {
        color: var(--color-light-blue);
    }

    .mobile-menu-toggle .material-icons {
        font-size: 36px;
    }

    /* Mobile navigation styles - Clean full screen menu */
    .main-navigation {
        position: relative;
        background-color: transparent;
        border-bottom: none;
        visibility: hidden;
        display: none;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    /* Mobile footer adjustments */
    .footer-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-content {
        padding: 40px 0 40px;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
    }

    .footer-right {
        gap: 40px;
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .footer-partner-logos,
    .footer-menu-area {
        justify-content: center;
    }

    .partner-logos,
    .partner-logos-list {
        justify-content: flex-start;
    }

    .footer-menu {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

}

@media (max-width: 500px) {
    .cvg-blog-posts-grid {
        gap: 30px;
    }

    .cvg2025-row-content {
        padding: 30px;
    }

    .panel-grid {
        gap: 30px;
    }

    .row-color-light-blue + .row-color-light-blue {
        margin-top: -30px !important;
    }

    .row-color-lighter-blue + .row-color-lighter-blue {
        margin-top: -30px !important;
    }

    .cvg2025-row-wrapper:not([class*="row-color-"]) + .cvg2025-row-wrapper:not([class*="row-color-"]) {
        margin-top: -30px !important;
    }

    .cvg2025-row-wrapper:has(.cvg2025-row-icon) {
        margin-top: 40px;
    }
}

/* CVG Cards Swiper Widget Styles */
.cvg-cards-swiper-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Desktop Grid Layout */
.cvg-cards-swiper-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr); /* Default 3 columns */
}

.cvg-cards-swiper--2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.cvg-cards-swiper--3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.cvg-cards-swiper--4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.cvg-cards-swiper-wrapper-inner {
    display: contents;
}

.cvg-cards-swiper-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.cvg-cards-swiper-prev,
.cvg-cards-swiper-next {
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-font);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease, opacity 0.2s ease;
    box-shadow: none;
}

.cvg-cards-swiper-prev:hover,
.cvg-cards-swiper-next:hover {
    background: transparent;
    color: var(--color-light-blue);
}

.cvg-cards-swiper-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cvg-cards-swiper-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cvg-cards-swiper-dot.active {
    background: var(--color-font);
}

/* Mobile Swiper Layout */
@media (max-width: 768px) {
    .cvg-cards-swiper-grid {
        display: block;
    }
    
    .cvg-cards-swiper-wrapper-inner {
        display: flex;
        gap: 30px;
        transition: transform 0.3s ease;
        align-items: stretch;
    }
    
    .cvg-cards-swiper-wrapper-inner .cvg-card {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .cvg-cards-swiper-wrapper-inner .cvg-card .cvg-card__content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .cvg-cards-swiper-wrapper-inner .cvg-card .cvg-card__text {
        flex: 1;
    }
    
    .cvg-cards-swiper-wrapper-inner .cvg-card .cvg-card__button-wrapper {
        margin-top: auto;
    }
    
    .cvg-cards-swiper-controls {
        display: flex;
    }
}

/* ============================================
   Contact Form 7 Styles
   ============================================ */

/* Form Container */
.wpcf7 {
    max-width: 100%;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Labels */
.wpcf7-form label {
    display: block;
    font-weight: 500;
    color: var(--color-font);
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Required Field Indicator */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
}

/* Text Inputs, Email, URL, Tel, Number */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-font-accent);
    background-color: #fff;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--color-font);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form input[type="password"]:focus {
    outline: none;
    border-color: var(--color-light-blue);
    box-shadow: 0 0 0 3px rgba(20, 151, 249, 0.1);
}

/* Textarea */
.wpcf7-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px 16px;
    border: 1px solid var(--color-font-accent);
    background-color: #fff;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--color-font);
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--color-light-blue);
    box-shadow: 0 0 0 3px rgba(20, 151, 249, 0.1);
}

/* Select Dropdown */
.wpcf7-form select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--color-font-accent);
    background-color: #fff;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--color-font);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%2334354D'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.wpcf7-form select:focus {
    outline: none;
    border-color: var(--color-light-blue);
    box-shadow: 0 0 0 3px rgba(20, 151, 249, 0.1);
}

/* Checkbox and Radio */
.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcf7-form .wpcf7-checkbox .wpcf7-list-item,
.wpcf7-form .wpcf7-radio .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.wpcf7-form .wpcf7-checkbox input[type="checkbox"],
.wpcf7-form .wpcf7-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-light-blue);
}

.wpcf7-form .wpcf7-list-item-label {
    font-size: 1rem;
    color: var(--color-font);
    cursor: pointer;
}

/* File Upload */
.wpcf7-form input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--color-font-accent);
    background-color: #EBEFFE;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--color-font);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.wpcf7-form input[type="file"]:hover {
    border-color: var(--color-light-blue);
    background-color: rgba(161, 213, 253, 0.2);
}

.wpcf7-form input[type="file"]:focus {
    outline: none;
    border-color: var(--color-light-blue);
}

/* Submit Button - CVG Style */
.wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid var(--color-light-blue);
    background-color: transparent;
    color: var(--color-light-blue);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--color-light-blue);
    color: #fff;
}

.wpcf7-form input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 151, 249, 0.3);
}

.wpcf7-form input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.wpcf7 .wpcf7-spinner {
    margin-left: 10px;
    vertical-align: middle;
}

/* Validation Messages */
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    padding: 8px 12px;
    background-color: rgba(226, 0, 15, 0.1);
    color: var(--color-red);
    font-size: 0.9rem;
    font-weight: 500;
}

.wpcf7-not-valid {
    border-color: var(--color-red) !important;
}

/* Response Messages */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 16px 20px !important;
    border: none !important;
    font-size: 1rem;
    font-weight: 500;
}

.wpcf7-form.sent .wpcf7-response-output {
    background-color: rgba(20, 151, 249, 0.1);
    color: var(--color-light-blue);
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
    background-color: rgba(226, 0, 15, 0.1);
    color: var(--color-red);
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
    background-color: rgba(96, 134, 167, 0.15);
    color: var(--color-blue-gray);
}

/* Placeholder Styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: var(--color-blue-gray);
    opacity: 0.7;
}

/* Quiz and Captcha Fields */
.wpcf7-form .wpcf7-quiz-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-font);
}

/* Acceptance Checkbox */
.wpcf7-form .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Row Layout (for inline fields) */
.wpcf7-form .form-row {
    display: flex;
    gap: 20px;
}

.wpcf7-form .form-row > p,
.wpcf7-form .form-row > label {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="url"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form input[type="number"],
    .wpcf7-form input[type="date"],
    .wpcf7-form input[type="password"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .wpcf7-form input[type="submit"] {
        width: 100%;
        padding: 16px 24px;
    }

    .wpcf7-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .wpcf7-not-valid-tip {
        font-size: 0.85rem;
    }
}

/* Dark Background Variant (for colored rows) */
.row-color-light-blue .wpcf7-form input[type="text"],
.row-color-light-blue .wpcf7-form input[type="email"],
.row-color-light-blue .wpcf7-form input[type="url"],
.row-color-light-blue .wpcf7-form input[type="tel"],
.row-color-light-blue .wpcf7-form input[type="number"],
.row-color-light-blue .wpcf7-form input[type="date"],
.row-color-light-blue .wpcf7-form input[type="password"],
.row-color-light-blue .wpcf7-form textarea,
.row-color-light-blue .wpcf7-form select {
    background-color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.row-color-light-blue .wpcf7-form input[type="submit"] {
    border-color: var(--color-font);
    color: var(--color-font);
}

.row-color-light-blue .wpcf7-form input[type="submit"]:hover {
    background-color: var(--color-font);
    color: #fff;
}
