@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700&display=swap');

.ht-wrap {
    background: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    max-width: 100%;
    padding-bottom: 32px;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Bild zentriert, volle Breite des Viewports ── */
.ht-viewport {
    overflow: hidden;
    cursor: grab;
    width: 100%;
}
.ht-viewport.dragging { cursor: grabbing; }

.ht-track {
    display: flex;
    will-change: transform;
}

.ht-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 24px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.ht-img-wrap {
    width: 60%;
    border: 2.5px solid #c0392b;
    overflow: hidden;
    background: #e8ddd4;
    flex-shrink: 0;
    display: block;
}
.ht-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
.ht-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.ht-img-placeholder svg {
    width: 60px; height: 60px;
    opacity: .2; stroke: #5a4a3a; fill: none; stroke-width: 1.2;
}

.ht-img-wrap {
    position: relative;
    overflow: visible; /* von hidden ändern */
}

/* ── AI Tag ── */
.ht-img-outer {
    position: relative;
    width: 60%;
    flex-shrink: 0;
}
.ht-img-wrap {
    width: 100%;
    overflow: hidden;
    border: 2.5px solid #c0392b;
    background: #e8ddd4;
    display: block;
}

.ht-img-wrap {
    width: 100%;
    overflow: hidden;
    border: 2.5px solid #c0392b;
    background: #e8ddd4;
    display: block;
    position: relative;
}

.ht-ai-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 7px;
    border-radius: 3px;
    cursor: default;
    font-family: sans-serif;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ht-ai-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 220px;
    background: rgba(0,0,0,.82);
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: sans-serif;
    pointer-events: none;
    z-index: 20;
}
.ht-ai-tag:hover .ht-ai-tooltip {
    display: block;
}
.ht-stage .ht-slide {
    justify-content: center;
}
@media (max-width: 767px) {
    .ht-img-outer { width: 100% !important; }
}

@keyframes ht-img-in {
    0%   { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.ht-img-wrap.img-in { animation: ht-img-in .35s cubic-bezier(.4,0,.2,1) forwards; }

/* ── Pfeile: Desktop links/rechts vom Bild, Mobile darunter ── */

/* Desktop-Wrapper: Pfeile + Viewport in einer Zeile */
.ht-stage {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
}
.ht-stage .ht-viewport {
    flex: 1;
    min-width: 0;
}
/* Desktop: Slide-Bild nimmt volle Viewport-Breite */
.ht-stage .ht-slide {
    padding: 24px 0 0;
    justify-content: center;
}
.ht-stage .ht-img-wrap {
    width: 100%;
}

/* Pfeile */
.ht-arrow {
    background: transparent !important;
    border: 1.5px solid #c0392b !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    cursor: pointer !important;
    color: #c0392b !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: background .18s, opacity .2s;
}
.ht-arrow:hover  { background: rgba(192,57,43,.08) !important; }
.ht-arrow.ht-arrow-disabled { opacity: .2 !important; pointer-events: none !important; }
.ht-arrow svg {
    width: 16px !important; height: 16px !important;
    stroke: currentColor !important; fill: none !important;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    display: block !important;
}

/* Mobile Pfeile unter dem Bild */
.ht-mobile-arrows {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
}

/* ── Responsive ── */
@media (min-width: 768px) {
    /* Desktop: Bild auf einstellbare Breite, Stage-Layout */
    .ht-wrap > .ht-viewport { display: none; }
    .ht-stage { display: flex; }
    .ht-mobile-arrows { display: none !important; }
}

@media (max-width: 767px) {
    /* Mobile: kein Stage, Viewport direkt, Pfeile darunter */
    .ht-stage { display: none !important; }
    .ht-wrap > .ht-viewport { display: block; }
    .ht-img-wrap { width: 100% !important; }
    .ht-mobile-arrows {
        display: flex !important;
        padding: 14px 24px 0;
    }
}

/* ── Zeitstrahl ── */
.ht-timeline {
    position: relative;
    height: 14px;
    margin: 40px 24px 24px;
}
.ht-tl-line {
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1.5px;
    background: #d4bfb5;
    transform: translateY(-50%);
    z-index: 1;
}
.ht-tl-dots {
    position: absolute;
    left: 0; right: 0; top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}
.ht-tl-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #d4bfb5;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: width .3s, height .3s, background .3s;
}
.ht-tl-dot.active { width: 14px; height: 14px; background: #c0392b; }
.ht-tl-dot::after {
    content: '';
    position: absolute;
    inset: -6px; border-radius: 50%;
    border: 1.5px solid #c0392b;
    opacity: 0; transform: scale(.6);
    pointer-events: none;
}
@keyframes ht-dot-pulse {
    0%  { transform: scale(1); opacity: 1; }
    40% { transform: scale(1.5); opacity: .6; }
    70% { transform: scale(.9); opacity: 1; }
    100%{ transform: scale(1); opacity: 1; }
}
@keyframes ht-ring-pulse {
    0%  { opacity: .7; transform: scale(.6); }
    100%{ opacity: 0;  transform: scale(2.2); }
}
.ht-tl-dot.animate        { animation: ht-dot-pulse .5s cubic-bezier(.4,0,.2,1); }
.ht-tl-dot.animate::after { animation: ht-ring-pulse .6s ease-out forwards; }

/* ── Text ── */
.ht-content { padding: 0 24px; overflow: hidden; }
@keyframes ht-fade-out { from{opacity:1;transform:translateY(0)} to{opacity:0;transform:translateY(-10px)} }
@keyframes ht-fade-in  { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.ht-content-inner.fade-out { animation: ht-fade-out .22s ease forwards; }
.ht-content-inner.fade-in  { animation: ht-fade-in  .32s ease forwards; }

.ht-card-date {
    text-align: center; display: block;
    font-size: 36px !important; font-weight: 700 !important;
    color: #c0392b !important; line-height: 1 !important;
    margin-bottom: 6px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
}
.ht-card-title {
    text-align: center; display: block;
    font-size: 18px !important; font-weight: 700 !important;
    color: #121212 !important; text-transform: uppercase;
    letter-spacing: .06em; line-height: 1.2 !important;
    margin-bottom: 12px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
}
.ht-card-text {
    text-align: center; display: block;
    font-size: 1rem;
    color: #3a3530 !important; line-height: 1.65 !important;
    font-family: 'Barlow Condensed', sans-serif !important;
}
