/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a2e;
    background: #1a1a2e url('../hero-bg.jpeg') center/cover no-repeat fixed;
    padding-top: 90px;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Header & Nav Shell ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: transparent;
    padding: 12px 16px 0;
}
.nav-shell {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 8px 6px;
    margin: 0 auto;
    width: 100%;
    max-width: 920px;
    box-sizing: border-box;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1px;
    padding: 4px 2px;
}
.site-logo {
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.15rem;
    color: #1a1a2e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}
.site-logo:hover { color: #00d084; }
.site-logo-img { height: 34px; width: auto; display: block; }

/* ── Nav Menu ── */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    justify-content: center;
}
.nav-menu .menu-item { display: inline-block; }
.nav-menu .menu-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}
.nav-menu .menu-item a:hover {
    color: #00d084;
    background-color: rgba(0, 208, 132, 0.1);
}
.nav-menu .menu-item.current a {
    color: #00d084;
    background-color: rgba(0, 208, 132, 0.08);
}
.nav-menu .menu-item.current a:hover {
    color: #00d084;
    background-color: rgba(0, 208, 132, 0.15);
}
.nav-menu .menu-item:first-child a { color: #00d084; }
.nav-menu .mitmachen-item a {
    color: #d32f2f;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.nav-menu .mitmachen-item a:hover { background: #d32f2f; color: #fff; }
.nav-menu .mitmachen-item.current a {
    color: #fff;
    background: #d32f2f;
    border-color: #d32f2f;
}

/* ── Mobile Toggle ── */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Main Content ── */
.page-wrapper {
    min-height: calc(100vh - 165px);
    display: flex;
    flex-direction: column;
}
.hero-overlay {
    background: transparent;
    padding: 0.75rem 2rem;
}
.page-content {
    max-width: 920px;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 3rem 3.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin: 0 auto;
}

/* ── Content Typography ── */
.page-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    border-bottom: 2px solid #00d084;
    padding-bottom: 0.75rem;
}
.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.page-content p { margin-bottom: 1rem; color: #333; }
.page-content a {
    color: #00d084;
    text-decoration: underline;
    text-decoration-color: rgba(0, 208, 132, 0.3);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.page-content a:hover { color: #00b36b; text-decoration-color: #00b36b; }
.page-content ul, .page-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content code { background: #f3f4f6; padding: 0.2em 0.4em; border-radius: 4px; font-size: 0.9em; }
.page-content pre {
    background: #f3f4f6;
    color: #333;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}
.page-content pre code { background: none; padding: 0; }
.page-content blockquote {
    padding: 1rem 1.5rem;
    border-left: 4px solid #00d084;
    background: rgba(0, 208, 132, 0.05);
    margin: 1.5rem 0;
    font-style: italic;
    color: #444;
}
.page-content img { border-radius: 8px; margin: 1rem 0; }
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.page-content th, .page-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.page-content th {
    background: #f9fafb;
    font-weight: 600;
    border-top-color: #00d084;
    border-bottom: 2px solid #e5e7eb;
}
.page-content .level1, .page-content .level2, .page-content .level3 { margin: 1rem 0; padding-left: 0.5rem; }
.page-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* ── Footer ── */
.site-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 1.5rem 1.5rem;
    margin-top: 0.5rem;
}
.footer-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.footer-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.footer-credit { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }
.ai-credit {
    color: #00d084;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: default;
    position: relative;
    padding: 0 0.25rem;
    border-radius: 3px;
    transition: color 0.2s ease;
}
.ai-credit:hover { color: #00e890; }
.ai-credit::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.ai-credit:hover::after { opacity: 1; }
.footer-date { font-size: 0.75rem; color: rgba(255, 255, 255, 0.35); }
.footer-copy { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.25rem; }
.footer-extra-card {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-extra-card h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.footer-extra-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}
.footer-extra-card a { color: #00d084; text-decoration: none; }
.footer-extra-card a:hover { text-decoration: underline; }


/* ── Back Button (Unterseiten) ── */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    background: rgba(0, 208, 132, 0.08);
    border: 1px solid rgba(0, 208, 132, 0.4);
    border-radius: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.back-btn:hover {
    color: #00d084;
    background: rgba(0, 208, 132, 0.15);
}
/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-shell { padding: 6px 8px; border-radius: 12px; }
    .nav-container { padding: 4px 4px; }
    .site-logo-img { height: 28px; }
    .mobile-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height, 80px);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    .nav-menu.open { display: flex; }
    .nav-menu .menu-item a { padding: 12px 16px; width: 100%; }
    .hero-overlay { padding: 2.5rem 1rem; }
    .page-content { padding: 2rem 1.5rem; }
    .page-content h1 { font-size: 1.6rem; }
    .page-content h2 { font-size: 1.3rem; }
    .footer-links { gap: 0.5rem; }
}
@media (max-width: 480px) {
    .hero-overlay { padding: 2rem 0.75rem; }
    .page-content { padding: 1.5rem 1rem; }
    .page-content h1 { font-size: 1.4rem; }
    .page-content h2 { font-size: 1.15rem; }
    .footer-links { flex-direction: column; gap: 0.25rem; }
}
