body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: #ffffff;
    background-color: #121212;
    line-height: 1.5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Optional Background Image */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* Titel wirklich zentriert */
.header-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    pointer-events: none;
}
/*h2 Überschrift*/
.login-subtitle {
    margin-top: 100px;
    text-align: center;
    font-size: 20px;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

/* Form Container */
.form-container {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    margin: 10px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #aaa;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 1rem;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #777;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    background-color: #333;
    box-shadow: 0 0 0 2px #007bff44;
}

/* Button */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #0056b3, #003f7f);
    transform: translateY(-2px);
}

/* Error & Flash Messages */
.error-box {
    color: #ff4d4d;
    font-weight: 600;
    margin-bottom: 12px;
}

.flash-messages p {
    color: #ffa500;
    margin: 0 0 10px;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #ccc;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding: 10px 38px 10px 12px; /* Platz für Auge rechts */
    border: none;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.password-wrapper input:focus {
    outline: none;
    background-color: #333;
    box-shadow: 0 0 0 2px #007bff44;
}

.password-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #fff;
    transition: color 0.2s ease;
}

.password-wrapper .toggle-password:hover {
    color: #ccc;
}

.password-wrapper svg {
    display: block;
}

.input-with-suffix {
    position: relative;
    display: inline-block;
    width: 400px;   /* kannst du anpassen */
}

.input-with-suffix input {
    width: 100%;
    padding-right: 120px; /* Platz für das Suffix */
    box-sizing: border-box;
}

.input-with-suffix::after {
    content: ".sitetracker.de";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    font-size: 16px;
}

.header-container {
    position: absolute;
    width: calc(100% - 20px);
    top: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
}

.header-title {
    font-size: 30px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    flex-grow: 1;
    text-align: center;
    z-index: 1;
}

.header-logo, .header-container img {
    position: relative;
    top: 0;
    right: 0px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 1s ease-in-out;
    z-index: -1;
    animation: logo-header-img-slide-from-top 1s cubic-bezier(0, 0.59, 0.36, 1);
}

@keyframes logo-header-img-slide-from-top {
    0%{
        transform: translateY(-50px);
        opacity: 0;
    }
}

@media screen and (max-width: 780px) {
    .header-logo, .header-container img{
        opacity: 0.5;
    }

    .header-title{
        position: absolute;
        width: 100%;
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media screen and (max-width: 500px) {
    .header-logo, .header-container img{
        opacity: 0;
        transform: translateY(-50px);
    }
}

/* Overlay */
.projectsListingbg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;               /* volle Breite */
    height: 100vh;              /* volle Höhe */
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;    /* horizontal zentrieren */
    align-items: center;        /* vertikal zentrieren */
    z-index: 1000;
    backdrop-filter: blur(5px);
}

/* Projektliste Box */
.projectsListing {
    display: flex;
    flex-direction: column;
    align-items: center;        /* Inhalte zentrieren */
    justify-content: flex-start; /* optional: Inhalte oben anfangen */
    width: 65%;
    max-width: 500px;
    min-width: 250px;
    max-height: 75%;            /* Scrollbar bei vielen Projekten */
    background-color: rgba(31,31,31,0.9);
    border-radius: 20px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    text-align: center;
    margin: 0 auto;             /* stellt sicher, dass Block mittig bleibt */
}


/* Projekt-Karten */
.projectsListing .project {
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 12px;
    margin: 8px 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: space-between;
}

.projectsListing .project:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.projectsListing .project:active {
    border: 1px solid white;
}

.projectsListing .ghostProject {
    background: linear-gradient(
        90deg,
        rgb(44, 44, 44) 0%,
        rgb(44, 44, 44) 40%,
        white 50%,
        rgb(44, 44, 44) 60%,
        rgb(44, 44, 44) 100%
    );
    background-size: 300% 100%;
    background-position: 0% 0%;
    border-radius: 5px;
    padding: 7px 5px 10px 5px;
    margin-top: 5px;
    cursor: pointer;
}

.projectsListing .ghostProject .ghosttitle{
    color: transparent;
    font-size: 1.5em;
    border-radius: 5px;
    backdrop-filter: blur(3px);
    background-image: linear-gradient(
        90deg,
        rgb(44,44,44) 0%,
        rgb(44,44,44) 40%,
        rgb(255,255,255) 50%,
        rgb(44,44,44) 60%,
        rgb(44,44,44) 100%
    );
    background-size: 300% 100%;
    background-position: 0% 0%;
    margin-left: 5px;
}

.projectsListing .ghostProject .ghostid{
    color: transparent;
    font-size: 1.5em;
    border-radius: 5px;
    backdrop-filter: blur(3px);
    background-image: linear-gradient(
        90deg,
        rgb(44,44,44) 0%,
        rgb(44,44,44) 40%,
        rgb(255,255,255) 50%,
        rgb(44,44,44) 60%,
        rgb(44,44,44) 100%
    );
    background-size: 300% 100%;
    background-position: 0% 0%;
}

.projectsListing .project .id{
    font-size: 0.75em;
}

 .project .name{
    font-size: 1.5em;
    margin-left: 5px;
}

.project .information{
    font-size: 0.5em;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

/* Logout-Button */
button.logout {
    margin-top: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgba(255,0,0,0.5);
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-start;  /* Button links in der Box */
}


.projectsListing h1 {
    text-align: center;
    margin: 10px 0 20px 0;
    width: 100%;
}

button.logout img{
    filter: invert(1);
    align-items: center;
    margin-right: 5px;
    transform: translateY(3px);
}