
/* Zusätzliche Styles für die API-Seite */
.api-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), var(--gradient-1);
    padding: 6rem 0;
    text-align: center;
    color: white;
}

.api-section {
    padding: 4rem 0;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.api-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.1), transparent);
    transition: left 0.5s ease;
}

.api-card:hover::before {
    left: 100%;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--main-color);
}

.api-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

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

.api-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.api-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.api-status {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-live {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.status-beta {
    background-color: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.status-dev {
    background-color: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.api-docs-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.api-docs-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.code-example {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.code-example pre {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.endpoint {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--main-color);
}

.endpoint-method {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 1rem;
    min-width: 80px;
    text-align: center;
}

.method-get {
    background: rgba(46, 139, 87, 0.2);
    color: var(--main-color);
}

.method-post {
    background: rgba(255, 127, 80, 0.2);
    color: var(--accent-orange);
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

.api-features {
    margin: 2rem 0;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
}

/* Sub-Header Styling */
.sub-header {
    position: sticky;
    top: 0;
    background: var(--header-bg, #1a1a1a);
    color: white;
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
}

.sub-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-box {
    background: #2ecc71; /* Grün */
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px; /* eckiges Logo */
    font-weight: bold;
}

.sub-nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sub-nav a:hover {
    color: #2ecc71;
}

/* Hauptheader bleibt unter dem Sub-Header */
#header-container {
    z-index: 800; /* niedriger als Sub-Header */
    transition: transform 0.3s ease;
}

.sub-header {
    z-index: 900; /* höher, bleibt immer sichtbar */
}


/* Zusätzliche Styles für die Dokumentationsseite */
.docs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.docs-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.docs-sidebar h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--main-color);
}

.docs-nav {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 0.5rem;
}

.docs-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.docs-nav a:hover,
.docs-nav a.active {
    color: var(--main-color);
}

.docs-main {
    min-height: 100vh;
}

.docs-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-section:last-child {
    border-bottom: none;
}

.endpoint-example {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.endpoint-example pre {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

.response-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.response-table th,
.response-table td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.response-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.code-block {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.code-block code {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

.object-table {
    margin-left: 1.5rem;
    width: calc(100% - 1.5rem);
}

.object-table h5 {
    margin: 1rem 0 0.5rem 0;
    color: var(--main-color);
}

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

    .docs-sidebar {
        position: relative;
        top: 0;
    }
}


/* Zusätzliche Styles für die Developer-Startseite */
.dev-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), var(--gradient-1);
    padding: 6rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.dev-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 50%, rgba(46, 139, 87, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 127, 80, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.dev-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.dev-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.dev-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.dev-section {
    padding: 4rem 0;
}

.dev-section:nth-child(even) {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--main-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(46, 139, 87, 0.1);
}

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

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quick-link-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--main-color);
}

.quick-link-icon {
    font-size: 2rem;
    color: var(--main-color);
    flex-shrink: 0;
}

.quick-link-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.quick-link-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

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

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

@media (max-width: 768px) {
    .dev-hero h1 {
        font-size: 2.5rem;
    }

    .dev-hero p {
        font-size: 1rem;
    }

    .services-grid,
    .quick-links,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
