/* Allgemeine Stile */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* Login-Seite */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.login-container {
    width: 400px;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 30px;
    color: #2e7d32;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #388e3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #2e7d32;
}

.error {
    color: #d32f2f;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fadbd8;
    border-radius: 4px;
}

/* Dashboard */
body.dashboard-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #2e7d32;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
}

/* Benachrichtigungs-Icon */
.notification-btn {
    color: white;
    font-size: 18px;
    position: relative;
    text-decoration: none;
    padding: 8px;
}

.notification-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background-color: #8bc34a;
    border-radius: 50%;
    border: 2px solid #2e7d32;
}

/* Profilbereich */
.profile-container {
    position: relative;
    background-color: #388e3c;
    border-radius: 30px;
    padding: 5px 15px 5px 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profile-container:hover {
    background-color: #2e7d32;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.welcome-text {
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.profile-container:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Profil Dropdown */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 100;
    display: none;
    margin-top: 10px;
}

.profile-container:hover .profile-dropdown {
    display: block;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    gap: 10px;
    font-size: 14px;
}

.profile-dropdown a:hover {
    background-color: #f5f5f5;
}

.profile-dropdown a i {
    width: 20px;
    text-align: center;
    color: #388e3c;
}

/* Logout Button */
.logout-btn {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #d32f2f;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #b71c1c;
}

.logout-btn i {
    margin-right: 5px;
}

/* Hauptinhalt */
.dashboard-main {
    flex: 1;
    padding: 30px;
    min-height: calc(100vh - 120px - 60px);
}

/* Kacheln */
.tile-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
}

.dashboard-tile i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #4caf50;
}

.dashboard-tile span {
    font-size: 16px;
    font-weight: 600;
}

.dashboard-tile.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none !important;
}

.dashboard-tile.disabled i {
    color: #9e9e9e !important; /* Grau statt grün */
}

.dashboard-tile.disabled span {
    color: #9e9e9e;
}

/* Footer */
.dashboard-footer {
    padding: 15px;
    background-color: #2e7d32;
    color: white;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-left, .footer-right {
    padding: 0 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tile-container {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

@media (max-width: 900px) {
    .tile-container {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
    .hidmob {
        display: none;
    }
}

@media (max-width: 600px) {
    .tile-container {
        grid-template-columns: 1fr;
    }
    .hidmob {
        display: none;
    }
}