html body {
  margin: 0;
  height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #0f0f1a;
    color: white;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 25px 20px;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.5);
    font-size: 28px;
}

/* ===== NAV ===== */
nav {
    background-color: #333;
    color: white;
    border-bottom: 1px solid rgba(76, 175, 80, 0.5);
    text-align: center;
}

.nav-toggle {
    display: none;
    background: #333;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 14px;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav-menu a {
    color: #4CAF50;
    text-decoration: none;
    padding: 8px 20px;
    font-size: 18px;
}

.content-container {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 20px; /* optional */
}

.notice-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertikale Zentrierung */
    align-items: center;     /* horizontale Zentrierung */
    flex: 1 0 auto;          /* nimmt freien Platz */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.notice {
    max-width: 900px;
    width: 90%;
    padding: 25px;
    background-color: rgba(30,30,47,0.95);
    color: white;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
}

.notice-data {
    max-width: 900px;
    margin-top: 40px;
    width: 90%;
    padding: 25px;
    background-color: rgba(30,30,47,0.95);
    color: white;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
}


/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
    display: flex;
    justify-content: center;
}

.drop-btn {
    color: #4CAF50;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    background-color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #4CAF50;
    text-align: center;
    font-size: 18px;
    min-width: 180px;
    z-index: 1;
    border-radius: 0 0 10px 10px;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 20px;
    color: #4CAF50;
    text-decoration: none;
    border-top: 1px solid rgba(76, 175, 80, 0.5);
    white-space: nowrap;
}

/* ===== BUTTONS ===== */
.btn-normal {
    background-color: #004d08;
    color: white;
    border: none;
    padding: 12px 8px;
    cursor: pointer;
}

.btn-close {
    background-color: red;
    color: white;
    border: none;
    padding: 8px 8px;
    cursor: pointer;
}

.btn-edit {
    background-color: orange;
    color: white;
    border: none;
    padding: 8px 8px;
    cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
    color: #4CAF50;
    border-top: 1px solid rgba(76, 175, 80, 0.5);
    background-color: #333;
}

footer h5 {
    text-align: center;
    font-size: 16px;
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex; /* Desktop normal */
        flex-direction: row;
        justify-content: center;
    }
    .nav-toggle {
        display: none; /* Hamburger unsichtbar */
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block; /* Zeigt den Button */
        justify-content: center;
        width: 100%;
        color: #4CAF50;
    }
    .nav-menu {
        display: none; /* wird erst mit .active angezeigt */
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }
    .nav-menu.active {
        display: flex; /* sichtbar wenn Hamburger geklickt */
        border-top: 1px solid rgba(76, 175, 80, 0.5);
    }
    .dropdown-content {
        position: static !important;   /* Absolute Position aufheben */
        left: auto !important;         /* Links-Offset aufheben */
        top: auto !important;          /* Top-Offset aufheben */
        transform: none !important;    /* translateX aufheben */
        width: 100%;                   /* volle Breite */
        display: none;                 /* versteckt, bis aktiv */
        box-shadow: none;
        text-align: center;
        margin: 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px 0;
        margin: 2px 0;
    }

    .dropdown {
        width: 100%;
        display: block;
        text-align: center;
    }

    .drop-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
