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

main {
    margin: 0;
    padding: 0;
}

section {
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --page-background: #f4f6fb;
    --bg-primary: #ffffff;
    --bg-secondary: #eef2ff;
    --bg-alt: #e2e8f0;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Dark theme colors */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --accent-color: #60a5fa;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-alt: #374151;
    --page-background: #0f172a;
    --border-color: #4b5563;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--page-background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header & Navigation */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}


.language-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
    margin: 0;
    display: block;
}

/* Info Main gradient variant (MCP page) */
.info-main--gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: calc(100vh - 140px);
}

[data-theme="dark"] .hero,
[data-theme="dark"] .info-main--gradient {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-alt));
}

[data-theme="dark"] .hero-content h1,
[data-theme="dark"] .hero-content p {
    color: var(--text-primary);
}

/* Neural Network Background */
.neural-network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.neural-network-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: 4rem 0;
    position: relative;
    margin: 0;
}


/* Projects section - different background in both modes */
.section-projects {
    background-color: var(--bg-alt);
}

[data-theme="dark"] .section-projects {
    background-color: var(--bg-secondary);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

/* About Me Section */
.about-sections {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.about-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

@media (max-width: 768px) {
    .about-sections {
        gap: 1.5rem;
    }

    .about-section {
        padding: 1.25rem;
    }

    .about-section p {
        font-size: 1rem;
    }
}


.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

/* Grid Layouts */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mcp-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

/* Cards */
.project-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Project Cards */
.project-category {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* MCP Server Section */
.mcp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mcp-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--warning-color);
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--success-color);
    animation: none;
}

.status-dot.offline {
    background: var(--error-color);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


.tools-list {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.tool-item {
    background: var(--bg-primary);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.tool-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.tool-parameters {
    background: var(--bg-alt);
    border-radius: 6px;
    padding: 0.8rem;
    margin-top: 0.8rem;
}

.tool-parameters h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.parameter-item {
    margin-bottom: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.parameter-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.param-name {
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.param-required {
    color: var(--error-color);
    font-weight: bold;
    margin-left: 0.2rem;
}

.param-type {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 0.3rem;
}

.param-default {
    color: var(--success-color);
    font-size: 0.85rem;
    margin-left: 0.3rem;
    font-family: 'Courier New', monospace;
}

.param-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.2rem;
    margin-left: 1rem;
    font-style: italic;
}

/* MCP Documentation Styles */
.mcp-architecture {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mcp-architecture h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.arch-component {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.arch-component h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arch-component ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arch-component li {
    padding: 0.2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mcp-usage {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mcp-usage h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.usage-section {
    margin-bottom: 1.5rem;
}

.usage-section h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.usage-section code {
    display: block;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.usage-section pre {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.mcp-features {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mcp-features h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item h6 {
    color: var(--text-primary);
    margin: 0.5rem 0;
    font-size: 1rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.back-navigation {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Server Configuration */
.server-selection {
    text-align: center;
    margin-bottom: 2rem;
}

.mcp-label {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.loading-indicator {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    color: var(--text-primary);
}

.loading-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}

.error-indicator {
    border: 2px solid var(--error-color);
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    color: var(--error-color);
}

.error-indicator i {
    font-size: 2rem;
    color: var(--error-color);
}


.server-content {
    animation: fadeIn 0.5s ease-in;
}

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

/* MCP Sections - Unified styling */
.mcp-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.mcp-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}


.server-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

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

.meta-item span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Endpoints */
.endpoints-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.endpoint-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.endpoint-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.endpoint-item code {
    flex: 1;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* API Examples */
.api-examples {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.api-examples h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.example-section {
    margin-bottom: 1.5rem;
}

.example-section h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.example-section pre {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    line-height: 1.4;
}

/* Dark mode adjustments for documentation */
[data-theme="dark"] .endpoint-item code {
    background: var(--bg-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .server-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .endpoint-item {
        flex-direction: column;
        align-items: stretch;
    }

    .endpoint-label {
        min-width: auto;
    }
}


.mcp-section code {
    display: block;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

[data-theme="dark"] .mcp-section code {
    background: var(--bg-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.error {
    color: var(--error-color);
    text-align: center;
    padding: 1rem;
}

/* Footer */
footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        align-items: center;
    }


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

    .section h2 {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .project-links {
        flex-direction: column;
    }

    .mcp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .section {
        padding: 2rem 0;
    }

    .card, .project-card {
        padding: 1.5rem;
    }
}
/* Info Page Layout (Impressum, Datenschutz, MCP) */
.info-main {
    background: var(--bg-secondary);
    padding: 4rem 0 6rem 0;
}

.info-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
}

.info-card h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}


.info-section {
    margin-top: 2.5rem;
}

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

.info-subheading {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-list {
    list-style: none;
    padding-left: 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.info-list li {
    margin-bottom: 0.4rem;
}

.info-section p {
    color: var(--text-primary);
    line-height: 1.7;
}
.info-summary p {
    margin: 0.2rem 0;
}


.rights-list {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-primary);
}

.rights-list li {
    margin-bottom: 0.4rem;
}

.rights-intro {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.info-summary p:last-child {
    margin-top: 0.8rem;
}


.info-meta {
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .info-card {
        padding: 2rem;
    }

    .info-card h1 {
        font-size: 1.8rem;
    }

    .info-section h2 {
        font-size: 1.2rem;
    }
}

