/* CA Elementor Collection - Posts widget */
.ca-ec-posts-wrap{ width:100%; --ca-ec-gap:16px; --ca-ec-cols-d:3; --ca-ec-cols-t:2; --ca-ec-cols-m:1; }
.ca-ec-posts-filter{ margin:0 0 2rem 0; }
.ca-ec-posts-filter ul{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:.25rem; }
.ca-ec-posts-filter.align-left ul{ justify-content:flex-start; }
.ca-ec-posts-filter.align-center ul{ justify-content:center; }
.ca-ec-posts-filter.align-right ul{ justify-content:flex-end; }
.ca-ec-posts-filter li{ cursor:pointer; opacity:.75; transition:opacity .2s ease, transform .2s ease; font-weight:500; }
.ca-ec-posts-filter li:not(:last-child)::after{ content: " / "; margin: 0 .5rem; opacity:.6; }
.ca-ec-posts-filter li:hover{ opacity:1; transform: translateY(-1px); }
.ca-ec-posts-filter li.active{ opacity:1; text-decoration:underline; }

/* Grid layout */
.ca-ec-posts-grid{ display:grid; grid-template-columns: repeat(var(--ca-ec-cols-d), 1fr); gap: var(--ca-ec-gap); }
@media (max-width: 992px){ .ca-ec-posts-grid{ grid-template-columns: repeat(var(--ca-ec-cols-t), 1fr); } }
@media (max-width: 600px){ .ca-ec-posts-grid{ grid-template-columns: repeat(var(--ca-ec-cols-m), 1fr); } }

/* Masonry variant (CSS-only) */
.ca-ec-posts-wrap.layout-masonry .ca-ec-posts-grid{ column-count: var(--ca-ec-cols-d); column-gap: var(--ca-ec-gap); display:block; }
@media (max-width: 992px){ .ca-ec-posts-wrap.layout-masonry .ca-ec-posts-grid{ column-count: var(--ca-ec-cols-t); } }
@media (max-width: 600px){ .ca-ec-posts-wrap.layout-masonry .ca-ec-posts-grid{ column-count: var(--ca-ec-cols-m); } }

/* Card */
.ca-ec-posts-card{ display:block; position:relative; overflow:hidden; border-radius:8px; text-decoration:none; }
.ca-ec-posts-wrap.layout-masonry .ca-ec-posts-card{ break-inside:avoid; display:block; margin:0 0 var(--ca-ec-gap); }

.ca-ec-posts-image{ 
    display:block; width:100%; padding-bottom:70%; background-size:cover; 
    background-position:center; transform: scale(1.095) translateX(0%);
    transition: transform 1s cubic-bezier(0.33, 0.02, 0, 0.93); 
}

.ca-ec-posts-overlay{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:14px 16px; background-color: rgba(0,0,0,.55); opacity:0; transition: opacity .25s ease; }
.ca-ec-posts-overlay h3{ margin:0; font-size:1rem; color:#fff; opacity: 0; transform: translateY(30px); transition: 0.66s cubic-bezier(0.33, 0.02, 0, 0.93) 0.14s;}
.ca-ec-posts-card:hover .ca-ec-posts-overlay{ opacity:1; }
.ca-ec-posts-card:hover .ca-ec-posts-overlay h3{ 
    opacity: 1;
    transform: translateY(0px);
    transition: 0.66s cubic-bezier(0.33, 0.02, 0, 0.93) 0.14s; 
}
.ca-ec-posts-card:hover .ca-ec-posts-image{ 
    transform: scale(1.095) translateX(4%);
    transition: transform 1s cubic-bezier(0.33, 0.02, 0, 0.93); 
}




.ca-ec-posts-card.hidden{ display:none !important; }

/* Masonry/Grid Logic */
.ca-ec-posts-wrap.layout-masonry .ca-ec-posts-card .ca-ec-posts-image{ padding-bottom: 0; height: auto; }
.ca-ec-posts-wrap.layout-masonry .ca-ec-posts-card.is-landscape .ca-ec-posts-image{ height: 300px; } /* Landscape → 300px */
.ca-ec-posts-wrap.layout-masonry .ca-ec-posts-card.is-portrait .ca-ec-posts-image{ height: 600px; } /* Portrait → 600px */
.ca-ec-posts-wrap.layout-masonry .ca-ec-posts-card:not(.is-portrait):not(.is-landscape) .ca-ec-posts-image{ height: 300px; } /* Fallback */

/* Load more */
.ca-ec-posts-load{ display:flex; justify-content:center; margin-top:1rem; }
.ca-ec-posts-loadmore{ cursor:pointer; padding:.6rem 1rem; border:1px solid rgba(0,0,0,.15); border-radius:8px; background:#fff; }

/* === CA EC Table === */
.ca-ec-table{ --ca-ec-row-gap: 0px; display:flex; flex-direction:column; gap: var(--ca-ec-row-gap); }
.ca-ec-table .ca-ec-table-head{ display:grid; grid-template-columns: 1fr; font-weight:600; margin-bottom:.25rem; }
.ca-ec-table.layout-two .ca-ec-table-head{ grid-template-columns: 30% 70%; }
.ca-ec-table .ca-ec-th{ padding:.5rem .75rem; }
.ca-ec-table .ca-ec-table-row{ display:grid; grid-template-columns: 1fr; align-items:start; background:#fff; }
.ca-ec-table.layout-two .ca-ec-table-row{ grid-template-columns: 30% 70%; }
.ca-ec-table .ca-ec-table-title{ padding: .75rem .9rem; font-weight:600; }
.ca-ec-table .ca-ec-table-content{ padding: .75rem .9rem; }

/* === CA EC Accordion === */
.ca-ec-accordion {
    --ca-ec-acc-gap: 12px;
    display: flex;
    flex-direction: column;
    gap: var(--ca-ec-acc-gap);
}
.ca-ec-acc-item {
    background: #fff;
    overflow: hidden;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}
.ca-ec-acc-item-title {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.25rem;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: #fff;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    outline: none !important;
    box-shadow: none !important;
}
.ca-ec-acc-title-icon {
    font-weight: bold;
    color: #2888ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ca-ec-acc-item-title:focus {
    outline: none !important;
    box-shadow: none !important;
    background-color: #fff;
    color: #333;
}
.ca-ec-acc-item-title:focus .ca-ec-acc-title-icon {
    color: #2888ee;
}
.ca-ec-acc-item.is-open .ca-ec-acc-item-title:focus {
    background-color: #2888ee;
    color: #fff;
}
.ca-ec-acc-item.is-open .ca-ec-acc-item-title:focus .ca-ec-acc-title-icon {
    color: #fff;
}
.ca-ec-acc-item.is-open .ca-ec-acc-item-title,
.ca-ec-acc-item-title:hover {
    background-color: #2888ee;
    color: #fff;
}
.ca-ec-acc-item.is-open .ca-ec-acc-title-icon,
.ca-ec-acc-item-title:hover .ca-ec-acc-title-icon {
    color: #fff;
}
.ca-ec-acc-item-content {
    display: none;
    padding: 1.25rem;
    background-color: #fff;
    color: #444;
    border-top: 1px solid #eee;
}

/* Accordion closed/opened state icon visibility */
.ca-ec-acc-icon-opened {
    display: none;
}
.ca-ec-acc-item.is-open .ca-ec-acc-icon-closed {
    display: none;
}
.ca-ec-acc-item.is-open .ca-ec-acc-icon-opened {
    display: inline-flex;
}


/* === CA EC Cards === */
.ca-ec-cards{
  position:relative;
  width:100%;
  height:550px; 
  border:1px solid #222;
  overflow:hidden;
}
.ca-ec-cards .ca-ec-cards-content{
  position:absolute; inset:0;
  display:flex; width:100%; height:100%;
  z-index:1; cursor:pointer;
}
.ca-ec-card{
  position:relative;
  display:block; text-decoration:none;
  width:calc(100% / var(--cards));
  height:100%;
  user-select:none; overflow:hidden;
  background-size:cover;
  background-repeat:no-repeat;
  transition:width .4s cubic-bezier(1,0,0,1);
}
.ca-ec-card.active{ width:200%; left:0; }

.ca-ec-card::before{
  content:""; position:absolute; inset:0;
  background: rgba(44, 62, 80, .76);
  transition: background .4s ease;
  z-index:0;
}
.ca-ec-card.active::before{ background: rgba(44, 62, 80, .20); }

.ca-ec-card-title{
  position:absolute; bottom:20px; left:20px;
  margin:0; padding:0; color:#fff;
  font-size:20px; line-height:1.3em;
  writing-mode: vertical-lr;
  text-transform: uppercase;
  transition: all .4s ease;
  z-index:2;
}
.ca-ec-card.active .ca-ec-card-title{
  writing-mode:unset; transform:rotate(0deg);
  left:35px; bottom:0;
}

/* Maus verlässt die Fläche → keine aktive Karte */
.ca-ec-cards:hover .ca-ec-card:hover{ /* no-op: nur specificity helper */ }


/* ========================================== */
/* === CA Elementor Gallery === */
/* ========================================== */
.ca-ec-gallery-wrap {
    width: 100%;
    margin-bottom: 20px;
    --ca-ec-gap: 16px;
    --ca-ec-cols: 3;
}

/* Header (Tabs + Search) */
.ca-ec-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

/* Tabs / Filter */
.ca-ec-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.ca-ec-gallery-tabs.align-left { justify-content: flex-start; }
.ca-ec-gallery-tabs.align-center { justify-content: center; }
.ca-ec-gallery-tabs.align-right { justify-content: flex-end; }

.ca-ec-gallery-tab {
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ca-ec-gallery-wrap button.ca-ec-gallery-tab:focus {
    outline: none;
    box-shadow: none;
    background-color: #fff;
    color: #333;
    border-color: #ccc;
}
.ca-ec-gallery-wrap button.ca-ec-gallery-tab.active,
.ca-ec-gallery-wrap button.ca-ec-gallery-tab:hover,
.ca-ec-gallery-wrap button.ca-ec-gallery-tab.active:focus,
.ca-ec-gallery-wrap button.ca-ec-gallery-tab:hover:focus,
.ca-ec-gallery-wrap button.ca-ec-gallery-tab:focus:hover {
    background-color: #2888ee;
    color: #fff;
    border-color: #2888ee;
}

/* Search Input */
.ca-ec-gallery-search-wrap {
    position: relative;
    max-width: 100%;
    display: flex;
    flex: 0 0 auto;
}
.ca-ec-gallery-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    color: #333;
}
.ca-ec-gallery-search-input:focus {
    border-color: #2888ee;
    box-shadow: 0 0 0 3px rgba(40, 136, 238, 0.15);
}

/* Grid & Masonry Layout */
.ca-ec-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--ca-ec-cols, 3), 1fr);
    gap: var(--ca-ec-gap);
}

/* Pure CSS Masonry (column-count) */
.ca-ec-gallery-wrap.layout-masonry .ca-ec-gallery-grid {
    display: block;
    column-count: var(--ca-ec-cols, 3);
    column-gap: var(--ca-ec-gap);
}
.ca-ec-gallery-wrap.layout-masonry .ca-ec-gallery-item {
    break-inside: avoid;
    margin-bottom: var(--ca-ec-gap);
    display: block;
    height: auto;
}

.ca-ec-gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #f7f7f7;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ca-ec-gallery-item.hidden-item {
    display: none !important;
}

/* Image wrapper (fixed ratios for Grid layout) */
.ca-ec-gallery-image-wrap {
    position: relative;
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    display: block;
}

.ca-ec-gallery-wrap:not(.layout-masonry) .ca-ec-gallery-image-wrap {
    height: 0;
    padding-bottom: 70%; /* Overridden dynamically by elementor inline style */
}

.ca-ec-gallery-wrap.layout-masonry .ca-ec-gallery-image-wrap {
    padding-bottom: 0 !important;
    height: auto;
}

/* Image styling */
.ca-ec-gallery-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1;
    transition: opacity 0.6s ease-in-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ca-ec-gallery-wrap.layout-masonry .ca-ec-gallery-img {
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}


/* Hover Zoom Effect */
.ca-ec-gallery-wrap:not(.no-interaction) .ca-ec-gallery-item:hover .ca-ec-gallery-img.loaded {
    transform: scale(1.06);
}

/* Link Wrapper */
.ca-ec-gallery-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    width: 100%;
    flex-grow: 1;
}

.ca-ec-gallery-wrap.no-lightbox .ca-ec-gallery-link {
    cursor: default;
}

.ca-ec-gallery-wrap:not(.layout-masonry) .ca-ec-gallery-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ca-ec-gallery-wrap.layout-masonry .ca-ec-gallery-image-wrap img {
    position: static;
}

/* Hover Overlay */
.ca-ec-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

.ca-ec-gallery-item:hover .ca-ec-gallery-overlay {
    opacity: 1;
}

.ca-ec-gallery-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transform: translateY(15px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.ca-ec-gallery-item:hover .ca-ec-gallery-title {
    transform: translateY(0);
}

/* No Interaction Class */
.ca-ec-gallery-wrap.no-interaction .ca-ec-gallery-link {
    cursor: default;
}
.ca-ec-gallery-wrap.no-interaction .ca-ec-gallery-overlay {
    display: none !important;
}

/* Pagination & Buttons */
.ca-ec-gallery-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
    flex-wrap: wrap;
}

.ca-ec-gallery-btn {
    cursor: pointer;
    padding: 10px 24px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}
.ca-ec-gallery-wrap button.ca-ec-gallery-btn:focus {
    outline: none;
    box-shadow: none;
    background: #fff;
    color: #333;
    border-color: #ccc;
}
.ca-ec-gallery-wrap button.ca-ec-gallery-btn:hover,
.ca-ec-gallery-wrap button.ca-ec-gallery-btn:hover:focus,
.ca-ec-gallery-wrap button.ca-ec-gallery-btn:focus:hover {
    background: #2888ee;
    color: #fff;
    border-color: #2888ee;
}

.ca-ec-gallery-numbers {
    display: flex;
    gap: 6px;
}

.ca-ec-gallery-pagi-link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}
.ca-ec-gallery-wrap a.ca-ec-gallery-pagi-link:focus {
    outline: none;
    box-shadow: none;
    background: #fff;
    color: #333;
    border-color: #ccc;
}
.ca-ec-gallery-wrap a.ca-ec-gallery-pagi-link:hover,
.ca-ec-gallery-wrap a.ca-ec-gallery-pagi-link.active,
.ca-ec-gallery-wrap a.ca-ec-gallery-pagi-link:hover:focus,
.ca-ec-gallery-wrap a.ca-ec-gallery-pagi-link.active:focus,
.ca-ec-gallery-wrap a.ca-ec-gallery-pagi-link:focus:hover {
    background: #2888ee;
    color: #fff;
    border-color: #2888ee;
}

/* Responsive adjust for flex header */
@media (max-width: 768px) {
    .ca-ec-gallery-header.has-both {
        flex-direction: column;
        align-items: stretch;
    }
    .ca-ec-gallery-header.has-both .ca-ec-gallery-tabs,
    .ca-ec-gallery-header.has-both .ca-ec-gallery-search-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .ca-ec-gallery-search-wrap {
        width: 100% !important;
    }
}

/* === CA EC Hero === */
.ca-ec-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.ca-ec-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.ca-ec-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}
.ca-ec-hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* 16:9 ratio */
    height: 56.25vw; /* 16:9 ratio */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}
.ca-ec-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 80px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    box-sizing: border-box;
}
.ca-ec-hero-col {
    flex: 0 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}
.ca-ec-hero-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #2888ee;
    margin-bottom: -5px;
}
.ca-ec-hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    margin: 0;
    color: #fff;
}
.ca-ec-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    color: #cbd5e1;
}
.ca-ec-hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #94a3b8;
}
.ca-ec-hero-desc p {
    margin: 0 0 1em 0;
}
.ca-ec-hero-desc p:last-child {
    margin-bottom: 0;
}
.ca-ec-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}
.ca-ec-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid transparent;
}
.ca-ec-hero-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Overrides for Hero buttons to bypass theme button styles with normal specificity */
.ca-ec-hero-btn.btn-primary {
    background-color: #2888ee;
    color: #fff;
    border-color: #2888ee;
}
.ca-ec-hero-btn.btn-primary:hover,
.ca-ec-hero-btn.btn-primary:focus {
    background-color: #1b6ec2;
    border-color: #1b6ec2;
    color: #fff;
}
.ca-ec-hero-btn.btn-primary:not([class*="elementor-animation-"]):hover,
.ca-ec-hero-btn.btn-primary:not([class*="elementor-animation-"]):focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 136, 238, 0.3);
}
.ca-ec-hero-btn.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.ca-ec-hero-btn.btn-secondary:hover,
.ca-ec-hero-btn.btn-secondary:focus {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
.ca-ec-hero-btn.btn-secondary:not([class*="elementor-animation-"]):hover,
.ca-ec-hero-btn.btn-secondary:not([class*="elementor-animation-"]):focus {
    transform: translateY(-2px);
}

/* === CA EC Pre-Footer === */
.ca-ec-pre-footer-wrap {
    width: 100%;
    box-sizing: border-box;
}
.ca-ec-pre-footer-wrap.mode-boxed {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.ca-ec-pre-footer {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}
.ca-ec-pre-footer-wrap.mode-boxed .ca-ec-pre-footer {
    min-height: 35vh;
}
.ca-ec-pre-footer-wrap.mode-fullwidth .ca-ec-pre-footer {
    min-height: 75vh;
}
.ca-ec-pre-footer-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.ca-ec-pre-footer-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    width: 100%;
}
.ca-ec-pre-footer.style-centered .ca-ec-pre-footer-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}
.ca-ec-pre-footer.style-split .ca-ec-pre-footer-container {
    flex-direction: row;
    justify-content: space-between;
}
.ca-ec-pre-footer-content-left {
    flex: 1 1 450px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}
.ca-ec-pre-footer-content-right {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    box-sizing: border-box;
}
.ca-ec-pre-footer.style-centered .ca-ec-pre-footer-content-right {
    align-items: center;
}
.ca-ec-pre-footer-eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2888ee;
    margin: 0;
}
.ca-ec-pre-footer-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}
.ca-ec-pre-footer-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}
.ca-ec-pre-footer-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.ca-ec-pre-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid transparent;
}
.ca-ec-pre-footer-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Overrides for Pre-Footer buttons to bypass theme button styles with normal specificity */
.ca-ec-pre-footer-btn.btn-primary {
    background-color: #2888ee;
    color: #fff;
    border-color: #2888ee;
}
.ca-ec-pre-footer-btn.btn-primary:hover,
.ca-ec-pre-footer-btn.btn-primary:focus {
    background-color: #1b6ec2;
    border-color: #1b6ec2;
    color: #fff;
}
.ca-ec-pre-footer-btn.btn-primary:not([class*="elementor-animation-"]):hover,
.ca-ec-pre-footer-btn.btn-primary:not([class*="elementor-animation-"]):focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 136, 238, 0.3);
}
.ca-ec-pre-footer-btn.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.ca-ec-pre-footer-btn.btn-secondary:hover,
.ca-ec-pre-footer-btn.btn-secondary:focus {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
.ca-ec-pre-footer-btn.btn-secondary:not([class*="elementor-animation-"]):hover,
.ca-ec-pre-footer-btn.btn-secondary:not([class*="elementor-animation-"]):focus {
    transform: translateY(-2px);
}

/* Responsive adjustments for Hero & Pre-Footer */
@media (max-width: 991px) {
    .ca-ec-hero-title {
        font-size: 2.5rem;
    }
    .ca-ec-pre-footer-title {
        font-size: 1.8rem;
    }
}
@media (max-width: 768px) {
    .ca-ec-hero-container {
        padding: 50px 20px;
    }
    .ca-ec-hero-col {
        width: 100%;
        text-align: center;
    }
    .ca-ec-hero-ctas {
        justify-content: center;
    }
    .ca-ec-hero-title {
        font-size: 2rem;
    }
    
    .ca-ec-pre-footer.style-split .ca-ec-pre-footer-container {
        flex-direction: column;
        text-align: center;
    }
    .ca-ec-pre-footer-content-left,
    .ca-ec-pre-footer-content-right {
        flex: 1 1 100%;
        width: 100%;
        align-items: center;
    }
    .ca-ec-pre-footer-ctas {
        justify-content: center;
    }
}

/* === CA EC CTA-Tile (CTA-Kachel) === */
.ca-ec-cta-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 350px;
    box-sizing: border-box;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none !important;
}
.ca-ec-cta-tile.enable-float:hover {
    transform: translateY(-6px);
}
.ca-ec-cta-tile-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}
.ca-ec-cta-tile.enable-zoom:hover .ca-ec-cta-tile-bg {
    transform: scale(1.08);
}
.ca-ec-cta-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ca-ec-cta-tile-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
}

/* Alignments (default left & top alignment, customizable per viewport via Elementor controls) */
.ca-ec-cta-tile-container {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
}
.ca-ec-cta-tile-icon-wrap,
.ca-ec-cta-tile-badge-wrap,
.ca-ec-cta-tile-cta {
    justify-content: flex-start;
}

/* Numbering */
.ca-ec-cta-tile-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(71, 85, 105, 0.15);
    user-select: none;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Icon */
.ca-ec-cta-tile-icon-wrap {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}
.ca-ec-cta-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #475569;
    fill: #475569;
    width: 42px;
    height: 42px;
    transition: color 0.3s ease, fill 0.3s ease;
}
.ca-ec-cta-tile-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Badge */
.ca-ec-cta-tile-badge-wrap {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
}
.ca-ec-cta-tile-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
    background-color: #eff6ff;
    border-radius: 4px;
    line-height: 1;
}

/* Eyebrow */
.ca-ec-cta-tile-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2888ee;
    margin-bottom: 8px;
    display: block;
}

/* Title */
.ca-ec-cta-tile-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

/* Description */
.ca-ec-cta-tile-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 25px;
}

/* Button & Link Wrapper */
.ca-ec-cta-tile-cta {
    display: flex;
    width: 100%;
    margin-top: 20px;
}
.ca-ec-cta-tile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid transparent;
    line-height: 1.2;
}

/* Base button styling overrides with normal specificity */
.ca-ec-cta-tile-btn.btn-primary {
    background-color: #2888ee;
    color: #fff;
    border-color: #2888ee;
}
.ca-ec-cta-tile-btn.btn-primary:hover,
.ca-ec-cta-tile-btn.btn-primary:focus {
    background-color: #1b6ec2;
    border-color: #1b6ec2;
    color: #fff;
}
.ca-ec-cta-tile-btn.btn-secondary {
    background-color: transparent;
    color: #2888ee;
    border-color: #2888ee;
}
.ca-ec-cta-tile-btn.btn-secondary:hover,
.ca-ec-cta-tile-btn.btn-secondary:focus {
    background-color: #2888ee;
    border-color: #2888ee;
    color: #fff;
}
.ca-ec-cta-tile-btn.btn-text {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #2888ee;
    text-decoration: underline !important;
    box-shadow: none !important;
}
.ca-ec-cta-tile-btn.btn-text:hover,
.ca-ec-cta-tile-btn.btn-text:focus {
    color: #1b6ec2;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: underline !important;
}

/* Kachel Hover Animation Conflict Resolution */
.ca-ec-cta-tile[class*="elementor-animation-"]:hover {
    transform: none !important;
}

/* Gallery Sorting Helper (Editor Mode) */
.ca-ec-gallery-wrap .ca-ec-sort-badge {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 30;
    background: rgba(40, 136, 238, 0.95);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 0px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background-color 0.2s ease;
    text-align: left;
}

.ca-ec-gallery-wrap .ca-ec-sort-badge .badge-label {
    display: block;
    font-size: 9px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    line-height: 1.1;
}

.ca-ec-gallery-wrap .ca-ec-sort-badge .badge-num {
    display: block;
    font-size: 15px;
    font-weight: normal;
    color: #ffffff;
    line-height: 1.1;
    margin-top: 1px;
}

/* Only display sorting badge when sorting helper is active AND inside Elementor Editor */
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-sort-badge,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-sort-badge {
    display: block !important;
}

.ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item:hover .ca-ec-sort-badge {
    background: rgba(27, 110, 194, 0.98);
}

/* Broken / missing image indicator (editor only) */
.elementor-editor-active .ca-ec-gallery-wrap .ca-ec-gallery-item.ca-ec-broken-image,
.elementor-element-edit-mode .ca-ec-gallery-wrap .ca-ec-gallery-item.ca-ec-broken-image {
    opacity: 0.5;
    outline: 2px dashed #e53935;
    outline-offset: -2px;
    cursor: not-allowed;
}
.elementor-editor-active .ca-ec-gallery-wrap .ca-ec-gallery-item.ca-ec-broken-image .ca-ec-gallery-image-wrap::after,
.elementor-element-edit-mode .ca-ec-gallery-wrap .ca-ec-gallery-item.ca-ec-broken-image .ca-ec-gallery-image-wrap::after {
    content: '⚠ Bild fehlt';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 57, 53, 0.15);
    color: #e53935;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    pointer-events: none;
}
.elementor-editor-active .ca-ec-gallery-wrap .ca-ec-gallery-item.ca-ec-broken-image .ca-ec-gallery-image-wrap,
.elementor-element-edit-mode .ca-ec-gallery-wrap .ca-ec-gallery-item.ca-ec-broken-image .ca-ec-gallery-image-wrap {
    position: relative;
}

/* Force Grid Sorting Layout (Temporary flat grid for easy sorting in Editor) */
.elementor-editor-active .ca-ec-gallery-wrap.layout-masonry.force-grid-sorting .ca-ec-gallery-grid,
.elementor-element-edit-mode .ca-ec-gallery-wrap.layout-masonry.force-grid-sorting .ca-ec-gallery-grid {
    column-count: auto !important;
    column-gap: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.elementor-editor-active .ca-ec-gallery-wrap.layout-masonry.force-grid-sorting .ca-ec-gallery-item,
.elementor-element-edit-mode .ca-ec-gallery-wrap.layout-masonry.force-grid-sorting .ca-ec-gallery-item {
    break-inside: auto !important;
    margin-bottom: 0 !important;
    height: 220px !important;
}

.elementor-editor-active .ca-ec-gallery-wrap.layout-masonry.force-grid-sorting .ca-ec-gallery-img,
.elementor-element-edit-mode .ca-ec-gallery-wrap.layout-masonry.force-grid-sorting .ca-ec-gallery-img {
    height: 100% !important;
    object-fit: cover !important;
}

/* Disable Hover Overlays & Title overlays when Sorting Helper is active in Editor */
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-image-wrap::before,
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-overlay,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-image-wrap::before,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Canvas Drag & Drop Reordering (Schiebepuzzle UI) */
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item {
    cursor: grab !important;
    user-select: none !important;
}

.ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.is-dragging {
    opacity: 0.35 !important;
    transform: scale(0.96) !important;
}

.ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.drag-over-target {
    position: relative !important;
    z-index: 40 !important;
}

/* Swap Indicator: Solid 14px dashed border around target item */
.ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.drag-over-swap {
    transform: scale(1.03) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6) !important;
}

.ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.drag-over-swap::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border: .45rem dashed #2888ee !important;
    border-radius: 6px !important;
    z-index: 98 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    background: rgba(40, 136, 238, 0.25) !important;
}

/* Insert Before Indicator: Solid top bar */
.ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.drag-over-before::before {
    content: "" !important;
    position: absolute !important;
    top: -6px !important;
    left: 0 !important;
    right: 0 !important;
    height: 0.9rem !important;
    background: #2888ee !important;
    border-radius: 6px !important;
    box-shadow: 0 0 16px rgba(40, 136, 238, 0.9) !important;
    z-index: 999 !important;
    pointer-events: none !important;
}

/* Insert After Indicator: Solid bottom bar */
.ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.drag-over-after::before {
    content: "" !important;
    position: absolute !important;
    bottom: -6px !important;
    left: 0 !important;
    right: 0 !important;
    height: 0.9rem !important;
    background: #2888ee !important;
    border-radius: 6px !important;
    box-shadow: 0 0 16px rgba(40, 136, 238, 0.9) !important;
    z-index: 999 !important;
    pointer-events: none !important;
}

/* Dragging state indicator overlay - ONLY inside Elementor Editor */
.elementor-editor-active .ca-ec-gallery-wrap.ca-ec-drag-active::after,
.elementor-element-edit-mode .ca-ec-gallery-wrap.ca-ec-drag-active::after {
    content: "Schiebepuzzle-Modus: Bild auf Zielposition ablegen zum Tauschen" !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 50 !important;
    background: rgba(40, 136, 238, 0.95) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    pointer-events: none !important;
}

/* WP Media Modal Badge Styling (Top-Left on Thumbnail Preview) */
.media-modal .attachments .attachment .attachment-preview {
    position: relative !important;
}

.media-modal .attachments .attachment .ca-ec-modal-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 99999 !important;
    background: #2888ee !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    padding: 4px 8px !important;
    border-radius: 0px !important; /* Square Badge */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    pointer-events: none !important;
}

/* Centered "⇅" Overlay on each image when sorting helper is active (ONLY IN ELEMENTOR EDITOR) */
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-image-wrap::after,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-image-wrap::after {
    content: "⇅" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #122033 !important;
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    opacity: 0.85 !important; /* Standardmäßig 0.85 Opacity */
    z-index: 10 !important;
    transition: opacity 0.25s ease !important;
}

.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item:hover .ca-ec-gallery-image-wrap::after,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item:hover .ca-ec-gallery-image-wrap::after {
    opacity: 0.95 !important;
}

/* Grab / Grabbing Cursors for Sorting Helper (ONLY IN ELEMENTOR EDITOR) */
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item,
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item *,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item * {
    cursor: grab !important;
}

body.ca-ec-is-dragging-active,
body.ca-ec-is-dragging-active *,
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.is-dragging,
.elementor-editor-active .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.is-dragging *,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.is-dragging,
.elementor-element-edit-mode .ca-ec-gallery-wrap.has-sorting-helper .ca-ec-gallery-item.is-dragging * {
    cursor: grabbing !important;
}

/* Debug Visual Scroll Zones Overlay (Editor Drag Active) */
.ca-ec-debug-scroll-zone {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    height: 250px !important;
    z-index: 99999999 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
}

.ca-ec-debug-zone-top {
    top: 0 !important;
    background: rgba(229, 57, 53, 0.25) !important;
    color: #b71c1c !important;
    border-bottom: 3px dashed #e53935 !important;
}

.ca-ec-debug-zone-bot {
    bottom: 0 !important;
    background: rgba(25, 118, 210, 0.25) !important;
    color: #0d47a1 !important;
    border-top: 3px dashed #1976d2 !important;
}

.ca-ec-debug-scroll-zone.is-scrolling {
    background: rgba(76, 175, 80, 0.45) !important;
    color: #1b5e20 !important;
    border-color: #2e7d32 !important;
    box-shadow: inset 0 0 25px rgba(76, 175, 80, 0.7) !important;
}




