.simple-accordion-list { 
    list-style: none;
    padding: 0;
    margin: 36px 0 40px -33px;
    background: #f7f7f7;
    border-radius: 2px;
}

.simple-accordion-item:last-child { 
    border-bottom: none; 
}

.simple-accordion-title-row { 
    display: flex;
    align-items: center;
    gap: 12px; 
    cursor: pointer; 
    padding: 20px 0 0 0;
    /* Ensure toggle stays perfectly aligned right, regardless of title height */
    min-height: 46px; /* Matches toggle height for vertical centering */
}

.simple-accordion-title { 
    color: #000000;
    font-family: "Roboto", Sans-serif;
    font-size: 20px;
    line-height: 26px;
    font-weight: bold;
    margin-left: 32px;
    margin-right: 20px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    /* Prevent stretching, keep text aligned vertically with toggle */
}

.simple-accordion-toggle { 
    background-color: #fe7001 !important;
    color: #fff !important;
    width: 46px;
    height: 42px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; 
    flex: 0 0 46px;
    /* Fixed size, never stretches/shrinks */
}

.simple-accordion-toggle.active { 
    background: #ff6c0e; 
}

.simple-accordion-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s;
    display: block;
    padding: 0 0 0 32px;
}

.simple-accordion-detail.is-open {
    max-height: 800px; /* adjust for your expected content size */
    padding: 15px 0 0 32px;
}

.simple-accordion-detail ul li {
    list-style-type: disc;
}

@media (max-width:600px){
    .simple-accordion-title-row { min-height: 32px; }
    .simple-accordion-title { margin-left: 12px; font-size: 1em;}
    .simple-accordion-toggle {
        margin-right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1em;
        flex: 0 0 32px;
    }
    .simple-accordion-detail { padding: 10px 12px 10px 50px; }
}

.simple-accordion-set-label {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 36px;
    color: #fe7001;
    font-family: "Roboto", Sans-serif;
}

/* Service Grid Container */
.service-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: -16px -12px;
}

/* Service Card */
.service-card {
    background: #fff;
    border-radius: 20px;
    flex: 1 1 calc(33.333% - 24px);
    max-width: calc(33.333% - 24px);
    min-width: 280px;
    position: relative;
    overflow: hidden;
    margin: 16px 12px;
    transition: box-shadow 0.18s;
    aspect-ratio: 1.1 / 1;
}

.service-card.border-active {
    border-style: solid;
    border-width: 1px;
    border-color: #F0F0F0;
}

.service-card::before {
    content: "";
    display: block;
    padding-top: 90.91%;
}

.service-card > * {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.35;
    transition: opacity .2s;
    border-radius: inherit !important;
}

.service-card-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.service-card-title {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 18px;
    line-height: 1.1;
    text-transform: uppercase;
    opacity: 1;
}

/* Modal Overlay */
.service-modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(80,80,80,0.80);
    align-items: center;
    justify-content: center;
}
.service-modal-overlay.active {
    display: flex;
}

/* Modal Box */
.service-modal-box {
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 0 18px 2px #ff8200, 0 2px 24px rgba(0,0,0,0.12);
    width: 1700px;
    height: 800px;
    padding: 70px 10px 0px 10px;
    position: relative;
    display: flex;
    align-items: flex-start;
    border: 4px solid #ff8200;
    margin: 0 auto;
    animation: fadeInModal 0.22s;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98);}
  to { opacity: 1; transform: scale(1);}
}
.service-modal-close {
    position: absolute;
    left: -24px;
    top: -24px;
    width: 60px;
    height: 60px;
    background-color: #ff8200 !important;
    border-radius: 50%;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff8200 !important;
    z-index: 2;
    font-weight: bold;
    transition: background .18s;
}

/* --- Modal Content Layout --- */
/* Default: flex row for text + image side by side */
.service-modal-content {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 95px;
    /* padding-top: 100px; */
    padding-right: 12px;
}

/* Text section: left column */
.service-modal-content-text {
    width: 50%;
    vertical-align: top;
    padding-top: 50px;
    flex: 1 1 0;
}

/* Image section: right column */
.service-modal-content-img {
    padding-top: 50px;
    flex: 0 0 auto;
    width: 50%;
    max-width: 785px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-img {
    width: 100%;
    max-width: 760px;
    height: auto !important;
    margin-top: 0;
    background: #fff;
}

/* --- FIX: If no image, show text in full width and hide image container --- */
.service-modal-content.no-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    margin-top: -90px !important;
}

.service-modal-content.no-image .service-modal-content-text {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    display: block;
}

.service-modal-content.no-image .service-modal-content-img {
    display: none !important;
}

/* Modal Headline */
.service-modal-headline {
    font-family: 'Roboto', sans-serif;
    color: #ff8200;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 26px;
    line-height: 1.1;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

/* Modal Title */
.service-modal-title {
    font-family: 'Roboto', sans-serif;
    color: #ff8200;
    font-size: 52px;
    font-weight: 500;
    margin-bottom: 18px;
    margin-top: 0.18em;
    line-height: 1.25;
    text-transform: uppercase;
}

/* Modal Description */
.service-modal-desc {
    font-family: 'Roboto', sans-serif;
    color: #f26e00;
    font-weight: 400;
    margin-top: 35px;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
    .service-modal-box {
        width: 98vw;
        height: 700px;
        padding: 32px 16px 32px 16px;
    }
    .service-modal-content {
        padding-left: 30px;
        padding-top: 60px;
    }
    .service-modal-img {
        max-width: 700px;
    }
}

@media (max-width: 1200px) {
    .service-card {
        flex: 1 1 calc(33.333% - 24px);
        max-width: calc(33.333% - 24px);
        min-width: 180px;
    }
    .service-modal-box {
        flex-direction: column;
        align-items: center;
        width: 98vw;
        height: auto;
        min-width: unset;
    }
    .service-modal-content {
        flex-direction: column !important;
        padding: 24px 10px 0 10px !important;
        padding-top: 30px !important;
    }
    .service-modal-content-text,
    .service-modal-content-img {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .service-modal-img {
        width: 80vw;
        max-width: 600px;
        margin: 0 auto 24px auto;
    }
    .service-modal-close {
        left: auto;
        right: 10px;
        top: -30px;
    }
    .service-modal-content.no-image {
        padding: 0 10px !important;
    }
}

@media (max-width: 900px) {
    .service-card {
        flex: 1 1 calc(33.333% - 24px);
        max-width: calc(33.333% - 24px);
        min-width: 120px;
    }
    .service-grid-container {
        gap: 18px 10px;
    }
    .service-modal-box {
        padding: 18px 2vw 18px 2vw;
    }
    .service-modal-title {
        font-size: 2em;
    }
    .service-modal-img {
        width: 98vw;
        max-width: 98vw;
        min-width: 160px;
    }
    .service-modal-content.no-image {
        padding: 0 2vw !important;
    }
}

@media (max-width: 600px) {
    .service-card {
        flex: 1 1 100%;
        max-width: 99vw;
        min-width: 90px;
        border-radius: 14px;
    }
    .service-grid-container {
        gap: 12px 0;
    }
    .service-card-title {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .service-card-plus {
        width: 28px;
        height: 28px;
    }
    .service-modal-box {
        padding: 7px 0 7px 0;
        width: 100vw;
        min-width: 0;
        border-width: 2px;
    }
    .service-modal-content {
        padding: 8px 2vw 0 2vw !important;
        font-size: 0.93em;
    }
    .service-modal-title {
        font-size: 1.2em;
    }
    .service-modal-img {
        width: 100vw;
        min-width: 90px;
        max-width: 100vw;
        margin-top: 8px;
    }
    .service-modal-headline {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .service-modal-close {
        width: 40px;
        height: 40px;
        top: -18px;
        right: 6px;
        font-size: 1.4em;
    }
    .service-modal-content.no-image {
        padding: 0 2vw !important;
    }
}
/* YTUBE Modal Gallery - 4 Columns Layout Responsive */

/* Container row: flex grid */
.yt-modal-gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 -16px;
    gap: 0 0; /* no gap between columns, only margin in items */
}

/* Each item: 4 columns desktop, 2 columns tablet, 1 column mobile */
.yt-modal-gallery-item {
    box-sizing: border-box;
    padding: 0 16px;
    margin-bottom: 32px;
    width: 25%; /* 4 columns on desktop */
}
.yt-modal-gallery-single .yt-modal-gallery-item {
    width: 100%;
}

/* Tablet: 2 columns */
@media (max-width: 1100px) {
    .yt-modal-gallery-item { width: 50%; }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .yt-modal-gallery-item,
    .yt-modal-gallery-single .yt-modal-gallery-item {
        width: 100%;
    }
}

/* Thumbnail wrapper: relative for overlay */
.yt-thumbnail-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}

/* Thumbnail image styling */
.yt-thumbnail {
    display: block;
    width: 100%;
    border-radius: 8px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Play button overlay */
.yt-play-btn-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.23));
}

/* Video title below thumbnail */
.yt-modal-gallery-thumb-title {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 400;
    color: #222;
    text-align: left;
}

/* Modal Background Overlay */
.yt-modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

/* Modal Box Centered, with light gray background and white border */
.yt-modal-box {
    background: #e0e0e0 url(https://staging.devpsa.com/wp-content/plugins/borlabs-cookie/assets/images/cb-no-thumbnail.png) center center no-repeat;
    background-size: cover;
    padding: 0;
    max-width: 1043px;
    margin: 100px auto;
    border-radius: 0px;
    position: relative;
    text-align: center;
    min-height: 546px;
    box-sizing: border-box;
    border: 15px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


@media (max-width: 1200px) {
    .yt-modal-box { max-width: 98vw; min-height: 300px; }
}

@media (max-width: 700px) {
    .yt-modal-box { border-width: 3vw; }
}

/* Notice Overlay Bar (centered, with dark bg and rounded shadow) */
.yt-modal-notice-bar {
    background: hsla(0, 0%, 0%, 0.8);
    color: #fff;
/*     width: 90%;
    max-width: 900px; */
    margin: 0 auto;
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px 0 10px 0;
/*     border-radius: 20px; */
/*     box-shadow: 0 6px 32px rgba(0,0,0,0.23); */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Content inside notice bar centered and spaced */
.yt-modal-notice-bar-content {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main message white, centered */
.yt-modal-notice-bar-message {
    font-family: "Roboto", Sans-serif !important;
    font-size: 14px;
    color: #fff;
    text-align: center;
    font-weight: 400;
}

/* Consent link blue, with spacing */
.yt-modal-notice-bar-link {
	font-weight: 500;
    color: #2196f3;
    text-decoration: underline;
    font-size: 14px;
/*     margin-bottom: 18px; */
    display: inline-block;
}

/* Big red "Video laden" button with play icon */
.yt-modal-notice-bar-play {
    font-family: "Roboto", Sans-serif !important;
    border: none !important;
    display: inline-flex
;
    align-items: center;
    background: #ff0000 !important;
    outline: none;
    border-radius: 24px;
    padding: .5em 1em;
    font-size: 14px;
    margin: 12px auto 0px auto;
}
.yt-modal-notice-bar-play:hover {
    background: #e90000;
}
.yt-modal-notice-bar-play svg {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

/* Consent checkbox styling */
.yt-modal-notice-bar-checkbox-label {
    font-size: 12px;
    margin-top: -10px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    cursor: pointer;
}
.yt-modal-notice-bar-checkbox {
    margin-right: 7px;
    accent-color: #2196f3;
    width: 16px;
    height: 16px;
}

/* Modal close button: orange, top-left, large, floating */
.yt-modal-close {
    position: absolute;
    top: -36px;
    left: -36px;
    width: 48px;
    height: 48px;
    background: #ff6a2c;
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.15s;
}
.yt-modal-close:hover {
    background: #e94e00;
}
@media (max-width: 900px) {
    .yt-modal-close {
        top: -18px;
        left: -18px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}

/* Hide modal video until loaded */
.yt-modal-video {
    margin-bottom: -10px;
/*     margin-top: 30px; */
    /* width: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive: smaller modal on mobile */
@media (max-width: 600px) {
    .yt-modal-box {
        min-height: 300px;
        padding: 0;
    }
    .yt-modal-notice-bar {
        max-width: 99vw;
        width: 99vw;
        padding: 30px 0 24px 0;
    }
    .yt-modal-notice-bar-content {
        max-width: 96vw;
    }
    .yt-modal-close {
        left: -16px;
        top: -16px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* For the thumbnail grid, keep your original styles */
.yt-modal-gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 -16px;
    gap: 0 0;
}
.yt-modal-gallery-item {
    box-sizing: border-box;
    padding: 0 16px;
    margin-bottom: 32px;
    width: 25%;
}
.yt-modal-gallery-single .yt-modal-gallery-item {
    width: 100%;
}
@media (max-width: 1100px) {
    .yt-modal-gallery-item { width: 50%; }
}
@media (max-width: 600px) {
    .yt-modal-gallery-item,
    .yt-modal-gallery-single .yt-modal-gallery-item {
        width: 100%;
    }
}
.yt-thumbnail-wrapper {
    position: relative;
    width: 100%;
    cursor: pointer;
}
.yt-thumbnail {
    display: block;
    width: 100%;
    border-radius: 8px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.yt-play-btn-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.23));
}
.yt-modal-gallery-thumb-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-align: left;
}

/* Center single video in row */
.yt-modal-gallery-single {
    justify-content: center !important;
}
.yt-modal-gallery-single .yt-modal-gallery-item {
    width: 750px !important;      /* or your preferred width */
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

@media (max-width: 700px) {
    .yt-modal-gallery-single .yt-modal-gallery-item {
        width: 100% !important;
        max-width: 100vw;
    }
}