/*
 * Industrie-Technik Schwinn GmbH - Gestaltung der Website
 *
 * Aufbau:
 *  1. Schriften
 *  2. Grundlayout (alle Breiten)
 *  3. Kopfbereich und Navigation
 *  4. Inhaltselemente (Bild + Text, Rahmen, Tabellen)
 *  5. Fußbereich
 *  6. Desktop ab 992px
 *  7. Tablet und Smartphone bis 991px
 *  8. Ergänzungen: Karten-Platzhalter, Cookie-Banner, Kontaktseite
 *
 * Hauptfarben: Blau #174895, Hellblau (aktiver Menüpunkt) #6398ed,
 * Text #333333, Rahmenflächen #f5f5f5
 */


/* ==========================================================
   1. Schriften (lokal, keine Verbindung zu Google)
   ========================================================== */

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/roboto-latin-300.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-latin-400.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/roboto-latin-500.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/roboto-latin-700.woff2") format("woff2");
}


/* ==========================================================
   2. Grundlayout
   ========================================================== */

body {
	position: relative;
	background-color: #ffffff;
	background-image: url("../img/layout/bg.png");
	background-repeat: repeat-x;
	color: #333333;
	font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a,
a:link,
a:visited {
	outline: none;
}

a:hover {
	text-decoration: none;
}

.container {
	width: 100%;
}

.body-bg {
	margin-left: auto;
	margin-right: auto;
	background-color: transparent;
}

.body-bg .main-section {
	min-height: 400px;
	background-color: #ffffff;
}

.main-section a {
	text-decoration: underline;
}

.btn.btn-default {
	text-decoration: none;
}

/* Lange Button-Texte dürfen auf schmalen Bildschirmen umbrechen */
.main-section .btn {
	white-space: normal;
}

.caret {
	margin-left: 5px;
}

.caption {
	color: #777777;
}

th {
	background-color: #eeeeee;
	color: #174895;
}

.csc-space-before-25 {
	margin-top: 25px !important;
}

.csc-space-before-30 {
	margin-top: 30px !important;
}

.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	padding: 1em;
	background: rgba(0, 0, 0, 0.75);
	color: #ffffff;
	outline: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s, visibility 0.4s;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
	background: rgba(0, 0, 0, 0.85);
	color: #ffffff;
	outline: none;
}

.panel-group {
	margin-bottom: 20px;
}

.panel-title > a {
	display: block;
	width: 100% !important;
	outline: none;
	color: #174895 !important;
}

.panel-body *:last-child {
	margin-bottom: 0;
}


/* ==========================================================
   3. Kopfbereich und Navigation
   ========================================================== */

.navbar-default {
	background-color: transparent;
	border-color: #eeeeee;
}

.navbar.navbar-top {
	margin-bottom: 0;
	border-left: none;
	border-right: none;
	border-top: none;
}

.navbar-collapse {
	max-height: none;
}

.navbar-header-main .navbar-brand {
	height: 140px;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 140px;
	transition: opacity 0.15s ease-in-out 0s;
}

.navbar-header-main .navbar-brand.navbar-brand-image > img {
	display: inline;
}

.navbar-header-main .navbar-brand:hover {
	opacity: 0.8;
}

.navbar-header-main .navbar-toggle {
	margin-top: 14px;
	margin-right: 5px;
	margin-bottom: 14px;
	padding: 6px 10px;
	color: #8c8c8c;
	font-size: 20px;
}

.navbar-header-main .navbar-toggle:focus {
	outline: 0;
}

.navbar-main > li > a {
	font-weight: bold;
	text-transform: uppercase;
}

/* Farbiger Balken über dem aktiven Menüpunkt */
.navbar-main > li > a .bar {
	position: absolute;
	top: -10px;
	left: 0;
	width: 100%;
	height: 4px;
	background: #174895;
	opacity: 0;
	transition: top 0.19s ease-in-out 0s, opacity 0.25s ease-in-out;
}

.navbar-main > li.dropdown.open > a > .bar,
.navbar-main > li:hover > a > .bar,
.navbar-main > li.active > a > .bar {
	top: 0;
	opacity: 0.5;
}

.navbar-main > li.dropdown.open > a > .bar,
.navbar-main > li.active > a > .bar {
	opacity: 1;
}

.dropdown-menu {
	padding: 0;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.dropdown-menu > li > a {
	padding: 11.5px 15px;
}

/* Bildwechsel im Kopfbereich */
.flexslider {
	z-index: 50 !important;
	box-shadow: 0 0 5px #000000 !important;
}


/* ==========================================================
   4. Inhaltselemente
   ========================================================== */

.image {
	display: block;
	margin-bottom: 24px;
	line-height: 1.55;
}

.image > img,
.image a > img {
	display: block;
	max-width: 100%;
	height: auto;
}

.image .caption {
	padding: 9px 0 0;
}

.image-row {
	margin-left: -15px;
	margin-right: -15px;
}

.image-column {
	position: relative;
	min-height: 1px;
	max-width: 100%;
	padding-left: 15px;
	padding-right: 15px;
}

.image-wrap {
	overflow: hidden;
	max-width: 100%;
}

.image-below .image-wrap {
	margin-top: 24px;
}

.image-center .image > img {
	margin: 0 auto;
}

/* Zentrierung von Bildgruppen (Technik aus dem TYPO3-Bootstrap-Paket) */
.image-center-outer {
	position: relative;
	right: 50%;
	float: none;
	width: 100%;
}

.image-center-inner {
	position: relative;
	right: -50%;
	float: right;
	width: 100%;
}

.image-wrap:before,
.image-wrap:after,
.image-below:before,
.image-below:after,
.image-above:before,
.image-above:after,
.image-intext:before,
.image-intext:after {
	content: " ";
	display: table;
}

.image-wrap:after,
.image-below:after,
.image-above:after,
.image-intext:after {
	clear: both;
}

/* Bild rechts neben bzw. im Text */
.image-intext-right .image-wrap {
	float: right;
	max-width: 50%;
	margin-right: -15px;
	padding-left: 15px;
	padding-right: 15px;
}

.csc-textpic-caption-c {
	text-align: center;
}

.frame.well *:first-child {
	margin-top: 0;
}

.frame.well *:last-child {
	margin-bottom: 0;
}

.jumbotron {
	min-height: 20px;
	margin-bottom: 20px;
	padding: 19px;
	background-color: #f5f5f5;
	border: 1px solid #e3e3e3;
	border-radius: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
	color: #333333;
}

.jumbotron img {
	max-width: 180px !important;
}

.table-centered {
	margin-left: auto;
	margin-right: auto;
}

/* Lange E-Mail-Adressen und Dateinamen dürfen umbrechen */
.main-section .table td a,
.media-heading a {
	overflow-wrap: anywhere;
}


/* ==========================================================
   5. Fußbereich
   ========================================================== */

footer {
	display: block;
	width: 100%;
	background-color: #e3e3e3;
	background-image: url("../img/layout/footer-bg.jpg");
	background-repeat: repeat-x;
}

footer h3 {
	margin-top: 0;
	padding-top: 0;
}

.footer-section {
	max-width: 1200px;
	margin: 48px auto 0;
	padding: 24px 0 36px;
	background-color: transparent !important;
	border-top: 0 solid #3c3c3c !important;
	color: #333333 !important;
}

.footer-section a {
	color: #2c53a2;
}

.footer-section a:hover,
.footer-section a:focus {
	color: #174895;
}

.footerimage .image-center.image-above .image-row {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

.footerimage .image-center.image-above .image-column {
	flex: 0 0 auto;
	float: none !important;
	width: auto !important;
	max-width: none !important;
}

#c171 .caption {
	padding-left: 15px;
	text-align: left !important;
}

/* Unten Platz lassen, damit der "Nach oben"-Button keine Links verdeckt */
.meta-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 0 70px;
	background-color: transparent;
	border-top: 0 solid #ffffff !important;
	color: #333333;
}

.meta-section a {
	color: #333333;
	font-weight: normal;
}

.meta-section a:hover,
.meta-section a:focus {
	color: #174895;
}

.meta-section ul,
.meta-section p {
	margin: 10px 0;
}


/* ==========================================================
   6. Desktop ab 992px
   ========================================================== */

@media (min-width: 992px) {

	h1 {
		color: #174895;
		font-size: 30px;
		font-weight: 400;
	}

	h2 {
		color: #174895;
		font-size: 20px;
		font-weight: 400;
	}

	h3 {
		color: #174895;
		font-size: 18px;
		font-weight: 300;
	}

	h4 {
		color: #174895;
		font-size: 16px;
		font-weight: 400;
	}

	img {
		-webkit-user-select: none;
		user-select: none;
	}

	.table {
		width: auto;
	}

	.image-column {
		float: left;
	}

	.image-wrap {
		overflow: visible;
	}

	/* Kopfbereich */
	.navbar-top .container {
		width: 100%;
		padding-top: 5px;
		padding-bottom: 5px;
	}

	.navbar-header-main .navbar-brand {
		height: 80px;
		line-height: 80px;
	}

	.topbar {
		position: absolute;
		top: 6px;
		right: 0;
		width: 360px;
		height: 85px;
		padding-top: 12px;
		padding-right: 10px;
		font-size: 1.8rem;
		font-weight: bold;
		text-align: right;
	}

	/* Hauptnavigation (blauer Balken unter dem Bildwechsel) */
	.navbar-wrapper {
		transition: 0.8s;
	}

	.sticky {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 100;
		width: 100%;
		border-top: 0;
		transition: 0.8s;
	}

	.navbar-collapse {
		width: 100%;
		padding: 0;
		background-color: #174895;
	}

	.navbar-main {
		display: table;
		float: none;
		width: auto;
		margin: 0 auto;
	}

	.navbar-main > li > a {
		padding: 0 8px;
		color: #ffffff;
		font-size: 14px;
		font-weight: 500;
		line-height: 55px;
		text-transform: uppercase;
		transition: background-color 0.5s ease;
	}

	.navbar-main > li > a:hover {
		color: #174895 !important;
	}

	.navbar-default .navbar-nav > li > a {
		color: #ffffff;
	}

	.navbar-default .navbar-nav > .active > a,
	.navbar-default .navbar-nav > .active > a:hover,
	.navbar-default .navbar-nav > .active > a:focus,
	.navbar-default .navbar-nav > li > a:hover,
	.navbar-default .navbar-nav > li > a:focus {
		background-color: #8e0b0f;
		color: #174895;
	}

	.navbar-default .navbar-nav > .open > a,
	.navbar-default .navbar-nav > .open > a:hover,
	.navbar-default .navbar-nav > .open > a:focus {
		background-color: #8e0b0f;
		color: #ffffff;
	}

	.navbar-collapse.collapse .nav.navbar-nav.navbar-main .active a {
		background-color: #6398ed;
	}

	.navbar-collapse.collapse .nav.navbar-nav.navbar-main .active.dropdown .dropdown-menu a {
		background-color: #f0f0f0;
	}

	.navbar-collapse.collapse .nav.navbar-nav.navbar-main .active.dropdown .dropdown-menu .active a,
	.navbar-collapse.collapse .nav.navbar-nav.navbar-main .active.dropdown .dropdown-menu a:hover {
		background-color: #6398ed;
	}

	/* Weißes Dreieck unter Menüpunkten mit Untermenü */
	.caret {
		display: block !important;
		margin: -12px auto !important;
		padding-bottom: 18px;
		border-top: 6px solid;
		color: #ffffff;
	}

	/* Untermenüs öffnen beim Überfahren mit der Maus */
	ul.nav li.dropdown:hover ul.dropdown-menu {
		display: block;
		margin-top: 0;
	}

	.dropdown-menu {
		background-color: #ffffff;
		padding: 0;
	}

	.dropdown-menu > li {
		border-bottom: 1px dashed #aaaaaa;
	}

	.dropdown-menu > li:last-child {
		border-bottom: none;
	}

	.dropdown-menu > li > a {
		display: block;
		clear: both;
		padding: 0 10px;
		color: #333333;
		font-size: 14px;
		font-weight: 300;
		line-height: 40px;
		white-space: nowrap;
	}

	.dropdown-menu > li > a:hover,
	.dropdown-menu > li > a:focus,
	.dropdown-menu > .active > a,
	.dropdown-menu > .active > a:hover,
	.dropdown-menu > .active > a:focus {
		background-color: #eeeeee;
		color: #333333;
		text-decoration: none;
		outline: 0;
	}

	/* Vergrößerbare Bilder */
	.magnificpopup img {
		border: 2px solid #ffffff;
		border-radius: 2px;
		box-shadow: 0 0 3px 0 #555555;
		transition: all 500ms ease-in-out 0s;
	}

	.magnificpopup img:hover {
		transform: scale(1.03);
	}

	/* Fußbereich */
	.meta-section ul,
	.meta-section p {
		margin: 0;
	}

	.meta-section .copyright {
		text-align: right;
	}
}

@media (min-width: 1200px) {

	.body-bg {
		max-width: 1200px;
	}

	.navbar-main > li > a {
		padding: 0 18px;
	}
}


/* ==========================================================
   7. Tablet und Smartphone bis 991px
   ========================================================== */

@media (max-width: 991px) {

	h1 {
		color: #174895;
		font-size: 20px;
		font-weight: 400;
	}

	h2 {
		color: #174895;
		font-size: 18px;
		font-weight: 300;
	}

	h3 {
		color: #174895;
		font-size: 16px;
		font-weight: 300;
	}

	h4 {
		color: #174895;
		font-size: 14px;
		font-weight: 400;
	}

	.topbar {
		display: none;
	}

	/* Kopfbereich */
	.navbar-header-main {
		position: relative;
	}

	.navbar-header-main .navbar-brand {
		height: auto;
		padding: 15px;
		line-height: 24px;
	}

	.navbar-header-main .navbar-brand.navbar-brand-image > img {
		width: 100%;
		max-height: 40px;
		height: auto;
	}

	.navbar-header-main .navbar-toggle {
		margin-top: 30px;
		margin-bottom: 0;
		color: #174895;
	}

	/* Menü als Liste */
	.nav.navbar-nav.navbar-main {
		margin-top: 0;
		margin-bottom: 0;
		padding: 0;
		background-color: #ffffff;
		border-bottom: 3px solid #174895;
	}

	.nav > li,
	.dropdown-menu > li {
		border-bottom: 1px dotted #cccccc;
	}

	.nav > li:last-child,
	.dropdown-menu > li:last-child {
		border-bottom: none;
	}

	.navbar-main > li > a {
		color: #555555;
		font-size: 14px;
		font-weight: 500;
		text-transform: none;
	}

	.navbar-main > li > a:hover {
		color: #174895 !important;
	}

	.navbar-main > li.dropdown > a {
		padding-right: 40px;
	}

	.navbar-main > li > a .bar {
		top: 0;
		left: -10px;
		width: 4px;
		height: 100%;
		transition: left 0.19s ease-in-out 0s, opacity 0.25s ease-in-out;
	}

	.navbar-main > li.dropdown.open > a > .bar,
	.navbar-main > li:hover > a > .bar,
	.navbar-main > li.active > a > .bar {
		left: 0;
	}

	.navbar-default .navbar-nav > .active > a,
	.navbar-default .navbar-nav > .active > a:hover,
	.navbar-default .navbar-nav > .active > a:focus {
		background-color: transparent;
		color: #174895;
	}

	/* Untermenüs: Aufklappen über den Pfeil rechts */
	.navbar-main li.dropdown ul.dropdown-menu {
		background-color: #eeeeee;
		box-shadow: none;
	}

	.navbar-main .open .dropdown-menu {
		border-left: 4px solid rgba(23, 72, 149, 0.5);
	}

	.navbar-nav .open .dropdown-menu > li > a {
		color: #333333;
		font-size: 12px;
		font-weight: 400;
		text-transform: none;
	}

	.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
	.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
	.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
		background-color: transparent;
		color: #174895;
	}

	.dropdown-toggle {
		position: absolute !important;
		top: 0;
		right: 0;
		z-index: 10;
		display: table;
		width: 50px;
		height: 43px;
		padding: 0 !important;
	}

	.caret {
		position: absolute;
		top: 23px;
		right: 20px;
		z-index: 999;
		display: block;
		margin-top: -3px;
		transform: rotate(0deg);
		transition: transform 250ms ease-out 0s;
	}

	.navbar-main > li.dropdown.open .caret {
		transform: rotate(180deg);
	}
}

/* Smartphone: Menü direkt unter dem Kopfbereich statt unter dem Bildwechsel */
@media (max-width: 767px) {

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

	.navbar-top {
		order: 1;
	}

	.navbar-wrapper {
		order: 2;
	}

	.flexslider {
		order: 3;
	}

	.main-section {
		order: 4;
	}

	.meta-section {
		background-color: #cccccc;
	}

	.footer-section > .container > .row > div {
		margin-bottom: 25px;
	}

	/* Siegel im Fußbereich paarweise nebeneinander statt untereinander */
	.footer-section .image-column.col-md-6 {
		float: left;
		width: 50%;
	}

	.footer-section > .container > .row > div:nth-child(3) {
		clear: left;
	}

	/* Bilder neben dem Text werden auf schmalen Geräten über den Text gestellt */
	.image-intext-right .image-wrap {
		float: none;
		max-width: 100%;
		margin-right: 0;
		padding: 0;
	}

	.image > img,
	.image a > img {
		margin: 0 auto;
	}
}

@media (max-width: 400px) {

	body {
		font-size: 13px;
	}
}


/* ==========================================================
   8. Ergänzungen
   ========================================================== */

/* Platzhalter für Google Maps bis zur Einwilligung */
.embed-consent {
	position: relative;
	width: 100%;
	height: 600px;
	background-color: #f5f5f5;
	border: 1px solid #e3e3e3;
}

.embed-consent iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.embed-consent-placeholder {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	padding: 20px;
	text-align: center;
}

.embed-consent-placeholder[hidden] {
	display: none;
}

.embed-consent-placeholder p {
	max-width: 520px;
}

.embed-consent-placeholder .embed-consent-title {
	color: #174895;
	font-size: 18px;
	font-weight: 500;
}

@media (max-width: 767px) {

	.embed-consent {
		height: 400px;
	}
}

/* Button "Cookie-Einstellungen" im Fußbereich */
.cookie-settings-button {
	padding: 0;
	background: none;
	border: 0;
	color: #333333;
	text-decoration: underline;
	cursor: pointer;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus {
	color: #174895;
}

/* Farben des Cookie-Banners an die Website anpassen */
#cc-main {
	--cc-font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--cc-btn-primary-bg: #174895;
	--cc-btn-primary-border-color: #174895;
	--cc-btn-primary-hover-bg: #0d2853;
	--cc-btn-primary-hover-border-color: #0d2853;
	--cc-toggle-on-bg: #174895;
	--cc-link-color: #174895;
}

/* Kontaktseite */
.contact-data {
	margin-bottom: 30px;
}

.contact-data .table {
	margin-bottom: 0;
}

.contact-data th {
	width: 140px;
	background-color: transparent;
	color: #333333;
}
