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

/* ===== Layout ===== */
body {
    font-family: "Georgia", "Times New Roman", serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #1a1a1a;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    color: #0b3d91;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 50px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 6px;
}

p {
    margin-bottom: 15px;
    color: #333;
}

/* ===== Links ===== */
a {
    color: #0b3d91;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Navigation ===== */
.nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #eaeaea;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo */
.logo a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

/* Nav Links */
.nav-links a {
    margin-left: 28px;
    font-family: -apple-system, sans-serif;
    font-size: 15px;
    color: #444;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #000;
}

/* Hover underline */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #0b3d91;
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Sections ===== */
.section {
    margin-bottom: 60px;
}

/* ===== Lists ===== */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* ===== Hero Section ===== */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 0 0 220px;
}

.hero-image img {
    width: 100%;
    border-radius: 6px;
}

/* Social / Contact Icons */
.nav-social {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 28px; /* konsistent zum Abstand der nav-links */
}

.nav-social a {
    color: #444;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.nav-social a:hover {
    color: #0b3d91;
}

@media (max-width: 700px) {
    .nav-social {
        margin-left: 12px;
        gap: 12px;
    }
}

/* ===== Footer ===== */
.footer {
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
    color: #555;
}

.footer-left p {
    margin: 4px 0;
}

.footer-right a {
    margin-left: 20px;
    color: #555;
    text-decoration: none;
}

.footer-right a:hover {
    color: #000;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 20px;
    padding-bottom: 20px;
}

/* ===== Meta / Academic Details ===== */
.meta {
    color: #666;
    font-size: 0.9rem;
}

.highlight {
    color: #0b3d91;
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image {
        width: 160px;
    }

    .nav-links a {
        margin-left: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }
}
/* ===== Hero Section Upgrade ===== */
.hero {
    margin-top: 60px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
}

.hero-text p {
    font-size: 1.05rem;
}

.hero-image {
    flex: 0 0 240px;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.hero-image img:hover {
    filter: grayscale(0%);
}

/* subtle academic underline */
.hero-text h1 {
    position: relative;
}

.hero-text h1::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #0b3d91;
    margin-top: 10px;
}

/* ===== About Page Upgrade ===== */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.about-main h2 {
    margin-top: 40px;
}

.about-sidebar {
    font-size: 0.95rem;
}

.sidebar-block {
    margin-bottom: 40px;
}

.sidebar-block h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #0b3d91;
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 0;
}

.timeline li {
    margin-bottom: 20px;
}

.timeline .time {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Projects Page ===== */

.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
}

.project-item {
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.project-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0b3d91;
}

.project-item p {
    margin-bottom: 14px;
}

.project-item a {
    font-weight: 600;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
}

.btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.2px;
}

.btn:hover {
    text-decoration: none; /* überschreibt globales a:hover Underline */
    transform: translateY(-3px);
}

/* Primärer Button — gefüllt, passend zu deinem Blau */
.btn-primary {
    background-color: #0b3d91;
    color: #ffffff;
    border: 1px solid #0b3d91;
}

.btn-primary:hover {
    background-color: #092e6e;
    box-shadow: 0 12px 28px rgba(11, 61, 145, 0.25);
}

/* Sekundärer Button — outline, passend zu .project-item Stil */
.btn-outline {
    background-color: #ffffff;
    color: #0b3d91;
    border: 1px solid #e5e7eb;
}

.btn-outline:hover {
    border-color: #0b3d91;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-right {
    text-align: right;
}

.footer-right a {
    color: inherit;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* Mobile: untereinander statt nebeneinander */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .footer-right {
        text-align: left;
    }
}