/* ========== BASE VARIABLES ========== */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #3b82f6;
    --gradient-start: #6366f1;
    --gradient-end: #8b5cf6;
    --light-bg: #f9fafb;
    --light-bg-accent: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --highlight-color: rgba(99, 102, 241, 0.3);
    
    /* Other Properties */
    --border-radius: 8px;
    --drop-shadow-filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

/* ========== TYPOGRAPHY ========== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    position: relative;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 290px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem 1rem 2rem 0.2rem;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-version {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Mobile Menu Toggle Button */
.sidebar-toggle {
    display: none;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--secondary-color);
}

.sidebar-toggle i {
    margin-right: 0.5rem;
}

/* Search Box */
.search-box {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background-color: var(--white);
    color: var(--text-color);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* ========== NAVIGATION ========== */
.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

.sub-nav {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sub-nav .nav-link {
    padding: 0.35rem 0.75rem;
}

/* ========== MAIN CONTENT ========== */
.content {
    flex: 1;
    padding: 2rem;
    background-color: var(--white);
    min-height: 100vh;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    filter: var(--drop-shadow-filter);
    max-width: calc(100% - 290px);
    overflow-x: hidden;
}

.section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

/* ========== CODE BLOCKS ========== */
pre {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

pre code {
    background-color: transparent;
    padding: 0;
    display: block;
}

/* Code Copy Button */
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

pre:hover .copy-btn {
    opacity: 1;
}

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

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

th {
    background-color: var(--light-bg);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: var(--light-bg-accent);
}

/* ========== CALLOUTS ========== */
.callout {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.callout.warning {
    border-left-color: var(--warning);
    background-color: rgba(245, 158, 11, 0.1);
}

.callout.danger {
    border-left-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
}

.callout.success {
    border-left-color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
}

.callout-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.callout-title i {
    margin-right: 0.5rem;
}

/* ========== PROGRESS STEPS ========== */
.progress-steps {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 0.875rem;
}

.progress-steps:before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========== TABS ========== */
.tabs {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    padding: 1.5rem;
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== IMAGES ========== */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* ========== SEARCH HIGHLIGHT ========== */
.search-highlight {
    transition: all 0.2s;
}

.search-highlight.current-highlight {
    background-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.8);
}

#search-counter {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* ========== FIXED UI ELEMENTS ========== */
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    z-index: 99;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 70px;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    z-index: 99;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.language-label {
    font-size: 8px;
    font-weight: bold;
    margin-left: 2px;
}

/* ========== FOOTER ========== */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.contribute-section {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary-color);
}

.contact-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 10px 0 0 0;
}

.contact-button:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.contact-button i {
    margin-right: 5px;
}

/* ========== DARK MODE STYLES ========== */
:root.dark-mode {
    /* Colors for Dark Mode */
    --primary-color: #30736D;
    --secondary-color: #52B7AE;
    --accent-color: #52B7AE;
    --light-bg: #04151F;
    --light-bg-accent: #07253657;
    --border-color: #4b5563;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --highlight-color: #75ecd43a;
    --white: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

:root.dark-mode body {
    background-color: var(--light-bg);
    color: var(--text-color);
}

:root.dark-mode h1,
:root.dark-mode h2,
:root.dark-mode h3,
:root.dark-mode h4,
:root.dark-mode h5,
:root.dark-mode h6 {
    color: var(--text-color);
}

:root.dark-mode .dark-mode-toggle {
    background-color: var(--light-bg-accent);
    color: var(--text-light);
    border-color: var(--border-color);
}

:root.dark-mode .dark-mode-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

:root.dark-mode .sidebar-toggle {
    background-color: var(--accent-color);
    color: var(--white);
}

:root.dark-mode .sidebar-toggle:hover {
    background-color: var(--secondary-color);
}

:root.dark-mode table th {
    background-color: var(--light-bg-accent);
}

:root.dark-mode tr:nth-child(even) {
    background-color: rgba(55, 65, 81, 0.5);
}

:root.dark-mode .search-input {
    background-color: var(--light-bg-accent);
    color: var(--text-color);
    border-color: var(--border-color);
}

:root.dark-mode .tab-nav {
    background-color: var(--light-bg-accent);
}

:root.dark-mode .callout {
    background-color: #52B7AE33;
}

:root.dark-mode .callout.warning {
    background-color: rgba(245, 158, 11, 0.2);
}

:root.dark-mode .callout.danger {
    background-color: rgba(239, 68, 68, 0.2);
}

:root.dark-mode .callout.success {
    background-color: rgba(16, 185, 129, 0.2);
}

:root.dark-mode .nav-link.active {
    background-color: #75ecd422;
}

:root.dark-mode .nav-link:hover {
    background-color: #75ecd40f;
}

:root.dark-mode .content {
    background-color: var(--light-bg-accent);
}

:root.dark-mode .contribute-section {
    background-color: rgba(185, 212, 147, 0.1);
}

:root.dark-mode .contact-button {
    background-color: var(--accent-color);
}

:root.dark-mode .contact-button:hover {
    background-color: var(--secondary-color);
}

:root.dark-mode .language-toggle {
    background-color: var(--light-bg-accent);
    color: var(--text-light);
    border-color: var(--border-color);
}

:root.dark-mode .language-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    /* Layout Changes */
    .container {
        flex-direction: column;
    }

    .content {
        max-width: 100%;
        border-radius: 0;
        padding: 1.5rem;
    }

    /* Sidebar Changes */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        overflow: visible;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .nav-list.active {
        max-height: 2000px; /* Large enough to contain all menu items */
    }

    /* UI Element Repositioning */
    .back-to-top {
        bottom: 70px;
        right: 20px;
    }

    .dark-mode-toggle {
        bottom: 20px;
        top: auto;
        right: 20px;
    }

    .language-toggle {
        bottom: 20px;
        top: auto;
        right: 70px;
    }

    .language-label {
        display: none;
    }

    /* Progress Steps */
    .progress-steps {
        flex-direction: column;
    }

    .progress-step {
        margin-bottom: 1rem;
    }

    .progress-steps:before {
        display: none;
    }
}
/* Landingpage spezifische Styles */
.landing-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.landing-container h1 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.language-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
}

.language-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.language-button .logo {
    width: 130px;
    height: 130px;
    margin-bottom: 1.5rem;
}

.language-button span {
    color: inherit;
    font-weight: bold;
    font-size: 1.5rem;
}

.js-button {
    background-color: #f7df1e;
    color: #000;
}

.js-button .logo {
    width: 130px;
    height: 130px;
    fill: #000;
}

.php-button {
    background-color: #8892bf;
    color: #000;
}


/* Footer Anpassungen */
.landing-container .footer {
    width: 100%;
    max-width: 800px;
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

.landing-container .footer p {
    margin-bottom: 0.5rem;
}

.landing-container .footer a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.landing-container .footer a:hover {
    color: var(--secondary-color);
}

/* Impressum-Link im Footer */
.landing-container .footer p:last-child {
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

.landing-container .contact-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 10px 0;
}

.landing-container .contact-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Anpassungen */
:root.dark-mode .language-button {
    border-color: var(--border-color);
}

:root.dark-mode .js-button {
    background-color: #f7df1e;
    color: #000;
}

:root.dark-mode .js-button .logo {
    fill: #000;
}

:root.dark-mode .php-button {
    background-color: #8892bf;
    color: #000;
}

:root.dark-mode .contact-button {
    background-color: var(--light-bg-accent);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

:root.dark-mode .landing-container h1 {
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .language-button {
        width: 220px;
        height: 220px;
    }
    
    .language-button .logo {
        width: 100px;
        height: 100px;
    }
    
    .landing-container h1 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

/* Back Button */
.back-button {
    position: fixed;
    top: 20px;
    right: 120px;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    z-index: 99;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Dark Mode Adjustments */
:root.dark-mode .back-button {
    background-color: var(--light-bg-accent);
    color: var(--text-light);
    border-color: var(--border-color);
}

:root.dark-mode .back-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .back-button {
        bottom: 20px;
        top: auto;
        right: 120px;
    }
}