/* Base Reset & Cozy/Vintage Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif; /* Changed to a warmer, classic font style */
}

body {
    background-color: #FAF6F0; /* Soft warm cream background */
    color: #5A4A42; /* Soft vintage brown text instead of harsh black */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header Navigation Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #FFFDF9; /* Bright warm white */
    border-bottom: 2px dashed #FAD2E1; /* Pastel pink dashed divider */
}

.agenda-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    color: #E8A7B6; /* Deep pastel rosa */
    transition: color 0.2s;
}

.agenda-btn:hover {
    color: #D68A9C;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #E8A7B6; /* Matching rosa lines */
    border-radius: 2px;
}

.top-right-brand {
    font-size: 0.9rem;
    color: #BDB2A6;
    font-weight: 500;
    font-style: italic;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #FFFDF9;
    border-right: 2px solid #FAD2E1;
    padding: 40px 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    left: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    color: #E8A7B6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    border: 2px solid transparent;
}

.sidebar-link:hover {
    background-color: #FFF0F2;
    color: #D68A9C;
    border-color: #FAD2E1;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Main Content Structural Grid */
main {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    flex-grow: 1;
}

/* Structural Layout Panels (Cards) */
.card {
    background: #FFFFFF;
    width: 100%;
    border: 3px solid #FFF8E7; /* Soft pastel gelb border */
    border-radius: 20px; /* Slightly rounder, softer edges */
    padding: 35px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(232, 167, 182, 0.1); /* Soft pinkish glow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 167, 182, 0.15);
}

/* Custom Text and Brand Adjustments */
.welcome-box {
    background-color: #FFF0F2; /* Beautiful pastel rosa background */
    border-color: #FCD5CE;
}

.welcome-box h1 {
    font-size: 2.5rem;
    color: #D68A9C;
    font-weight: 700;
}

.brand-box {
    background-color: #FFFDF0; /* Lovely pastel soft gelb background */
    border-color: #FBEEC1;
}

.brand-box h2 {
    font-size: 1rem;
    color: #E2B438; /* Muted pastel gold/yellow */
    letter-spacing: 1px;
}

.process-box {
    background-color: #FFFFFF;
    border-color: #E8E8E4;
}

.process-box h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #6D594F;
    text-align: left;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* Full Width Footer Area */
footer {
    background: #FFFDF9;
    border-top: 2px dashed #FBEEC1; /* Pastel yellow dashed divider */
    padding: 25px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #8E7C72;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Kontext Grid Layout */
.kontext-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.kontext-box {
    background: #FFFFFF;
    border: 3px solid #FFF8E7;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(232, 167, 182, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kontext-box:not(.empty):hover {
    transform: translateY(-5px);
    background-color: #FFF0F2;
    box-shadow: 0 8px 20px rgba(232, 167, 182, 0.2);
}

.kontext-box h3 {
    font-size: 1.2rem;
    color: #D68A9C;
    font-weight: 600;
    margin: 0;
}

.quellen-btn {
    background: #E8A7B6;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
}

.quellen-btn:hover {
    background: #D68A9C;
}

.kontext-box.empty {
    background: #FAFAFA;
    border: 3px dashed #E8D5CE;
    cursor: default;
}

.kontext-box.empty:hover {
    transform: none;
    background-color: #FAFAFA;
    box-shadow: 0 6px 15px rgba(232, 167, 182, 0.1);
}

/* Modal Popup Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-in;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #E8A7B6;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #D68A9C;
}

.modal-content h2 {
    color: #D68A9C;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content img {
    float: left;
    width: 40%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin: 0 20px 20px 0;
    object-fit: contain;
}

.modal-content p {
    color: #5A4A42;
    line-height: 1.6;
    font-size: 1rem;
}

#modalQuellenBtn {
    display: block;
    margin: 20px auto 0;
}

/* Sources Slide-in Panel */
.sources-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 3px solid #E8A7B6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2500;
    transition: bottom 0.4s ease-out;
    max-height: 60vh;
    overflow-y: auto;
}

.sources-panel.show {
    bottom: 0;
}

.sources-content {
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.sources-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #E8A7B6;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sources-close:hover {
    color: #D68A9C;
}

.sources-content h3 {
    color: #D68A9C;
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 0;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.source-item {
    background: #FFF0F2;
    padding: 15px;
    border-left: 4px solid #E8A7B6;
    border-radius: 4px;
    color: #5A4A42;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Viewports */
@media (max-width: 600px) {
    .welcome-box h1 { font-size: 1.8rem; }
    .brand-box h2 { font-size: 2.2rem; }
    header { padding: 15px 20px; }
    
    .kontext-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .kontext-box {
        min-height: 120px;
        padding: 25px 15px;
    }
    
    .modal-content {
        width: 95%;
        padding: 30px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Sources Page Styling */
.sources-section {
    text-align: left;
    background-color: #FFFDF9;
}

.sources-drive-link {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FAD2E1;
}

.sources-drive-link p {
    margin: 0;
    font-size: 1.1rem;
    color: #5A4A42;
}

.sources-drive-link a {
    color: #E8A7B6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.sources-drive-link a:hover {
    color: #D68A9C;
    text-decoration: underline;
}

.sources-content h2 {
    color: #D68A9C;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.sources-content h2:first-child {
    margin-top: 0;
}

.sources-content ul {
    list-style-position: inside;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.8;
}

.sources-content li {
    color: #5A4A42;
    margin-bottom: 12px;
    padding-left: 20px;
}

.sources-content em {
    font-style: italic;
}

/* Team Page Styling */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.team-member {
    background: #FFFFFF;
    border: 3px solid #FFF8E7;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(232, 167, 182, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(232, 167, 182, 0.15);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #E8A7B6;
}

.team-member h3 {
    color: #D68A9C;
    font-size: 1.3rem;
    margin: 15px 0 20px 0;
    font-weight: 600;
}

.team-member p {
    color: #5A4A42;
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}