/* ============================================================
   UTSkalender – Vereinfachtes Stylesheet (Schwarz-Weiß)
   ============================================================ */

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
}

/* --- Header --- */
header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 22px 40px 18px;
}

header h1 {
    font-size: 1.7rem;
    font-weight: normal;
    letter-spacing: 0.04em;
}

header .sub {
    font-size: 0.9rem;
    color: #bbbbbb;
    font-style: italic;
}

header.inline {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

/* --- Abo-Bar --- */
.abo-bar {
    background: #f4f4f4;
    border-bottom: 1px solid #dddddd;
    padding: 10px 40px;
    font-size: 0.85rem;
    color: #444444;
    text-align: center;
}

.abo-bar a {
    color: #1a1a1a;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.abo-bar a:hover {
    color: #555555;
}

/* --- Card --- */
.card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 32px 36px;
}

h2 {
    font-size: 1.15rem;
    font-weight: normal;
    font-family: Georgia, serif;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}

/* --- Buttons --- */
.btn-primary,
button[type="submit"] {
    width: 100%;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: #444444;
}

.logout-btn {
    background: none;
    border: 1px solid #999999;
    color: #444444;
    padding: 5px 14px;
    font-family: Georgia, serif;
    font-size: 0.82rem;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.04em;
    width: auto;
}

.logout-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* --- Meldungsboxen --- */
.fehler-box {
    background: #f4f4f4;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    color: #1a1a1a;
    line-height: 1.7;
}

.erfolg-box {
    background: #f4f4f4;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    padding: 20px 22px;
    text-align: center;
}

.erfolg-box h3 {
    font-size: 1.1rem;
    font-weight: normal;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.erfolg-box p {
    font-size: 0.9rem;
    color: #444444;
    line-height: 1.6;
}

.erfolg-box a {
    color: #1a1a1a;
}

/* --- Formular --- */
.field {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888888;
    margin-bottom: 6px;
}

label .req {
    color: #1a1a1a;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="password"],
textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: Georgia, serif;
    font-size: 0.92rem;
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 3px;
    color: #1a1a1a;
    transition: border-color 0.15s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pflicht-hinweis {
    font-size: 0.78rem;
    color: #888888;
    margin-bottom: 20px;
}

.fehler {
    color: #1a1a1a;
    font-size: 0.85rem;
    margin-top: -8px;
    margin-bottom: 12px;
}

/* --- Login --- */
.login-wrap {
    max-width: 360px;
    margin: 80px auto 0;
}

.login-wrap .card {
    padding: 28px 32px;
}

/* --- Kalender-Wrapper (FullCalendar) --- */
#calendar-wrapper {
    max-width: 1100px;
    margin: 36px auto;
    padding: 0 20px 60px;

    --fc-border-color: #dddddd;
    --fc-button-bg-color: #1a1a1a;
    --fc-button-border-color: #1a1a1a;
    --fc-button-hover-bg-color: #444444;
    --fc-button-hover-border-color: #444444;
    --fc-button-active-bg-color: #000000;
    --fc-today-bg-color: #f0f0f0;
    --fc-event-bg-color: #1a1a1a;
    --fc-event-border-color: #1a1a1a;
    --fc-event-text-color: #ffffff;
    --fc-list-event-hover-bg-color: #f4f4f4;
}

#calendar-wrapper .fc {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 24px;
}

#calendar-wrapper .fc-toolbar-title {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: normal;
    letter-spacing: 0.03em;
    color: #1a1a1a;
}

#calendar-wrapper .fc-button {
    font-family: Georgia, serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    border-radius: 3px;
    padding: 5px 12px;
}

#calendar-wrapper .fc-event {
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.8rem;
    padding: 1px 4px;
}

#calendar-wrapper .fc-daygrid-event:hover {
    opacity: 0.85;
}

#calendar-wrapper .fc-col-header-cell-cushion,
#calendar-wrapper .fc-daygrid-day-number {
    color: #1a1a1a;
    text-decoration: none;
}

#calendar-wrapper .fc-day-today .fc-daygrid-day-number {
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#calendar-wrapper .fc-list-event-title a {
    color: #1a1a1a;
    text-decoration: none;
}

/* --- Modal --- */
#eventModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#eventModal.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    width: 92%;
    max-width: 480px;
    overflow: hidden;
    animation: fadeUp 0.2s ease-out;
}

@keyframes fadeUp {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-head {
    background: #1a1a1a;
    color: #ffffff;
    padding: 18px 22px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.modal-head h2 {
    font-size: 1.15rem;
    font-weight: normal;
    font-family: Georgia, serif;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-bottom: 0;
    color: #ffffff;
}

.modal-close {
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.7;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #ffffff;
    padding: 0;
    width: auto;
}

.modal-close:hover {
    opacity: 1;
    background: none;
}

.modal-body {
    padding: 20px 22px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #1a1a1a;
}

.modal-body .meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.modal-body .meta span {
    display: flex;
    gap: 8px;
}

.modal-body .label {
    color: #888888;
    min-width: 44px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 2px;
}

.modal-desc {
    border-top: 1px solid #dddddd;
    margin-top: 14px;
    padding-top: 14px;
    color: #444444;
    font-size: 0.88rem;
}

.modal-foot {
    padding: 14px 22px;
    background: #f4f4f4;
    border-top: 1px solid #dddddd;
    text-align: right;
}

.modal-foot button {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 7px 18px;
    border-radius: 3px;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    width: auto;
    transition: background 0.15s;
}

.modal-foot button:hover {
    background: #444444;
}

/* --- Nav-Link --- */
.nav-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: underline;
}

/* --- Footer (unauffälliger Link) --- */
footer {
    text-align: center;
    padding: 30px 20px 40px;
}

footer a {
    font-size: 0.75rem;
    color: #aaaaaa;
    text-decoration: none;
}

footer a:hover {
    color: #888888;
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 500px) {
    .card {
        padding: 22px 18px;
    }

    .row-2 {
        grid-template-columns: 1fr;
    }

    header {
        padding: 16px 20px 14px;
    }

    .abo-bar {
        padding: 10px 20px;
    }
}
