body {
    background-color: #1a233a;
    font-family: Arial;
}
.nav {
    width: 100%;
    height: 7%;
    position: fixed;
    top: 0;
    background-color: #fc2891;
    align-items: center;
    display: flex;
    right: 0;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

.miniheader {
    width: 100%;
    height: 2%;
    top: 7%;
    left: 0;
    right: 0;
    background-color: #00093c;
    opacity: 0.3;
    position: fixed;
    animation: fadeIn 1s ease-in-out;
}
.right_header {
    clip-path: polygon(0% 100%, 10% 0%, 100% 0%, 100% 100%);
    width: 60%;
    height: 100%;
    margin-left: 10%;
    background-color: white;
    padding-left: 40px;
}

.left_header {
    width: 40%;
    align-items: center;
    display: flex;
    overflow: hidden;
 }
.left_header a {
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    padding: 5%;
}

.left_header a:hover {
    background-color: #d5227b;
    cursor: pointer;
}


.nav img {
    display: block;
    margin-left: auto;
    top: 0;
    height: 100%;
    object-fit: cover;
}


.footer {
    width: 100%;
    height: 2em;
    position: fixed;
    background-color: #131830;
    left: 0;
    bottom: 0;
    text-align: center;
    padding-top: 15px;
}



.footer a {
    margin-top: 10px;
    color: gray;
    padding: 1%;
    bottom: 0;
    padding-top: 10px;
    text-decoration: none;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1 {
    color: white;
    margin-top: 9%;
    font-size: 400%;
    font-family: fantasy Papyrus;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.app {
    max-width: 100%;
    margin: 0 auto;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
}

#inhalt {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 30px;
    justify-content: center;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 100%;
}

#inhalt:has(.news-card:nth-last-child(1):nth-child(3n + 1)),
#inhalt:has(.news-card:nth-last-child(2):nth-child(3n + 1)) {
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    width: 300px;
    height: 400px;
    color: black;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.thumbnail {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.title {
    font-size: 1.2em;
    font-weight: bold;
    color: deeppink;
    margin: 10px 10px 0;
    text-align: center;
    min-height: 40px;
}

.text {
    font-size: 0.9em;
    color: #333;
    margin: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}