* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    background-color: #003000;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 48, 0, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid #008C74;
}

h1 {
    text-align: center;
    color: #FFFF66;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Monatsnavigation */
.month-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.nav-btn {
    background: #008C74;
    color: #FFFF66;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 2px #dfdfdf;
}

.nav-btn:hover {
    background: #006666;
    transform: scale(1.05);
    box-shadow: 2px 2px 6px #FFFF66;
}

#monthDisplay {
    font-size: 1.3em;
    font-weight: bold;
    color: #FFFF66;
    min-width: 200px;
    text-align: center;
}

/* Kalender Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
    align-items: start;
}

.weekday-header {
    background: #008C74;
    color: #FFFF66;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}

.calendar-day {
    background: #cb8;
    min-height: 100px;
    max-height: 130px;
    padding: 6px;
    border-radius: 8px;
    border: 2px solid #008C74;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.calendar-day:hover {
    border-color: #FFFF66;
    box-shadow: 0 4px 12px rgba(255, 255, 102, 0.4);
    transform: translateY(-2px);
}

.calendar-day.empty {
    background: rgba(203, 184, 136, 0.3);
    border: 1px solid #006666;
}

/* Samstag */
.calendar-day.saturday {
    background: #d4c8a8;
}

/* Sonntag und Feiertage */
.calendar-day.sunday,
.calendar-day.holiday {
    background: #e8dcc0;
    border-color: #FF6666;
}

/* Heutiger Tag */
.calendar-day.today {
    border: 3px solid #FFFF66;
    box-shadow: 0 0 10px rgba(255, 255, 102, 0.8);
}

.calendar-day.today .day-number {
    color: #FF0000;
    font-weight: bold;
    font-size: 1.2em;
}

.day-number {
    font-weight: bold;
    color: #003000;
    margin-bottom: 4px;
    font-size: 1em;
}

.smiley {
    font-size: 1.3em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.smiley:hover {
    transform: scale(1.2) rotate(15deg);
}

/* Smiley Container unten links */
.smiley-container {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 2px;
}

/* Neu Button neben Smiley */
.neu-btn {
    background: #008C74;
    color: #FFFF66;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.neu-btn:hover {
    background: #006666;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 102, 0.4);
}

.termin-item {
    background: #008C74;
    color: #FFFF66;
    padding: 4px 6px;
    margin-bottom: 3px;
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.termin-item:hover {
    background: #006666;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 102, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 48, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #cb8;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #008C74;
    animation: slideIn 0.3s ease;
    color: #000000;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close, .close-termin, .close-view {
    color: #003000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover, .close-termin:hover, .close-view:hover {
    color: #FF0000;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #000000;
}

/* Formular Styles */
.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="time"],
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px 0;
    border: 2px solid #008C74;
    border-radius: 8px;
    font-size: 1em;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    background: white;
    transition: border-color 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #006666;
    box-shadow: 0 0 5px rgba(0, 140, 116, 0.5);
}

.modal-content label {
    font-weight: bold;
    color: #000000;
    display: block;
    margin-top: 10px;
}

.modal-content textarea {
    resize: vertical;
}

.submit-btn {
    background: #008C74;
    color: #FFFF66;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
    background: #006666;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 102, 0.4);
}

.error-message {
    color: #FF0000;
    margin-top: 10px;
    font-weight: bold;
    background: rgba(255, 255, 102, 0.2);
    padding: 10px;
    border-radius: 5px;
}

/* Action Buttons */
.action-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.edit-btn {
    background: #008C74;
    color: #FFFF66;
}

.edit-btn:hover {
    background: #006666;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 255, 102, 0.3);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

/* Termin Details View */
#terminViewContent h2 {
    color: #000000;
    margin-bottom: 20px;
}

#terminViewContent p {
    margin: 10px 0;
    line-height: 1.6;
    color: #000000;
}

#terminViewContent strong {
    color: #000000;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    .calendar-grid {
        gap: 5px;
    }

    .calendar-day {
        min-height: 120px;
        padding: 5px;
    }

    .weekday-header {
        padding: 10px 5px;
        font-size: 0.9em;
    }

    .day-number {
        font-size: 0.9em;
    }

    .termin-item {
        font-size: 0.75em;
        padding: 5px;
    }

    .smiley {
        font-size: 1.3em;
    }

    .neu-btn {
        font-size: 0.7em;
        padding: 4px 8px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .month-navigation {
        gap: 15px;
    }

    #monthDisplay {
        font-size: 1em;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 100px;
    }

    .weekday-header {
        padding: 8px 2px;
        font-size: 0.8em;
    }

    .termin-item {
        font-size: 0.7em;
    }
}