a           {text-decoration:none; color:#dbdbdb;}
a:visited   {text-decoration:none; color:#dbdbdb;}
a:hover     {color:#404040;}
a:active    {text-decoration:none; color:#dbdbdb;}
a:focus     {text-decoration:none; color:#dbdbdb;}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: transparent;
    position: relative;
}

body {            
    font-family: 'Helvetica Neue',arial,sans-serif;
    font-size: 1em;
    font-weight: 200;
    color: #dbdbdb;
    background: transparent;
    margin: 0;
    padding: 0;
    min-height: 100%;
    /* position: relative;*/
    transition: background 0.5s ease; /* Sanfter Übergang */
}

#background { 
    /* position: absolute;*/
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1;
}

h1 {
    font-size: 1.6em; 
    font-weight: 400; 
    letter-spacing: 0.1em;
}

h2 {
    font-size: 1em; /* Gleiche Schriftgröße wie der restliche Text */
    font-weight: 200; /* Gleicher Schriftstil wie der restliche Text */
}

hr {
    border-color: #404040;
}


.links {
    margin-top: 10px;
    font-size: 0.9em;
}

#links {
    width: 90%;
    max-width: 600px;
    margin: 10px auto 50px; /* Mehr Abstand nach oben */
    text-align: left;
}


/* Alle News Items sind zu Beginn unsichtbar */
.news-item {
    opacity: 0;
    visibility: hidden; /* Statt display: none; */
    height: 0; /* Verhindert, dass es sichtbar ist */
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    margin-top: 10px;
}

/* Sobald das Element sichtbar wird */
.news-item.visible {
    opacity: 1;
    visibility: visible;
    height: auto;
    transform: translateY(0);
}

.news-item header {
    width: 90%;
    max-width: 600px;
    margin: 20px auto 20px; 
    text-align: left; /* Rechtsbündige Ausrichtung */
}

.news-item img {
    width: 90%; /* Die Bilder nehmen 90% der Bildschirmbreite ein */
    max-width: 600px; /* Begrenzung der maximalen Breite für große Screens */
    display: block; /* Zentriert das Bild automatisch */
    margin: 20px auto; /* Automatische Zentrierung + Abstand nach oben/unten */
}

.content {
color: #dbdbdb;
margin-left: 2%;
}

#about {
    width: 90%; /* Die Bilder nehmen 90% der Bildschirmbreite ein */
    max-width: 1200px; /* Begrenzung der maximalen Breite für große Screens */
    display: block; /* Zentriert das Bild automatisch */
    margin: 50px auto; /* Automatische Zentrierung + Abstand nach oben/unten */
    text-align: justify; 
}

/* Verhindert, dass sich sehr große Bilder über den Rand hinaus ausdehnen */
figure {
    text-align: center; /* Stellt sicher, dass Bilder innerhalb von <figure> mittig sind */
    margin: 0 auto; /* Zentrierung */
}

/* Anpassung für kleinere Geräte */
@media (max-width: 768px) {
    .news-item header,
    .news-item img,
    .news-item .links,
    .news-item iframe {
        width: 85%; /* Etwas kleinere Breite auf schmalen Bildschirmen */
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    #about {
        width: 85%; /* Die Bilder nehmen 90% der Bildschirmbreite ein */
        margin-left: auto;
        margin-right: auto;
    }

    #links {
        width: 85%; /* Gleiche Breite wie Bilder und Überschriften */
        max-width: 600px;
        margin: 10px auto; /* Zentrierung */
        padding-left: 0; /* Entfernt den Standard-Padding */
    }

    #links p {
        margin-left: 0; /* Entfernt den Standard-Margin des "Related"-Texts */
    }
}

/* Anpassung für Desktop Geräte */
@media (min-width: 769px) {

    .news-item header,
    .news-item .links,
    #links {
        width: 70%; /* Reduzierte Breite für Desktop und Laptop */
        max-width: 600px; /* Maximale Breite beibehalten */
        margin-left: 15%; /* Näher am linken Rand */
        margin-right: auto; /* Zentrierung deaktivieren */
    }

    .news-item img,
    .news-item iframe {
        width: 70%; /* Gleiche Breite wie Text und Links */
        max-width: 600px; /* Maximale Breite beibehalten */
        margin-left: 15%; /* Näher am linken Rand */
        margin-right: auto; /* Zentrierung deaktivieren */
    }

    #about {
        width: 70%; /* Die Bilder nehmen 90% der Bildschirmbreite ein */
        max-width: 1200px; /* Maximale Breite beibehalten */
        margin-left: 2%;
        margin-top: 30px; 
        margin-right: auto;
    }
}
