/* ---------- Global styles ---------- */
:root {
    --bg-color: #f5f6fa;
    --bg-alt: #ffffff;
    --primary: #006c5f;
    --primary-dark: #005045;
    --accent: #005a8c;
    --text: #333333;
    --muted: #777777;
    --border: #e0e0e0;
    --max-width: 1200px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    --fade-duration: 0.6s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ---------- Header / Navigation ---------- */
header {
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
}

.brand-role {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Main nav */
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

nav a {
    color: var(--primary);
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: 0.15s ease;
}

nav a:hover,
nav a:focus {
    background-color: rgba(0, 108, 95, 0.08);
    color: var(--primary-dark);
}

nav a[aria-current="page"] {
    background-color: var(--primary);
    color: #ffffff;
}

/* External icon buttons */
.nav-external {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-icon-link {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s ease;
}

.nav-icon-link:hover,
.nav-icon-link:focus {
    background-color: rgba(0, 108, 95, 0.1);
    border-color: rgba(0, 108, 95, 0.25);
    transform: translateY(-1px);
}

.nav-icon-link img {
    width: 18px;
    height: 18px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ---------- Layout ---------- */
.page-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 2rem;
}

main {
    width: 100%;
}

/* ---------- Sections ---------- */
section {
    background-color: var(--bg-alt);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn var(--fade-duration) ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section h2 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-alt {
    background-color: #f7f7f7;
}

/* ---------- Profile Cards ---------- */
.profile-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-card {
    flex: 1 1 180px;
    max-width: 240px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: 0.15s ease;
}

.profile-card:hover,
.profile-card:focus {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.profile-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card-icon img {
    max-width: 80%;
    max-height: 80%;
}

.profile-card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-card-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------- Side Navigation (Button Style + Scroll Spy + Collapsible) ---------- */
.side-nav {
    position: sticky;
    top: 5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
    font-size: 0.9rem;
}

.side-nav-toggle {
    display: block;
    margin-bottom: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--primary);
}

.side-nav.collapsed .side-nav-list {
    display: none;
}

.side-nav-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}

.side-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav-list li {
    margin-bottom: 0.5rem;
}

.side-nav-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s ease;
}

.side-nav-button:hover,
.side-nav-button:focus {
    background-color: rgba(0, 108, 95, 0.08);
    border-color: var(--primary);
    transform: translateX(2px);
}

.side-nav-button.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .page-wrap {
        grid-template-columns: 1fr;
    }
    .side-nav {
        display: none;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-block;
    }
    nav ul,
    .nav-external {
        display: none;
    }
    .nav-container.open nav ul,
    .nav-container.open .nav-external {
        display: flex;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }
}

@media (max-width: 600px) {
    section h2 {
        font-size: 1.25rem;
    }
}

/* ---------- Academic Insights Layout (portrait right, text left, buttons below) ---------- */ .academic-insights-layout { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; align-items: start; margin-bottom: 1.5rem; /* space before the buttons */ } .academic-insights-text { display: flex; flex-direction: column; gap: 1rem; } .academic-insights-photo { display: flex; justify-content: flex-end; } .academic-insights-photo img { width: 100%; max-width: 260px; border-radius: 8px; display: block; } /* Responsive: stack on mobile */ @media (max-width: 768px) { .academic-insights-layout { grid-template-columns: 1fr; } .academic-insights-photo { order: -1; /* portrait appears above text on mobile */ justify-content: center; } .academic-insights-photo img { max-width: 220px; } }

/* ---------- Primary Button ---------- */ .btn-primary { display: inline-block; padding: 0.6rem 1.4rem; border-radius: 999px; background-color: var(--primary); color: #ffffff; border: none; font-size: 0.95rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: background-color 0.15s ease, transform 0.1s ease; } .btn-primary:hover, .btn-primary:focus { background-color: var(--primary-dark); /* darker accent */ text-decoration: none; transform: translateY(-1px); } .btn-primary:active { background-color: #003a59; transform: translateY(0); }

/* ---------- Secondary Button (for course links) ---------- */
.btn-secondary {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.15s ease;
    margin: 0.25rem 0;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}


/* ---------- Beautiful List Style ---------- */ .fancy-list { list-style: none; padding-left: 0; margin: 0.75rem 0; } .fancy-list li { position: relative; padding: 0.55rem 0.75rem 0.55rem 2rem; margin-bottom: 0.5rem; background-color: #ffffff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); transition: 0.15s ease; } .fancy-list li:hover { border-color: var(--primary); transform: translateX(3px); } /* Accent bullet */ .fancy-list li::before { content: ""; position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; background-color: var(--primary); border-radius: 50%; }

/* ---------- Impressum Page ---------- */ .impressum-page { max-width: var(--max-width); margin: 2rem auto; padding: 0 1.5rem; } .impressum-page h1 { font-size: 1.8rem; color: var(--primary); margin-bottom: 1rem; } .impressum-page p { margin-bottom: 1rem; font-size: 1rem; }

/* ---------- Footer ---------- */ .site-footer { background-color: var(--bg-alt); border-top: 1px solid var(--border); padding: 1rem 0; margin-top: 3rem; box-shadow: var(--shadow); } .footer-container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: center; } .footer-link { color: var(--primary); font-weight: 500; padding: 0.35rem 0.75rem; border-radius: 999px; transition: 0.15s ease; text-decoration: none; border: 1px solid transparent; } .footer-link:hover, .footer-link:focus { background-color: rgba(0, 108, 95, 0.08); border-color: rgba(0, 108, 95, 0.25); color: var(--primary-dark); transform: translateY(-1px); }

/* ---------- Contact Form (restored compact layout) ---------- */ form { max-width: 650px; margin: 0 auto; } .form-row { display: flex; gap: 1.5rem; margin-bottom: 1rem; } .form-group { flex: 1; display: flex; flex-direction: column; } .form-group label { font-weight: 500; margin-bottom: 0.35rem; } .form-group input, .form-group textarea { padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; background-color: #fff; } .form-group textarea { min-height: 140px; resize: vertical; } .gdpr-consent { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1rem 0 1.5rem; } .gdpr-consent input { margin-top: 0.25rem; } button.btn-primary { margin-top: 0.5rem; }