body {
    font-family: "Gill Sans", sans-serif;
    padding: 0;
    margin: 0;
    background-color: #f4f4f4;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: white;
    color: #333;
    box-shadow: 0 2px 5px #0000001a;
    padding: 5px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 45px;
    height: auto;
    margin-right: 10px;
}

.site-title {
    font-size: 36px;
    background: linear-gradient(to right, #975549, #e64147);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #333;
    bottom: -5px;
    left: 50%;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.burger {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    margin-right: 30px; 
    padding: 10px; 
    background-color: #ffffffcc; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px #00000033; 
    transition: background-color 0.3s, transform 0.3s; 
}

.burger:hover {
    background-color: #ffffff; 
    transform: scale(1.05); 
}

.burger .line {
    width: 35px; 
    height: 4px; 
    margin: 4px 0;
    transition: background-color 0.3s; 
    background: linear-gradient(to right, #d8269d, #f57f10);
}


main {
    flex: 1;
    padding: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

#background-video {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0ece38a;
    z-index: -1; 
}
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.blog-preview {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 5px #0000001a;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    opacity: 0;
    transition: box-shadow 0.9s ease, border-radius 0.8s ease;
    transform: translateY(20px); 
    animation: fadeInUp 0.6s forwards;
    pointer-events: none; /* Disable interactions initially */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0); 
        pointer-events: auto; /* Enable interactions after animation */
    }
}


.blog-preview:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-preview:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-preview:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-preview:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-preview:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-preview:nth-child(6) {
    animation-delay: 0.6s;
}

.blog-preview:nth-child(7) {
    animation-delay: 0.7s;
}

.blog-preview:nth-child(8) {
    animation-delay: 0.8s;
}

.blog-preview:hover {
    box-shadow: 0 8px 20px #00000054;
    border-radius: 20px;
}

.blog-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px; /* Startwert des border-radius */
    box-shadow: 0 3px 10px #00000048;
    transition: transform 1s ease, border-radius 1s ease, box-shadow 1s ease; /* Übergang für beide beim Hover und Verlassen */
}
.blog-preview:hover img {
    box-shadow: 0 1px 10px #0000006c;
    border-radius: 15px;
}

.blog-preview h3 {
    font-size: 24px;
    text-align: center;
    margin: 15px 0;
}

.blog-preview p {
    flex: 1;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000000 70%, #00000000 100%);
    mask-image: linear-gradient(180deg, #000000 0%, #00000000 100%);
}



.blog-preview .ansehen-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #282936;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-end;
    border-radius: 5px;
    margin-top: auto;
}

.blog-preview .ansehen-button:hover {
    letter-spacing: 2px;
    color: #282936;
    background-color: #f0f0f0;
}



footer {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 2px 10px #999999;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 0;
}

@media (max-width: 1200px) {
    .blogs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .blog-preview img {
        height: 180px;
    }
}

@media (max-width: 992px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .blog-preview img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        margin-left: 5px;
        margin-right: 5px;
        padding: 0;
        justify-items: center;
    }

    .blog-preview {
        padding: 10px;
        margin: 10px 0;
        width: 107%;
        max-width: 600px; 
        box-sizing: border-box;
    }

    .blog-preview img {
        height: 180px;
    }
}
@media (max-width: 500px) {
    .burger {
        display: block; 
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px; 
        left: 20px; 
        width: max-content; 
        width: 100%; 
        padding: 10px; 
        max-width: 200px; 
        background-color: #fffffff2; 
        box-shadow: 0 4px 20px #00000033; 
        border-radius: 8px; 
        transition: transform 0.3s ease, opacity 0.3s ease; 
        transform: translateY(-20px) translateX(-100%); 
        opacity: 0; 
        z-index: 1; 
    }
    
    .nav-links.active {
        display: flex; 
        transform: translateY(0) translateX(0); 
        opacity: 1; 
    }
    
    .nav-links li {
        margin: 5px 0; 
        text-align: left; 
    }
    
    .nav-links li a {
        color: #333; 
        text-decoration: none; 
        padding: 12px 15px; 
        display: block; 
        padding: 10px; 
        border-radius: 5px; 
        transition: background-color 0.3s, transform 0.3s; 
    }
    
    .nav-links li a:hover {
        background-color: #0000001a; 
        transform: scale(1.05); 
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
        padding: 20px;
    }

    .blog-preview {
        width: auto; 
    }
}
