@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');
        
body {
    font-family: 'Exo 2', sans-serif;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
    color: #d1d5db;
    padding-bottom: env(safe-area-inset-bottom);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Fokus-Styles (Accessibility) */
.input-chat:focus, .button-send:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #3b82f6a0;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(31, 41, 55, 0.7); /* Semi-transparenter Hintergrund */
    border: 1px solid rgba(75, 85, 99, 0.5); /* Leichter Rand */
}

.chat-header {
    background-color: rgba(17, 24, 39, 0.7); /* Semi-transparenter Hintergrund */
    border-bottom: 2px solid #374151;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background-color: rgba(25, 30, 40, 0.5); /* Leichterer, transparenter Hintergrund */
}

.message {
    max-width: 80%;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    overflow-wrap: break-word; /* Wichtige Änderung für korrekten Zeilenumbruch */
}

.message.user {
    background-color: #3b82f6; /* Gedämpftes Blau */
    color: #e5e7eb;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background-color: #374151;
    color: #e5e7eb;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-text {
    display: block;
}

.resume-button-wrapper {
    margin-top: 0.75rem;
}

.resume-trigger-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.6);
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.2), rgba(147, 197, 253, 0.35));
    color: #dbeafe;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    backdrop-filter: blur(4px);
}

.resume-trigger-button:hover,
.resume-trigger-button:focus-visible {
    transform: translateY(-1px) scale(1.02);
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.35), rgba(147, 197, 253, 0.5));
    box-shadow: 0 12px 24px rgba(96, 165, 250, 0.35);
}

.resume-trigger-button:active {
    transform: translateY(1px) scale(0.99);
}

.thinking-message {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-style: italic;
    color: #d1d5db;
    display: flex;
    align-items: center;
}

/* Skeleton Loader */
.skeleton-loader {
    width: 60%;
    min-height: 40px;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #262b39 25%, #30394e 50%, #262b39 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    align-self: flex-start;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.input-chat {
    background-color: #1f2937;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    flex-grow: 1;
    padding: 0.75rem;
    border-radius: 9999px;
    resize: none;
    overflow: hidden;
    height: 48px;
    line-height: 1.5;
}

.button-send {
    background-color: #374151;
    color: #d1d5db;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: 1px solid #4b5563;
    transition: background-color 0.2s, transform 0.1s;
}

.button-send:hover, .button-send:focus-visible {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.button-send:active {
    background-color: #6b7280;
    transform: translateY(1px);
}

.button-send:disabled {
    background-color: #2e343d;
    cursor: not-allowed;
    transform: none;
}

.jarvis-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #d1d5db;
    letter-spacing: 0.05em;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 10px rgba(255, 255, 255, 0.2);
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
}

/* Animation für die Schneeflocke */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.snowflake-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    animation: rotate 10s linear infinite, pulse 2s ease-in-out infinite alternate;
}

.thinking-dots {
    font-weight: bold;
}

/* Neue Animationen für Chat-Bubbles */
@keyframes user-send {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.1) blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) blur(0);
    }
}

@keyframes bot-reveal {
    0% {
        opacity: 0;
        transform: scale(0.1) blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) blur(0);
    }
}

.message.user.animating {
    animation: user-send 0.5s ease-out forwards;
}

.message.bot.animating {
    animation: bot-reveal 0.8s ease-out forwards;
}

/* Media Queries für mobile Geräte */
@media (max-width: 768px) {
    .chat-container {
        width: 100%;
        height: 100dvh; /* Wichtig für korrekte Höhe auf mobilen Geräten */
        max-width: none;
        border-radius: 0;
        border: none;
        backdrop-filter: none;
        background-color: rgba(31, 41, 55, 1);
    }

    .chat-header {
        padding: 0.75rem;
        border-radius: 0;
    }

    .chat-messages {
        padding: 0.5rem;
    }
    
    .message {
        max-width: 90%;
    }

    .jarvis-title {
        font-size: 1.25rem;
    }
    
    .input-chat {
        height: 40px;
        line-height: 1.25;
    }

    .button-send {
        padding: 0.5rem 1rem;
    }
}
/* Wasserzeichen-Hintergrund nur auf Desktop */
@media (min-width: 769px) {
  body::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 60vw;
    height: 100vh;
    background: url('jarvis-watermark.png') no-repeat left center;
    background-size: auto 90vh; /* 3/4 Höhe */
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
  }
  .chat-container {
    position: relative;
    z-index: 1;
  }
}

.resume-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
    padding: 1.5rem;
}

.resume-popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.resume-popup-window {
    position: relative;
    width: min(100%, 380px);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(59, 78, 102, 0.85));
    border-radius: 18px;
    border: 1px solid rgba(191, 219, 254, 0.4);
    box-shadow: 0 20px 45px rgba(30, 64, 175, 0.35);
    padding: 1.5rem;
    color: #e5e7eb;
}

.resume-popup-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.resume-popup-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(191, 219, 254, 0.45), rgba(96, 165, 250, 0.3));
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.25);
}

.resume-popup-window h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.resume-popup-subtitle {
    margin-top: 0.15rem;
    color: #cbd5f5;
    font-size: 0.85rem;
}

.resume-popup-input {
    width: 100%;
    min-height: 120px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    padding: 0.75rem;
    resize: vertical;
    font-family: 'Exo 2', sans-serif;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.resume-popup-input:focus {
    outline: none;
    border-color: rgba(147, 197, 253, 0.9);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45);
}

.resume-popup-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.resume-popup-send {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.9), rgba(59, 130, 246, 0.95));
    color: #0f172a;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume-popup-send:hover,
.resume-popup-send:focus-visible {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
}

.resume-popup-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.resume-popup-feedback {
    margin-top: 0.75rem;
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: #fca5a5;
}

.resume-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.4);
    color: #f8fafc;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.resume-popup-close:hover,
.resume-popup-close:focus-visible {
    background: rgba(148, 163, 184, 0.45);
    transform: scale(1.05);
}

body.resume-popup-open {
    overflow: hidden;
}
