/* Allgemeine Stile */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: lighter;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e1e1e, #3a3a3a);
    height: 100%;
    display: flex;
    flex-direction: column;
}

h1 {
    margin: 10px;
    font-weight: lighter;
}

p, h2{
    color: white;
}

/* Navbar */
.navbar {
    background: linear-gradient(to right, #ffffff, #333333);
    overflow: hidden;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.navbar-brand {
    color: white;
    text-decoration: none;
    font-size: 24px;
    order: 1;
}

.navbar-links {
    order: 2;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    display: inline-block;
}

.navbar-links a:hover {
    background-color: #ddd;
    color: black;
}

.navbar-links .active {
    background-color: transparent;
    color: white;
}

/* News Header */
.news-header {
    text-align: center;
    background: linear-gradient(90deg, rgba(85, 87, 83, 0.8), rgba(85, 87, 83, 0.8));
    color: white;
    padding: 50px 20px;
}

.news-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.news-header p {
    font-size: 1.2rem;
    color: #ccc;
}

/* News Section */
.news-section {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    height: auto;
}

.news-item {
    background: linear-gradient(135deg, #1e1e1e, #3a3a3a);
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    color: rgb(51, 51, 51);
    width: 300px;
    height: 45vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    
    /* Flexbox für gleichmäßige Höhen */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 1rem;
    color: white;
    flex-grow: 1; /* Lässt den Textbereich flexibel wachsen */
}

.news-item .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    align-self: center; /* Sorgt dafür, dass der Button immer unten bleibt */
}

.news-item .btn:hover {
    background-color: #367e3a;
}

.news-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    grid-area: footer;
    text-align: center;
    margin-top: 1vh;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    bottom: 0%;
} 

/* Responsive Design */
@media screen and (max-width: 600px) {
    .news-item {
        width: 100%;
    }
}

/* Allgemeine Stile */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: lighter;
    margin: 0;
    padding: 0;
    background-color: white;
}

/* Popup-Fenster Stile */
.popup {
    display: none;
    position: fixed;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh; /* Begrenzte Höhe */
    background: linear-gradient(100deg, rgba(85, 87, 83, 1), rgba(85, 87, 83, 1));
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto; /* Falls zu viel Text kommt, kann gescrollt werden */
}

.popup-content {
    position: relative;
}

.popup h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: white; /* Überschrift auf Schwarz setzen */
}


.popup p {
    font-size: 1.2rem;
    color: white;
}

/* Schließen-Button */
.close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}

.close:hover {
    color: red;
}

/* Popup-Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Aktualisierte Button-Farbe */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}
