/* ============================================
   DKSB Euskirchen - Sticky Contact Sidebar
   ============================================ */

/* === Sticky Sidebar Container === */
.contact-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 997;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Wichtig: Items nur so breit wie nötig */
    gap: 2px;
}

/* === Sidebar Item (gemeinsame Styles) === */
.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    cursor: pointer;
}

.sidebar-item:hover {
    width: 180px;
    background: var(--primary-orange);
}

.sidebar-item:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
    z-index: 1;
}

/* First item - rounded top */
.sidebar-item:first-child {
    border-radius: 8px 0 0 0;
}

/* Last item - rounded bottom */
.sidebar-item:last-child {
    border-radius: 0 0 0 8px;
}

/* === Icon === */
.sidebar-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: margin 0.3s ease;
}

.sidebar-item:hover svg {
    margin-right: 10px;
}

/* === Label (hidden by default) === */
.sidebar-label {
    position: absolute;
    right: 100%;
    white-space: nowrap;
    padding-right: 15px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-item:hover .sidebar-label {
    position: static;
    opacity: 1;
    visibility: visible;
    padding-right: 0;
}

/* === Specific Colors === */
.sidebar-item--email {
    background: var(--primary-blue);
}

.sidebar-item--phone {
    background: #00ae97; /* Teal */
}

.sidebar-item--share {
    background: var(--primary-orange);
}

.sidebar-item--facebook {
    background: #1877f2;
}

.sidebar-item--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Hover states */
.sidebar-item--email:hover,
.sidebar-item--phone:hover,
.sidebar-item--share:hover,
.sidebar-item--facebook:hover,
.sidebar-item--instagram:hover {
    background: var(--text-dark);
}

/* === Divider === */
.sidebar-divider {
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 0;
}

/* === Share Menu === */
.share-menu {
    position: absolute;
    right: 60px;
    top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.share-menu-item:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.share-menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* === Mobile Adjustments === */
@media (max-width: 992px) {
    .contact-sidebar {
        display: none; /* Hidden on tablet/mobile - use quick contact button instead */
    }
}

/* === Print === */
@media print {
    .contact-sidebar {
        display: none;
    }
}
