/* ==================================================
   BUTTONS UND KURSHEADER
================================================== */

#ebz-plan-course {
	margin-bottom: 20px;
}

.ebz-plan-course-list button,
.ebz-plan-week-list button,
button.ebz-plan-reset-button {
	cursor: pointer;
	background-color: #9ebdf6;
	font-style: normal;
	text-decoration-line: none;
	text-transform: uppercase;
	font-size: 13px !important;
	font-weight: bold;
	letter-spacing: 0.6px !important;
	border: none;

	background-image: linear-gradient(
		90deg,
		rgba(214, 214, 214, 0.28) 0%,
		rgba(214, 214, 214, 0.28) 100%
	) !important;

	background-size: 0% 100% !important;
	background-repeat: no-repeat !important;
	background-position: left center !important;

	transition:
		background-size 0.6s ease,
		color 0.4s ease,
		border-color 0.4s ease !important;

	padding: 20px !important;
	margin-right: 10px;
	margin-bottom: 10px;

	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;

	hyphens: auto;
	-webkit-hyphens: auto;

	max-width: 100%;
	min-width: 107px;
}

.ebz-plan-course-list button {
	min-width: 222px !important;
}

button.ebz-plan-reset-button {
	background-color: #6bcd6b;
	margin-top: 20px;
}

.ebz-plan-week-list button:hover,
.ebz-plan-course-list button:hover,
button.ebz-plan-reset-button:hover {
	background-size: 100% 100% !important;
}

.ebz-plan-course-list button.is-active,
.ebz-plan-week-list button.is-active {
	background-color: darkblue;
	color: #fff;
}


/* ==========================================================
   EBZ STUNDENPLAN
========================================================== */


/* ==========================================================
   BASIS
========================================================== */

#ebz-plan-app {
	width: 100%;
}

#ebz-plan-status {
	margin-bottom: 1rem;
	color: #121B35;
}


/* ==========================================================
   STUNDENPLAN HEADER
========================================================== */

.ebz-plan-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;

	margin-top: 2rem;
	margin-bottom: 1.5rem;
}

.ebz-plan-header-main {
	min-width: 0;
}

.ebz-plan-week-title {
	margin: 0 0 1.5rem 0;

	color: #0E4194;

	font-size: 1.45rem;
	font-weight: 500;
	line-height: 1.3;

	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ebz-plan-course-title {
	margin: 0;

	color: #121B35;

	font-size: clamp(
		1.625rem,
		1.5625rem + 0.277778vw,
		1.875rem
	);

	font-weight: 500;
	padding: 0;
}

.ebz-plan-header-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.4rem;

	flex-shrink: 0;
}

.ebz-plan-created {
	margin: 0;

	color: #444d59;

	font-size: 0.9rem;
	line-height: 1.4;
}

.ebz-plan-pdf {
	color: #0E4194;

	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.4;

	text-decoration: none;
}

.ebz-plan-pdf:hover,
.ebz-plan-pdf:focus-visible {
	text-decoration: underline;
}


/* ==========================================================
   DESKTOP-TABELLE
========================================================== */

.ebz-plan-table-wrap {
	display: block;

	width: 100%;
	margin-top: 2rem;

	overflow: visible;
}

.ebz-plan-table {
	width: 100%;

	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;

	color: #121B35;

	border: 1px solid #DCE3EC;
}


/* ==========================================================
   TABELLENKOPF
========================================================== */

.ebz-plan-table thead th {
	padding: 1rem 1.1rem;

	background: #9EBDF6;
	color: #121B35;

	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;

	text-align: left;
	vertical-align: middle;

	border-right: 1px solid rgba(14, 65, 148, 0.12);
	border-bottom: 3px solid #0E4194;
}

.ebz-plan-table thead th:last-child {
	border-right: 0;
}


/* ==========================================================
   ZEITSPALTE
========================================================== */

.ebz-plan-time-head,
.ebz-plan-table tbody th.ebz-plan-time {
	width: 132px;
}

.ebz-plan-time-head {
	background: #0E4194 !important;
	color: #FFFFFF !important;
}

.ebz-plan-table tbody th.ebz-plan-time {
	padding: 0.9rem 1rem;

	background: #F3F6FA;
	color: #121B35;

	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.3;

	text-align: left;
	vertical-align: top;

	white-space: nowrap;

	border-right: 1px solid #DCE3EC;
	border-bottom: 1px solid #E8EDF3;
}


/* ==========================================================
   NORMALE TABELLENZELLEN
========================================================== */

.ebz-plan-cell {
	padding: 0.28rem;

	background: #FFFFFF;

	vertical-align: top;

	border-right: 1px solid #E8EDF3;
	border-bottom: 1px solid #E8EDF3;
}

.ebz-plan-cell:last-child {
	border-right: 0;
}

.ebz-plan-cell:empty {
	background: #FAFBFD;
}


/* ==========================================================
   UNTERRICHTSBLOCK DESKTOP
========================================================== */

.ebz-plan-lesson {
	min-height: 64px;
	padding: 0.65rem 0.75rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ebz-plan-lesson p {
	margin: 0;
	padding: 0;
}


/* Fach */

.ebz-plan-subject {
	margin-bottom: 0.18rem !important;

	color: #121B35;

	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
}


/* Dozent */

.ebz-plan-teacher {
	color: #28364F;

	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.35;
}


/* Raum */

.ebz-plan-room {
	margin-top: 0.12rem !important;

	color: #344e5d;

	font-size: 0.76rem;
	font-weight: 400;
	line-height: 1.35;
}


/* ==========================================================
   LETZTE TABELLENZEILE
========================================================== */

.ebz-plan-table tbody tr:last-child th,
.ebz-plan-table tbody tr:last-child td {
	border-bottom: 0;
}


/* ==========================================================
   MOBILE ANSICHT
   STANDARDMÄSSIG AUSBLENDEN
========================================================== */

.ebz-plan-mobile {
	display: none;
}


/* ==========================================================
   MOBILE TAGESANSICHT
========================================================== */

.ebz-plan-mobile-day {
	margin: 0 0 2rem 0;
}

.ebz-plan-mobile-day:last-child {
	margin-bottom: 0;
}

.ebz-plan-mobile-day-title {
    padding: 0.85rem 1rem;

    background: #0E4194;
    color: #fff;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.ebz-plan-mobile-items {
	border-right: 1px solid #DCE3EC;
	border-bottom: 1px solid #DCE3EC;
	border-left: 1px solid #DCE3EC;
}

.ebz-plan-mobile-entry {
	display: grid;

	grid-template-columns: 125px minmax(0, 1fr);

	border-bottom: 1px solid #E8EDF3;
}

.ebz-plan-mobile-entry:last-child {
	border-bottom: 0;
}


/* Zeit */

.ebz-plan-mobile-time {
	margin: 0;

	padding: 1rem;

	background: #F3F6FA;
	color: #121B35;

	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.35;

	white-space: nowrap;
}


/* Unterricht */

.ebz-plan-mobile-lesson {
	min-width: 0;

	padding: 0.85rem 1rem;

	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ebz-plan-mobile-lesson p {
	margin: 0;
	padding: 0;
}


/* Fach */

.ebz-plan-mobile-lesson .ebz-plan-subject {
	margin-bottom: 0.2rem !important;

	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.25;
}


/* Dozent */

.ebz-plan-mobile-lesson .ebz-plan-teacher {
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1.35;
}


/* Raum */

.ebz-plan-mobile-lesson .ebz-plan-room {
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.35;
}


/* ==========================================================
   KEINE TERMINE
========================================================== */

.ebz-plan-empty {
	margin: 2rem 0 0 0;

	padding: 1.25rem 1.4rem;

	background: #F3F6FA;
	color: #121B35;

	font-size: 0.95rem;
	line-height: 1.5;
}


/* ==========================================================
   UMSCHALTUNG DESKTOP -> MOBILE
========================================================== */

@media (max-width: 980px) {

    .ebz-plan-table-wrap {
        display: none;
    }

    .ebz-plan-mobile {
        display: block;
    }

    .ebz-plan-header {
        align-items: flex-start;
    }

    .ebz-plan-mobile-day {
        margin-bottom: 1.25rem;
    }

    .ebz-plan-mobile-entry {
        grid-template-columns: 95px minmax(0, 1fr);
    }

    .ebz-plan-mobile-time {
        padding: 0.85rem 0.7rem;

        font-size: 0.8rem;
        line-height: 1.3;
    }

    .ebz-plan-mobile-lesson {
        padding: 0.8rem 0.9rem;
    }

    .ebz-plan-mobile-lesson .ebz-plan-subject {
        font-size: 0.96rem;
    }

    .ebz-plan-mobile-lesson .ebz-plan-teacher {
        font-size: 0.86rem;
    }

    .ebz-plan-mobile-lesson .ebz-plan-room {
        font-size: 0.78rem;
    }

}


/* ==========================================================
   KLEINERE SMARTPHONES
========================================================== */

@media (max-width: 600px) {

	.ebz-plan-header {
		flex-direction: column;
		align-items: flex-start;

		gap: 0.8rem;
	}

	.ebz-plan-header-meta {
		align-items: flex-start;
	}


	.ebz-plan-mobile-entry {
		grid-template-columns: 105px minmax(0, 1fr);
	}

	.ebz-plan-mobile-time {
		padding: 0.85rem 0.75rem;

		font-size: 0.78rem;
	}

	.ebz-plan-mobile-lesson {
		padding: 0.8rem;
	}

	.ebz-plan-mobile-lesson .ebz-plan-subject {
		font-size: 0.92rem;
	}

	.ebz-plan-mobile-lesson .ebz-plan-teacher {
		font-size: 0.82rem;
	}

	.ebz-plan-mobile-lesson .ebz-plan-room {
		font-size: 0.76rem;
	}

}


/* ==========================================================
   SEHR KLEINE SMARTPHONES
========================================================== */

@media (max-width: 420px) {

	.ebz-plan-mobile-entry {
		grid-template-columns: 92px minmax(0, 1fr);
	}

	.ebz-plan-mobile-time {
		padding: 0.75rem 0.55rem;

		font-size: 0.74rem;
	}

	.ebz-plan-mobile-lesson {
		padding: 0.75rem;
	}

	.ebz-plan-mobile-day-title {
		padding: 0.8rem;

		font-size: 0.92rem;
	}

	.ebz-plan-mobile-lesson .ebz-plan-subject {
		font-size: 0.9rem;
	}

	.ebz-plan-mobile-lesson .ebz-plan-teacher {
		font-size: 0.8rem;
	}

	.ebz-plan-mobile-lesson .ebz-plan-room {
		font-size: 0.74rem;
	}

}