.ti-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #000;
    color: #00a8ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99999;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    text-align: center;
    transition: color 0.3s ease;
    overflow: hidden; /* wichtig für Pseudo-Element */
}

.ti-btn .ti-day {
    font-size: calc(0.4 * 70px);
    font-weight: bold;
    line-height: 1;
    width: 100%;
}

.ti-btn .ti-date {
    font-size: calc(0.16 * 70px);
    line-height: 1;
    width: 100%;
}

/* Pseudo-Element für animierten Border */
.ti-btn::before {
    content: "";
    position: absolute;
    inset: 0; /* füllt Button komplett */
    border-radius: 50%;
    padding: 4px; /* Breite des Neon-Borders */
    background: conic-gradient(
        rgba(0, 168, 255, 0) 0deg,
        rgba(0, 168, 255, 1) 360deg
    );
    -webkit-mask: 
        radial-gradient(farthest-side, #fff 95%, #000 100%) content-box, 
        radial-gradient(farthest-side, #fff 95%, #000 100%);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Hover-Effekt */
/* Hover-Effekt */
.ti-btn:hover::before {
    opacity: 1;
    animation: neon-spin 2s linear infinite;
    /* zusätzlicher Glow */
    filter: drop-shadow(0 0 6px rgba(0, 168, 255, 0.8))
            drop-shadow(0 0 10px rgba(0, 168, 255, 0.6));
}


@keyframes neon-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Optional: Farbe des Textes leicht ändern bei Hover */
.ti-btn:hover {
    color: #00c0ff;
}

.ti-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 300px;
    background:#fff;
    border-radius:10px;
    opacity:0;
    pointer-events:none;
    transform:translateY(20px);
    transition:.3s;
    padding:15px;
    z-index:999999;
}

.ti-popup.open {
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
}

.ti-close {
    float:right;
    cursor:pointer;
}
