html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fffdfa;
    color: #333;
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
}

/* Inhalt dehnt sich aus, Footer bleibt unten */
main {
    flex: 1;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar.bg-secondary {
    background-color: #8b0000 !important; /* dunkles Weihnachtsrot */
    border-bottom: 3px solid #a30000;
}

.navbar a.navbar-brand img {
    height: 40px;
}

.back-button {
    background-color: #8b0000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #b71c1c;
    color: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.blog-header {
    background-color: #005710;
    background-image: linear-gradient(160deg, #2c6d31 0%, #005710 100%);
    padding-top: 310px;
    text-align: center;
    position: relative;
    margin-top: 0;
    color: #fff;
}

.blog-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 1rem;
}

.blog-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Blog-Kugel Logo */
#blog-logo {
    position: fixed;
    top: 62px;
    left: calc(50% - 100px);
    width: 200px;
    height: auto;
    transform-origin: top center; /* Schwingpunkt oben! */

    transition: transform 0.3s ease, width 0.3s ease, left 0.3s ease, top 0.3s ease, opacity 0.3s ease;
    z-index: 10000;
    animation: wobble 3s ease-in-out infinite;
}

/* verkleinerter Zustand */
#blog-logo.shrink {
    top:65px;
    width: 60px;
    left: calc(50% - 30px);
}

@keyframes wobble {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(1deg);
    }
}

/* ============================================
   BLOG-EINTRÄGE
   ============================================ */
.blog-container {
    max-width: 900px;
    margin: 50px auto auto auto;
    padding: 0 1.5rem;
}

.blog-post {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.2s;
}

.blog-post:hover {
    transform: translateY(-3px);
}

.blog-thumb {
    width: 180px;
    height: auto;
    flex-shrink: 0;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
}

.blog-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 0.5rem;
}

.blog-preview {
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-toggle {
    background-color: #1b5e20;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.blog-toggle:hover {
    background-color: #2e7d32;
}

/* Volltextbereich */
.blog-full {
    display: none;
    margin-top: 1rem;
    color: #333;
    line-height: 1.7;
}

.blog-full p,
.blog-full ul,
.blog-full li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-full h3 {
    color: #1b5e20;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
}

.blog-full ul {
    list-style-type: none;
    padding-left: 0;
}

.blog-full ul li::before {
    content: "🎄 ";
}

.blog-full a {
    color: #b71c1c;
    text-decoration: underline;
}

.blog-full a:hover {
    color: #ff5252;
}

/* ============================================
   FOOTER
   ============================================ */
footer.footer {
    background-color: #1a252f;
    padding: 2rem 0;
    color: #fff;
    text-align: center;
    margin-top: auto; /* bleibt immer ganz unten */
}

footer.footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;

    }

    .blog-thumb {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }

    .back-button {
        position: absolute;
        right: 1rem;
        top: 1rem;
        z-index: 999;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-header p {
        font-size: 1rem;
    }
}
#mainNav{
    padding-top:10px;
    padding-bottom:10px;
}
