/* Clarity – Hero-Akkordeon (draggo_clarity_hero) */
/* ==== Hero-Akkordeon =================================================== */
.cl-hero { position: relative; background: var(--cl-navy); }
/* Breite eines geöffneten Panels = Bildbreite (wie im WordPress-Original: Bild nie hochskaliert),
   höchstens Spurbreite minus alle geschlossenen Panels; auf breiten Schirmen teilen sich die übrigen Panels den Rest */
.cl-hero__track { --cl-hero-open-w: min(var(--cl-hero-img-w, 1000px), calc(100cqw - (var(--cl-hero-n, 3) - 1) * var(--cl-hero-collapsed, 220px))); container-type: inline-size; display: flex; flex-wrap: nowrap; height: var(--cl-hero-h, 800px); overflow: hidden; }
.cl-hero__panel { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 40px 40px 120px; overflow: hidden; outline: none; transition: flex .6s ease; }
/* Trenner zwischen den Panels: Spalt in Trennerfarbe (Spur-Hintergrund) */
.cl-hero__track { gap: var(--cl-hero-sep-w, 0px); background: var(--cl-hero-sep-c, transparent); }
.cl-hero__track.has-open > .cl-hero__panel { flex: 1 1 0; }
.cl-hero__track.has-open > .cl-hero__panel.is-open { flex: 0 0 var(--cl-hero-open-w); }

.cl-hero__bg { position: absolute; top: 0; left: 0; bottom: 0; z-index: 0; width: var(--cl-hero-img-w, 1000px); margin: 0; }
.cl-hero__bg img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.cl-hero__panel::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; z-index: 1; width: var(--cl-hero-img-w, 1000px); background: var(--cl-hero-overlay, none) 0 0 / 100% 100% no-repeat; pointer-events: none; }

.cl-hero__label { position: absolute; top: 0; left: 0; bottom: 0; z-index: 2; width: 135px; background: rgba(255, 255, 255, .28); pointer-events: none; transition: opacity .4s ease; }
.cl-hero__label p { position: absolute; left: 10px; bottom: 30px; margin: 0; white-space: nowrap; color: #fff; font-family: var(--cl-display); font-size: 45px; line-height: 56px; font-weight: 400; transform-origin: 0 100%; transform: rotate(-90deg) translateY(100%); }
.cl-hero__label strong { font-weight: 700; }
.cl-hero__panel.is-open .cl-hero__label { opacity: 0; }

.cl-hero__content { position: relative; z-index: 3; flex: none; width: min(var(--cl-hero-text-w, 875px), 100%); max-width: none; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.cl-hero__panel.is-open .cl-hero__content { width: var(--cl-hero-text-w, 875px); max-width: calc(var(--cl-hero-open-w) - 160px); opacity: 1; visibility: visible; transition-delay: .4s; }
.cl-hero__title { margin: 0; color: #fff; font-family: var(--cl-display); font-size: 50px; line-height: 55px; font-weight: 400; }
.cl-hero__title strong { font-weight: 700; }
.cl-hero__text { margin-top: 14px; color: #fff; font-family: var(--cl-sans); font-size: 18px; line-height: 25.2px; }
.cl-hero__text p { margin: 0; color: inherit; font: inherit; }
.cl-hero__btn { display: inline-block; margin-top: 22px; padding: 12px 24px; border-radius: 3px; background: var(--cl-red); color: #fff; font-family: var(--cl-display); font-size: 18px; line-height: 18px; font-weight: 400; text-align: center; text-decoration: none; transition: transform .3s, box-shadow .5s; }
.cl-hero__btn:hover, .cl-hero__btn:focus-visible { transform: scale(1.1); box-shadow: 0 0 10px 0 #f00; color: #fff; }
.cl-hero__dots { display: none; }

/* Editor-Arbeitsfläche: kein JS → Öffnen per CSS-Hover sichtbar machen */
.draggo-canvas .cl-hero__track:hover > .cl-hero__panel { flex: 1 1 0; }
.draggo-canvas .cl-hero__track:hover > .cl-hero__panel:hover { flex: 0 0 var(--cl-hero-open-w); }
.draggo-canvas .cl-hero__track:hover > .cl-hero__panel:not(:hover) .cl-hero__content { opacity: 0; visibility: hidden; transition-delay: 0s; }
.draggo-canvas .cl-hero__track > .cl-hero__panel:hover .cl-hero__label { opacity: 0; }
.draggo-canvas .cl-hero__track > .cl-hero__panel:hover .cl-hero__content { width: var(--cl-hero-text-w, 875px); max-width: calc(var(--cl-hero-open-w) - 160px); opacity: 1; visibility: visible; transition-delay: .4s; }

@media (max-width: 1199px) {
    .cl-hero__panel { padding-left: 100px; }
    .cl-hero__label { width: 110px; }
    .cl-hero__label p { font-size: 36px; line-height: 46px; }
    .cl-hero__title { font-size: 40px; line-height: 46px; }
}
@media (max-width: 775px), (hover: none) {
    .cl-hero__track { height: var(--cl-hero-h-m, clamp(520px, 82svh, 700px)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .cl-hero__track::-webkit-scrollbar { display: none; }
    .cl-hero__track { gap: 0; }
    .cl-hero__panel, .cl-hero__track.has-open > .cl-hero__panel, .cl-hero__track.has-open > .cl-hero__panel.is-open { flex: 0 0 100%; padding: 0 24px 48px; scroll-snap-align: start; }
    .cl-hero__bg, .cl-hero__panel::before, .cl-hero__bg img { width: 100%; }
    .cl-hero__panel::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(1, 3, 23, 0) 35%, rgba(1, 3, 23, .85) 100%); pointer-events: none; }
    .cl-hero__label { display: none; }
    .cl-hero__content, .cl-hero__panel.is-open .cl-hero__content { width: auto; max-width: 100%; opacity: 1; visibility: visible; }
    .cl-hero__title { font-size: 32px; line-height: 38px; }
    .cl-hero__dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0; background: #fff; }
    .cl-hero__dots button { width: 18px; height: 18px; padding: 0; border: 2px solid #000; border-radius: 50%; background: transparent; cursor: pointer; }
    .cl-hero__dots button.is-active { background: #000; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-hero__panel, .cl-hero__content, .cl-hero__label { transition: none; }
}

/* Editor-Arbeitsfläche: Draggos Standard-Typografie (.draggo-canvas h1–h6, p) nicht auf die Clarity-Teile durchschlagen lassen */
.draggo-canvas .cl-hero__title { margin: 0; color: #fff; font-family: var(--cl-display); font-size: 50px; line-height: 55px; font-weight: 400; }
.draggo-canvas .cl-hero__text p { margin: 0; color: #fff; font-family: var(--cl-sans); font-size: 18px; line-height: 25.2px; }
.draggo-canvas .cl-hero__label p { margin: 0; color: #fff; font-family: var(--cl-display); font-size: 45px; line-height: 56px; font-weight: 400; }
