body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

a {
    color: #7abaff;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header, footer {
    background-color: #1f1f1f;
    padding: 1rem 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    margin: 0 1rem;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
}

.calc-wrapper {
    max-width: 300px;
    margin: 2rem auto;
    background-color: #1c1c1c;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    overflow: hidden;
}

#calc-display {
    background-color: #111;
    color: #fff;
    text-align: right;
    font-size: 2rem;
    padding: 1rem;
    border-bottom: 1px solid #333;
    min-height: 3rem;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.calc-buttons button {
    padding: 1.2rem;
    font-size: 1.2rem;
    border: none;
    background-color: #2a2a2a;
    color: #fff;
    border-right: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.2s;
}

.calc-buttons button:hover {
    background-color: #444;
}

button.op {
    background-color: #3a3a3a;
}

button.equal {
    background-color: #007acc;
    color: #fff;
    grid-column: span 1;
}

button.wide {
    grid-column: span 2;
}


.hint {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}


select, input, button, textarea {
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-weight: bold;
    animation: fadeOut 1s ease-in-out forwards;
    animation-delay: 4s;
    animation-fill-mode: forwards;
    opacity: 1;
}

.stats-controls {
    text-align: right;
    margin-bottom: 1rem;
}

.refresh-btn {
    background-color: #007acc;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s, transform 0.3s;
}

.refresh-btn:hover {
    background-color: #005f99;
    transform: scale(1.05);
}

.stats-card {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.stats-table th, .stats-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.stats-table th {
    background-color: #333;
    color: #fff;
    font-weight: 600;
}

.stats-table td {
    background-color: #1c1c1c;
    color: #ddd;
}

.stats-table tbody tr:hover {
    background-color: #2a2a2a;
}

.icon-cell {
    width: 40px;
    text-align: center;
}

.icon-cell i {
    font-size: 1.2rem;
    color: #007acc;
}

.no-click {
    color: #ff4d4d;
    font-style: italic;
}

#clock {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #2a2a2a;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

#clock i {
    color: #00bcd4;
}

#timePart, #datePart {
    font-size: 1rem;
    color: #ddd;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-card {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.update-card:hover {
    background-color: #333;
}

.update-card h2 {
    color: #00bcd4;
    margin-bottom: 0.5rem;
}

.update-card h3 {
    color: #ddd;
    margin-bottom: 0.25rem;
}

.update-card p {
    color: #aaa;
}

.admin-controls {
    margin-top: 0.5rem;
}

.btn-add, .btn-edit, .btn-delete {
    background-color: #007acc;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: background-color 0.3s;
}

.btn-add:hover, .btn-edit:hover, .btn-delete:hover {
    background-color: #005f99;
}


----- NEU ---

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1c1c1c;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.main-nav a {
    padding: 0.5rem 1rem;
    color: #ddd;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
}

.main-nav .dropdown {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #007acc;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropbtn:hover {
    background-color: #005f99;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.5rem 1rem;
    display: block;
    color: #ddd;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.language-form, .timezone-form {
    display: inline-block;
}

#clock {
    background-color: #2a2a2a;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-primary {
    background-color: #007acc;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.admin-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-controls a {
    background-color: #007acc;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-controls a:hover {
    background-color: #005f99;
}

.btn-add {
    background-color: #28a745;
}

.btn-edit {
    background-color: #ffc107;
}

.btn-delete {
    background-color: #dc3545;
}



.alert.success { background-color: #2e7d32; color: #d4ffd4; }
.alert.error   { background-color: #b71c1c; color: #ffd6d6; }
.alert.warning { background-color: #f57f17; color: #fff2d0; }

@keyframes fadeOut {
    to { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }
}


@media (max-width: 768px) {
    header, footer {
        flex-direction: column;
        text-align: center;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .container {
        padding: 1rem;
    }

    input, textarea, select, button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .entry {
        display: block;
        margin-bottom: 1rem;
    }

    table {
        font-size: 0.9rem;
        overflow-x: auto;
        display: block;
    }

    th, td {
        white-space: nowrap;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .logo {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1c1c1c;
        padding: 1rem;
        position: absolute;
        top: 70px;
        left: 0;
        z-index: 1000;
    }

    .main-nav.active {
        display: flex;
    }

    .burger-menu {
        display: flex;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
    }

    .burger-icon {
        font-size: 1.5rem;
        color: #fff;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-content {
        position: relative;
        background-color: #1c1c1c;
        width: 100%;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .update-card {
        padding: 0.8rem;
        flex-direction: column;
    }

    .update-card h2 {
        font-size: 1.1rem;
    }

    .update-card h3 {
        font-size: 1rem;
    }

    .update-card p {
        font-size: 0.85rem;
    }

    .admin-controls {
        flex-direction: column;
        gap: 0.3rem;
    }

    .admin-controls a {
        width: 100%;
        padding: 0.5rem;
    }

    .pagination {
        overflow-x: scroll;
        scrollbar-width: thin;
        scrollbar-color: #007acc #2a2a2a;
    }

    .pagination a {
        flex: 0 0 auto;
        padding: 0.5rem 0.8rem;
    }
}

