/* ============================================================================
   FOOTER STYLES
   ============================================================================ */
.site-footer {
    background: #0a0a0a;
    color: #888;
    padding: 50px 30px 20px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    flex-shrink: 0; /* Footer nicht zusammenquetschen */
}

/* ============================================================================
   SCROLL-MODUS (alle Seiten außer Generator)
   Inhalt fließt natürlich, Footer sitzt am Ende und ist erst beim
   Runterscrollen sichtbar - NICHT fixiert am Viewport-Rand.
   ============================================================================ */
body.page-scroll {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

body.page-scroll #page-content {
    /* Wächst um den Footer nach unten zu drücken, darf aber überlaufen */
    flex: 1 0 auto;
}

/* Profil-Seite nutzt inline position:absolute - im Scroll-Modus aufheben,
   damit der Inhalt normal fließt und der Footer darunter erreichbar ist. */
body.page-scroll .login-page {
    position: static !important;
    inset: auto !important;
    overflow: visible !important;
    min-height: calc(100vh - 70px);
}

/* Docs & Tutorials nutzen interne Scroll-Container mit fixer Höhe -
   im Scroll-Modus aufheben, damit Inhalt fließt und Footer unten erscheint. */
body.page-scroll .docs-scroll-wrapper,
body.page-scroll .tutorials-container {
    height: auto !important;
    min-height: calc(100vh - 70px);
    overflow: visible !important;
}

/* Home-Hero: inline height:100% greift im Scroll-Modus nicht mehr (Eltern-Höhe
   ist auto), wodurch ein schwarzer Streifen unter dem Gradient entsteht.
   Hero soll den sichtbaren Bereich voll füllen, damit kein Seam sichtbar ist. */
body.page-scroll .hero {
    height: auto !important;
    min-height: calc(100vh - 70px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.footer-col a {
    display: block;
    color: #888;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #00d4ff;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.footer-tagline {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .site-footer {
        padding: 30px 20px 15px;
    }
    .footer-container {
        gap: 25px;
    }
}

/* ============================================================================
   COOKIE CONSENT BANNER
   ============================================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid #00d4ff;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.6);
    padding: 18px 20px;
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.cookie-consent-text strong {
    color: #fff;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.cookie-consent-text p {
    color: #aaa;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #00d4ff;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.cookie-btn-accept {
    background: #00d4ff;
    color: #000;
    border: 1px solid #00d4ff;
}
.cookie-btn-accept:hover { background: #33ddff; }

.cookie-btn-decline {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}
.cookie-btn-decline:hover { border-color: #888; color: #fff; }

@media (max-width: 600px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .cookie-consent-actions {
        justify-content: stretch;
    }
    .cookie-btn { flex: 1; }
}
