footer {
	background: #0577bc;
	color: white;
	padding: 10px 20px;
	text-align: center;
	border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-top: 40px;
}

header {
	padding: 10px 20px;
	border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: #0577bc;
}

.sidebar {
	padding: 10px 20px;
	border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    padding-bottom: 10px;
    text-align: center;
}

label {
    display: block;
    margin-top: 10px;
    text-align: left;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
}

.error {
    color: #e74c3c;
}


/* =====================================
   WOCHENKALENDER
   ===================================== */

.kalender-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}


.wochenkalender {
    width: 100%;
    min-width: 900px;

    font-family: Arial, sans-serif;

    background: white;
    border: 1px solid #ddd;
}


/* =====================================
   KOPFZEILE
   ===================================== */

.kalender-kopf {
    display: grid;

    grid-template-columns:
        80px
        repeat(5, minmax(160px, 1fr));

    background: #f5f5f5;

    border-bottom: 1px solid #ccc;

    position: sticky;
    top: 0;

    z-index: 20;
}


.zeit-kopf {
    position: sticky;
    left: 0;

    background: #f5f5f5;

    z-index: 30;

    border-right: 1px solid #ddd;
}


.tag-kopf {
    text-align: center;

    font-weight: bold;
    font-size: 18px;

    padding: 15px 5px;

    border-right: 1px solid #ddd;
}


/* =====================================
   KALENDERINHALT
   ===================================== */

.kalender-inhalt {
    display: grid;

    grid-template-columns:
        80px
        repeat(5, minmax(160px, 1fr));
}


/* =====================================
   ZEITACHSE
   ===================================== */

.zeitachse {
    position: sticky;
    left: 0;

    background: white;

    z-index: 15;

    border-right: 1px solid #ddd;
}


.zeit {
    height: 60px;

    box-sizing: border-box;

    text-align: right;

    padding-right: 10px;
    padding-top: 2px;

    color: #666;

    font-size: 13px;
}


/* =====================================
   TAGESSPALTEN
   07:00 - 00:00
   17 Stunden × 60px = 1020px
   ===================================== */

.tag-spalte {
    position: relative;

    height: 1020px;

    min-width: 160px;

    border-left: 1px solid #ddd;
    border-right: 1px solid #eee;
}


/* =====================================
   STUNDENLINIEN
   ===================================== */

.stundenlinie {
    height: 60px;

    box-sizing: border-box;

    border-top: 1px solid #e5e5e5;
}


/* =====================================
   TERMINBLOCK
   ===================================== */

.termin-block {
    position: absolute;

    left: 4px;
    right: 4px;

    box-sizing: border-box;

    padding: 6px 8px;

    background: #e3f2fd;

    border-left: 5px solid #2196f3;
    border-radius: 6px;

    overflow: hidden;

    cursor: pointer;

    font-size: 13px;

    z-index: 5;
}


.termin-block:hover {
    filter: brightness(0.97);
}


.termin-titel {
    display: block;

    font-size: 14px;

    margin-bottom: 3px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.termin-zeit {
    font-size: 12px;

    font-weight: bold;

    margin-bottom: 3px;

    white-space: nowrap;
}


/* Falls termin-info noch irgendwo verwendet wird */

.termin-info {
    font-size: 12px;
    color: #555;
}


/* =====================================
   TERMIN MODAL
   ===================================== */

.termin-modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: 1000;

    align-items: center;
    justify-content: center;
}


.termin-modal-inhalt {
    position: relative;

    width: 90%;
    max-width: 450px;

    padding: 25px;

    background: white;

    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}


.modal-schliessen {
    position: absolute;

    top: 10px;
    right: 15px;

    border: none;
    background: none;

    font-size: 26px;

    cursor: pointer;
}


.termin-modal h2 {
    margin-top: 0;
}


.termin-modal p {
    margin: 10px 0;
}


/* =====================================
   TABLET
   ===================================== */

@media (max-width: 900px) {

    .wochenkalender {
        min-width: 850px;
    }


    .kalender-kopf,
    .kalender-inhalt {
        grid-template-columns:
            65px
            repeat(5, 155px);
    }


    .zeit {
        font-size: 12px;
        padding-right: 7px;
    }


    .tag-kopf {
        font-size: 15px;
        padding: 12px 5px;
    }

}


/* =====================================
   SMARTPHONE
   ===================================== */

@media (max-width: 600px) {

    .wochenkalender {
        min-width: 760px;
    }


    .kalender-kopf,
    .kalender-inhalt {
        grid-template-columns:
            55px
            repeat(5, 140px);
    }


    .tag-kopf {
        font-size: 14px;
        padding: 10px 4px;
    }


    .zeit {
        font-size: 11px;
        padding-right: 5px;
    }


    .termin-block {
        left: 3px;
        right: 3px;

        padding: 5px 6px;

        border-left-width: 4px;

        border-radius: 5px;
    }


    .termin-titel {
        font-size: 12px;
    }


    .termin-zeit {
        font-size: 11px;
    }


    .termin-modal-inhalt {
        width: calc(100% - 30px);

        max-width: none;

        padding: 20px;

        box-sizing: border-box;
    }

}