.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 999999;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.cookie-content { padding: 24px; }
.cookie-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cookie-icon { font-size: 28px; }
.cookie-header h3 { font-size: 1.2rem; margin: 0; }
.cookie-text p { font-size: 0.85rem; color: #4a4a4a; margin-bottom: 8px; }
.cookie-text small { font-size: 0.7rem; color: #888; }
.cookie-options { background: #f8f8f8; border-radius: 16px; padding: 16px; margin: 20px 0; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cookie-option:last-child { border-bottom: none; }
.option-label strong { font-size: 0.85rem; display: block; }
.option-label span { font-size: 0.7rem; color: #888; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: 0.3s; border-radius: 50%; }
input:checked + .slider { background-color: #111; }
input:checked + .slider:before { transform: translateX(20px); }
input:disabled + .slider { opacity: 0.6; cursor: not-allowed; }
.cookie-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.btn-cookie { padding: 12px 20px; border-radius: 40px; font-size: 0.85rem; font-weight: 500; cursor: pointer; border: none; font-family: inherit; }
.btn-cookie-primary { background: #111; color: white; }
.btn-cookie-primary:hover { background: #2a2a2a; }
.btn-cookie-secondary { background: #f0f0f0; color: #1a1a1a; border: 1px solid #ddd; }
.btn-cookie-text { background: transparent; color: #888; text-decoration: underline; }
.cookie-links { text-align: center; font-size: 0.7rem; padding-top: 12px; border-top: 1px solid #eee; }
.cookie-links a { color: #888; text-decoration: none; margin: 0 4px; }
@media (max-width: 640px) {
    .cookie-consent { left: 16px; right: 16px; max-width: none; }
}

/* ============================================
   LIVE CHAT – Professioneller Chat-Button
============================================ */
.live-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

/* Chat Button – Modern & Elegant */
.chat-toggle {
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.chat-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.chat-toggle:hover::before {
    left: 100%;
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #c9a03d 0%, #e6c77a 100%);
}

.chat-toggle-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 16px;
    position: relative;
    z-index: 2;
}

.chat-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-toggle-icon svg {
    width: 18px;
    height: 18px;
}

.chat-toggle-text {
    text-align: left;
}

.chat-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.chat-status {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

.chat-toggle-badge {
    position: relative;
    margin-left: 4px;
}

.badge-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
}

@keyframes pulse-green {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 550px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.chat-window.open {
    display: flex;
    animation: slideUp 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    position: relative;
    width: 44px;
    height: 44px;
}

.chat-header-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 6px;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #111;
    animation: pulse-green 2s infinite;
}

.chat-header-info h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.chat-header-info p {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.7;
}

.chat-close {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.3s ease;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #c9a03d 0%, #e6c77a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar {
    background: #e0e0e0;
    color: #111;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user-bubble {
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    color: white;
    border-radius: 20px 20px 4px 20px;
}

.message-bubble p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-word;
}

.message-time {
    font-size: 0.6rem;
    opacity: 0.6;
    margin-top: 6px;
    display: block;
}

.user-bubble .message-time {
    text-align: right;
}

/* Chat Input Area */
.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chat-input-group input,
.chat-input-group textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s;
    background: white;
}

.chat-input-group input:focus,
.chat-input-group textarea:focus {
    outline: none;
    border-color: #c9a03d;
    box-shadow: 0 0 0 3px rgba(201,160,61,0.1);
}

.chat-input-group textarea {
    border-radius: 20px;
    resize: none;
}

.chat-send {
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.chat-send:hover {
    background: linear-gradient(135deg, #c9a03d 0%, #e6c77a 100%);
    transform: translateY(-2px);
}

.chat-send-icon {
    font-size: 1rem;
}

.chat-note {
    font-size: 0.65rem;
    color: #888;
    text-align: center;
    margin: 8px 0 0;
}

/* Animationen */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c9a03d;
    border-radius: 4px;
}

/* Mobile Optimierung */
@media (max-width: 640px) {
    .live-chat {
        bottom: 16px;
        right: 16px;
    }
    
    .chat-toggle {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .chat-toggle-inner {
        padding: 8px 16px 8px 12px;
    }
    
    .chat-toggle-icon {
        width: 28px;
        height: 28px;
    }
    
    .chat-toggle-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .chat-title {
        font-size: 0.8rem;
    }
    
    .chat-status {
        font-size: 0.6rem;
    }
    
    .chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        bottom: 0;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .chat-header {
        padding: 16px 20px;
    }
    
    .chat-messages {
        padding: 16px;
        height: calc(100% - 140px);
    }
    
    .chat-input-area {
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    
    .chat-input-group {
        flex-direction: column;
        gap: 8px;
    }
}

/* Safe Area Support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .chat-input-area {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}