body {
	font-size: 14px;
	color: #000000;
	font-family: "Verdana", "Tahoma", "Arial", "MS Sans Serif";
}

.uni-white {
	color: white;
}

.uni-red {
	color: #d20537;
}

.uni-darkmint {
	color: #006e6e;
}

.uni-yellow {
	color: #ffeb82;
}

.uni-mint {
	color: #a5d7d2;
}

.uni-grey {
	color: #bec3c8;
}

.uni-brightred {
	color: #eb829b;
}

.uni-darkgrey {
	color: #2d373c;
}

.uni-brightyellow {
	color: #fffab4;
}

.uni-mint2 {
	color: #1ea5a5;
}

.uni-brightgrey {
	color: #eaebec;
}

.uni-brightmint {
	color: #d1eae6;
}

.uni-darkyellow {
	color: #f5c81e;
}

.uni-bg-white {
	background-color: white;
}

.uni-bg-red {
	background-color: #d20537;
}

.uni-bg-darkmint {
	background-color: #006e6e;
}

.uni-bg-yellow {
	background-color: #ffeb82;
}

.uni-bg-mint {
	background-color: #a5d7d2;
}

.uni-bg-grey {
	background-color: #bec3c8;
}

.uni-bg-brightred {
	background-color: #eb829b;
}

.uni-bg-darkgrey {
	background-color: #2d373c;
}

.uni-bg-brightyellow {
	background-color: #fffab4;
}

.uni-bg-mint2 {
	background-color: #1ea5a5;
}

.uni-bg-brightgrey {
	background-color: #eaebec;
}

.uni-bg-brightmint {
	background-color: #d1eae6;
}

.uni-bg-darkyellow {
	background-color: #f5c81e;
}

.uni-bg-darkyellow {
	background-color: rgba(210, 5, 56, 0.938)
}

a.uni-red:hover {
	color: #d20537;
}

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: auto;
	height: 100%;
}

.unical-page {
	width: max-content;
	min-width: 100%;
	min-height: 100vh;
}

/* Desktop: comfy padding */
@media (min-width: 992px) {

	/* Header content */
	.unical-page header .container-fluid {
		padding-left: 100px;
		padding-right: 100px;
	}

	/* Main content */
	.unical-page .main-content {
		padding-left: 100px;
		padding-right: 100px;
	}
}

/* Mobile: tiny padding */
@media (max-width: 991.98px) {
	.unical-page header .container-fluid {
		padding-left: 8px;
		padding-right: 8px;
	}

	.unical-page .main-content {
		padding-left: 8px;
		padding-right: 8px;
	}
}

.unical-page .main-content {
	margin-top: 30px;
}

img {
	border: none;
}

table, tr, td {
	font-size: 14px;
	color: #000000;
	font-family: "Verdana", "Tahoma", "Arial", "MS Sans Serif";
}

.cleaner {
	clear: both;
	height: 0px;
	font-size: 0px;
	display: block;
	width: 100%;
}

a {
	color: #006e6e;
	text-decoration: none;
	font-weight: bold;
}

a:hover {
	color: #006e6e;
	text-decoration: underline;
	font-weight: bold;
}

.main-content h1 {
	font-size: 19px;
	font-weight: bold;
	margin: 0px 0px 3px 12px;
	color: #000000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	margin-left: -1px;
}

.main-content h2 {
	font-size: 16px;
	font-weight: bold;
	margin: 0px 0px 3px 12px;
	color: #000000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	margin-left: -1px;
}

.main-content h2 {
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	margin: 0px;
	padding: 0px;
	padding-top: 10px;
}

.main-content h3 {
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	margin: 0px;
	padding: 0px;
	padding-bottom: 10px;
}


.uni-navbar-top {
	padding: 0.1rem 0rem;
}

.uni-navbar-bottom {
	padding: .5rem 0rem;
}

.image-with-format {
	display: block;
	position: relative;
	background-color: #fff;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	overflow: hidden;
}

.image-with-format img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
}

.mb-0>button {
	display: inline-block;
	width: 100%;
	text-align: left;
	padding: 0.9rem 1.25rem;
}

.card-header {
	padding: 0;
}

.accordion-table tr td {
	padding-right: 5px;
	padding-left: 5px;
	padding-bottom: 3px;
	padding-top: 3px;
}

.card-body {
	padding: 0.9rem;
}

/* navigation */


/* Main nav wrapper */
.uni-main-nav {
	background-color: #eaebec;
	/* uni-brightgrey */
	border-top: 1px solid #bec3c8;
	/* uni-grey */
	border-bottom: 1px solid #bec3c8;
	/* uni-grey */
	box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
}

/* Align links like logo (padding on container already handled by your header CSS) */
.uni-main-nav .container-fluid {
	display: flex;
	align-items: center;
}

/* List layout */
.uni-main-nav-list {
	margin: 0;
	padding: 0;
	gap: .25rem;
}

/* Base nav link style – rectangular “tabs” */
.uni-main-nav .nav-link {
	color: #2d373c;
	/* uni-darkgrey */
	font-weight: normal;
	text-decoration: none !important;
	padding: .45rem 1.25rem;
	border-radius: 4px;
	/* small radius, no pills */
	background-color: transparent;
	border: 1px solid transparent;
	/* for subtle hover/active border */
	transition:
		background-color .15s ease,
		color .15s ease,
		box-shadow .15s ease,
		border-color .15s ease,
		transform .1s ease;
}

/* Hover / focus */
.uni-main-nav .nav-link:hover,
.uni-main-nav .nav-link:focus {
	background-color: #a5d7d2;
	/* uni-mint */
	color: #2d373c;
	border-color: #bec3c8;
	/* light border on hover */
	text-decoration: none !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
	transform: translateY(-1px);
}

/* Active state – solid tab */
.uni-main-nav .nav-link.active {
	background-color: #006e6e;
	/* uni-darkmint */
	color: #ffffff;
	/* uni-white */
	border-color: #006e6e;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

/* Keep active look on hover */
.uni-main-nav .nav-link.active:hover,
.uni-main-nav .nav-link.active:focus {
	background-color: #006e6e;
	color: #ffffff;
	text-decoration: none !important;
	transform: translateY(-1px);
}

/* Mobile: allow wrapping nicely */
@media (max-width: 991.98px) {
	.uni-main-nav .container-fluid {
		justify-content: flex-start;
	}

	.uni-main-nav-list {
		flex-wrap: wrap;
	}
}


/* export page css */
/* Shared surfaces */
#unicalExportForm .card,
#unicalCalendarExportBox,
#unicalExportAccordion .accordion-item {
	border: 1px solid #bec3c8;
	/* uni-grey */
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

/* Header styling */
.unical-card-header {
	background-color: #eaebec;
	/* uni-brightgrey */
	border-bottom: 1px solid #bec3c8;
	/* uni-grey */
	border-left: 4px solid #006e6e;
	/* uni-darkmint */
}

/* Accordion button to match header */
#unicalExportAccordion .accordion-button {
	background-color: #eaebec;
	/* uni-brightgrey */
	color: #2d373c;
	/* uni-darkgrey */
	font-weight: bold;
	border-left: 4px solid #006e6e;
	/* uni-darkmint */
}

#unicalExportAccordion .accordion-button:not(.collapsed) {
	background-color: #eaebec;
	color: #2d373c;
}

#unicalExportAccordion .accordion-button:focus {
	box-shadow: 0 0 0 .2rem rgba(0, 110, 110, .15);
}

/* Hint box (replace the harsh warning yellow with a calm uni-grey surface) */
.unical-hint {
	background-color: #eaebec;
	/* uni-brightgrey */
	border: 1px solid #bec3c8;
	/* uni-grey */
	border-left: 4px solid #006e6e;
	/* uni-darkmint */
	color: #2d373c;
	/* uni-darkgrey */
}

/* Buttons: keep it uniform */
.btn-uni {
	background-color: #006e6e;
	/* uni-darkmint */
	border-color: #006e6e;
	color: #ffffff;
}

.btn-uni:hover,
.btn-uni:focus {
	background-color: #006e6e;
	/* no weird hover effects */
	border-color: #006e6e;
	color: #ffffff;
	box-shadow: none;
	transform: none;
}

.btn-uni-outline {
	background-color: transparent;
	border-color: #006e6e;
	color: #006e6e;
}

.btn-uni-outline:hover,
.btn-uni-outline:focus {
	background-color: #d1eae6;
	/* uni-brightmint */
	border-color: #006e6e;
	color: #006e6e;
	box-shadow: none;
	transform: none;
}

/* Calendar export options */
.unical-option {
	background: #ffffff;
	border: 1px solid #bec3c8;
	/* uni-grey */
	border-radius: 8px;
	padding: 14px;
	height: 100%;
}

#unicalSubscribeUrl {
	cursor: pointer;
}

/* Fix: accordion header h2 inherits padding-top from .main-content h2 */
.main-content #unicalExportAccordion h2.accordion-header {
	padding-top: 0 !important;
}

/* Fix: global a:hover underline/bold should not affect button-like links */
a.btn-uni,
a.btn-uni-outline {
	text-decoration: none !important;
	font-weight: 600;
}

a.btn-uni:hover,
a.btn-uni:focus,
a.btn-uni-outline:hover,
a.btn-uni-outline:focus {
	text-decoration: none !important;
	font-weight: 600;
}

.datepicker {
	z-index: 2000 !important;
}



/* modal */

.modal .modal-dialog {
	text-align: left;
	margin: 0 auto
}

@media(min-width: 768px) {
	.modal .modal-dialog {
		margin-top: 1rem;
		margin-bottom: 1rem;
	}
}

@media(max-width: 767.98px) {
	.modal .modal-dialog {
		margin-left: 12px;
		margin-right: 12px;
		max-width: none !important
	}
}

@media(max-width: 575.98px) {
	.modal .modal-dialog {
		margin-left: 6px;
		margin-right: 6px;
		max-width: none !important
	}
	.modal .modal-body {
		padding: 0.75rem;
	}
}

.modal .modal-dialog[data-size=xs] {
	margin-left: auto;
	margin-right: auto;
	max-width: 300px
}

@media(max-width: 575.98px) {
	.modal .modal-dialog[data-size=sm] {
		max-width: none
	}
}

@media(min-width: 576px) {
	.modal .modal-dialog[data-size=sm] {
		max-width: 400px
	}
}

@media(max-width: 575.98px) {
	.modal .modal-dialog[data-size=md] {
		max-width: none
	}
}

@media(min-width: 576px) {
	.modal .modal-dialog[data-size=md] {
		max-width: 550px
	}
}

@media(min-width: 992px) {
	.modal .modal-dialog[data-size=md] {
		max-width: 550px
	}
}

@media(max-width: 575.98px) {
	.modal .modal-dialog[data-size=lg] {
		max-width: none
	}
}

@media(min-width: 576px) {
	.modal .modal-dialog[data-size=lg] {
		max-width: 550px
	}
}

@media(min-width: 992px) {
	.modal .modal-dialog[data-size=lg] {
		max-width: 800px
	}
}

@media(max-width: 575.98px) {
	.modal .modal-dialog[data-size=xl] {
		max-width: none
	}
}

@media(min-width: 576px) {
	.modal .modal-dialog[data-size=xl] {
		max-width: 550px
	}
}

@media(min-width: 992px) {
	.modal .modal-dialog[data-size=xl] {
		max-width: 800px
	}
}

@media(min-width: 1200px) {
	.modal .modal-dialog[data-size=xl] {
		max-width: 1140px
	}
}

/* Modal header with properly positioned close button */
.modal .modal-header {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem;
}

.modal .modal-header .modal-title {
	margin-bottom: 0;
	line-height: 1.5;
	flex: 1;
	padding-right: 1rem;
}

.modal .modal-header .btn-close {
	padding: 0.5rem 0.5rem;
	margin: -0.5rem -0.5rem -0.5rem auto;
	box-sizing: content-box;
	width: 1em;
	height: 1em;
	color: #000;
	background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
	border: 0;
	border-radius: 0.25rem;
	opacity: 0.5;
	cursor: pointer;
}

.modal .modal-header .btn-close:hover {
	opacity: 0.75;
}

.modal .modal-header .btn-close:focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0, 110, 110, 0.25);
	opacity: 1;
}

/* Language switcher */
.uni-lang-btn {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	margin: 0 0.15rem;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 4px;
	color: #fff;
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.uni-lang-btn:hover,
.uni-lang-btn:focus {
	text-decoration: none !important;
	font-weight: 600;
	color: #fff;
	background-color: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.6);
}

.uni-lang-btn.active {
	color: #2d373c;
	background-color: #fff;
	border-color: #fff;
	cursor: default;
}

/* ── Mobile: constrain page to viewport width ── */
@media (max-width: 767.98px) {
	.unical-page {
		width: 100%;
	}
}

/* ── Export page: mobile optimizations ── */
@media (max-width: 767.98px) {
	/* Preview table: smaller font, tighter cells */
	.unical-preview-table {
		font-size: 12px;
	}
	.unical-preview-table th,
	.unical-preview-table td {
		padding: 0.25rem 0.35rem;
	}

	/* Scrollable table container on mobile */
	#unicalExportPreviewBody {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Event checkbox labels: allow wrapping gracefully */
	#unicalExportForm .form-check-label {
		font-size: 13px;
		line-height: 1.4;
	}

	/* Export buttons: full width stacked */
	#unicalExportForm .card-footer {
		flex-direction: column;
	}
	#unicalExportForm .card-footer .btn {
		width: 100%;
	}
}

/* timetable filter panel */
.timetable-filter-panel {
	padding: 15px 20px;
}
.timetable-filter-section {
	margin-bottom: 10px;
}
.timetable-filter-section:last-child {
	margin-bottom: 0;
}
.timetable-filter-section > strong {
	display: block;
	margin-bottom: 6px;
	color: #333;
}
.timetable-display-btn,
.timetable-filter-badge,
.timetable-table-filter {
	display: inline-block;
	padding: 4px 12px;
	margin: 2px 4px 2px 0;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid #ccc;
	background: #e9ecef;
	color: #555;
	transition: all 0.15s ease;
	user-select: none;
}
.timetable-display-btn.active,
.timetable-filter-badge.active,
.timetable-table-filter.active {
	background: #006e6e;
	color: #fff;
	border-color: #006e6e;
}
/* irregular/block events */
.timetable-filter-badge.active[data-filter="BLOCK"] {
	background: #c27840;
	border-color: #c27840;
}
.timetable-display-btn:hover:not(.active),
.timetable-filter-badge:hover:not(.active):not(.disabled),
.timetable-table-filter:hover:not(.active):not(.disabled) {
	background: #cfeae8;
	border-color: #006e6e;
	color: #333;
}
.timetable-table-filter.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.timetable-filter-info {
	color: #006e6e;
	margin-left: 4px;
	font-size: 14px;
	cursor: help;
}

/* timetable event-listing tables */
.timetable-event-listing {
	margin-top: 10px;
	margin-bottom: 10px;
}
.timetable-event-listing table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.timetable-event-listing table th {
	background: #e8f5f4;
	border: 1px solid #006e6e;
	padding: 6px 10px;
	text-align: left;
	font-weight: bold;
	color: #333;
}
.timetable-event-listing table td {
	border: 1px solid #ccc;
	padding: 5px 10px;
}
.timetable-fade-wrapper {
	position: relative;
	overflow: hidden;
}
.timetable-fade-wrapper::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.2s ease;
}
.timetable-event-listing.expanded .timetable-fade-wrapper {
	overflow: visible;
}
.timetable-event-listing.expanded .timetable-fade-wrapper::after {
	opacity: 0;
}
.timetable-expand-btn {
	display: block;
	width: 100%;
	padding: 6px 0;
	text-align: center;
	background: #e8f5f4;
	border: 1px solid #ccc;
	border-top: none;
	color: #006e6e;
	font-size: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.timetable-expand-btn:hover {
	background: #cfeae8;
	color: #005858;
	text-decoration: none;
}
.timetable-expand-btn i {
	margin-right: 4px;
}
.timetable-table-overlap tr[data-toggle] {
	cursor: pointer;
}
.timetable-table-overlap tr[data-toggle]:hover td {
	background: #cfeae8 !important;
}
.timetable-irregular-alert {
	color: #c27840;
}

/* timetable overlap modal */
.overlap-group { margin-bottom: 18px; }
.overlap-group:last-child { margin-bottom: 0; }
.overlap-group-header { background: #e8f5f4; border-left: 4px solid #006e6e; padding: 8px 12px; font-size: 13px; margin-bottom: 6px; }
.overlap-group-header strong { color: #006e6e; }
.overlap-group-header .overlap-count { color: #666; font-size: 12px; margin-left: 6px; }
.overlap-twocol { display: grid; grid-template-columns: 115px auto 24px auto 1fr; column-gap: 8px; row-gap: 3px; font-size: 13px; font-variant-numeric: tabular-nums; padding-left: 14px; }
.overlap-twocol .col-head { font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid #e0e0e0; margin-bottom: 4px; cursor: help; }
.overlap-twocol .col-head.focus { color: #333; }
.overlap-twocol .col-head.partner { color: #006e6e; }
.overlap-twocol .col-head-empty { border-bottom: 1px solid #e0e0e0; margin-bottom: 4px; }
.overlap-twocol .row-date { color: #333; }

/* Page title (above the header card on each page) */
.unical-page-title-big {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	color: #2d373c;
}
.main-content h2.timetable-semester-heading {
	font-size: 1.5rem;
	font-weight: 400;
	font-family: inherit;
	margin: 0;
	padding: 0;
	color: #2d373c;
}
.overlap-twocol .vs { color: #999; text-align: center; }

/* ─────────────────────────────────────────────────────────────
   Responsive card-table: stacks rows as labeled cards on mobile.
   Apply class `responsive-card-table` to a <table>; add
   data-label="<header>" to each <td>. Below 768px each row
   becomes a card with "Label: value" lines. Not used in PDF
   (cfhtmltopdf renders at a fixed wide viewport).
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
	.responsive-card-table {
		display: block;
		width: 100% !important;
		border: none;
	}
	.responsive-card-table thead {
		display: none;
	}
	.responsive-card-table tbody,
	.responsive-card-table tr,
	.responsive-card-table td {
		display: block;
		width: 100% !important;
	}
	/* Row styled as a labelled list-row with a left accent — feels more like a
	   table row than a free-floating card while still wrapping nicely.
	   Background intentionally not !important so inline zebra striping from
	   the timetable event-listing rows still shows through. */
	.responsive-card-table tr {
		border: 1px solid #d6dbe0;
		border-left: 3px solid #006e6e;
		border-radius: 3px;
		margin-bottom: 8px;
		padding: 8px 10px;
	}
	.responsive-card-table tr.table-active {
		background: #cfeae8 !important;
		border-color: #006e6e;
	}
	.responsive-card-table td {
		border: none !important;
		padding: 2px 0 !important;
		text-align: left;
		word-break: break-word;
		overflow-wrap: anywhere;
		/* override any inline width: 140px etc. set for desktop layout */
		min-width: 0 !important;
		max-width: none !important;
	}
	/* First cell of each row gets a thin divider beneath it so the "primary"
	   value (e.g. Nr. / Date) reads as a row header */
	.responsive-card-table tbody tr > td:first-child {
		padding-bottom: 5px !important;
		margin-bottom: 4px !important;
		border-bottom: 1px solid #e6e9ec !important;
		font-weight: 600;
	}
	.responsive-card-table td[data-label]::before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: #2d373c;
		margin-right: 4px;
	}
	/* Hide the label prefix on the first cell — its content already acts as the row's identifier */
	.responsive-card-table tbody tr > td:first-child[data-label]::before {
		content: "";
		margin-right: 0;
	}
	/* Hide cells that are empty so empty values don't show a stray label */
	.responsive-card-table td.is-empty {
		display: none;
	}
}

/* Event-summary table (modal top table: Semester / Nr. / Form / ...).
   Desktop keeps the fixed label width set inline; mobile lets it flow. */
@media (max-width: 767.98px) {
	.modal-event-summary-table td {
		width: auto !important;
		word-break: break-word;
		overflow-wrap: anywhere;
	}
	.modal-event-summary-table td:first-child {
		padding-right: 8px;
		white-space: nowrap;
	}
}

/* Tighter spacing for the timetable event-listing cards on mobile */
@media (max-width: 767.98px) {
	.timetable-event-listing table.responsive-card-table tr {
		font-size: 12px;
	}
}