/* ========================================
   Shared styles — Julius Kindsgrab
   ======================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Space Mono', monospace;
    background: #FFFEF5;
    color: #0a0a0a;
    line-height: 1.4;
}

/* Page container */
.page {
    border: 4px solid #0a0a0a;
    margin: 12px auto;
    max-width: 1300px;
}

/* Navigation */
.site-nav {
    display: flex;
    border-bottom: 4px solid #0a0a0a;
    background: #f8f8f0;
}

.site-nav a {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a0a0a;
    text-decoration: none;
    padding: 0.9rem 1.75rem;
    border-right: 2px solid #0a0a0a;
    transition: all 0.15s;
}

.site-nav a:hover {
    background: #0a0a0a;
    color: #FFFEF5;
}

.site-nav a.active {
    background: #0a0a0a;
    color: #FFFEF5;
}

/* Language toggle */
html:not([lang="de"]) .lang-de { display: none !important; }
html[lang="de"] .lang-en { display: none !important; }

.lang-toggle {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #FFFEF5;
    background: #FF5C00;
    border: none;
    border-left: 2px solid #0a0a0a;
    padding: 0.9rem 1.75rem;
    cursor: pointer;
    margin-left: auto;
    font-weight: 700;
    transition: all 0.15s;
}

.lang-toggle:hover {
    background: #0a0a0a;
    color: #FF5C00;
}

/* Selection */
::selection {
    background: #FF5C00;
    color: #0a0a0a;
}

/* GitHub link (footer) */
.github-link {
    padding: 0.6rem 2rem;
    font-size: 0.7rem;
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8f8f0;
}

.github-link:hover {
    color: #0a0a0a;
}

.github-link svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Shared detail-page styles
   (thesis.html, nabu.html)
   ======================================== */

/* Section blocks */
.t-section {
    border-bottom: 4px solid #0a0a0a;
}

.t-section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    padding: 0.75rem 2rem;
    border-bottom: 4px solid #0a0a0a;
    background: #0a0a0a;
    color: #FFFEF5;
    letter-spacing: 0.04em;
}

.t-section-body {
    padding: 2rem 2rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.t-section-body p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #222;
    margin-bottom: 1rem;
}

.t-section-body p:last-child {
    margin-bottom: 0;
}

.t-section-body strong {
    color: #0a0a0a;
}

.t-section-body .highlight {
    background: #FF5C00;
    color: #0a0a0a;
    padding: 0 0.25em;
    font-weight: 700;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 4px solid #0a0a0a;
}

.stat-cell {
    padding: 1.25rem 1.5rem;
    border-right: 2px solid #0a0a0a;
    text-align: center;
}

.stat-cell:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.75rem;
    line-height: 1;
    color: #FF5C00;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-top: 0.25rem;
}

/* Findings grid */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.finding-card {
    padding: 1.5rem;
    border-right: 2px solid #0a0a0a;
}

.finding-card:last-child {
    border-right: none;
}

.finding-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #ccc;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.finding-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.finding-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.finding-body strong {
    color: #0a0a0a;
}

/* Methods pipeline */
.pipeline {
    display: flex;
    align-items: stretch;
    border-bottom: 4px solid #0a0a0a;
}

.pipeline-step {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border-right: 2px solid #0a0a0a;
    position: relative;
}

.pipeline-step:last-child {
    border-right: none;
}

.pipeline-step::after {
    content: '\2192';
    position: absolute;
    right: -0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #FF5C00;
    font-weight: 700;
    z-index: 1;
    background: #FFFEF5;
    line-height: 1;
    padding: 0.15rem 0;
}

.pipeline-step:last-child::after {
    display: none;
}

.pipeline-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FF5C00;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pipeline-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.pipeline-detail {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* Detail page meta */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    font-size: 0.85rem;
    color: #555;
}

.detail-meta span {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.detail-meta .label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FF5C00;
}

/* Detail page contact cell */
.detail-contact-cell {
    width: 280px;
    border-left: 4px solid #0a0a0a;
    background: #FF5C00;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.detail-contact-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #0a0a0a;
}

.detail-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #0a0a0a;
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    background: #FFFEF5;
    border: 2px solid #0a0a0a;
    transition: all 0.15s;
}

.detail-contact-btn:hover {
    background: #0a0a0a;
    color: #FFFEF5;
}

.detail-contact-btn svg {
    width: 14px;
    height: 14px;
}

.detail-contact-location {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(10, 10, 10, 0.3);
}

/* Detail page hero wrapper */
.detail-hero-wrapper {
    display: flex;
    border-bottom: 4px solid #0a0a0a;
}

.detail-hero {
    flex: 1;
    padding: 2.5rem 2rem 2rem;
}

.detail-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

/* Download bar */
.download-bar {
    display: flex;
    border-bottom: 4px solid #0a0a0a;
    background: #f8f8f0;
}

.download-bar a {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0a0a0a;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-right: 2px solid #0a0a0a;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-bar a:hover {
    background: #FF5C00;
}

.download-bar a svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Shared responsive
   ======================================== */
@media (max-width: 900px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-cell:nth-child(2) {
        border-right: none;
    }

    .stat-cell:nth-child(1),
    .stat-cell:nth-child(2) {
        border-bottom: 2px solid #0a0a0a;
    }

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

    .finding-card {
        border-right: none;
        border-bottom: 2px solid #0a0a0a;
    }

    .finding-card:last-child {
        border-bottom: none;
    }

    .pipeline {
        flex-direction: column;
    }

    .pipeline-step {
        border-right: none;
        border-bottom: 2px solid #0a0a0a;
    }

    .pipeline-step:last-child {
        border-bottom: none;
    }

    .pipeline-step::after {
        display: none;
    }

    .detail-hero-wrapper {
        flex-direction: column;
    }

    .detail-hero h1 {
        font-size: 2rem;
    }

    .detail-hero {
        padding: 1.5rem 1.25rem;
    }

    .detail-contact-cell {
        width: 100%;
        border-left: none;
        border-top: 4px solid #0a0a0a;
    }

    .detail-contact-buttons {
        flex-direction: row;
    }

    .t-section-body {
        padding: 1.25rem;
    }

    .t-section-heading {
        padding: 0.75rem 1.25rem;
    }
}
