
/* Grundlayout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding-bottom: 100px; /* Platz für fixierten Footer */
}

/* Hero-Header mit animiertem Farbverlauf */
.hero-header {
    position: relative;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(-45deg, #2E7D32, #81D4FA, #66BB6A, #0077cc);
    background-size: 400% 400%;
}

.animate-gradient {
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* PNG im Hintergrund */
.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/bild2.png') center no-repeat;
    background-size: 10%;
    opacity: 0.9;
    z-index: 0;
}

/* Overlay für bessere Lesbarkeit */
.hero-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Inhalt im Vordergrund */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.site-motto {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
    color: #fff;
}

/* Buttons oben im Header */
.header-buttons {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Login links, Animation rechts */
    padding: 0 20px;
    z-index: 10;
}

/* Login-Button */
.login-button {
    background-color: #0077cc;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #005fa3;
}

/* Animation-Button */
#toggle-animation {
    background: #0077cc;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#toggle-animation:hover {
    background: #005fa3;
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.95em;
    background: #66BB6A;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.hero-header.animate-buttons .cta-button {
    animation: pulseGlow 2s infinite;
}


@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 rgba(102, 187, 106, 0.6); }
    50% { box-shadow: 0 0 20px rgba(102, 187, 106, 0.8); }
    100% { box-shadow: 0 0 0 rgba(102, 187, 106, 0.6); }
}

/* Footer fixiert */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2E7D32;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUpFadeIn 0.8s ease-out forwards;
}

@keyframes slideUpFadeIn {
    0% { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Footer Navigation */
.footer-nav {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: #81D4FA;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #81D4FA;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* Anzeige-Box */
.ad-box {
    margin-top: 10px;
    font-size: 0.85em;
    color: #ccc;
}

.ad-box a {
    color: #ffeb3b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ad-box a:hover {
    color: #fff176;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-header {
        height: 50vh;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* Zentrierung für den Hauptbereich */
#content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 10vh;
    text-align: center;
    padding: 20px;
}

#content img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

.button, .cta-button {
    display: inline-block;
    margin: 10px auto;
}

/* Cursor für Buttons und Links */
button, .cta-button, .login-button {
    cursor: pointer;
}
