/* CSS Variables for theming */
:root {
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --accent-color: #0066cc;
    --accent-hover: #0052a3;
    --border-color: #dee2e6;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --header-bg: rgba(255, 255, 255, 0.95);
    --code-bg: #f1f3f4;
}

[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #e8e8e8;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --accent-color: #4dabf7;
    --accent-hover: #74c0fc;
    --border-color: #2d3748;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(26, 26, 46, 0.95);
    --code-bg: #2d3748;
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.logo-img {
    height: 40px;
    width: auto;
}

.footer-logo-img {
    height: 24px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-school {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.logo-university {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tum-logo-link {
    display: flex;
    align-items: center;
}

.tum-logo {
    height: 36px;
    width: auto;
}

.nav-desktop {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.nav-link.active {
    color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0.25rem;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    color: var(--text-primary);
}

.theme-btn.active {
    background: var(--bg-primary);
    color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

.nav-mobile.active {
    display: flex;
}

/* Hero section */
.hero {
    margin-top: 65px;
    background: var(--bg-secondary);
    padding: 2rem 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
}

.hero-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mission section */
.mission {
    padding: 4rem 0;
    text-align: center;
}

.mission h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.mission-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* News section */
.news-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.news-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 500;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1.5rem;
}

.news-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li::before {
    content: "\2022";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Research highlights */
.research-highlights {
    padding: 4rem 0;
}

.research-highlights h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.research-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.research-grid .research-card {
    width: 340px;
}

.research-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.research-card:hover {
    background: var(--bg-tertiary);
}

.research-icon {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.research-icon svg {
    width: 36px;
    height: 36px;
}

.research-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.research-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Partners section */
.partners-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.partners-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.partners-grid .partner-logo {
    width: 180px;
}

.partner-logo {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 80px;
}

.partner-logo:hover {
    box-shadow: var(--card-shadow);
    border-color: var(--accent-color);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo .partner-name {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.partner-logo:hover .partner-name {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-school {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-university {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Page header for sub-pages */
.page-header {
    margin-top: 65px;
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* People page styles */
.team-section {
    padding: 4rem 0;
}

.team-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.person-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.person-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.person-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
    font-weight: 600;
}

.person-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

.person-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.person-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.person-card h3 a:hover {
    color: var(--accent-color);
}

.person-title {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.person-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Individual profile page styles */
.profile-header {
    padding: 6rem 0 3rem;
    background: var(--bg-secondary);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-info {
    min-width: 0;
    flex: 1;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.profile-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.profile-email a {
    color: var(--text-secondary);
    text-decoration: none;
}

.profile-email a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

.profile-content {
    padding: 3rem 0;
}

.profile-section {
    margin-bottom: 2.5rem;
}

.profile-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.profile-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.profile-main {
    min-width: 0;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.contact-info {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.contact-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

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

.contact-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .profile-sidebar {
        position: static;
    }
}

/* Research page styles */
.research-area {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.research-area:last-child {
    border-bottom: none;
}

.research-area h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.research-area p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.research-area ul {
    list-style: none;
    padding-left: 0;
}

.research-area li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-area li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Project cards in research page */
.research-area h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.project-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.project-card h3 a:hover {
    color: var(--accent-color);
}

.project-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.project-funding,
.project-duration {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

.project-card-logo {
    margin-bottom: 1rem;
    text-align: center;
}

.project-card-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* Project title with logo */
.project-title-with-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.project-title-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Software cards */
.software-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.software-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    width: 340px;
    text-align: center;
}

.software-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.software-card-logo {
    margin-bottom: 1rem;
}

.software-card-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.software-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.software-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.software-card h3 a:hover {
    color: var(--accent-color);
}

.software-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Individual project page styles */
.project-content {
    padding: 3rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.project-main {
    min-width: 0;
}

.project-section {
    margin-bottom: 2.5rem;
}

.project-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.project-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.project-section ul {
    list-style: none;
    padding: 0;
}

.project-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.project-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Funder logo cards */
.funders-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.funder-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    min-height: 80px;
    min-width: 120px;
}

.funder-card img {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.project-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.project-info-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.project-info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-info-item:last-child {
    border-bottom: none;
}

.project-info-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.project-info-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.project-info-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }
}

/* Teaching page styles */
.courses-section {
    padding: 4rem 0;
}

/* Teaching page styles */
.teaching-section {
    padding: 3rem 0;
}

.teaching-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.semester-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.semester-title:first-child {
    margin-top: 0;
}

.course-category {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.course-list-simple {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.course-list-simple li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

.course-list-simple li:last-child {
    border-bottom: none;
}

.course-list-simple li > a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.course-list-simple li > a:hover {
    text-decoration: underline;
}

.course-id {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.course-instructor {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.course-instructor::before {
    content: "- ";
}

.course-instructor a {
    color: var(--text-secondary);
    text-decoration: none;
}

.course-instructor a:hover {
    color: var(--accent-color);
}

.course-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-left: 0.5rem;
}

.thesis-type {
    background: var(--accent-color);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.teaching-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
}

.teaching-note a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.teaching-note a:hover {
    text-decoration: underline;
}

/* Legacy course card styles (kept for compatibility) */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    align-items: center;
    transition: all 0.2s ease;
}

.course-card:hover {
    box-shadow: var(--card-shadow);
}

.course-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
    line-height: 1.4;
}

.course-info h3 a {
    color: inherit;
    text-decoration: none;
}

.course-info h3 a:hover {
    color: var(--accent-color);
}

.course-type {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Breadcrumb navigation */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 1rem 0;
    font-size: 0.9rem;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* Individual course page styles */
.course-detail {
    padding: 2rem 0 4rem;
}

.course-detail h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.course-detail h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.course-overview,
.course-objectives,
.course-topics {
    margin-bottom: 1.5rem;
}

.course-overview p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.course-objectives ul,
.course-topics ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.course-objectives li,
.course-topics li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.course-info-box {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.course-info-box h2 {
    margin-top: 0;
}

.course-details-table {
    width: 100%;
    border-collapse: collapse;
}

.course-details-table tr {
    border-bottom: 1px solid var(--border-color);
}

.course-details-table tr:last-child {
    border-bottom: none;
}

.course-details-table th {
    text-align: left;
    padding: 0.75rem 1rem 0.75rem 0;
    font-weight: 500;
    color: var(--text-secondary);
    width: 150px;
}

.course-details-table td {
    padding: 0.75rem 0;
    color: var(--text-primary);
}

.course-details-table a {
    color: var(--accent-color);
    text-decoration: none;
}

.course-details-table a:hover {
    text-decoration: underline;
}

/* Instructor cards */
.course-instructors {
    margin-top: 2rem;
}

.instructor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.instructor-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    min-width: 250px;
}

.instructor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.instructor-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.instructor-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.instructor-info h3 a:hover {
    color: var(--accent-color);
}

.instructor-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Publications page styles */
.publications-section {
    padding: 3rem 0;
}

.year-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 0.75rem;
}

.year-title:first-child {
    margin-top: 0;
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.publication-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    align-items: start;
}

.publication-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.4;
    grid-column: 1;
}

.publication-meta {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    align-items: baseline;
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.publication-authors::after {
    content: "•";
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.publication-venue {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
}

.publication-links {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    align-self: center;
}

.publication-links a {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.publication-links a:hover {
    background: var(--accent-color);
    color: white;
}

@media (max-width: 640px) {
    .publication-card {
        grid-template-columns: 1fr;
    }

    .publication-links {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0.5rem;
    }
}

/* Contact page styles */
/* Impressum page styles */
.impressum-content {
    padding: 3rem 0;
}

.impressum-section {
    margin-bottom: 2rem;
}

.impressum-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.impressum-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.impressum-section a:hover {
    text-decoration: underline;
}

/* Contact page styles */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.map-placeholder {
    background: var(--bg-secondary);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hero image actual photo */
.hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-right {
        gap: 1rem;
    }

    .tum-logo {
        height: 30px;
    }

    .hero-image-placeholder {
        height: 250px;
    }

    .mission h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .course-card {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .course-type {
        justify-self: start;
    }

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

    .course-detail h1 {
        font-size: 1.4rem;
    }

    .course-details-table th {
        width: 100px;
        font-size: 0.9rem;
    }

    .course-details-table td {
        font-size: 0.9rem;
    }

    .instructor-list {
        flex-direction: column;
    }

    .instructor-card {
        min-width: auto;
        width: 100%;
    }

    .course-list-simple li {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .course-id,
    .course-instructor,
    .course-meta {
        margin-left: 0;
    }

    .course-instructor::before {
        content: "";
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .theme-toggle {
        display: none;
    }

    .header-right {
        gap: 0.5rem;
    }

    .tum-logo {
        height: 24px;
    }

    .logo-img {
        height: 32px;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

    .mission {
        padding: 2rem 0;
    }

    .mission h1 {
        font-size: 1.75rem;
    }

    .news-section,
    .research-highlights,
    .partners-section {
        padding: 2rem 0;
    }
}
