/* Grundlayout stoldt.de
   Entfernt gegenüber der alten Version: Cookie-Banner (.cc-*), css_styled_content (.csc-*,
   gibt es seit TYPO3 8 nicht mehr), ungenutzte Altlasten (.weine, nav.menue-u, ul.drucken,
   #toggleNavMain). */

body {
	position: absolute;
	width: 100%;
	color: #444;
	background: #F9F9F9;
}
#background {
	position: relative;
	width: 100%;
	color: #444;
	background: #fff;
}
#linie {
	width: 100%;
	border-bottom: solid 3px #4f4d4b;
	position: absolute;
	top: 57px;
}
#wrapper {
	box-sizing: border-box;
	height: auto;
	margin: 0 auto;
	width: 100%;
	max-width: 1200px;
	min-width: 320px;
	background: #d1d1d1;
}
header {
	z-index: 4;
	padding: 0;
	margin: 0;
}
.frame-type-header h2 {
	padding-left: 20px;
}

/* ---------- Kopffoto ---------- */
#kopf {
	clear: both;
	width: 100%;
	margin: 0;
	background-size: cover;
	background-position: 60% 0%;
	background-repeat: no-repeat;
}
#kopf.unterseiten {
	height: 200px;
}

*, *::before, *::after {
	box-sizing: inherit;
}

/* ---------- Nach-oben-Pfeil ---------- */
.back-to-top {
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 3px;
	position: fixed;
	bottom: 100px;
	right: 0;
	padding: 3px 6px;
	z-index: 50;
}
.back-to-top .fa-arrow-up {
	color: #fff;
	font-size: 1.2em;
	line-height: 1.3em;
}
.back-to-top:hover .fa-arrow-up,
.back-to-top:focus .fa-arrow-up {
	color: #b90014;
}

/* ---------- Inhaltsbereich ---------- */
#inhalt ul {
	margin: 0;
	padding: 0 0 10px 40px;
}
section {
	margin-top: 0;
}
#inhalt {
	height: auto;
	margin-top: 0;
	z-index: 3;
}
#head {
	position: relative;
	height: auto;
	margin-top: 0;
	width: 100%;
	z-index: 3;
}
#unterseite {
	margin: 0 auto;
	min-height: 600px;
	padding: 0 5px 5px 5px;
	background-color: rgba(255, 255, 255, 0.6);
}

.box-inhalt {
	padding: 2%;
	margin: 1% 0;
	border-bottom: none;
}
.box-inhalt img {
	max-width: 100%;
	height: auto;
}

/* ---------- Rahmen (fluid_styled_content) ---------- */
.frame-type-text.frame-layout-0 {
	padding: 0 20px 20px 20px;
}
.frame-layout-0 {
	border-bottom: none;
}
.frame-layout-1 {
	background-color: rgba(255, 255, 255, 0.6);
	padding: 20px;
	margin: 10px 0;
	border-radius: 6px;
	border: 1px solid #ededed;
}
.frame-default.frame-layout-1 {
	margin: 20px auto;
	padding: 10px;
}
.frame-default,
.frame-10 {            /* 1-spaltig Text */
	width: 100%;
	margin: 0 auto;
	clear: both;
}
.frame-4 {             /* 1-spaltig Foto-Aufzählung */
	width: 100%;
	text-align: left;
	clear: both;
	margin: 0 auto;
}
.frame-20 {            /* Foto-Galerie: 2 nebeneinander */
	height: auto;
	float: left;
	width: 48%;
	margin: 0.5%;
}
.frame-130 {           /* 2-spaltig links */
	clear: both;
	width: 100%;
}
.frame-132 {           /* 2-spaltig rechts */
	width: 100%;
}
.frame-type-text {
	padding: 10px 20px;
}

/* ---------- Bilder ---------- */
.ce-above .ce-bodytext {      /* Foto oben, Text darunter */
	clear: both;
}
figure.image img {
	width: 100%;
	height: auto;
}
.ce-left .ce-gallery,
.ce-column {                  /* mobil nicht umfließen */
	float: none;
}
video.video-embed-item {
	width: 100%;
}

/* Trenner nach 2-/3-spaltigen Bereichen */
.frame-type-div hr {
	display: block;
	height: 1px;
	border: 0;
	margin: 0;
	padding: 0;
	clear: left;
}

/* ---------- Abstände vor/nach (fluid_styled_content) ---------- */
.frame-space-before-extra-large { margin-top: 25px; }
.frame-space-before-large       { margin-top: 20px; }
.frame-space-before-medium      { margin-top: 15px; }
.frame-space-before-small       { margin-top: 10px; }
.frame-space-before-extra-small { margin-top: 5px; }
.frame-space-after-extra-large  { margin-bottom: 25px; }
.frame-space-after-large        { margin-bottom: 20px; }
.frame-space-after-medium       { margin-bottom: 15px; }
.frame-space-after-small        { margin-bottom: 10px; }
.frame-space-after-extra-small  { margin-bottom: 5px; }

.korrektur {
	clear: both;
	width: 100%;
	/* nötig, damit #inhalt bei den 2-spaltigen Boxen (float) mitwächst */
}

/* ---------- Kontaktformular (EXT:form, Formular-ID 40 / Inhalt 42) ---------- */
form#kontakt-40 {
	padding: 0;
}
#c42 {
	margin-top: -20px;
}
#kontakt-40-checkbox-1 {
	margin-top: 5px;
}

@media only screen and (min-width: 500px) {
	#kopf.unterseiten {
		height: 250px;
	}
	.frame-20 {        /* Foto-Galerie: 3 nebeneinander */
		width: 32%;
		margin: 0.66%;
	}
}

@media only screen and (min-width: 650px) {
	#kopf {
		background-position: 100% 0%;
	}
	#unterseite {
		padding: 0 30px 30px 30px;
	}
	.frame-130 {       /* 2-spaltig links */
		clear: both;
		width: 48%;
		float: left;
		height: auto;
	}
	.frame-132 {       /* 2-spaltig rechts */
		width: 48%;
		float: right;
		height: auto;
	}
	form#kontakt-40 {
		padding: 40px;
	}
}

@media only screen and (min-width: 768px) {
	#linie {
		border-bottom-width: 2px;
		top: 170px;
	}
	#kopf.kopf,
	#kopf.unterseiten {
		position: relative;
		top: 0;
		z-index: 1;
		height: 300px;
	}
	#inhalt {
		margin-bottom: -30px;
	}
	.back-to-top {
		bottom: 280px;
	}
	.frame-20 {        /* Foto-Galerie: 4 nebeneinander */
		width: 23%;
		margin: 0.66%;
	}
}

@media only screen and (min-width: 800px) {
	.ce-left .ce-gallery,
	.ce-column {       /* Foto links, Text umfließt */
		float: left;
	}
}

@media only screen and (min-width: 1000px) {
	#linie {
		top: 200px;
	}
	.frame-4 {
		width: 60%;
	}
}

@media only screen and (min-width: 1200px) {
	#kopf.kopf,
	#kopf.unterseiten {
		height: 350px;
	}
	#wrapper {
		border-left: 2px solid #ededed;
		border-right: 2px solid #ededed;
	}
	.back-to-top {
		right: 10px;
	}
}
