/* ═══════════════════════════════════════════════════
   VR-Bank Werdenfels – Timeline CSS
   Extrahiert aus index.html für TYPO3-Integration
   ═══════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Fonts) ─── */
:root {
    --display: 'Bebas Neue', 'Impact', sans-serif;
    --body: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
    --mono: 'DM Mono', 'Fira Code', monospace;
}


/* ─── Timeline Band ─── */
.tl-band {
    position: absolute; left: 0; right: 0; top: 18%; bottom: 0;
    background: #f0f0f4; z-index: 0;
    border-radius: 12px 12px 0 0;
    transition: background 0.7s ease;
}

/* ─── Card Layer ─── */
.card-layer {
    position: absolute; top: -16px; left: 0;
    width: 100%; height: calc(100% + 16px);
    z-index: 30; pointer-events: none; overflow: visible;
}

/* ─── Timeline Cards ─── */
.tcard {
    position: absolute; width: 320px;
    padding: 24px 26px 22px; border-radius: 0;
    pointer-events: auto; cursor: default;
    opacity: 0.3;
    transform: translateY(6px) scale(0.78);
    transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1),
    transform 0.5s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.3s ease;
    will-change: transform, opacity;
    background: #f0f4f8;
    border: 1px solid rgba(0,102,179,0.12);
    border-top: 3px solid var(--cc);
}
.tcard.visible { opacity: 1; transform: translateY(0) scale(1); }
.tcard.visible:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 16px 36px rgba(0,102,179,0.10); }
.tcard.near { opacity: 0.55; transform: translateY(4px) scale(0.85); }
.tcard.far { opacity: 0.25; transform: translateY(6px) scale(0.75); }
.tcard::after {
    content: ''; position: absolute; bottom: -13px; left: 50%;
    transform: translateX(-50%); width: 1px; height: 13px;
    background: var(--cc); opacity: 0.5;
}

/* Card Categories */
.tcard.cat-intern { --cc: #0066B3; color: #1a1a1a; box-shadow: 0 4px 20px rgba(0,102,179,0.07); }
.tcard.cat-intern.visible:hover { box-shadow: 0 16px 36px rgba(0,102,179,0.13); }
.tcard.cat-intern .tcard-tag { background: rgba(0,102,179,0.07); border-color: rgba(0,102,179,0.18); color: #0066B3; }
.tcard.cat-intern .tcard-year { color: #0066B3; }

.tcard.cat-sozial { --cc: #F35E01; color: #1a1a1a; box-shadow: 0 4px 20px rgba(243,94,1,0.07); }
.tcard.cat-sozial.visible:hover { box-shadow: 0 16px 36px rgba(243,94,1,0.13); }
.tcard.cat-sozial .tcard-tag { background: rgba(243,94,1,0.07); border-color: rgba(243,94,1,0.18); color: #F35E01; }
.tcard.cat-sozial .tcard-year { color: #F35E01; }

.tcard.cat-rekord { --cc: #8fa3b8; color: #1a1a1a; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.tcard.cat-rekord.visible:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.08); }
.tcard.cat-rekord .tcard-tag { background: rgba(143,163,184,0.1); border-color: rgba(143,163,184,0.22); color: #566a7f; }
.tcard.cat-rekord .tcard-p { color: #566a7f; }
.tcard.cat-rekord .tcard-year { color: #8fa3b8; }


/* Card Preview Image */
.tcard-img {
    width: calc(100% + 52px);
    margin: -24px 0 10px 0;
    height: 170px;
    object-fit: cover;
    display: block;
}
.tcard.has-image .tcard-year { font-size: 48px; margin-bottom: 4px; }
.tcard.has-image .tcard-p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Card Inner Elements */
.tcard-cat-icon {
    font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 400;
    letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.6; margin-bottom: 10px;
}
.tcard-year {
    font-family: 'Bebas Neue', sans-serif; font-size: 64px; font-weight: 400;
    line-height: 1; margin-bottom: 6px; letter-spacing: 2px;
}
.tcard-h {
    font-family: 'Bebas Neue', sans-serif; font-size: 26px; font-weight: 400;
    line-height: 1.2; margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase;hyphens: auto;
}
.tcard-p {
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px;
    line-height: 1.65; opacity: 0.85; font-weight: 300;
}
.tcard-tag {
    font-family: 'DM Mono', monospace; display: inline-block;
    margin-top: 14px; padding: 5px 12px; border-radius: 2px;
    font-size: 12px; font-weight: 400; letter-spacing: 2px;
    text-transform: uppercase; border: 1px solid;
}

/* ─── Year Markers ─── */
.yr-marker {
    position: absolute; transform: translateX(-50%);
    font-family: 'Bebas Neue', sans-serif; font-size: 18px; font-weight: 400;
    color: #426486; transition: color 0.7s, transform 0.3s, font-size 0.3s;
    z-index: 35; pointer-events: none; letter-spacing: 1.5px; white-space: nowrap;
}
.yr-marker.active { color: #0066B3; font-size: 26px; text-shadow: 0 0 8px rgba(0,102,179,0.15); }

/* ─── Morph Flash (DM ↔ EUR Übergang) ─── */
.morph-flash {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 45; pointer-events: none; opacity: 0; transition: opacity 0.15s;
}
.morph-flash.to-eur { background: radial-gradient(circle, rgba(233,106,37,0.12) 0%, transparent 60%); }
.morph-flash.to-dm { background: radial-gradient(circle, rgba(0,102,179,0.1) 0%, transparent 60%); }
.morph-flash.fire { opacity: 1; }

/* ─── Bottom Navigation (Dots + Arrows) ─── */
.bot {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    z-index: 50; display: flex; align-items: center; gap: 6px;
}
/*.bot-dots{*/
/*    display: none !important;*/
/*}*/
.bot-btn {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid #dce0e6; background: #fff; color: #426486;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.7s; font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
@media(max-width: 425px){
    .bot-btn {
        margin: 5px 30px;
    }
}
.bot-btn:hover { border-color: #0066B3; color: #0066B3; box-shadow: 0 2px 12px rgba(0,102,179,0.12); }

.bot-dots { display: flex; gap: 5px; align-items: center; }
.bot-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #d0d4da; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.bot-dot:hover { background: #0066B3; transform: scale(1.6); box-shadow: 0 0 8px rgba(0,102,179,0.3); }
.bot-dot.on { width: 28px; border-radius: 4px; background: #0066B3; box-shadow: 0 0 8px rgba(0,102,179,0.2); }

/* ─── Instruction Text ─── */
.instr {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    z-index: 50; font-family: 'DM Mono', monospace;
    font-size: 14px; font-weight: 400; color: #5a6070;
    letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
    animation: instrP 3s ease-in-out infinite; transition: color 0.7s ease;
}
@media(max-width: 425px){
    .instr {
        display: none;
    }
}
@keyframes instrP { 0%,100% { opacity: 0.55; } 50% { opacity: 0.85; } }

/* ─── Responsive ─── */
@media (max-width: 800px) {
    .tcard { width: 280px; padding: 20px 20px 18px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
    .tcard-img { width: calc(100% + 40px); margin: -24px 0 10px 0; height: 140px; }
    .tcard-year { font-size: 50px; }
    .tcard.has-image .tcard-year { font-size: 40px; }
    .tcard-h { font-size: 21px; }
    .tcard-p { font-size: 15px; }
    .bot-dots { display: none; }
}


.tcard-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}
