/* General Body Styles */
body {
    font-family: 'Agrandir', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    /* Black text */
    text-align: center;
    padding-top: 80px;
    /* Adjusted for fixed header */
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    z-index: 1000;
}

header .logo {
    font-family: 'Agrandir', sans-serif;
    font-size: 46.14px;
    font-weight: bold;
    color: #000000;
    /* Ensure black color */
    text-transform: none;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: #000000;
    /* Black links */
    font-weight: bold;
    font-size: 18.899px;
    padding-bottom: 5px;
    transition: border-bottom 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    border-bottom: 2px solid #6a11cb;
}

/* Burger Menu Styles */
#burger-menu {
    display: none;
    /* Hidden on desktop */
    cursor: pointer;
}

#burger-menu div {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Nav Links Styling for Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        top: 0px;
        /* Aligns with the top of the viewport */
        height: 100vh;
        background: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        /* This will spread out the links vertically */
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        /* Below the header but above other content */
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    #burger-menu {
        display: block;
        /* Show on mobile */
        position: relative;
        z-index: 1001;
        /* Make sure it's above the nav-links */
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Animation for nav links appearing */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}


/* Main Content Sections */
main {
    padding: 0 50px;
}

section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

section h1,
section h2,
section h3,
section h4 {
    font-family: 'Agrandir', sans-serif;
    font-weight: 700;
}

section h1 {
    font-size: 208.331px;
    line-height: 197.914px;
    letter-spacing: -0.015em;
    text-transform: none;
    margin: 0;
}

section h2 {
    font-size: 72.094px;
    margin-bottom: 30px;
}

section h3 {
    font-size: 46.14px;
    margin-bottom: 20px;
}

section p {
    font-size: 18.899px;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Custom Page Titles */
.page-title {
    font-size: 72.094px;
    /* Same as h2 */
    margin-bottom: 30px;
}

/* Hero Section */
.hero {
    padding: 0 20px;
    /* Remove top/bottom padding for vertical centering */
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 90px;
    /* Reduced from general h1 size */
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h2 {
    /* Targeting the new h2 in hero for smaller font size */
    font-size: 46.14px;
    /* Same as h3, smaller than main h2 */
    margin-bottom: 20px;
}

.hero p {
    /* Targeting the new p in hero */
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    /* Limit width for readability */
}

.button {
    display: inline-block;
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s ease;
}

.button:hover {
    background: linear-gradient(135deg, #8e5fb2 0%, #3a1abf 100%);
}

/* Search Input Styles */
.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Dark Section */
.dark-section {
    background-color: #2c2c2c;
    color: #fff;
    border-radius: 15px;
    padding: 60px;
}

.dark-section h2,
.dark-section h3,
.dark-section p {
    color: #f0f0f0;
    /* Lighter text for dark background */
}

/* Gradient Section */
.gradient-section {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    color: #fff;
    border-radius: 15px;
    padding: 60px;
}

.gradient-section h2,
.gradient-section p {
    color: #fff;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Tips Section */
.tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-box {
    background-color: #f4f4f4;
    padding: 15px 30px 30px;
    /* Reduced top padding */
    border-radius: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.tip-box h3 {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tip-box-special {
    background-color: #e0e0e0;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #ccc;
    text-align: left;
}

.tip-box-special h4 {
    font-weight: bold;
    font-size: 23.624px;
}

.llm-info-box {
    background-color: #e6e0f8;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.llm-info-box p {
    color: #663399;
    font-weight: bold;
    margin: 0;
}

.placeholder-box {
    background-color: #ccc;
    border: 1px solid #999;
    border-radius: 10px;
    padding: 50px;
    margin-bottom: 20px;
}

.placeholder-box p {
    margin: 0;
    color: #666;
}


/* Footer */
footer {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center items horizontally */
    padding: 40px 20px;
    /* Increased padding */
    margin-top: 50px;
    font-size: 16px;
    /* Adjusted font size */
    color: #000000;
}

footer nav ul {
    list-style: none;
    margin: 0 0 10px 0;
    /* Margin at the bottom */
    padding: 0;
    display: flex;
    gap: 15px;
    /* Spacing between links */
}

footer nav ul li a {
    text-decoration: none;
    color: #000000;
    /* Black links */
    font-weight: normal;
    /* Not bold */
    font-size: 16px;
    /* Smaller font size */
    padding-bottom: 5px;
    transition: border-bottom 0.3s ease;
}

footer nav ul li a:hover {
    border-bottom: 2px solid #6a11cb;
}


/* Chat History Styles */
.chat-container {
    padding: 0 20px 20px;
    /* Removed top padding */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hinweis-box {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: .25rem;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
}

.chat-header {
    text-align: center;
    font-size: clamp(18px, 4vw, 30px);
    margin-top: 10px;
    margin-bottom: 10px;
}

.message {
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 70%;
    line-height: 1.5;
}

.message p {
    margin: 0;
    font-size: 16px;
    /* Slightly smaller font for chat */
}

.message-left {
    background-color: #e0e0e0;
    /* Slightly darker grey for expert messages */
    color: #000;
    align-self: flex-start;
    text-align: left;
    border-bottom-left-radius: 5px;
}

.message-right {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
    color: #fff;
    align-self: flex-end;
    text-align: left;
    border-bottom-right-radius: 5px;
}

/* Collapsible message styles */
.collapsible-message summary {
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
    /* Needed for positioning the pseudo-element */
    padding-left: 25px;
    /* Make space for the icon */
    display: flex;
    /* Allow content and icon to align */
    align-items: center;
    /* Vertically center icon with text */
}

.collapsible-message summary::before {
    content: '+';
    /* Plus sign as initial icon */
    position: absolute;
    left: 0;
    font-size: 1.2em;
    /* Slightly larger icon */
    font-weight: bold;
    color: inherit;
    /* Inherit color from summary */
    transition: transform 0.2s ease-in-out;
    /* Smooth transition for icon */
}

.collapsible-message[open] summary::before {
    content: '-';
    /* Minus sign when open */
}

.collapsible-message .collapsible-content-wrapper {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.collapsible-message .collapsible-content {
    padding-top: 15px;
}

.collapsible-message .collapsible-content p {
    margin: 0 0 10px 0;
    font-size: 16px;
}



/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    /* Use separate to allow for border-radius */
    border-spacing: 0;
    margin-top: 40px;
    border: 1px solid #ddd;
    border-radius: 15px;
    /* Rounded corners for the table */
    overflow: hidden;
    /* Ensures content respects the border-radius */
}

th,
td {
    padding: 15px 20px;
    /* More padding for a cleaner look */
    text-align: left;
    border-bottom: 1px solid #ddd;
    /* Horizontal lines for rows */
}

th {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

thead {
    background: linear-gradient(135deg, #a777d1 0%, #4d25fc 100%);
}

tr:last-child td {
    border-bottom: none;
    /* Remove border for the last row */
}

tbody tr:hover {
    background-color: #f5f5f5;
    /* Hover effect for rows */
}

td a {
    color: #4d25fc;
    text-decoration: none;
    font-weight: bold;
}

td a:hover {
    text-decoration: underline;
}

/* Neural Network Section Styles */
.neural-network-section {
    padding: 60px 20px;
    text-align: left;
}

/* Architecture Diagram */
.nn-architecture-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Keep slight shadow for diagram only or remove if needed */
    position: relative;
    overflow: hidden;
}

.nn-architecture-diagram svg {
    width: 100%;
    height: auto;
    max-width: 600px;
}

/* ... existing styles ... */

/* Valve Interactive Element */
.valve-interactive-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
    /* Explicitly adding box styles as they are missing */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #ddd;
}

.valve-interactive-container h4 {
    margin-top: 0;
    margin-bottom: 30px;
}

.valve-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    height: 120px;
    position: relative;
    margin-bottom: 20px;
}

.valve-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #4d25fc;
    color: #4d25fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    font-size: 0.9em;
    position: relative;
    box-shadow: 0 4px 10px rgba(77, 37, 252, 0.1);
}

.valve-value-label {
    position: absolute;
    bottom: -35px;
    /* Move below the node */
    font-size: 0.85em;
    color: #333;
    font-weight: bold;
    background-color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.valve-connection-wrapper {
    flex-grow: 1;
    height: 60px;
    /* click area */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Ensure children don't stretch weirdly */
}

.valve-weight-label {
    position: absolute;
    top: -20px;
    /* Closer to line */
    height: auto;
    width: auto;
    background: transparent;
    color: #888;
    /* Grey for subtlety */
    border: none;
    box-shadow: none;
    font-weight: normal;
    /* Less bold */
    padding: 0;
    font-size: 0.8em;
    /* Smaller */
    z-index: 5;
    white-space: nowrap;
    line-height: normal;
}

#valve-connection {
    width: 100%;
    height: 2px;
    background-color: #4d25fc;
    transition: all 0.2s ease;
}

.valve-controls {
    margin-top: 10px;
    width: 80%;
    text-align: center;
}

input[type=range].valve-slider {
    width: 100%;
    margin: 10px 0;
    accent-color: #4d25fc;
}

/* Interview-Vergleich Section */
#interview-vergleich {
    text-align: left;
}

.question-block {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.question-block h3 {
    margin-top: 0;
    color: #333;
}

.answers-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.answer {
    flex: 1;
    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.answer h4 {
    margin-top: 0;
    color: #4d25fc;
}

.answer p {
    overflow-wrap: break-word;
    word-wrap: break-word; /* for older browsers */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* RGB Interactive Element */
.rgb-visual {
    width: 150px;
    height: 150px;
    background-color: rgb(0, 0, 0);
    margin: 0 auto;
    border-radius: 15px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.1s;
}

.rgb-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.rgb-slider-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rgb-label {
    width: 80px;
    text-align: left;
    font-weight: bold;
}

.rgb-slider-input {
    flex-grow: 1;
    accent-color: #4d25fc;
}

.rgb-value {
    width: 40px;
    text-align: right;
    font-family: monospace;
}

.rgb-vector-display {
    margin-top: 20px;
    font-family: monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid #ddd;
}

/* Scroll Margin for Anchor Links */
section,
h3,
h4,
.tip-box {
    scroll-margin-top: 80px;
}