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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9ff;
}

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

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.navbar-links {
    display: flex;
    gap: 2rem;
    background: linear-gradient(135deg, #5a4fff 0%, #8a7fff 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-links a.active {
    color: white;
    font-weight: 600;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #5a4fff 0%, #8a7fff 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #5a4fff;
}

/* Wiki-spezifische Styles */
.wiki-hero {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    color: #1a1a1a;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wiki-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%235a4fff" opacity="0.1"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.wiki-hero .container {
    position: relative;
    z-index: 1;
}

.wiki-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wiki-hero .subline {
    font-size: 1.3rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
}

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

.wiki-breadcrumb {
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    background: #f8f9ff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wiki-breadcrumb a {
    color: #5a4fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wiki-breadcrumb a:hover {
    color: #4a3fff;
    text-decoration: underline;
}

.wiki-categories {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.wiki-category {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(90, 79, 255, 0.1);
}

.wiki-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(90, 79, 255, 0.12);
}

.wiki-category h2 {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.wiki-category h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #5a4fff, #8a7fff);
    border-radius: 4px;
}

.wiki-articles {
    display: grid;
    gap: 2rem;
}

.wiki-article-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(90, 79, 255, 0.1);
}

.wiki-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #5a4fff, #8a7fff);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wiki-article-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 32px rgba(90, 79, 255, 0.12);
}

.wiki-article-card:hover::before {
    opacity: 1;
}

.wiki-article-card h3 {
    color: #1a1a1a;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.wiki-article-card p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.wiki-article {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(90, 79, 255, 0.1);
}

.wiki-article h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 800;
}

.wiki-article h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5a4fff, #8a7fff);
    border-radius: 4px;
}

.wiki-article h2 {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
}

.wiki-article h3 {
    color: #1a1a1a;
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.wiki-article h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.wiki-article p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.wiki-article ul,
.wiki-article ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.wiki-article li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.wiki-article strong {
    font-weight: 600;
    color: #1a1a1a;
}

.wiki-cta {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    margin-top: 6rem;
}

.wiki-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #5a4fff, transparent);
}

.wiki-cta h2 {
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.wiki-cta p {
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.wiki-cta .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #5a4fff 0%, #8a7fff 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(90, 79, 255, 0.2);
}

.wiki-cta .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 79, 255, 0.3);
}

/* Mobile Navbar Styles */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #5a4fff 0%, #8a7fff 100%);
    padding: 0;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-navbar .navbar-logo {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.mobile-navbar .navbar-logo img {
    height: 35px;
    width: auto;
}

.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    padding: 6rem 2rem 2rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-content a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-menu-content a:hover {
    color: #5a4fff;
}

.mobile-menu-content a.active {
    color: #5a4fff;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        display: none !important;
    }

    .mobile-navbar {
        display: flex !important;
    }

    .wiki-hero {
        padding: 6rem 0 3rem;
    }

    .wiki-hero h1 {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .wiki-hero .subline {
        font-size: 1.1rem;
    }

    .wiki-container {
        padding: 2rem 1rem;
    }

    .wiki-article {
        padding: 2rem;
    }

    .wiki-article h1 {
        font-size: 2rem;
    }

    .wiki-article h2 {
        font-size: 1.6rem;
    }

    .wiki-article h3 {
        font-size: 1.3rem;
    }

    .wiki-article p,
    .wiki-article li {
        font-size: 1rem;
    }

    .wiki-cta {
        padding: 4rem 1rem;
    }

    .wiki-cta h2 {
        font-size: 2rem;
    }

    .wiki-cta p {
        font-size: 1.1rem;
    }
}

/* Wiki Animation Styles */
.wiki-hero,
.wiki-category,
.wiki-article-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.wiki-hero.animate {
    opacity: 1;
    transform: translateY(0);
}

.wiki-category.animate {
    opacity: 1;
    transform: translateY(0);
}

.wiki-article-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Verzögerte Animation für Kategorien */
.wiki-category:nth-child(1) {
    transition-delay: 0.2s;
}

.wiki-category:nth-child(2) {
    transition-delay: 0.4s;
}

.wiki-category:nth-child(3) {
    transition-delay: 0.6s;
}

.wiki-category:nth-child(4) {
    transition-delay: 0.8s;
}

/* Verzögerte Animation für Artikel-Karten */
.wiki-article-card:nth-child(1) {
    transition-delay: 0.1s;
}

.wiki-article-card:nth-child(2) {
    transition-delay: 0.2s;
}

.wiki-article-card:nth-child(3) {
    transition-delay: 0.3s;
}

.wiki-article-card:nth-child(4) {
    transition-delay: 0.4s;
}

.wiki-article-card:nth-child(5) {
    transition-delay: 0.5s;
}

.wiki-article-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Optimierte Animation Performance */
.wiki-hero,
.wiki-category,
.wiki-article-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Wiki Section Styles */
.wiki-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    margin-bottom: 2.5rem;
}

.wiki-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Wiki Features Grid */
.wiki-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.wiki-feature-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 79, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.wiki-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 79, 255, 0.12);
    border-color: rgba(90, 79, 255, 0.2);
}

.wiki-feature-card h4 {
    color: #5a4fff;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    line-height: 1.2;
}

.wiki-feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Wiki Steps */
.wiki-steps {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.wiki-step {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: #f8f9ff;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 79, 255, 0.1);
}

.wiki-step:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(90, 79, 255, 0.12);
    border-color: rgba(90, 79, 255, 0.2);
}

.wiki-step-number {
    background: linear-gradient(135deg, #5a4fff 0%, #8a7fff 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
    line-height: 1;
}

.wiki-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wiki-step-content h4 {
    color: #5a4fff;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.wiki-step-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wiki-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wiki-step {
        flex-direction: row;
        gap: 1rem;
        padding: 1.25rem;
        align-items: center;
    }

    .wiki-step-number {
        width: 22px;
        height: 22px;
        font-size: 0.9rem;
    }

    .wiki-feature-card {
        min-height: 90px;
        padding: 1rem;
    }
}