:root {
    --bg-color: #f0f2f5;
    --chat-bg: #ffffff;
    --primary-color: #007bff;
    --user-bubble-bg: #007bff;
    --user-bubble-text: #ffffff;
    --bot-bubble-bg: #e4e6eb;
    --bot-bubble-text: #050505;
    --input-area-bg: #ffffff;
}

body {
    background-color: var(--bg-color);
    font-family: "Sora", Arial, sans-serif !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

h3 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Chat Wrapper */
.chat-wrapper {
    width: 80%;
    max-width: 900px;
    /* Optional cap for very large screens */
    height: 70vh;
    /* Fixed height for the chat window itself */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Keep chat scroll internal to this wrapper */
    position: relative;
    border: 1px solid #e0e0e0;
}

/* Header */
.chat-header {
    background-color: var(--chat-bg);
    padding: 15px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #31a24c;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* Chat Area */
#chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
    background-color: var(--bot-bubble-bg);
    color: var(--bot-bubble-text);
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background-color: var(--user-bubble-bg);
    color: var(--user-bubble-text);
    border-bottom-right-radius: 4px;
}

.message a {
    color: #0056b3;
    text-decoration: underline;
}

.message img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* Input Area */
.input-area {
    background-color: var(--input-area-bg);
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#user-input {
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    max-height: 100px;
    overflow-y: auto;
}

#send-btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border: none;
    transition: background-color 0.2s;
}

#send-btn:hover {
    background-color: #0056b3;
}

#send-btn svg {
    fill: white;
    width: 20px;
    height: 20px;
}

/* Typing Indicator */
.typing-indicator {
    padding: 12px 16px;
    background-color: var(--bot-bubble-bg);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #90949c;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    h3 {
      font-size: 1.8rem;
    }
    /* Tablet and below */
    .chat-wrapper {
        width: 100%;
        height: 80vh;
        /* Taller on mobile maybe? */
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .message {
        max-width: 90%;
    }
}

/* Hero */
.hero-header {
    background-image: url('https://pw.is/wp-content/uploads/2025/09/Peter-Wilfahrt-Konferenz-scaled.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 80vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    width: 100%;
    padding: 40px 20px 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

div.menu {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

a.link {
    display: block;
    width: 220px;
    min-height: 28px;
    text-decoration: none;
    position: relative;
    margin: 5px 10px;

    border-bottom: 2px solid #E8E8E8;
    border-left: 0px solid #2f393e;
    padding-top: 10px;
    padding-right: 0;
    padding-bottom: 12px;
    padding-left: 0;

    font-size: 20px;
    font-weight: 400;
    color: #2f393e;
    text-align: left;
}

a.link.internal::before {
    content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M19%2020.4143L20.4143%2019.0001L1.41421%209.31025e-05L0%201.41431L19%2020.4143Z%22%20fill%3D%22%232F393E%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M21.0064%2021.1969V8.17621H19.0067V19.1971H7.98573V21.1969H21.0064Z%22%20fill%3D%22%232F393E%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
    width: 28px;
    height: 28px;
    display: block;
    position: absolute;
    right: 0px;
    bottom: 10px;
}

a.link.external::before {
    content: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M20.7071%208.51656L19.2929%207.10234L0.292818%2026.1024L1.70703%2027.5166L20.7071%208.51656Z%22%20fill%3D%22%232F393E%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M21.4896%206.5104L8.46893%206.51041L8.46893%208.51019L19.4899%208.51019L19.4899%2019.5311L21.4896%2019.5311L21.4896%206.5104Z%22%20fill%3D%22%232F393E%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
    width: 28px;
    height: 28px;
    display: block;
    position: absolute;
    right: 0px;
    bottom: 10px;
}

a.link:hover {
    border-bottom: 2px solid #2f393e;
}



.example-meta {
    font-size: .6rem;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.8rem;
    margin-bottom: 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.facts-box {
    border: 1px solid #e2e8f0;
    /* background: #f8fafc; */
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 100%));
    gap: 0.5rem 2rem;
    margin: 0.5rem 0;
}

.data-grid dt {
    font-weight: 700;
    color: #334155;
}

.data-grid dd {
    /* margin: 0; */
    color: #0f172a;
}
