:root {
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #18212f;
    --muted: #5f6b7a;
    --line: #d9e1ea;
    --primary: #1769aa;
    --primary-dark: #0f4f82;
    --accent: #12a38f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 76px;
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.brand-logo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(24, 33, 47, 0.14);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
}

.main-nav a {
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--primary);
}

.page-context {
    position: sticky;
    top: 76px;
    z-index: 20;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 248, 251, 0.96);
    backdrop-filter: blur(10px);
}

.page-context-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-context-title {
    overflow: hidden;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero {
    padding: 88px 32px;
    background:
        linear-gradient(90deg, rgba(8, 33, 56, 0.92), rgba(16, 82, 115, 0.78)),
        linear-gradient(135deg, #123c5a, #0f766e);
    color: #ffffff;
}

.hero-text {
    max-width: 980px;
    margin: 0 auto;
}

.version-label {
    margin: 0 0 16px;
    font-weight: 700;
    color: #9ee7dc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.hero h1 {
    max-width: 860px;
    margin: 0 0 24px;
    font-size: 3rem;
    line-height: 1.08;
}

.hero p {
    max-width: 760px;
    font-size: 1.15rem;
    color: #e6f2f5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    font-weight: 700;
}

.button.primary {
    color: #ffffff;
    background: var(--accent);
}

.button.secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 32px;
}

.section h2 {
    margin: 0 0 28px;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-grid article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.feature-grid h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
}

.dataset-preview {
    margin: 18px 0;
}

.dataset-preview img {
    display: block;
    cursor: zoom-in;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.dataset-preview figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
    gap: 32px;
    align-items: start;
}

.folder-structure-section {
    max-width: 1320px;
    grid-template-columns: minmax(0, 2.35fr) minmax(260px, 0.75fr);
}

.info-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.info-panel h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.info-panel p:last-child,
.info-panel .check-list:last-child {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
        position: static;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .main-nav {
        gap: 10px 14px;
    }

    .page-context {
        top: 0;
        padding: 8px 20px;
    }

    .hero {
        padding: 56px 20px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .section {
        padding: 44px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }
}

.page-title {
    max-width: 980px;
    margin: 0 auto;
    padding: 64px 32px 32px;
}

.page-title h1 {
    margin: 0 0 18px;
    font-size: 2.6rem;
    line-height: 1.12;
}

.page-title p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.1rem;
}

.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px;
}

.download-panel h2 {
    margin-top: 0;
}

.check-list {
    padding-left: 20px;
    color: var(--muted);
}

.check-list li {
    margin-bottom: 8px;
}

.download-action {
    text-align: center;
}

.small-note {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--muted);
}

.release-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
}

.release-table th,
.release-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.release-table th {
    background: #edf3f8;
}

@media (max-width: 760px) {
    .page-title {
        padding: 44px 20px 20px;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .download-panel {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .download-action {
        text-align: left;
    }
}
.content-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.video-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.video-panel video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: clamp(220px, 56.25vw, 640px);
    max-height: 72vh;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #000000;
}

.video-caption {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.placeholder-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    background: #eefaf8;
    color: var(--text);
    font-size: 0.95rem;
}

.warning-panel {
    margin-top: 18px;
    padding: 16px 18px;
    border-left: 5px solid #b42318;
    border-radius: 6px;
    background: #fff4ed;
    color: var(--text);
}

.warning-panel h3 {
    margin-top: 0;
    color: #8a1f11;
}

.warning-panel p:last-child {
    margin-bottom: 0;
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #edf3f8;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.95em;
}

.spectrim-output-popup {
    margin-top: 16px;
}

.spectrim-output-popup summary {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.spectrim-output-popup summary:hover {
    border-color: #a8c7dd;
    text-decoration: underline;
}

.spectrim-output-popup[open] summary {
    margin-bottom: 10px;
}

.spectrim-output-block {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid #243244;
    border-radius: 8px;
    background: #111827;
    color: #e5edf5;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre;
}

.spectrim-output-block code {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.site-footer {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 1fr);
    gap: 18px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 32px;
    align-items: center;
}

.funding-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.funding-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.funding-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    opacity: 0.78;
    transition: opacity 0.15s ease;
}

.funding-logo-card:hover {
    opacity: 1;
}

.funding-logo-card img {
    display: block;
    max-width: 112px;
    max-height: 28px;
    height: auto;
}

.funding-logo-card.eu img {
    max-width: 42px;
    max-height: 28px;
}

.funding-logo-card.scan img {
    max-width: 54px;
    max-height: 32px;
}

.funding-logo-card.unibe img {
    max-width: 118px;
    max-height: 26px;
}

.funding-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.funding-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #cfd9e5;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    background: #ffffff;
}

a.funding-badge:hover {
    color: var(--primary);
    border-color: #b8cfe4;
    text-decoration: none;
}

@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
}
