/* ========================
Global Settings
======================== */
html {
    scroll-behavior: smooth;
}

/* ========================
Font Faces
======================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 950;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 950;
  font-style: italic;
  font-display: swap;
}


/* ========================
Color System (Light Mode Default)
======================== */
:root {
    /* Accent & identity */
    --accent: #1e40af;
    /* deep indigo blue */
    --accent-soft: rgba(30, 64, 175, 0.12);
    /* subtle accent highlight */

    /* Backgrounds */
    --bg-main: #f8fafc;
    /* page background */
    --bg-card: #ffffff;
    /* cards / tiles */
    --bg-alt: #f1f5f9;
    /* alternating sections */

    /* Text */
    --text-main: #0f172a;
    /* main text */
    --text-muted: #475569;
    /* secondary text */

    /* UI elements */
    --border-light: #e2e8f0;
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* ========================
Dark Mode Palette
======================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #0b1220;
        /* deep navy */
        --bg-card: #111827;
        /* card background */
        --bg-alt: #0f172a;
        --text-main: #e5e7eb;
        --text-muted: #9ca3af;
        --border-light: #1f2937;

        --accent: #60a5fa;
        --accent-soft: rgba(96, 165, 250, 0.15);

        --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
        --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.5);

    }

    .nav {
        background: rgba(17, 24, 39, 0.9);
    }
}

/* ========================
Global Styles
======================== */

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

body {
    font-family: 'Inter';
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

/* ========================
Navigation Bar
======================== */
.nav {
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo a {
    text-decoration: none;
    color: var(--text-main);
    font-size: inherit;
    /* ensure it matches the parent */
    font-weight: inherit;
    /* ensure it matches the parent */
    line-height: 1;
}


.nav-logo a:hover {
    color: var(--accent);
}

nav a {
    margin-left: 18px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.15s ease;
}

nav a:hover {
    color: var(--accent);
}

/* ========================
Hero Section
======================== */
.hero {
    padding: 60px 20px;
    background-color: var(--bg-card);
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.hero-left {
    flex: 0 0 150px;
    margin-right: 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(30, 64, 175, 0.25);
}

.hero-right {
    flex: 1;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.hero-institution {
    font-size: 0.95rem;
    /* slightly smaller than subtitle */
    font-weight: 500;
    /* medium weight */
    /* color: var(--text-muted);  muted color for secondary info */
    margin-bottom: 8px;
    /* spacing below it before topics or description */
    line-height: 1.4;
    /* comfortable line spacing */
}

.topics {
    font-weight: 500;
    margin-bottom: 16px;
}

.description {
    margin-bottom: 14px;
    color: var(--text-muted);
}

.links-inline a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.links-inline a:hover {
    text-decoration: underline;
}

/* ========================
Sections
======================== */
.section {
    padding: 70px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

/* ========================
Project Tiles
======================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    display: block;
    background-color: var(--bg-card);
    padding: 22px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-muted);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(30, 64, 175, 0.18);
}

/* ========================
Project Subpages
======================== */
.project-page {
    padding: 70px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.project-left {
    flex: 1;
}

.project-left h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-left .authors {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.project-left .conf_journal {
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-left .description {
    margin-bottom: 16px;
    color: var(--text-muted);
    text-align: justify;
}

.project-right {
    flex: 0 0 400px;
}

.project-right .project-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.project-right .image-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive (project page) */
@media(max-width: 768px) {
    .project-container {
        flex-direction: column;
    }

    .project-right {
        flex: 1;
        margin-top: 20px;
    }
}

/* ========================
Publications
======================== */
.publication-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-year {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
}

.publication-card {
    background-color: var(--bg-card);
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.publication-card h4 {
    margin-bottom: 6px;
    font-size: 1.05rem;
    color: var(--accent);
}

.publication-card .authors,
.publication-card .venue {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.publication-buttons {
    margin-top: 8px;
    display: flex;
    gap: 0.5rem;
}

.publication-buttons .btn {
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.publication-buttons .btn:hover {
    background-color: var(--accent-soft);
    color: var(--text-main);
}


/* ========================
Footer
======================== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;

    a {
        color: var(--accent);
        text-decoration: none;
        margin-right: 12px;
    }


    .links-inline {
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 600;
        font-size: 1rem;
        gap: 0;
        /* remove automatic flex gap */
    }

    .links-inline a {
        color: var(--accent);
        text-decoration: none;
        line-height: 1;
        margin: 0 0.25rem;
        /* uniform spacing around links */
    }

    .links-inline a:hover {
        text-decoration: underline;
    }

    .links-inline .dot {
        color: var(--text-muted);
        margin: 0 0.25rem;
        /* same spacing around dots */
    }

    #legal-links-container {
        text-align: center;
        /* Center inline content horizontally */
        margin: 1rem 0;
        /* Optional spacing above/below */
        font-size: 0.9rem;
        /* Optional smaller font for footer links */
    }

    #legal-links-container a {
        text-decoration: none;
        /* Optional: remove underline */
        color: inherit;
        /* Keep the same color as surrounding text */
        margin: 0 0.25rem;
        /* Optional spacing between links and · */
    }

}

/* ========================
Privacy & Imprint Pages
======================== */
.content-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    line-height: 1.6;
    display: flex;
    flex-direction: row;
    gap: 2rem;


    .content-left {
        flex: 0.5;
        padding-right: 2rem;
        border-right: 1px solid var(--text-muted);
    }

    .content-right {
        flex: 0.6;
    }


    /* Titles */
    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: var(--text-main);
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--text-main);
    }

    h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    /* Absätze */
    p {
        margin-bottom: 1rem;
    }

    /* Listen */
    ul,
    ol {
        margin: 0 0 1rem 2rem;
        /* Abstand unten + Einzug */
        padding-left: 1rem;
    }

    li {
        margin-bottom: 0.5rem;
        /* Abstand zwischen Listenelementen */
    }

    /* Links */
    a {
        color: var(--accent);
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    /* Optional: Abschnittshervorhebung */
    .section {
        padding: 1rem;
        border-left: 3px solid var(--accent);
        margin-bottom: 1.5rem;
    }
}

/* ========================
Responsive (Hero)
======================== */
@media(max-width: 768px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-left {
        margin-right: 0;
        margin-bottom: 20px;
    }
}