/* Clarity – Funktions-Tabs mit Bildwechsel (draggo_clarity_tabs) */
.cl-tabs__head { margin-bottom: 50px; }
.cl-tabs__head .cl-tabs__intro { margin-top: 20px; }
.cl-tabs__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---- Tab-Liste ---------------------------------------------------------- */
.cl-tabs--vertical .cl-tabs__wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 60px; align-items: start; }
.cl-tabs__list { display: flex; flex-direction: column; gap: 4px; }
.cl-tabs .cl-tabs__tab { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 16px 20px 16px 26px; border: 0; border-left: 4px solid rgba(2, 6, 38, .1); border-radius: 0 8px 8px 0; background: transparent; color: var(--cl-head); font-family: var(--cl-display); font-size: 18px; line-height: 26px; font-weight: 500; text-align: left; cursor: pointer; transition: color .3s, background-color .3s, border-color .3s; }
.cl-tabs .cl-tabs__tab:hover { color: #e10419; }
.cl-tabs .cl-tabs__tab.is-active { border-left-color: #e10419; background: #f4f4f6; color: #e10419; }
.cl-sec--grey .cl-tabs__tab.is-active, .cl-sec--image-light .cl-tabs__tab.is-active { background: #fff; }
.cl-on-dark .cl-tabs__tab { border-left-color: rgba(255, 255, 255, .18); }
.cl-on-dark .cl-tabs__tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.cl-on-dark .cl-tabs__tab.is-active { border-left-color: #e10419; background: rgba(255, 255, 255, .08); color: #fff; }
.cl-sec--red .cl-tabs__tab.is-active { border-left-color: #fff; }
.cl-tabs__tab:focus-visible, .cl-tabs__acc:focus-visible { outline: 2px solid #e10419; outline-offset: 2px; }
.cl-on-dark .cl-tabs__tab:focus-visible, .cl-on-dark .cl-tabs__acc:focus-visible { outline-color: #fff; }
.cl-tabs__icon { flex: none; width: 22px; font-size: 18px; text-align: center; color: #e10419; }
.cl-sec--red .cl-tabs__icon { color: #fff; }

/* Autoplay-Fortschritt im aktiven Tab */
.cl-tabs__progress { position: absolute; top: 0; left: -4px; width: 4px; height: 0; background: #8f0815; pointer-events: none; }
.cl-sec--red .cl-tabs__progress { background: #020626; }
.cl-tabs__tab.is-running .cl-tabs__progress { animation: cltb-grow-y var(--cltb-interval, 7000ms) linear forwards; }
.cl-tabs.is-paused .cl-tabs__tab.is-running .cl-tabs__progress { animation-play-state: paused; }
@keyframes cltb-grow-y { from { height: 0; } to { height: 100%; } }
@keyframes cltb-grow-x { from { width: 0; } to { width: 100%; } }

/* Horizontal: Pillen */
.cl-tabs--horizontal .cl-tabs__list { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cl-tabs--horizontal .cl-tabs__tab { width: auto; padding: 12px 26px; overflow: hidden; border: 1px solid #dcdce2; border-radius: 999px; background: #fff; color: #020626; font-size: 16px; line-height: 22px; }
.cl-tabs--horizontal .cl-tabs__tab:hover { border-color: #e10419; color: #e10419; background: #fff; }
.cl-tabs--horizontal .cl-tabs__tab.is-active { border-color: #e10419; background: #e10419; color: #fff; }
.cl-tabs--horizontal .cl-tabs__tab.is-active .cl-tabs__icon { color: #fff; }
.cl-on-dark.cl-tabs--horizontal .cl-tabs__tab { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.cl-on-dark.cl-tabs--horizontal .cl-tabs__tab.is-active { border-color: #e10419; background: #e10419; }
.cl-sec--red.cl-tabs--horizontal .cl-tabs__tab.is-active { border-color: #fff; background: #fff; color: #e10419; }
.cl-tabs--horizontal .cl-tabs__progress { top: auto; bottom: 0; left: 0; width: 0; height: 3px; background: rgba(255, 255, 255, .7); }
.cl-tabs--horizontal .cl-tabs__tab.is-running .cl-tabs__progress { animation-name: cltb-grow-x; }

/* ---- Panels: alle im selben Rasterfeld, Crossfade + leichter Zoom -------- */
.cl-tabs__panels { display: grid; }
.cl-tabs__item { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility 0s linear .5s; }
.cl-tabs__item.is-active { visibility: visible; opacity: 1; transition: opacity .5s ease; }
.cl-tabs__acc-h { display: none; margin: 0; }
.cl-tabs__stage { position: relative; }
.cl-tabs__media { position: relative; height: 540px; overflow: hidden; border-radius: 20px; background: #f4f4f6; }
.cl-tabs .cl-tabs__img { display: block; width: 100%; max-width: none; height: 100%; margin: 0; object-fit: cover; transform: scale(1.06); transition: transform 1.2s ease; }
.cl-tabs__item.is-active .cl-tabs__img { transform: none; }
.cl-tabs--fit-contain .cl-tabs__media { padding: 24px; box-sizing: border-box; }
.cl-tabs--fit-contain .cl-tabs__img { object-fit: contain; }
.cl-on-dark.cl-tabs--fit-contain .cl-tabs__media { background: #fff; }

.cl-tabs__card { position: relative; z-index: 2; width: min(660px, calc(100% - 80px)); margin: -140px 0 0 40px; padding: 36px 40px 38px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(2, 6, 38, .12); box-sizing: border-box; transform: translateY(16px); transition: transform .7s ease .1s; }
.cl-tabs__item.is-active .cl-tabs__card { transform: none; }
.cl-tabs__stage--nomedia .cl-tabs__card { width: 100%; margin: 0; }
.cl-tabs .cl-tabs__card-title { position: relative; margin: 0 0 16px; padding-top: 22px; font-family: var(--cl-display); font-size: 26px; line-height: 1.25; font-weight: 500; color: #020626; }
.cl-tabs .cl-tabs__card-title::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 4px; background: #e10419; }
.cl-tabs .cl-tabs__text { font-family: var(--cl-sans); font-size: 18px; line-height: 26px; color: #686868; }
.cl-tabs .cl-tabs__text :is(p, li) { margin: 0; font: inherit; color: inherit; }
.cl-tabs .cl-tabs__text > * + * { margin-top: 12px; }
.cl-tabs .cl-tabs__text :is(ul, ol) { padding-left: 22px; }
.cl-tabs .cl-tabs__text li::marker { color: #e10419; }
.cl-tabs .cl-tabs__text a { color: #e10419; }
.cl-tabs__card-title:only-child { margin-bottom: 0; }
.cl-tabs .cl-tabs__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-family: var(--cl-display); font-size: 16px; line-height: 22px; font-weight: 500; color: #e10419; text-decoration: none; }
.cl-tabs .cl-tabs__more::after { content: "\2192"; transition: transform .3s; }
.cl-tabs .cl-tabs__more:hover { color: #8f0815; }
.cl-tabs .cl-tabs__more:hover::after { transform: translateX(4px); }

/* Horizontal: Bild 8 Spalten, Karte überlappt von rechts */
.cl-tabs--horizontal .cl-tabs__stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.cl-tabs--horizontal .cl-tabs__media { grid-area: 1 / 1 / 2 / 9; }
.cl-tabs--horizontal .cl-tabs__card { grid-area: 1 / 8 / 2 / 13; width: auto; margin: 40px 0; }
.cl-tabs--horizontal .cl-tabs__stage--nocard .cl-tabs__media, .cl-tabs--horizontal .cl-tabs__stage--nomedia .cl-tabs__card { grid-column: 1 / 13; }

/* Video (2-Klick) */
.cl-tabs .cl-tabs__play { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: rgba(1, 3, 23, .25); cursor: pointer; }
.cl-tabs__play::before { content: ""; position: absolute; top: 50%; left: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: #e10419; box-shadow: 0 0 0 10px rgba(225, 4, 25, .25); transition: background-color .3s, transform .3s; }
.cl-tabs__play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -13px 0 0 -8px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.cl-tabs__play:hover::before, .cl-tabs__play:focus-visible::before { background: #8f0815; transform: scale(1.06); }
.cl-tabs__play-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(1, 3, 23, .7); color: #fff; font-family: var(--cl-sans); font-size: 13px; line-height: 18px; white-space: nowrap; }
.cl-tabs__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Editor-Arbeitsfläche ---------------------------------------------- */
.draggo-canvas .cl-tabs .cl-tabs__tab { font-family: var(--cl-display); }
.draggo-canvas .cl-tabs .cl-tabs__card-title { font-family: var(--cl-display); font-size: 26px; line-height: 1.25; color: #020626; }
.draggo-canvas .cl-tabs .cl-tabs__text :is(p, li) { font-family: var(--cl-sans); font-size: 18px; line-height: 26px; color: #686868; }
.draggo-canvas .cl-tabs .cl-tabs__more { font-family: var(--cl-display); color: #e10419; text-decoration: none; }
.draggo-canvas .cl-tabs__item, .draggo-canvas .cl-tabs__card, .draggo-canvas .cl-tabs__img { transition: none; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1199px) {
    .cl-tabs--vertical .cl-tabs__wrap { grid-template-columns: 5fr 7fr; gap: 40px; }
    .cl-tabs__media { height: 440px; }
    .cl-tabs__card { width: calc(100% - 40px); margin: -100px 0 0 20px; padding: 30px; }
    .cl-tabs--horizontal .cl-tabs__card { grid-column: 6 / 13; }
}
@media (max-width: 991px) {
    .cl-tabs--vertical .cl-tabs__wrap { display: block; }
    .cl-tabs--vertical .cl-tabs__list { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
    .cl-tabs--vertical .cl-tabs__tab { width: auto; padding: 10px 18px; border-left: 0; border-bottom: 3px solid rgba(2, 6, 38, .1); border-radius: 0; font-size: 16px; line-height: 22px; }
    .cl-tabs--vertical .cl-tabs__tab.is-active { border-bottom-color: #e10419; }
    .cl-tabs--vertical .cl-tabs__progress { top: auto; bottom: -3px; left: 0; width: 0; height: 3px; }
    .cl-tabs--vertical .cl-tabs__tab.is-running .cl-tabs__progress { animation-name: cltb-grow-x; }
    .cl-tabs--horizontal .cl-tabs__stage { display: block; }
    .cl-tabs--horizontal .cl-tabs__card { width: calc(100% - 40px); margin: -100px 0 0 20px; }
}
/* Mobil: Akkordeon */
@media (max-width: 767px) {
    .cl-tabs__head { margin-bottom: 30px; }
    .cl-tabs .cl-tabs__list { display: none; }
    .cl-tabs__panels { display: block; border-top: 1px solid rgba(2, 6, 38, .12); }
    .cl-on-dark .cl-tabs__panels { border-top-color: rgba(255, 255, 255, .2); }
    .cl-tabs__item, .cl-tabs__item.is-active { visibility: visible; opacity: 1; transition: none; border-bottom: 1px solid rgba(2, 6, 38, .12); }
    .cl-on-dark .cl-tabs__item { border-bottom-color: rgba(255, 255, 255, .2); }
    .cl-tabs__acc-h { display: block; }
    .cl-tabs .cl-tabs__acc { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 18px 0; border: 0; background: transparent; color: var(--cl-head); font-family: var(--cl-display); font-size: 18px; line-height: 24px; font-weight: 500; text-align: left; cursor: pointer; }
    .cl-tabs__acc .cl-tabs__label { flex: 1; }
    .cl-tabs__item.is-open .cl-tabs__acc { color: #e10419; }
    .cl-on-dark .cl-tabs__item.is-open .cl-tabs__acc { color: #fff; }
    .cl-tabs__acc-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #e10419; transition: transform .3s, background-color .3s; }
    .cl-tabs__acc-icon::before, .cl-tabs__acc-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #fff; }
    .cl-tabs__acc-icon::after { transform: rotate(90deg); }
    .cl-tabs__item.is-open .cl-tabs__acc-icon { transform: rotate(45deg); background: #8f0815; }
    .cl-tabs__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
    .cl-tabs__item.is-open .cl-tabs__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease; }
    .cl-tabs__panel-in { min-height: 0; overflow: hidden; }
    .cl-tabs__stage { padding-bottom: 24px; }
    .cl-tabs__media { height: 220px; border-radius: 12px; }
    .cl-tabs--fit-contain .cl-tabs__media { padding: 12px; }
    .cl-tabs__img { transform: none; }
    .cl-tabs__card, .cl-tabs--horizontal .cl-tabs__card { width: calc(100% - 40px); margin: -40px 0 0 20px; padding: 24px 22px; transform: none; }
    .cl-tabs .cl-tabs__card-title { font-size: 22px; }
    .cl-tabs .cl-tabs__text, .draggo-canvas .cl-tabs .cl-tabs__text :is(p, li) { font-size: 16px; line-height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-tabs__item, .cl-tabs__card, .cl-tabs__img, .cl-tabs__panel { transition: none !important; }
}
