.profile-section {
    display: flex;
    align-items: center;
}


.user-info-icons {
    display: flex;
    align-items: center;
    gap: 30px;
}


.icon-list {
    margin: -25px 0 0 0;
	}

.icon-list a {
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.6s;
	margin: 5px 7px 0 0;
	vertical-align: bottom;
}


/* Für kleinere Bildschirme, z.B. Smartphones */
@media (max-width: 600px) {
    .icon-list a {
        font-size: 14px;
        margin: 4px 5px 0 0;
    }
}

/* Für mittlere Bildschirme, z.B. Tablets */
@media (max-width: 900px) and (min-width: 601px) {
    .icon-list a {
        font-size: 15px;
        margin: 5px 6px 0 0;
    }
}

.icon-list a:hover {
    color: #00aced; /* Heller Blauton beim Hover */
}


#secure-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-toggle {
    background: #0892dd;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.chat-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12ed00;
    display: inline-block;
}

.chat-window {
    display: none;
    width: 360px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: absolute;
    bottom: 70px;
    right: 0;
    overflow: hidden;
}

.chat-widget-open .chat-window {
    display: flex;
    flex-direction: column;
}

.chat-widget-open .chat-toggle {
    display: none;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #0892dd;
    border-bottom: 2px solid #5dc6ff;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
}


.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5dc6ff; /* dauerhaft blauer Rand */
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Pulsierende Animation für den leuchtenden Rand */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 4px #5dc6ff;
    }
    50% {
        box-shadow: 0 0 12px #5dc6ff;
    }
}

.profile-image:hover {
    transform: scale(1.03);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.user-info {
    display: flex;
    flex-direction: column;
	color: white;
}

.username {
    margin: 0px 0 0 0;
    font-size: 17px;
    font-weight: bolder;
    color: white;
	line-height: 20px;
}

.status {
    font-size: 10px;
    color: #fff;
	text-transform:uppercase;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-header {
        padding: 10px 15px;
    }
    
    .profile-image {
        width: 40px;
        height: 40px;
    }
    
    .username {
        font-size: 14px;
    }
}


.profile-section {
    position: relative;
}

.profile-image::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border: 2px solid white;
    border-radius: 50%;
}







.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.user-message, .admin-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.user-message {
    align-items: flex-end;
}

.admin-message {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

.user-message .message-content {
    background: #e6f2fc;
    color: #0892dd;
	border: 1px solid #0892dd;
}

.admin-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e1e5e9;
}

.message-time {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    padding: 0 5px;
}

.typing-indicator {
    padding: 10px 15px;
    font-style: italic;
    color: #666;
    font-size: 12px;
}

.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e1e5e9;
    display: block;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 22px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

#chat-input:focus {
    border-color: #0892dd;
}

#chat-send {
    background: #0892dd;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
	width: 100%;
}

#chat-send:hover {
    background: #005a87;
}

.chat-privacy-notice {
    padding: 8px 15px 15px 15px;
    background: #f0f0f0;
    border-top: 1px solid #e1e5e9;
    text-align: center;
	line-height: 90%;
}

.chat-privacy-notice small,
.chat-privacy-notice small a {
    color: #666;
    font-size: 10px;
}


.chat-close-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
	margin: -50px -20px 0 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}


/* Für kleinere Bildschirme, z.B. Smartphones */
@media (max-width: 600px) {
    .chat-close-btn {
	margin: -30px -20px 0 0;
    }
}

/* Für mittlere Bildschirme, z.B. Tablets */
@media (max-width: 900px) and (min-width: 601px) {
    .chat-close-btn {
	margin: -30px -20px 0 0;
    }
}



.close-icon {
    font-size: 18px;
    font-weight: bold;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    #secure-chat-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .chat-window {
        width: 300px;
        height: 400px;
        bottom: 60px;
    }
}


/* Zusätzliche Styles für Typing-Indicator */
.typing-indicator {
    padding: 8px 15px;
    font-style: italic;
    color: #666;
    font-size: 12px;
    background: rgba(0, 124, 186, 0.1);
    border-radius: 15px;
    margin: 5px 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.chat-error {
    background: #ffebee;
    color: #c62828;
    padding: 8px 15px;
    margin: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.message-item {
    animation: slideInMessage 0.3s ease;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Dots Animation */
.typing-indicator::after {
    content: '';
    display: inline-block;
    width: 0;
    animation: typingDots 1.4s infinite;
}

@keyframes typingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}



