@charset "utf-8";

/* Allgemeine Einstellungen */
* {
    box-sizing: border-box;
}

.index{
    margin-top: 8rem;
}

body{
    background-image: url('images/Hintergrund.PNG');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

html, body {
    font-size: 16px;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #ccc;
}

a:link, a:visited {
    text-decoration: none;
    color: #fff;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #13131F;
    z-index: 999;
    border-bottom: 1px solid #333;
}

.logo {
    max-width: 7rem;
    height: auto;
    padding-left: 3%;
}

.nav {
    position: absolute;
    top: -9999px;
}

input#responsive-nav {
    display: none;
}

input#responsive-nav:checked ~ nav {
    position: relative;
    top: 0;
}

.nav-main {
    margin: 0;
    padding: 1% 3%;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-main li {
    margin-bottom: 0.5rem;
}

.nav-main a {
    text-transform: uppercase;
    color: #fff;
    font-size: 0.8rem;
}

.nav-main a.active {
    color: #54EEFF;
    border-bottom: 2px solid #00bcd4;
    font-weight: bold;
}

.nav-main a:hover {
    color: #0097a7;
    border-bottom: 2px solid #0097a7;
}

label.responsive-nav-label {
    display: block;
    padding: 0.7em;
    background-color: #13131F;
    cursor: pointer;
    color: #fff;
    width: 100%;
}

label.responsive-nav-label span {
    margin-right: 1em;
}


/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    padding: 3%;
    background-color: #13131F;
    color: #fff;
}

.footer a {
    color: #54EEFF;
    text-decoration: none;
}

/* Wrapper und Main Bereich */
.wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mainstandrad {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Login-Container */
.container {
    background-color: rgba(19, 19, 31, 0.9); 
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    width: 100% !important;
    max-width: 1200px;
    margin-bottom: 3rem;
}

.login, .register {
    max-width: 500px;
    margin-bottom: 5rem;
}

.newslist {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-content: center !important;
}

.news {
    max-width: 500px;
    margin-bottom: 3rem;
}

.delete-button {
    color: #fff !important;
    font-size: 2rem;
    font-weight: bold;
    width: 2.5rem;
    height: 2.5rem;
}

.itemHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.imageContainer {
    display: flex;
    width: 100%;
    justify-content: center !important;
}

.news-image {
    width: 50%;
}

.pageheader {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;    
    justify-content: space-between;
}

.add-button {
    background-color: #00bcd4;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}
.add-button:hover {
    background-color: #0097a7;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #13131F;
    padding: 20px;
    margin: 10% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    color: #fff;
}

.close {
    background-color: #00bcd4;
    color: #13131F;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    height: 2rem;
    width: 2rem;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formular-Elemente */
.container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.container h1 {
    margin-bottom: 2rem;
}

.container input, .container textarea {
    padding: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border: 1px solid #00bcd4;
    border-radius: 8px;
    background-color: #222;
    color: #fff;
    transition: border-color 0.3s ease;
}

.container textarea {
    height: 8rem;
}

.container input:focus {
    border-color: #44D8E8;
    outline: none;
}

.container button {
    background-color: #00bcd4;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.container button:hover {
    background-color: #0097a7;
}

.register-link {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.register-link a {
    color: #54EEFF !important;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #0097a7 !important;
}

/* Fehlermeldung Styling */
.error-message {
    color: #FF4D4D;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Mobile Anpassungen */
@media screen and (max-width: 960px) {
    .main {
        padding-top: 4rem;
    }

    .container {
        padding: 1.5rem;
        max-width: 90%;
    }

    .container input,
    .container button {
        font-size: 0.9rem;
    }
}

/* Desktop-Anpassungen */
@media screen and (min-width: 960px) {
    label.responsive-nav-label {
        display: none;
    }

    .nav {
        position: static;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15%;
    }

    .nav-main {
        flex-direction: row;
        padding: 0;
    }

    .nav-main li {
        padding: 0 1rem;
        margin-bottom: 0;
    }

    .footer {
        flex-direction: row;
        justify-content: space-around;
    }
}
