/*
TODO: Datei auflösen, Anweisungen migrieren
Alle Angaben in dieser Datei sollten an die richtigen Stellen
in den einzelnen css-Dateien unter Resources/Private verschoben werden,
wenn GULP wieder funktioniert. Dabei sollten auch alle Werte soweit möglich
und sinnvoll mit bestehenden Variablen ersetzt werden.
 */

/* Elements/Contact/Styles/List.css
.ContactList__list {
	margin-bottom: -1.5625rem;
}

.ContactList__item:last-child {
	margin-bottom: 1.5625rem;
}
*/

/* Elements/Form/Styles/Styles.css
.form-check {
	margin: 0 0 .5rem;
}
*/

/* Styles/Typography/Styles/Links.css
.mobile::before, a[href]:not(.custom-link)[href^="tel:"].mobile::before {
	width: .8em;
	height: .8em;
	background-image: url('/typo3conf/ext/tw_afg/Resources/Public/Icons/Mobile.svg');
}
*/

/* Elements/Contact/Styles/TrafficLight.css
.TrafficLight {
	width: 1.7em;
	height: 1.7em;
	line-height: 1.7em;
	padding: 0;
	margin: .25rem;
	border-radius: 50%;
	background-color: #99ff7c;
	color: #000;
	text-align: center;
	display: inline-block;
	vertical-align: middle;
	text-decoration: none;
	cursor: help;
}

.TrafficLight--yellow {
	background-color: #ffe247;
	color: #000;
}

.TrafficLight--red {
	background-color: #d50000;
	color: #fff;
}
*/

/* Elements/Event/Styles/List.css
.EventList th:nth-child(3) {
	width: 3rem;
}
.EventList th:nth-child(4) {
	width: 16.666666%;
}

.EventList td:nth-child(3) {
	text-align: center;
	vertical-align: middle;
}

.EventList td:nth-child(4) {
	text-align: center;
	vertical-align: middle;
}
*/

/* Styles/Typography/Styles/Styles.css
h5 {
	font-weight: normal !important;
}
*/

.FormSelect  select {
	border: 1px solid #999;
}

.form-check {
	margin-bottom: .5em;
}

.powermail_reset  {
	background-color: #ccc;
	color: #000;
	border-color: #ccc;
}

.tx-powermail .btn-group {
	display: flex;
	width: 100%;
	justify-content: space-between;
	padding: 1em 0;
}

.powermail-check-label,
.powermail-check-label * {
	display: inline;
}

.powermail_confirmation {
	background-color: #fff;
	padding: 1rem;
}

.powermail_confirmation > h1 {
	margin-top: 0;
}


.powermail_confirmation .btn-group {
	padding-bottom: 0;
}

.powermail_message.powermail_message_error {
	background-color: red;
	color: white;
	padding: 1em 1em 1em 2em;
}

details {
	display: block;
}

details + details {
	margin-top: 1rem;
}

summary {
	display: block;
	color: #123579;
	list-style: none;
	cursor: pointer;
}

summary:focus {
	outline: none;
}

summary:focus-visible {
	text-decoration: underline;
}

summary::before {
	display: inline-block;
	font-size: .75em;
	margin-right: .5em;
	content: '\25B6';
	transition: all .15s;
}

details[open] > summary::before {
	transform: rotate(90deg);
}

details img {
	margin: 1rem 0;
}

.NavMain__list.lvl2 {
	border-left: solid 1px rgba(0,0,0,0.1);
	border-right: solid 1px rgba(0,0,0,0.1);
}

.TeaserList--fixed .Teaser .Teaser-backgroundimage {
	height: 16rem;
}

.PageHeader__image {
	background-color: var(--color-white);
	border-bottom: solid 1px #dcdcdc;
}

.PageHeader__image, .PageHeader__image-item {
	background-size: contain !important;
	background-repeat: no-repeat;
}

.PageHeader .tns-outer,
.PageHeader > .PageHeader__image {
	max-width: 72rem;
	margin-left: auto;
	margin-right: auto;
}

.PageHeader__image-item {
	background-position: center center;
}

.NavMain {
	border-top: 1px solid #f8f8f8;
}

/*
.PageHeader__image-item {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}
*/

.FormField__label {
	display: inline-block;
	width: 23.91304%;
	font-weight: bold;
}

.powermail_fieldwrap_type_file .powermail_field {
	display: inline-block;
	width: 76.08696%;
}

.powermail_fieldwrap {
	display: block;
	margin-bottom: 1.04167rem;
}

/* Banners, Cookie-Banner */

body {
	display: flex;
	flex-direction: column;
}

body > * {
	order: 10;
}

.Banner {
	position: sticky;
	top: 0;
	max-width: 75rem;
	margin: 0 auto;
	padding: 1.5625rem;
	z-index: 9999;
	background-color: #FFF;
	color: #000;
}

.Banner__content > *:first-child {
	margin-top: 0;
}

.Banner__content > *:last-child {
	margin-bottom: 0;
}

.Banner--cookies {
	order: 1;
}

.Gallery__nav-item-image {
	object-fit: cover;
	width: 100% !important;
	height: 100% !important;
}

/* Breakpoints */

@media screen and (min-width: 42.0625rem) {
	.TeaserList--fixed.TeaserList--2-items .TeaserList-item {
		width: 50%;
	}
}


@media screen and (min-width: 52.0625rem) {
	.TeaserList--fixed.TeaserList--3-items .TeaserList-item {
		width: 33.333333%;
	}
}

@media screen and (min-width: 52.0625rem) {
	.TeaserList--fixed.TeaserList--3-items .TeaserList-item {
		width: 33.333333%;
	}
	.TeaserList--fixed.TeaserList--3-items .Teaser .Teaser-backgroundimage {
		height: 11rem;
	}
}

@media screen and (min-width: 64rem) {
	.TeaserList--fixed.TeaserList--4-items .TeaserList-item {
		width:25%;
	}


	.TeaserList--fixed.TeaserList--4-items .Teaser .Teaser-backgroundimage {
		height: 9rem;
	}
}
