body, #main { background: var(--s0); }

#header {
	background: var(--s1);
	box-shadow: 0 1px 8px 0 var(--shadow-topbar);
}
body.header-dockmode #header { /* App-x */
	position: fixed; z-index: 100; left: 0; top: 0;
	width: 100%;
}
#header > .wrapper { max-width: none; } /* App-x */
#beta-info {
	background: rgb(194 138 40);
	border: 1px solid rgba(194,138,40);
	border-radius: var(--r-pill);
	color: #FFF;
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.12em;
	padding: 2px 10px;
	text-transform: uppercase;
	position: absolute; z-index: 1; right: 24px; top: 65px;
}
#topheader {
	display: table;
	min-height: 52px;
	width: 100%;
}
#topheader > * {
	display: table-cell;
	padding: 0.5em 0;
	vertical-align: middle;
}
#topheader > *:nth-child(1) {
	padding-right: 1em;
	width: 160px;
	white-space: nowrap;
}
#topheader > *:nth-child(2) {
	text-align: right;
}
#topheader > *:nth-child(2) > div { display: inline-block; }
#topheader .icon-cta {
	color: var(--t3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: var(--r-sm);
	transition: background var(--t-fast), color var(--t-fast);
	vertical-align: middle;
}
#topheader .icon-cta:hover {
	background: var(--s3);
	color: var(--t1);
	text-decoration: none;
}
#topheader .icon-cta i { font-size: 22px; }
#topheader > *:nth-child(2) > div + div { margin-left: 0.5em; }
@media screen and (max-width: 380px) {
	#topheader > *:nth-child(1) { width: 110px; }
}
#elas-website { width: 36px; }
#elas-website img {
	display: block;
	height: auto;
	margin-top: -1px;
	width: 100%;
}

#userinfo-container, #userinfo-container .wrapper, .topheader-overlay-container,
.topheader-overlay-container .wrapper { position: relative; z-index: 2; }
#userinfo-abbreviation {
	background: var(--red);
	border: 1px solid var(--red-dim);
	border-radius: 50%;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 0 rgba(94,18,25,0.30);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--fs-base-s);
	font-weight: 600;
	line-height: 1;
	text-align: center;
	width: 30px; height: 30px;
	transition: background var(--t-fast), box-shadow var(--t-base);
	user-select: none;
	vertical-align: middle;
}
#userinfo-abbreviation:hover {
	background: var(--red-bright);
	text-decoration: none;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 1px 0 rgba(94,18,25,0.35), 0 4px 12px rgba(180,88,88,0.30);
}
#userinfo-abbreviation .material-icons { font-size: 18px; }
#userinfo-overlay > .wrapper, .topheader-overlay > .wrapper { max-width: none; } /* App-x */
#userinfo-overlay, .topheader-overlay {
	display: none;
	position: fixed; z-index: 1000; left: 0; top: 52px; right: 0; bottom: 0;
}
#userinfo-overlay-extender, .topheader-overlay-extender {
	height: 52px;
	position: fixed; z-index: 1000; left: 0; top: 0; right: 62px;
}
#userinfo-container.active #userinfo-overlay, .topheader-overlay-container.active .topheader-overlay { display: block; }
.topheader-overlay-container .wrapper { height: 100%; }
#userinfo-box, .topheader-overlay-box {
	background: var(--s1);
	border: 1px solid var(--b1);
	border-radius: var(--r-lg);
	box-sizing: border-box; box-shadow: 0 8px 32px rgba(0,0,0,0.13);
	display: inline-block;
	position: absolute; z-index: 1; right: 20px; top: 6px;
	width: calc(100% - 40px); max-width: 350px;
}
#userinfo-box { max-width: 260px; }
.topheader-overlay-box {
	max-height: 80%;
	overflow: auto;
}
.topheader-overlay-box::-webkit-scrollbar { width: 8px; }
.topheader-overlay-box::-webkit-scrollbar-track-piece { background: var(--s2); }
.topheader-overlay-box::-webkit-scrollbar-thumb {
	background-color: var(--b2);
	border: 2px solid var(--s2);
	border-radius: 2px;
}
#userinfo-arrow, .topheader-overlay-arrow {
	background: var(--s1);
	border-top: 1px solid var(--b1);
	border-left: 1px solid var(--b1);
	display: inline-block;
	position: absolute; z-index: 1; right: 10px; top: -6px;
	transform: rotate(45deg); -moz-transform: rotate(45deg); -webkit-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg);
	width: 12px; height: 12px;
}
.topheader-overlay-arrow { z-index: 2; }
.topheader-overlay-arrow:before {
	background: var(--s1);
	content: '';
	display: block;
	height: 14px;
	position: relative; z-index: 1; left: 1px; top: 1px;
}
#userinfo-arrow:after, .topheader-overlay-arrow:after {
	background: var(--s1);
	content: '';
	display: block;
	height: 12px;
	width: 100%;
}
.topheader-overlay-box-inner {
	background: var(--s1);
	border-radius: var(--r-lg);
	padding: 1.5em;
	position: relative; z-index: 1;
	text-align: left;
}
#userinfo-table {
	background: var(--s1);
	border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg);
	display: table;
	position: relative; z-index: 1;
	width: 100%;
}
#userinfo-table > div {
	display: table-cell;
	padding: 1.25em 1.5em;
	text-align: left;
	vertical-align: middle;
}
#userinfo-table > div:first-child {
	padding-right: 0.5em;
	width: 54px;
}
#userinfo-table > div:last-child {
	color: var(--t1);
	font-weight: 600;
	padding-left: 0.5em;
}
#userinfo-table > div:first-child > span.material-icons {
	color: var(--t3);
	font-size: 2.6em;
	vertical-align: -4px;
}
#userinfo-avatar {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 100%);
	border: 1px solid var(--red-dim);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}
#userinfo-email {
	color: var(--t3);
	font-size: 0.85em; font-weight: normal;
	margin-top: 0.2em;
}
#login-container {
	background: var(--s1);
	position: relative; z-index: 1;
	text-align: left;
}
/* Theme-Toggle (Bright/Dark Pill) — ersetzt den alten #darkmode-btn */
#darkmode-container { display: block; }
.theme-toggle {
	display: flex;
	width: 100%;
	background: var(--s3);
	border: 1px solid var(--b1);
	border-radius: var(--r-pill);
	padding: 2px;
	gap: 2px;
}
.theme-toggle button,
.theme-toggle button[type="button"] {
	flex: 1;
	align-items: center;
	background: transparent !important;
	border: none !important;
	border-radius: var(--r-pill) !important;
	box-shadow: none !important;
	color: var(--t3) !important;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	gap: 5px;
	font-family: var(--ff-ui);
	font-size: var(--fs-base-s) !important;
	font-weight: 500;
	letter-spacing: 0.02em;
	min-height: 0 !important; min-width: 0 !important;
	padding: 4px 10px !important;
	transform: none !important;
	transition: background var(--t-fast), color var(--t-fast);
}
.theme-toggle button .material-icons { font-size: 16px; }
/* 3-Wege-Toggle (System | Bright | Dark): kompakter, damit alle drei Labels
   in die schmale #userinfo-box passen. */
.theme-toggle-3 button,
.theme-toggle-3 button[type="button"] {
	gap: 4px;
	letter-spacing: 0 !important;
	padding: 4px 5px !important;
}
.theme-toggle-3 button .material-icons { font-size: 15px; }
.theme-toggle button:hover:not(.active),
.theme-toggle button:hover:not(.active)[type="button"] {
	background: transparent !important;
	color: var(--t2) !important;
}
.theme-toggle button.active,
.theme-toggle button.active[type="button"] {
	background: var(--s1) !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.18) !important;
	color: var(--red) !important;
}
/* Lang-x */
#__changelang {
	background: var(--s2);
	border: 1px solid var(--b1);
	border-radius: var(--r-sm);
	box-sizing: border-box;
	color: var(--t1);
	padding: 6px 12px!important;
	width: 100%;
}
/* Lang-x */
#userinfo-links {
	background: var(--s1);
	border-bottom-left-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg);
	position: relative; z-index: 1;
}
#userinfo-links > * {
	border-top: 1px solid var(--b0);
	color: var(--t2);
	display: block;
	font-size: var(--fs-base);
	padding: 0.85em 1.5em;
	text-align: left;
	transition: background var(--t-fast), color var(--t-fast);
}
#userinfo-links > *:hover {
	background: var(--s3);
	color: var(--t1);
	text-decoration: none;
}
#userinfo-links > * svg { margin-right: 8px; vertical-align: -2px; }
#logout-link { color: #e07070; }
#logout-link:hover { background: rgba(180,80,80,0.08); color: #f08080; }
/* Theme-Toggle-Zeile hat keinen Hover-Hintergrund */
#userinfo-links > #darkmode-container:hover { background: transparent; }

#tutorial-menu { margin-bottom: -8px; }
#tutorial-menu > * {
	display: table;
	width: 100%;
}
#tutorial-menu > * + * { margin-top: 0.8em; }
#tutorial-menu > * > * {
	display: table-cell;
	font-size: 1.1em;
	vertical-align: top;
}
#tutorial-menu > * > *:first-child {
	text-align: left;
	width: 40px;
}
#tutorial-menu a { text-decoration: none; }

.enjoyhint { z-index: 100000000!important; }
body .enjoyhint_close_btn, body .enjoyhint_next_btn, body .enjoyhint_prev_btn {
	background: linear-gradient(180deg, var(--red-bright) 0%, var(--red) 100%);
	border-radius: var(--r-sm); border: 0!important;
	color: #FFF;
	font-family: var(--ff-ui); font-size: 1em!important; font-weight: 500;
	line-height: 40px;
	outline: none!important;
	box-shadow: var(--shadow-btn-prim);
	text-decoration: none; text-transform: none; text-align: center;
}
body .enjoyhint_close_btn {
	display: inline-block;
	hyphens: none; -webkit-hyphens: none; -ms-hyphens: none;
	height: auto; min-height: 20px;
	padding: 14px 22px;
}
body .enjoyhint_close_btn:hover, body .enjoyhint_next_btn:hover, body .enjoyhint_prev_btn:hover { background: linear-gradient(180deg, #d68a8a 0%, var(--red-bright) 100%); }
body .enjoy_hint_label { font-size: 24px; }
@media screen and (max-width: 640px) {
	body .enjoyhint_close_btn, body .enjoyhint_next_btn, body .enjoyhint_prev_btn { line-height: 35px; }
}

#showmobilemenu { 
	display: none;
	margin-right: 20px; margin-left: 20px; margin-top: 12px; /* Change-x */
	vertical-align: 2px; 
}
#showmobilemenu i {
	color: #FFF; /* Change-x */
	font-size: 1.8em;
}
#logo {
	display: inline-block;
	height: 32px;
	width: auto;
	max-width: 90px;
	vertical-align: middle;
}
#loginbtn {
	background: linear-gradient(180deg, rgba(58,140,92,0.18), rgba(58,140,92,0.10));
	color: var(--status-green);
	border: 1px solid rgba(58,140,92,0.45);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
	box-sizing: border-box;
	padding: 8px 15px;
	min-width: 0;
}
#loginbtn:hover {
	background: linear-gradient(180deg, rgba(58,140,92,0.30), rgba(58,140,92,0.18));
	color: var(--status-green);
	border-color: rgba(58,140,92,0.60);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 6px 18px rgba(58,140,92,0.24);
}
#nav-container {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 24%, rgba(0,0,0,0.10) 100%),
		var(--red-brand);
	border-bottom: 1px solid var(--red-dark);
	box-shadow: var(--shadow-subbar);
	position: relative;
}
body.betamode #nav-container {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 24%, rgba(0,0,0,0.10) 100%),
		#ff9800!important;
	/* Border + Schatten auf Orange abstimmen (wie ticketplus.elas.it) */
	border-bottom-color: #c77400;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 6px 18px rgba(199,116,0,0.22);
}
/* Apps-x */
#nav-container { min-height: 44px; }
#infomenu {
	color: var(--t3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 14px;
	width: 34px; height: 34px;
	border-radius: var(--r-sm);
	transition: background var(--t-fast), color var(--t-fast);
	vertical-align: middle;
}
#infomenu:hover { background: var(--s3); color: var(--t1); text-decoration: none; }
#infomenu .material-icons { color: inherit; }
#infooverlay {
	background: var(--s1);
	box-sizing: border-box;
	box-shadow: 1px 2px 4px rgba(0,0,0,0.07), 4px 8px 20px rgba(0,0,0,0.11), 8px 20px 44px rgba(0,0,0,0.07);
	display: inline-block;
	overflow: auto;
	padding: 0.8em;
	transition: left 0.5s;
	position: fixed; top: 52px; bottom: 0; left: -400px; z-index: 100;
	width: 100%; max-width: 380px;
}
#infooverlay::-webkit-scrollbar { width: 10px; }
#infooverlay::-webkit-scrollbar-track-piece { background: var(--s2); }
#infooverlay::-webkit-scrollbar-thumb {
	background-color: var(--b2);
	border: 2px solid var(--s2);
	border-radius: 2px;
}
.show-infooverlay #infooverlay { left: 0; }
#infooverlay-header {
	display: block;
	text-align: left;
}
#infooverlay-header:after {
	content: '';
	clear: both;
	display: table;
	overflow: auto;
}
#hide-infomenu {
	color: var(--t2);
	margin-left: 9px;
}
#hide-infomenu:hover { color: var(--t1); }
#home-btn {
	color: var(--t2);
	display: none;
	float: right;
	font-size: 1.2em;
	text-decoration: none;
}
.show-homebtn #home-btn { display: inline-block; }
#home-btn:hover { color: var(--red); }
#home-btn > span {
	margin-right: 0.25em;
	vertical-align: -6px;
}
#infooverlay-body { padding: 0 0.8em; }
.infooverlay-section {
	background: var(--s1);
	margin-top: 40px; margin-left: 0; margin-right: 0;
	padding: 0;
}
.infooverlay-section-title {
	color: var(--t3);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	padding-right: 15px; padding-bottom: 0.5em;
	position: relative; z-index: 1;
	text-transform: uppercase;
}
.show-always .infooverlay-section-title { cursor: default; }
.infooverlay-section-body { border-top: 1px solid var(--b0); }
.open .infooverlay-section-body, .show-always .infooverlay-section-body { display: block; }

/* Apps-Grid (2 Spalten, gleich hohe Zeilen) — löst das alte Float-Wrap-Problem */
.app-links,
.app-links.infooverlay-section-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 8px;
	padding: 8px 0;
}
.app-links > * {
	box-sizing: border-box;
	color: var(--t1);
	display: flex;
	align-items: center;
	font-size: 1.05em;
	font-weight: 500;
	padding: 9px 10px;
	border-radius: var(--r);
	min-height: 34px;
	transition: background var(--t-fast);
}
.app-links > *:hover {
	background: var(--s2);
	text-decoration: none;
}
.app-links > * > div {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}
.app-links > * > div > div:first-child {
	flex-shrink: 0;
	width: 32px;
}
.app-links > * > div > div:nth-child(2) {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.app-links img {
	display: block;
	height: auto;
	width: 100%;
}
@media screen and (max-width: 400px) {
	.app-links,
	.app-links.infooverlay-section-body { grid-template-columns: 1fr; }
}
@media screen and (min-width: 1024px) {
	/*#infooverlay { left: 0!important; }*/
	.movemain #main {
		box-sizing: border-box;
		margin-left: 385px;
		width: calc(100% - 385px);
		transition: margin-left 0.5s, width 0.5s;
	}
	.movemain.hide-infooverlay #infooverlay { left: -400px!important; }
	.movemain.hide-infooverlay #main {
		margin-left: 0;
		width: 100%;
	}
}
#nav { max-width: none; }
/* Apps-x */
#nav ul { display: table; }
#nav > ul > li {
	display: table-cell;
	position: relative; z-index: 1;
	vertical-align: middle;
}
#nav > ul > li + li { border-left: 1px solid rgba(255,255,255,0.10); }
#nav > ul > li > a {
	box-sizing: border-box;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
#nav ul li a {
	color: rgba(255,255,255,0.92);
	display: block;
	font-family: var(--ff-ui);
	font-size: var(--fs-md);
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 10px 18px;
	white-space: nowrap;
	transition: background var(--t-fast), color var(--t-fast);
}
#nav ul li a > i {
	margin-left: 5px; margin-right: -8px; margin-top: -4px;
	vertical-align: -6px;
	transition: transform var(--t-fast);
}
/* Menü-Icon (SVG, currentColor) — analog workdata */
#nav > ul > li > a > svg {
	flex-shrink: 0;
	height: 18px;
	width: 18px;
	margin-right: 8px;
	vertical-align: middle;
}
#nav ul ul a > svg {
	flex-shrink: 0;
	height: 16px;
	width: 16px;
	margin-right: 10px;
	vertical-align: -3px;
}

#nav > ul > li.active > a, #nav > ul > li:hover > a {
	background: rgba(0,0,0,0.18);
	color: #fff;
	text-decoration: none;
}
#nav ul ul {
	background: var(--s1);
	border: 1px solid var(--b0);
	border-radius: var(--r);
	box-shadow: var(--shadow-popover);
	display: none;
	font-size: 0.95em;
	overflow: hidden;
	padding: 4px 0;
	position: absolute; z-index: 1; left: 0; top: 44px;
}
#nav ul ul li + li { margin-top: 0; }
#nav ul ul a {
	border-left: 3px solid transparent;
	color: var(--t2);
	font-weight: 500;
	letter-spacing: normal;
	padding: 8px 14px 8px 11px;
	text-transform: none;
}
#nav ul ul li.active > a, #nav ul ul a:hover {
	background: rgba(180,88,88,0.10);
	border-left-color: var(--red);
	color: var(--t1);
	text-decoration: none!important;
}
#nav ul ul ul {
	background: var(--s2);
	border-top: 1px solid var(--b0);
	box-shadow: none;
	display: block;
	position: static;
}
#nav ul ul ul a { padding-top: 0.5em; padding-bottom: 0.4em; }
#nav ul ul ul a > i {
	margin: 0; margin-top: -4px; margin-right: 0.15em;
	transform: none!important;
}
#nav ul ul ul li.active a, #nav ul ul ul a:hover {
	background: var(--s3)!important;
	border-left-color: var(--red);
	color: var(--red);
}
#nav ul ul ul li.active a i, #nav ul ul ul a:hover i { color: var(--red); }

#searchbox {
	position: absolute; z-index: 1; right: 20px; bottom: 12px;
	white-space: nowrap;
}
#searchbox input {
	background: transparent!important; background-color: transparent!important;
	border-bottom: 1px solid #FFF!important;
	box-sizing: border-box;
	color: #FFF;
	margin-right: 10px;
	padding: 4px 8px;
	width: 300px;
}
#searchbox input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
	color: #FFF;
	opacity: 1; /* Firefox */
}
#searchbox input:-ms-input-placeholder { color: #FFF; }
#searchbox input::-ms-input-placeholder { color: #FFF; }
#searchbox button {
	background: transparent;
	border-radius: 0;
	min-height: 0; min-width: 0;
	padding: 0;
	vertical-align: -8px;
}
@media screen and (min-width: 1301px) {
	#mobile-search { display: none!important; }
}
@media screen and (max-width: 1300px) {
	#searchbox { display: none!important; }
}
@media (prefers-color-scheme: dark) {
	body #searchbox input {
		border-bottom-color: #e1dcde!important;
		color: #e1dcde;
	}
	body #searchbox input::placeholder { color: #e1dcde; }
	body #searchbox input:-ms-input-placeholder { color: #e1dcde; }
	body #searchbox input::-ms-input-placeholder { color: #e1dcde; }
}
body[data-darkmode="true"] #searchbox input {
	border-bottom-color: #e1dcde!important;
	color: #e1dcde;
}
body[data-darkmode="true"] #searchbox input::placeholder { color: #e1dcde; }
body[data-darkmode="true"] #searchbox input:-ms-input-placeholder { color: #e1dcde; }
body[data-darkmode="true"] #searchbox input::-ms-input-placeholder { color: #e1dcde; }

#main { 
	font-size: 0.95em;
}
body.header-dockmode #main { margin-top: 130px; } /* App-x */
#previewmode-hint {
	background: var(--gold);
	color: #FFF;
	font-family: var(--ff-ui); font-weight: 600; font-size: 1.3em;
	margin-bottom: 1em; margin-top: -0.9em;
	padding: 0.5em;
	position: relative; z-index: 1;
	text-align: center; text-overflow: ellipsis;
	white-space: nowrap;
}
#previewmode-hint::before, #previewmode-hint::after {
	background: var(--gold);
	content: '';
	display: block;
	position: absolute; z-index: 1; top: 0; bottom: 0;
	width: 20px;
}
#previewmode-hint::before { left: -20px; }
#previewmode-hint::after { right: -20px; }
#article {
	min-height: 200px;
	margin-top: 20px;
	margin-bottom: 20px;
	padding: 0 1.5em;
}
#pre-headline {
	color: var(--red);
	font-family: var(--ff-ui);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 0.5em;
}
#article > *:first-child { margin-top: 0; }
#article > *:last-child { margin-bottom: 0; }

#article .mediumform { max-width: 1200px; }
#article .smallform { max-width: 900px; }

#article .box {
	background: var(--s2);
	border: 1px solid var(--b0);
	border-radius: var(--r);
	box-shadow: none;
	padding: 1.1em;
}
#article .box h2 { margin-top: 0; }
#article .box .field input, #article .box .field select { background: var(--s2)!important; }

body.bgwhite .like-headline { font-size: 2em; }

#overview-container { 
	display: table;
	min-height: calc(100vh - 300px);
	width: 100%;
}
#overview-container > * {
	display: table-cell;
	vertical-align: top;
}
#overview-preview {
	padding-left: 30px;
	width: 500px;
}
#overview-preview.fixed > div { 
	position: fixed; top: 10px;
	width: 500px;
}
#overview-preview .video-container { overflow: visible; }
#overview-preview .video-container iframe { 
	min-height: calc(100vh - 300px);
	overflow: visible;
}
@media screen and (max-width: 1300px) {
	#overview-preview { display: none; }
}

#internal-select { display: none; }
#card-container-filter, #internal-select, #internal-chooser { text-align: right; }
#card-container-filter > *, #internal-select > * {
	display: inline-block; 
	width: 100%; max-width: 300px;
}

#add-container { margin: 0 0 20px; }
#add-container a {
	background: none;
	border: 1px dashed var(--b2);
	color: var(--t3);
	padding: 1rem;
}
#add-container a:hover { border-color: var(--red); color: var(--red); }

.mdc-card, #add-container a {
	box-sizing: border-box;
	box-shadow: var(--shadow-card);
	width: 100%;
}
.mdc-card {
	background: var(--s1);
	border: 1px solid var(--b0);
	border-radius: var(--r);
	min-height: 250px;
	padding: 2rem;
	transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-fast);
}
.mdc-card.inactive { text-decoration: line-through; opacity: 0.65; }
.mdc-card:hover, #add-container a:hover { background: var(--s1); border-color: var(--b1); box-shadow: var(--shadow-card-h); transform: translateY(-1px); }
.mdc-card.nopadding { padding: 0; }
.mdc-card + .mdc-card { margin-top: 20px; }
.mdc-card h2 { margin-top: 0; }
a.mdc-card, .mdc-card a {
	color: var(--t1);
	text-decoration: none;
}
.mdc-card.minmalistic {
	min-height: 0; 
	padding: 0;
}
.mdc-card.minmalistic > .liketable > * {
	box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; 
	padding: 1rem;
	max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mdc-card.minmalistic > .liketable > *.controlcol { 
	text-align: center;
	width: 60px; min-width: 60px;
}
.mdc-card.minmalistic .controlcol a:hover { color: var(--red); }

.text-loader {
	background: rgba(0, 0, 0, 0.7);
	display: none;
	position: fixed; z-index: 1001; left: 0; top: 0;
	width: 100%; height: 100vh;
}
.text-loader > div {
	display: table;
	width: 100%; height: 100%;
}
.text-loader > div > div {
	color: #FFF;
	display: table-cell;
	font-size: 1.2em;
	text-align: center;
	vertical-align: middle;
}
.text-loader-icon i {
	animation: rotating 0.5s linear infinite; -webkit-animation: rotating 0.5s linear infinite; -moz-animation: rotating 0.5s linear infinite; -ms-animation: rotating 0.5s linear infinite; -o-animation: rotating 0.5s linear infinite;
	font-size: 4em;
}
.text-loader-txt {
	margin-top: 1em;
	padding-left: 20px; padding-right: 20px;
}

.pos-rel { position: relative; z-index: 1; }
.pos-rel .edit-in-popup {
	position: absolute; z-index: 1; right: 0; top: 50%;
	transform: translateY(-50%);
}
.pos-rel .edit-in-popup:hover { opacity: 0.5; }

#newslist { margin-top: 1em; }
#newslist > * { display: block; }
#newslist > *:hover { border-bottom-color: var(--red); }
#newslist > * + * { margin-top: 0.8em; }
#newslist > * > * {
	display: table;
	width: 100%;
}
#newslist > * > * > * {
	display: table-cell;
	vertical-align: middle;
}
#newslist > * > * > *:first-child {
	padding-right: 12px;
	width: 22px;
}
#newslist img {
	display: block;
	height: auto;
	width: 100%;
}

.list-item {
	border-bottom: 1px solid var(--b0);
	color: var(--t2);
	padding: 0.5em 0;
	text-decoration: none!important;
	transition: color var(--t-fast), border-color var(--t-fast);
}
.list-item:hover { color: var(--red); border-bottom-color: var(--red); }
.list-item + .list-item { margin-top: 0.5em!important; }

.tab-header { text-align: right; }
.tab-header > * {
	background: var(--s2);
	border: 1px solid var(--b1);
	box-sizing: border-box;
	color: var(--t3);
	display: inline-block;
	line-height: 53px;
	text-align: center;
	width: 40px; height: 40px;
}
.tab-header > *.active {
	background: var(--red);
	border-color: var(--red-dim);
	color: #FFF;
}
.tab-body > * { display: none; }
.tab-body > *.active { display: block;}

#header { position: relative; z-index: 99; /* Change-x */ }

#client_admin-container {
	margin-top: 4em;
	padding: 0 0.8em;
}
#client_admin-container.fixedBottom {
	position: absolute;
	bottom: 20px;
	left: 0.8em;
	right: 0.8em;
}
#client_admin-title {
	border-bottom: 1px solid var(--b0);
	color: var(--t3);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	padding-right: 15px;
	padding-bottom: 0.5em;
	position: relative;
	z-index: 1;
	text-transform: uppercase;
	margin-bottom: 0.5em;
}
#client_admin-container a { color: var(--t2); }
#client_admin-container a:hover { color: var(--red); }
#client_admin-img { margin-bottom: 8px; }
#client_admin-img img {
	display: block;
	height: auto;
	width: 100%; max-width: 150px;
}

/* START Custom */
.top-news.cnt-2, .top-news.cnt-3 {
	display: -ms-grid; display: grid;
	height: 684px;
	-ms-grid-columns: 2fr 1fr; grid-template-columns: 2fr 1fr;
	-ms-grid-rows: 1fr 1fr; grid-template-rows: 1fr 1fr;
	grid-template-areas:
		"tn-one tn-two"
		"tn-one tn-three";
}
.top-news.cnt-2 > *:first-child, .top-news.cnt-3 > *:first-child {
	border-right: 5px solid transparent;
	grid-area: tn-one;
	-ms-grid-column: 1;
	-ms-grid-row: 1;
	-ms-grid-row-span: 2;
}
.top-news.cnt-2 > *:nth-child(2), .top-news.cnt-3 > *:nth-child(2) {
	border-bottom: 2.5px solid transparent;
	grid-area: tn-two;
	-ms-grid-column: 2;
	-ms-grid-row: 1;
}
.top-news.cnt-3 > *:nth-child(3) {
	border-top: 2.5px solid transparent;
	grid-area: tn-three;
	-ms-grid-column: 2;
	-ms-grid-row: 2;
}

.newsbox-top {
	background: #EEE;
	height: 100%;
	overflow: hidden;
	position: relative; z-index: 1;
	transition: opacity 0.3s ease-in;
}
.newsbox-top:hover { opacity: 0.8; }
.newsbox-top img {
	display: block;
	height: auto;
	position: relative; z-index: 1;
	width: 100%;
}
.newsbox-top-cattitle {
	font-size: 1.8em;
	position: absolute; z-index: 2; left: 0; bottom: 0;
	width: 100%;
}
.newsbox-top-cattitle > * {
	box-sizing: border-box;
	color: #FFF;
	line-height: 1.1em;
}
.newsbox-top-cat {
	background: #a24f49;
	display: inline-block;
	padding: 0.25em 0.5em;
}
.newsbox-top-title {
	background: #383335;
	font-weight: 600; font-size: 1em;
	margin: 0;
	padding: 0.5em 0.5em;
}
@media screen and (max-width: 1920px) {
	.top-news.cnt-2, .top-news.cnt-3 { height: 35.62vw; }
}
@media screen and (max-width: 1179px) {
	.top-news.cnt-2, .top-news.cnt-3 {
		height: auto;
		-ms-grid-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
		-ms-grid-rows: auto auto; grid-template-rows: auto auto;
		grid-template-areas:
			"tn-one tn-one"
			"tn-two tn-three";
	}
	.top-news.cnt-2 > *:first-child, .top-news.cnt-3 > *:first-child {
		border-right: none; border-bottom: 5px solid transparent;
		height: 52.09vw;
		-ms-grid-column-span: 2;
		-ms-grid-row-span: 1;
	}
	.top-news.cnt-2 > *:nth-child(2), .top-news.cnt-3 > *:nth-child(2), .top-news.cnt-3 > *:nth-child(3) { height: 25.76vw; }
	.top-news.cnt-2 > *:nth-child(2), .top-news.cnt-3 > *:nth-child(2) {
		border-bottom: none; border-right: 2.5px solid transparent;
		-ms-grid-column: 1;
		-ms-grid-row: 2;
	}
	.top-news.cnt-3 > *:nth-child(3) { border-top: none; border-left: 2.5px solid transparent; }
}
@media screen and (max-width: 1023px) {
	.newsbox-top-cattitle { font-size: 1.5em; }
}
@media screen and (max-width: 660px) {
	.newsbox-top-cattitle { font-size: 1.2em; }
}
@media screen and (max-width: 550px) {
	.top-news.cnt-2, .top-news.cnt-3 {
		-ms-grid-columns: 1fr; grid-template-columns: 1fr;
		-ms-grid-rows: auto auto auto; grid-template-rows: auto auto auto;
		grid-template-areas:
			"tn-one"
			"tn-two"
			"tn-three";
	}
	.top-news.cnt-2 > *, .top-news.cnt-3 > * {
		border-right: none!important;
		height: 52.99vw!important;
		-ms-grid-column: 1!important;
		-ms-grid-row: 1!important;
		-ms-grid-column-span: 1!important;
		-ms-grid-row-span: 1!important;
	}
	.top-news.cnt-2 > * + *, .top-news.cnt-3 > * + * { border-top: 5px solid transparent!important; }
	.top-news.cnt-3 > *:nth-child(3) { border-left: none; }
}
@media screen and (max-width: 420px) {
	.newsbox-top-cattitle { font-size: 1.1em; }
}
/* Dark-Mode für Select2/Popup/#cards etc. läuft jetzt über die CD-Tokens. */

.news-article-spacer {
	border-top: 2.5px solid #a24f49;
	margin-top: 3em;
}

.news-article {
	color: #001722;
	display: block;
	text-decoration: none!important;
	transition: background 0.3s ease-in;
}
.news-article.no-img > * { padding: 0!important; }
.news-article + .news-article { border-top: 2.5px solid #a24f49; }
.news-article img {
	display: block;
	height: auto;
	transition: opacity 0.3s ease-in;
	width: 100%;
}
.news-article:hover { background: #FAFAFA; }
.news-article:hover img { opacity: 0.8; }
.news-article > * {
	display: table;
	padding: 2em 0;
	width: 100%;
}
.news-article > * > * {
	display: table-cell;
	vertical-align: middle;
}
.news-article > * > *:first-child { width: 30%; }
.news-article.top-article > * > *:first-child { width: 66.66%; }
.news-article.no-img > * > *:first-child { width: 100%!important; }
.news-article > * > *:last-child {
	font-size: 1.1em;
	padding: 1.5em 2em;
	vertical-align: top;
}
.news-article-categories, .news-article-title, .news-article-teaser, .news-article-published { line-height: 1.25em; }
.news-article-title { font-size: 1.3125em; }
.news-article-categories {
	color: #a24f49;
	font-weight: 600;
}
.news-article-published {
	color: #a24f49;
	font-size: 0.9em;
}
.like-containter {
	color: #a24f49;
	font-size: 1.2em;
	margin-top: 1em;
}
.like-containter .material-icons {
	margin-right: 0.25em;
	vertical-align: -0.2em;
}
.like-containter .material-icons:hover {
	color: #34302d;
	cursor: pointer;
}
@media (prefers-color-scheme: dark) {
	body .like-containter { color: #d6857a; }
	body .like-containter .material-icons:hover { color: #9a4e4b; }
}
body[data-darkmode="true"] .like-containter { color: #d6857a; }
body[data-darkmode="true"] .like-containter .material-icons:hover { color: #9a4e4b; }
@media screen and (max-width: 1179px) {
	.news-article-spacer.no-tablet { border-top: none; }

	.news-article.top-article > *, .news-article.top-article > * > * { display: block; }
	.news-article.top-article > * { padding: 0 0 1.25em!important; }
	body[data-darkmode="true"] .news-article.no-img > * { padding: 0!important; }
	body[data-darkmode="true"] .news-article.top-article > * { padding: 2em 0 0.45em!important; }
	.news-article.top-article > * > * {
		box-sizing: border-box;
		width: 100%!important;
	}
	.news-article.no-top-article.img > * > *:first-child { width: 50%; }
	body[data-darkmode="true"] .news-article.no-top-article.img > * > *:first-child { padding-right: 0; }
}
@media screen and (max-width: 1000px) {
	.news-article.no-top-article.img > * > *:last-child { padding-top: 0; padding-bottom: 0; }
}
@media screen and (max-width: 900px) {
	.news-article.no-top-article.img .news-article-published { margin-top: 1em; }
}
@media screen and (max-width: 767px) {
	.news-article.top-article > * > *:last-child { padding: 1em 0.8em 0!important; }
	.news-article.no-img > * > * { padding: 0.8em!important; }
	body[data-darkmode="true"] .news-article.top-article > * { padding-top: 0.8em!important; }
	body[data-darkmode="true"] .news-article.top-article > * > *:first-child { padding-left: 0.8em; padding-right: 0.8em; }
	body[data-darkmode="true"] .news-article.top-article > * > *:last-child { padding-bottom: 0.4em!important; }

	body[data-darkmode="true"] .news-article.no-top-article.img > * { padding-top: 0.8em!important; padding-bottom: 0.8em!important; }
	body[data-darkmode="true"] .news-article.no-top-article.img > * > :first-child { padding-left: 0.8em; }
	body[data-darkmode="true"] .news-article.no-top-article.img > * > :last-child { padding-right: 0.8em; }
}
@media screen and (max-width: 550px) {
	.news-article.no-top-article.img > * > *:first-child { display: none; }
	.news-article.no-top-article.img > * { padding-top: 0.8em; padding-bottom: 0.8em; }
	.news-article.no-top-article.img > * > * { padding: 0 0.8em!important; }
	.news-article-categories { font-size: 0.9em; }
	.news-article-title { font-size: 1.1em; }
	.news-article-published { margin-top: 1em; }
}
@media screen and (max-width: 1179px) and (prefers-color-scheme: dark) {
	body .news-article.no-img > * { padding: 0!important; }
	body .news-article.top-article > * { padding: 2em 0 0.45em!important; }
	body .news-article.no-top-article.img > * > *:first-child { padding-right: 0; }
}
@media screen and (max-width: 767px) and (prefers-color-scheme: dark) {
	body .news-article.top-article > * { padding-top: 0.8em!important; }
	body .news-article.top-article > * > *:first-child { padding-left: 0.8em; padding-right: 0.8em; }
	body .news-article.top-article > * > *:last-child { padding-bottom: 0.4em!important; }
	body .news-article.no-top-article.img > * { padding-top: 0.8em!important; padding-bottom: 0.8em!important; }
	body .news-article.no-top-article.img > * > :first-child { padding-left: 0.8em; }
	body .news-article.no-top-article.img > * > :last-child { padding-right: 0.8em; }
}
@media (prefers-color-scheme: dark) {
	body .news-article {
		background: #404040;
		color: #e1dcde;
	}
	body .news-article:hover { background: #343232; }
	body .news-article-categories, body .news-article-published { color: #d6857a; }
	body .news-article + .news-article, body .news-article-spacer {
		border-top: none;
		margin-top: 2em;
	}
	body .news-article > * > *:first-child { padding-left: 2em; padding-right: 2em; }
}
body[data-darkmode="true"] .news-article {
	background: #404040;
	color: #e1dcde;
}
body[data-darkmode="true"] .news-article:hover { background: #393939; }
body[data-darkmode="true"] .news-article-categories, body[data-darkmode="true"] .news-article-published { color: #d6857a; }
body[data-darkmode="true"] .news-article + .news-article, body[data-darkmode="true"] .news-article-spacer {
	border-top: none;
	margin-top: 2em;
}
body[data-darkmode="true"] .news-article > * > *:first-child { padding-left: 2em; padding-right: 2em; }

.button-box {
	padding: 2.5em 0;
	text-align: center;
}

.intern-articles {
	display: flex; flex-direction: row; flex-wrap: wrap;
	margin-left: -1em; margin-top: 1em;
	width: calc(100% + 2em);
}
.intern-articles > * {
	background: #f6f8f7;
	border: 3px solid #f6f8f7;
	box-sizing: border-box;
	margin: 1em;
	padding: 2em;
	text-align: center; text-decoration: none!important;
	transition: background 0.3s ease-in, border-color 0.3s ease-in;
	width: calc(33.3% - 2em);
}
.intern-articles > *:hover {
	background: #FAFAFA;
	border-color: #EEE;
}
.intern-articles .intern-article-title {
	font-size: 1.3125em;
	margin-top: 0;
	text-align: center; text-transform: uppercase;
}
.intern-articles .intern-article-teaser { margin: 1.5em 0; }
.intern-articles .intern-article-teaser, .intern-articles .intern-article-published { color: #001722; }
@media screen and (max-width: 1200px) {
	.intern-articles > * { width: calc(50% - 2em); }
}
@media screen and (max-width: 767px) {
	.intern-articles > * { width: calc(100% - 2em); }
}
@media screen and (max-width: 550px) {
	.intern-articles .intern-article-title { font-size: 1.1em; }
}
@media screen and (max-width: 470px) {
	.intern-articles .intern-article-teaser { display: none; }
	.intern-articles .intern-article-published { margin-top: 1em; }
}
@media (prefers-color-scheme: dark) {
	body .intern-articles > * {
		background: #404040;
		border-color: #404040;
		color: #e1dcde;
	}
	body .intern-articles > *:hover {
		background: #393939;
		border-color: #393939;
	}
	body .intern-articles > * > * { color: #e1dcde; }
	body .intern-articles .intern-article-teaser, body .intern-articles .intern-article-published { color: #e1dcde; }
}
body[data-darkmode="true"] .intern-articles > * {
	background: #404040;
	border-color: #404040;
	color: #e1dcde;
}
body[data-darkmode="true"] .intern-articles > *:hover {
	background: #393939;
	border-color: #393939;
}
body[data-darkmode="true"] .intern-articles > * > * { color: #e1dcde; }

@-moz-keyframes spin {
	100% { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
	100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
	100% { transform:rotate(360deg); -webkit-transform: rotate(360deg); }
}

/* Responsive Images */
.responsiveimages {
	clear: both;
	display: block;
	margin: 2em auto;
	overflow: auto;
	width: 100%; max-width: 1175px;
}
.responsiveimages a {
	border-bottom: none!important;
	display: inline-block;
	float: left;
	margin-left: 0.5%; margin-top: 0.25%; margin-bottom: 0.25%;
	text-decoration: none;
	width: 100%;
}
.responsiveimages a:first-child { margin-left: 0!important; }
.responsiveimages.fullwidth a { margin-left: 0; }
.responsiveimages.portrait a { width: 100%; max-width: 475px; }
.responsiveimages.fiftyfifty a { width: 49.75%; }
.responsiveimages.thirtyfsixtyf a:first-child, .responsiveimages.sixtyfthirtyf a:nth-child(2),
.responsiveimages.sixtyfthirtyfxsec a:nth-child(2), .responsiveimages.sixtyfthirtyfxsec a:nth-child(3), .responsiveimages.sixtyfx2thirtyf .leftside { width: 34.65%; }
.responsiveimages.thirtyfsixtyf a:nth-child(2), .responsiveimages.sixtyfthirtyf a:first-child,
.responsiveimages.sixtyfthirtyfxsec a:first-child { width: 64.45%; }
.responsiveimages.sixtyfx2thirtyf .rightside { width: 64.2%; }
.responsiveimages.sixtyfthirtyfxsec a:nth-child(3) { margin-top: 0.5%; }
.responsiveimages.sixtyfx2thirtyf a { margin-left: 0!important; }
.responsiveimages.sixtyfx2thirtyf a:nth-child(2) { margin-top: 1.5%; }
.responsiveimages.sixtyfx2thirtyf > div {
	display: inline-block;
	float: left;
	height: 100%;
}
.responsiveimages.sixtyfx2thirtyf .rightside { margin-left: 0.5%; }
.responsiveimages a img {
	display: block;
	height: auto;
	vertical-align: middle;
	width: 100%;
}
@media screen and (max-width: 560px) {
	.responsiveimages.sixtyfthirtyfxsec > *, .responsiveimages.sixtyfx2thirtyf .leftside > * { width: 49.75%!important; }
	.responsiveimages.sixtyfthirtyfxsec > *:first-child {
		margin-bottom: 0.5%;
		width: 100%!important;
	}
	.responsiveimages.sixtyfthirtyfxsec > *:nth-child(2) { margin-left: 0!important; }
	.responsiveimages.sixtyfthirtyfxsec > *:nth-child(3) { margin-top: 0!important; }

	.responsiveimages.sixtyfx2thirtyf .leftside { width: 100%; }
	.responsiveimages.sixtyfx2thirtyf .rightside {
		margin-top: 0.5%; margin-left: 0;
		width: 100%;
	}
	.responsiveimages.sixtyfx2thirtyf .leftside > *:nth-child(2) { margin-left: 0.5%!important; margin-top: 0; }
}
@media screen and (max-width: 400px) {
	.responsiveimages.fiftyfifty a {
		margin-left: 0;
		width: 100%;
	}
	.responsiveimages.fiftyfifty a:nth-child(2) { margin-top: 0.5%; }
}

.mat-calendar-wrapper { max-width: 1500px; }
.mat-calendar-container {
	display: table;
	margin: 2em 0;
	width: 100%;
}
.mat-calendar-container > * {
	display: table-cell;
	padding: 10px;
	vertical-align: top;
}
.mat-calendar-container > *:first-child { width: 300px; }
.mat-calendar-container > *:last-child {
	padding-left: 50px;
	position: relative; z-index: 1;
}
.mat-calendar-title {
	font-size: 1.5em; font-weight: 600;
	margin-bottom: 0.8em;
	text-align: center;
}
.mat-calendar { border: none; border-collapse: collapse; }
.mat-calendar tr > * {
	font-size: 1.2em;
	height: 40px;
	text-align: center;
	width: 40px;
}
.mat-calendar tr > *[data-date] { cursor: pointer; }
.mat-calendar .today { background: #fff8bc; }
.mat-calendar tr > td[data-date].active, .mat-calendar tr > td[data-date]:hover {
	background: #a24f49;
	color: #FFF;
}
.mat-calendar-indicator {
	background: #a24f49;
	border-radius: 50%;
	display: block;
	height: 5px;
	margin: 2.5px auto 0;
	width: 5px;
}
.mat-calendar tr > td[data-date].active .mat-calendar-indicator , .mat-calendar tr > td[data-date]:hover .mat-calendar-indicator { background: #FFF; }
.mat-calendar-list-entry {
	display: none;
	font-size: 1.1em;
	width: 100%;
}
.mat-calendar-list-entry.inpast { color: #BBB; }
.mat-calendar-list-entry:nth-child(1), .mat-calendar-list-entry:nth-child(2), .mat-calendar-list-entry:nth-child(3),
.mat-calendar-list-entry:nth-child(4),.mat-calendar-list-entry:nth-child(5) { display: table; }
.mat-calendar-list-entry + .mat-calendar-list-entry { border-top: 1px solid #a24f49; }
.mat-calendar-list-entry > * {
	display: table-cell;
	line-height: 1.25em;
	padding: 0.85em 0;
	vertical-align: top;
}
.mat-calendar-list-entry > *:first-child { padding-left: 0.5em; }
.mat-calendar-list-entry > *:last-child { padding-right: 0.5em; }
.mat-calendar-list-entry-day { width: 80px; }
.mat-calendar-list-entry > *:last-child > * + * { margin-top: 0.45em; }
.mat-calendar-list-container-more {
	margin-top: 1.5em;
	text-align: center;
}
.mat-calendar-dayinfo {
	background: #FFF;
	border: 1px solid #a24f49;
	box-sizing: border-box;
	display: none;
	overflow: auto;
	padding: 25px;
	position: absolute; z-index: 2; left: 50px; top: 0; bottom: 0; right: 0;
}
.mat-calendar-dayinfo-title {
	font-size: 1.5em; font-weight: 600;
	margin-bottom: 1.25em;
	padding-right: 50px;
}
.mat-calendar-dayinfo-title, .mat-calendar-dayinfo-maturities { line-height: 1.25em; }
.mat-calendar-dayinfo-maturities > * {
	background: #f6f8f7;
	padding: 8px 12px;
}
.mat-calendar-dayinfo-maturities > * + * { margin-top: 0.8em; }
.mat-calendar-dayinfo-close {
	margin: 0!important;
	position: absolute; z-index: 1; right: 10px; top: 10px;
}
.mat-calendar-container.daymode .mat-calendar-list-entry, .mat-calendar-container.daymode .mat-calendar-list-container-more { display: none!important; }
.mat-calendar-container.daymode .mat-calendar-dayinfo { display: block; }
@media screen and (max-width: 900px) {
	.mat-calendar-wrapper { padding: 0; }
	.mat-calendar-container > *:first-child { display: none; }
	.mat-calendar-container, .mat-calendar-container > *:last-child { display: block; }
	.mat-calendar-container { margin-top: 0.5em; }
	.mat-calendar-container > *:last-child { padding: 0; }
	.mat-calendar-container.daymode .mat-calendar-list-entry, .mat-calendar-list-entry { display: table!important; }
	.mat-calendar-list-container-more, .mat-calendar-container.daymode .mat-calendar-dayinfo { display: none!important; }

	body[data-darkmode="true"] .mat-calendar-container { margin-top: 2em; }
	body[data-darkmode="true"] .mat-calendar-container > *:last-child { border-left: none!important; }
}
@media screen and (max-width: 900px) and (prefers-color-scheme: dark) {
	body .mat-calendar-container { margin-top: 2em; }
	body .mat-calendar-container > *:last-child { border-left: none!important; }
}
@media (prefers-color-scheme: dark) {
	body .mat-calendar-container > * { background: #404040; }
	body .mat-calendar-container > *:last-child {
		border-left: 40px solid #282828;
		padding-left: 10px;
	}
	body .mat-calendar .today { background: #d6857a; }
	body .mat-calendar-indicator { background: #d6857a; }
	body .mat-calendar tr > td[data-date].active, body .mat-calendar tr > td[data-date]:hover,
	body .mat-calendar tr > td[data-date].active .mat-calendar-indicator,
	body .mat-calendar tr > td[data-date]:hover .mat-calendar-indicator { color: #e1dcde; }
	body .mat-calendar-list-entry + .mat-calendar-list-entry { border-color: #d6857a; }
	body .mat-calendar-dayinfo {
		background: #404040;
		border: none!important;
		left: 0;
	}
	body .mat-calendar-dayinfo-maturities > * { background: #9a4e4b; }
	body .mat-calendar-list-entry.inpast { color: #7c7c7c; }
}
body[data-darkmode="true"] .mat-calendar-container > * { background: #404040; }
body[data-darkmode="true"] .mat-calendar-container > *:last-child {
	border-left: 40px solid #282828;
	padding-left: 10px;
}
body[data-darkmode="true"] .mat-calendar .today { background: #d6857a; }
body[data-darkmode="true"] .mat-calendar-indicator { background: #d6857a; }
body[data-darkmode="true"] .mat-calendar tr > td[data-date].active, body[data-darkmode="true"] .mat-calendar tr > td[data-date]:hover,
body[data-darkmode="true"] .mat-calendar tr > td[data-date].active .mat-calendar-indicator,
body[data-darkmode="true"] .mat-calendar tr > td[data-date]:hover .mat-calendar-indicator { color: #e1dcde; }
body[data-darkmode="true"] .mat-calendar-list-entry + .mat-calendar-list-entry { border-color: #d6857a; }
body[data-darkmode="true"] .mat-calendar-dayinfo {
	background: #404040;
	border: none!important;
	left: 0;
}
body[data-darkmode="true"] .mat-calendar-dayinfo-maturities > * { background: #9a4e4b; }
body[data-darkmode="true"] .mat-calendar-list-entry.inpast { color: #7c7c7c; }

body.content-only #header, body.content-only #footer { display: none!important; }
body.content-only #main { margin-top: 20px!important; margin-bottom: 20px!important; }

/* END Custom */

@media screen and (min-width: 851px) { /*601*/
	/*#header { position: relative; z-index: 99; }*/

	#nav > ul > li:hover > ul { display: block; }
	#nav ul li:hover > a > i {
		-moz-transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		transform: rotate(180deg);
	}
}
@media  screen and (max-width: 650px) {
	#beta-info {
		display: none;
	}
}
@media screen and (max-width: 850px), (any-hover: none) {/*600*/
	#showmobilemenu { display: inline-block; }
	/* Change-x */
	#showmobilemenu .material-icons:last-child, body.mobilemenu #showmobilemenu .material-icons:first-child { display: none; }
	body.mobilemenu #showmobilemenu .material-icons:last-child { display: inline-block; }
	/* Change-x */

	#nav {
		background: var(--red-brand);
		height: calc(100vh - 97px); /* Change-x */
		margin-top: 0;
		overflow-y: auto; overflow-x: hidden;
		padding: 0;
		position: fixed; z-index: 2; top: 97px; left: -1550px; /* Change-x */
		transition: left 0.5s ease-in-out; -webkit-transition: left 0.5s ease-in-out; -moz-transition: left 0.5s ease-in-out; -o-transition: left 0.5s ease-in-out;
		width: 100%;
	}
	body.mobilemenu #nav { left: 0; }
	body.showmobilemenu #main { display: none; }
	#nav ul, #nav > ul > li { display: block; }
	#nav > ul > li + li {
		border-left: none;
		margin-top: 1px; 
	}
	#nav ul ul { position: relative; top: auto; }
	#nav > ul > li.active > ul { display: block; }
	#nav > ul > li > a { position: relative; z-index: 1; }
	#nav > ul > li > a i { 
		position: absolute; z-index: 1; right: 1.25em; top: 58%;
		transform: translateY(-50%);
	}
	#nav > ul > li.active > a i {
		-moz-transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		transform: rotate(180deg);
		top: 34%;
	}
	#nav ul ul a { padding-left: 1.75em; }
	
	h1, .likeh1 { 
		font-size: 1.8em;
		line-height: 1em;
		margin-bottom: 1.3em;
	}
	body.bgwhite .like-headline { font-size: 1.5em; }
}
@media screen and (any-hover: none) {
	#nav { left: -4000px; }
}


/* App-x */
body img.darkmode { display: none!important; }

/* ══════════════════════════════════════════════════════════════
   Dark-Mode: Chrome/Komponenten laufen jetzt zentral über die
   CD-Tokens (siehe style.css :root + body[data-darkmode]/prefers).
   Hier bleibt nur, was Tokens NICHT abbilden können.
   ══════════════════════════════════════════════════════════════ */
/* Bild-/Logo-Swap (Light zeigt .lightmode, Dark zeigt .darkmode) + leichtes Dimmen */
body[data-darkmode="true"] img { filter: brightness(.94) contrast(1); }
body[data-darkmode="true"] img.lightmode { display: none!important; }
body[data-darkmode="true"] img.darkmode { display: block!important; }
@media (prefers-color-scheme: dark) {
	body img { filter: brightness(.94) contrast(1); }
	body img.lightmode { display: none!important; }
	body img.darkmode { display: block!important; }
}
/* Logo ist Ausnahme: muss inline neben dem Apps-Icon bleiben (nicht block)
   und ohne Dimm-Filter (Dark-Variante ist schon fürs Dunkel gestaltet) */
body[data-darkmode="true"] #logo.darkmode { display: inline-block!important; }
body[data-darkmode="true"] #logo { filter: none; }
@media (prefers-color-scheme: dark) {
	body #logo.darkmode { display: inline-block!important; }
	body #logo { filter: none; }
}

/* Dark-Text-Utilities */
body[data-darkmode="true"] #article .dm-text-white { color: var(--t1); }
body[data-darkmode="true"] #article .dm-text-black { color: #404040; }
@media (prefers-color-scheme: dark) {
	body #article .dm-text-white { color: var(--t1); }
	body #article .dm-text-black { color: #404040; }
}

/* Datatables (token-basiert, wirkt in beiden Modi) */
table.dataTable, table.dataTable td, table.dataTable th { color: var(--t1); }
table.dataTable tbody tr { background: transparent; }
table.dataTable thead th, table.dataTable thead td { border-color: var(--b1); }
.dtable tbody tr:hover > * { background: var(--s3); }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate, .dataTables_wrapper .dataTables_paginate .paginate_button.current { color: var(--t2); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { border-color: var(--red); }

/* File-Upload-Delete (Token) */
.file-upload-preview .file-upload-delete { background: var(--red); color: #fff; }
@media screen and (max-width: 650px) {
	body[data-darkmode="true"] .card-menu { background: transparent; }
	body[data-darkmode="true"] #article .card-menu .hide-card { color: #e1dcde; }
}

/* Cards */
.card {
	background: var(--s1);
	border: 1px solid var(--b0);
	border-radius: var(--r);
	box-shadow: var(--shadow-card);
	margin-top: 20px; margin-bottom: 20px;
	padding: 1.65em;
}

/* START Cards */
#cards {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	margin-left: -10px;
	width: calc(100% + 20px);
}
#cards.show { display: flex; flex-wrap: wrap; }
#cards::after {
	clear: both;
	content: '';
	display: table;
	overflow: auto;
}
#cards .cards-outer {
	display: flex; flex-direction: column;
	float: left;
	opacity: 1!important;
	width: 25%;
}
#cards .size-small { width: 25%; }
#cards .size-medium { width: 50%; }
#cards .size-big { width: 75%; }
#cards .card {
	box-sizing: border-box;
	flex-grow: 1;
	height: calc(100% - 20px);
	margin: 10px!important;
	width: calc(100% - 20px);
}
@media screen and (min-width: 2001px) {
	#cards .size-small { width: 25%; }
	#cards .size-medium { width: 40%; }
	#cards .size-big { width: 60%; }
}
@media screen and (max-width: 1800px) {
	#cards .cards-outer { width: 33.3%; }
	#cards .size-small { width: 33.3%; }
	#cards .size-medium { width: 66.6%; }
	#cards .size-big { width: 100%; }
}
@media screen and (max-width: 1400px) {
	#cards .cards-outer { width: 50%; }
	#cards .size-small { width: 50%; }
	#cards .size-medium { width: 100%; }
	#cards .size-big { width: 100%; }
}
@media screen and (min-width: 1101px) and (max-width: 1400px) {
	.hide-infooverlay #cards .size-small { width: 33.3%; }
	.hide-infooverlay #cards .size-medium { width: 66.6%; }
	.hide-infooverlay #cards .size-big { width: 66.6%; }
}
@media screen and (max-width: 650px) {
	#cards { display: block!important; }
	#cards .cards-outer { width: 100%!important; }
}

#cardspopup {
	background: var(--s0);
	display: none;
	position: fixed; z-index: 100; left: 0; top: 0; bottom: 0; right: 0;
}
#cardspopup > * { padding: 20px; }
#cardspopup-header {
	position: relative; z-index: 1;
	text-align: right;
}
#cardspopup-back {
	display: none;
	position: absolute; z-index: 1; left: 20px; top: 50%;
	transform: translateY(-50%);
}
#cardspopup-body {
	max-height: calc(100vh - 120px);
	overflow: auto;
}
#cardspopup-body > * { display: none; }
#cardspopup-body > .active { display: block; }

#cards-list-wrapper, #cardspopup-form .wrapper {
	max-width: 1250px;
	padding-left: 0; padding-right: 0;
}
#cards-list { display: flex; flex-wrap: wrap; }
#cards-list::after {
	clear: both;
	content: '';
	display: table;
	overflow: auto;
}
#cards-list > * {
	box-shadow: 0 1px 8px 0 rgb(0 0 0 / 20%);
	display: inline-block;
	float: left;
	margin: 10px;
	width: calc(33.3% - 20px);
}
.cards-list-item {
	display: flex!important;
	flex-direction: column;
}
.cards-list-item-add {
	flex-grow: 1;
	justify-content: center;
	text-align: center;
}
.cards-list-item > * { padding: 15px; }
.cards-list-item-body { flex-grow: 2; }
.cards-list-item-body > *, .cards-list-item-controls > * {
	display: table;
	width: 100%;
}
.cards-list-item-body > * > *, .cards-list-item-controls > * > * {
	display: table-cell;
	vertical-align: middle;
}
.cards-list-item-body > * > *:first-child {
	text-align: left;
	width: 40px;
}

.cards-list-info {
	color: #f44336;
	font-size: 0.8em;
}

.cards-list-item-controls { padding-top: 0; padding-bottom: 0; }
.cards-list-item-controls > * > *:last-child {
	text-align: right;
	width: 50px;
}
.cards-list-item-controls > * > *:last-child .material-icons { font-size: 38px; }
.cards-list-item-showhide.inactive { color: #a7a7a7; }
.cards-list-item-delete { margin-left: 12px; }

#cardsize-row.hide { display: none; }
/* END Cards */

@media screen and (max-width: 768px) {
	#footer { margin-top: 65px; }
}

/* Dark-Mode (System) wird zentral über die CD-Tokens gesteuert — der frühere
   umfangreiche prefers-color-scheme-Override entfällt (siehe style.css). */
@media (prefers-color-scheme: dark) and (max-width: 650px) {
	body .card-menu { background: transparent; }
	body #article .card-menu .hide-card { color: var(--t1); }
}