/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* mulish-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/mulish-v18-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/mulish-v18-latin-500.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* mulish-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/mulish-v18-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/mulish-v18-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* mulish-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/mulish-v18-latin-800.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/mulish-v18-latin-800.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}


html {
    scroll-behavior: smooth;
}

body {
	font-family: 'Mulish', sans-serif;	
}

.sr-only {
	display: none;
}


/* Absätze  -  die im Theme vorgesehen 1.5em sind für Impressum und Datenschutz zu viel, für Startseite aber gut  - Adress-Blöcke ohne p */
body:not(.home) p {
  margin-bottom: 1.2em;
}
body:not(.home) address p {
  margin-bottom: 0;
  font-style: normal;
}

.home main p {
	margin-bottom: 1.5em;
}

.home address p {
  margin-bottom: 0;
} /* Ende Definition Abstand nach Absatz */

address {
	margin-bottom: 2em;
}

/* Allgemeine Klassen */

strong {
	font-weight: 800;
}

.no-margin {
	margin: 0;
}

.no-padding > .wp-block-group__inner-container:first-of-type {
  padding: 0;
}

.no-padding-bottom > .wp-block-group__inner-container:last-of-type {
  padding-bottom: 0;
}

.no-padding-top > .wp-block-group__inner-container:last-of-type,
.site-footer,
.no-padding-top {
  padding-top: 0;
}

.no-margin-bottom,
.home p.no-margin-bottom {
	margin-bottom: 0 !important;	
}

/* ---- Buttons ---*/

.wp-block-button__link {
  position: relative;
  display: inline-block;
  padding: 0.8rem 1.2rem;
  color: white;
  isolation: isolate;
  z-index: 0;
  background: transparent;
	margin-top: 1em;
}

.wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--contrast-2);
  transform: skew(-20deg);
  z-index: -1;
  transition: background-color 0.2s ease;
}

.wp-block-button__link:hover::before,
.wp-block-button__link:focus-visible::before {
  background-color: var(--accent);
}



/* ----------- Header ---------- */

.inside-header {
	padding-bottom: 0;
}

.site-branding-container {
	display: block;
	flex-shrink: 1;	/* sonst bricht der Untertitel nicht um */
}

.home p.site-description {
	margin-bottom: 0;
}

#site-navigation .inside-navigation {
	display: block;
	margin-top: 0.5em;
}

ul#menu-header  li#menu-item-3357 a:link,
ul#menu-header  li#menu-item-3357 a:visited {
	color: var(--accent);
}

ul#menu-header  li#menu-item-3357 a:hover {
	color: var(--contrast-2);
}


/* ------- Topbar ------------ */

.topbar {
	position: absolute;
	right: 2em;
	top: 14.5em;
	z-index: 20;
	text-transform: uppercase;
	font-size: 0.9em;
}

#map span {
	font-size: 0.9em;
	display: inline-block;*/
/*	position: relative;
	top: -0.3em; */
}

.topbar a, .topbar a:visited, #footer-widgets a, #footer-widgets a:visited {
	color: #fff;
	display: inline-block;
	text-decoration: none;
}

.topbar > div {
	color: #fff;
	font-weight: 800;
	height: 3em;
	padding: 0.4em;
	padding-left: 1em;
	padding-right: 1em; 
	display: inline-block;
	position: relative;
	top: 1em;
	left: 1em;
	background-color: transparent;
	z-index: 1;
	margin-right: 0.7em;
}

.topbar > div:before {
	content: '';
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: -1;
	background-color: var(--contrast-2);
	margin: 0;
	padding: 0;
	transform: skew(-30deg);
	height: 3em;
}

.topbar > div:nth-of-type(1)::before {
	top: -0.3em;
}

.topbar svg,
#footer-widgets svg {
	fill: #fff;
	width: 1.5em;
	height: auto;
	display: inline-block;
}


.topbar-google svg {
	max-height: 1.3em;
	width: auto;
	min-width: 0.85em;
	margin-right: 0;
	margin-left: 2px;
}

.topbar-apple svg {
	position: relative;
	top: 0.15em;
}

/* ------- Hero ------------ */

#hero {
  position: relative;
}

/* unerwünschten Weißraum über dem Bild entfernen */
.home .entry-content {
	margin-top: 0;
}

#hero img {
  position: relative;
  z-index: 0;
  display: block;
}

#hero h1 {

  z-index: 2;
}

#hero h1::before {
  content: "";
  position: absolute;
  z-index: 1;
}

/* für Margin-top hab ich tatsächlich einen Abstandshalter verwendet*/
.home h1,
.page-template-archive-produkte h1 /* Archive */, 
body:not(.single-anhaenger) .entry-header h1  {
	font-weight: 800;
	color: #ffffff;
	display: inline-block;
	position: relative;
	background-color: transparent;
	z-index: 1;
	max-width: 24em; /* Limit für Datenschutz-Infos */
	padding: 0.4em 1em 0.4em 0;
	margin-bottom: 0.4em;
}
	
/* Parallelogramm-Hintergrund */
body:not(.single-anhaenger) main h1:before {
	content: '';
	position: absolute;
	top: 0; right: 0; bottom: 0; left: -4em;
	z-index: -1;
	background-color: var(--contrast-2);
	margin: 0;
	padding: 0;
	transform: skew(-30deg);
}


h1 {
	margin-bottom: 1.2em;
}

h2 {
	margin-bottom: 1.5em;
}

#intro {
	width: auto;
	max-width: 800px;
	margin: auto;
	margin-top: 0em;
}

/* ---- Unterm Header ---*/

/* padding-top unterm header entfernen */
.home #post-2 .inside-article {
	padding-top: 0;
}
/*.home #content.site-content {
	padding-top: 0;
}*/

/* weniger Abstand unterm Header */
.home #content {
	padding-top: 0;
}

/* --- Main --- */

/* Schmalere umschließende Elemente */
.schmal {
	max-width: 22em;
	margin-left: auto;
	margin-right: auto;
}

.card {
	max-width: 22em;
	margin-left: auto;
	margin-right: auto;
	background-color: #ffffff;
}

.card > .wp-block-group__inner-container {
	margin-left: 0.5em;
	margin-right: 0.5em;
}

/* Element "Spalten" zentrieren, da sonst mit schmaleren Boxen linksbündig */
.boxen {
	justify-content: center;
}

/* hover-Grow-Effekt für Boxen erst ab Tablet, da mobil ohne Maus */
.grow {
	max-width: 20em;
}

#anhaenger {
	margin-top: 0.5em;
	border-top: 4px solid var(--contrast-2);
	padding-top: 3em;
}

main .logos  {
	margin-bottom: 3em;
}

#karosseriebau {
	position: relative;
	background: url(https://petersen-karosserie.de/wp-content/uploads/decster1-diamond-plate-7918440_640.png);
	background-repeat: repeat;
	border-top: 5px solid silver;
	border-bottom: 5px solid silver;
}

#karosseriebau::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

#karosseriebau h2 {
	opacity: 0.9;
}

#karosseriebau > * {
  position: relative;
  z-index: 1;
}

#karosseriebau .wp-block-columns figure {
	height: 100%;
}

#karosseriebau .wp-block-columns figure img {
	width: 24em;
	height: auto
}

#karosseriebau .leistung {
	box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
	opacity: 0.8;
	max-width: 16em;
}

#karosseriebau .wp-block-column.box, #innenausbau {
	border: 5px solid rgba(49,49,49, 0.35);
	background-color: rgba(231, 231, 231, 0.7);
	box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
	height: 100%;
	padding: 2em;
}

#karosseriebau .rl-basicgrid-gallery {
	gap: 1em;
}

/* Karosseriebau-Galerie */
#rl-gallery-container-1 .rl-basicgrid-gallery .rl-gallery-item {
	width: calc(50% - 23px) !important;
	box-shadow: 5px 5px 10px rgba(0,0,0,0.5) !important;
	height: auto;
}	

/* 2 Elemente mit schräger Kante nebeneinander */

.schraege .wp-block-group__inner-container {
  position: relative;
  width: 100%;
  height: 14em;
  overflow: hidden;
}

.schraege figure {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48em;
  margin: 0;
  overflow: hidden;
}

/* ---- Impressum und Datenschutz --- */

.page-id-3112 /* Impressum */ .entry-content,
.page-id-3 /* Datenschutz */ .entry-content {
	max-width: 800px; /* schmalerer Satzspiegel */
	margin: auto; /* mittig setzen */
	margin-top: 2em;
}

.page-id-3 /* Datenschutz */ .entry-content {
	max-width: 900px; /* schmalerer Satzspiegel */
	margin: auto; /* mittig setzen */
	margin-top: 2em;
}

body:not(.home) main h2 {
	font-size: 1.8em;
	text-transform: none;
	margin-bottom: 0.8em;
}

.wp-block-columns.is-layout-flex > .grow {
	margin-left: auto;
    margin-right: auto;
}

.page-id-3112 #portrait img {
	margin-bottom: 2em;
}

body:not(.home) main h2:not(:first-of-type) {
	margin-top: 1.4em;
}

body:not(.home) p:has(+ ul) {
  margin-bottom: 0.5em;
}

h3 {
	margin-bottom: 1.2em;
}

ul.no-margin {
	margin-left: 1em;
	margin-bottom: 1em;
}


/* ---- Produkte Single & Archive ---------- */

.bild-box {
    flex: 1 1 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.anhaenger-left figure {
    margin: 0;
}

.single .produkt-infos {
    flex: 1 1 50%;
}

.single .hersteller-logo img {
	max-height: 4em;
	max-width: 8em;
}


/* Bildwechsler - Code von KI, möglichst noch verschlanken */

.bild-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}

.bild-thumb-item {
  margin: 0;
}

.bild-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
opacity: 0.7;
}

.bild-thumb.is-active {
	opacity: 1;
	outline: 2px solid var(--contrast-3);
}

.bild-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Ende Bildwechsler*/

/* ------- Single ---------- */

/* mehr Abstand unter topbar*/
.single #page {
  margin-top: 4em;
}

.hersteller {
	margin-bottom: 0;
}

.single .produkt-infos th {
	text-align: left;
	max-width: 10em;
}

.single #content {
	background-color: var(--base-2);
	margin-bottom: 3em;
}

body.single h1 {
	text-transform: none;
	font-size: 2em;
}

.single table {
	border: 0;
}

.single th, .single td {
	border-left: none;
	border-right: none;
	border-bottom-width: 2px;
	border-top-width: 0;
}




/* --------- Archive -------- */

.page-template-archive-produkte h1 {
	margin-bottom: 0.12em;
}

/* ---- Archive -- */
	
/* hier noch einspaltig, aber ul-margin raus */
ul.produkte-archive {
  margin: 0;
}

/* ---- Filter ---- */

/* Title manuell hinzufügen, da sonst h2 */
.wpc-filters-scroll-container:before {
	content: 'Filter';
	display: block;
	margin-bottom: 1em;
	font-size: 0.85em;
	font-weight: 800;
	text-transform: uppercase;
}

/* Filter auch auf weißen Hintergrund stellen */
.widget_wpc_filters_widget {
	background-color: #fff;
	padding: 1em;
	margin-bottom: 1.5em;
}

/* im Filterbereich floaten, sonst erscheint jeder einzelne Begriff/Treffer untereinander */
.wpc-term-item-content-wrapper {
	width: auto;
	float: left;
}
.wpc-term-item-content-wrapper:after {
	clear: both;
}

#anhaenger li.wpc-term-item {
	margin-bottom: 0;
}


/* Link zu Zubehör */

.sprungmarke span,
.sprungmarke span a:link,
.sprungmarke span a:visited {
	color: #ffffff;
	text-decoration: none;
	margin-bottom: 2em;
	font-weight: 800;
}

.sprungmarke span {
display: inline-block;
padding: 0 0.85em;
position: relative; /* Wichtig: relativer Kontext für das ::before */
isolation: isolate; /* verhindert Überlappungen mit anderen Elementen */
z-index: 0;
line-height: 3em; /* Höhe des Hintergrunds entspricht der Zeilenhöhe */
}

.sprungmarke span::before {
content: '';
position: absolute;
top: 0;
left: 1em;
width: 100%;
height: 3em;
background-color: var(--contrast-2);
transform: skewX(-30deg);
transform-origin: 0 0;
z-index: -1; /* hinter dem Text */
/* Optional: Übergang, falls gewünscht */
transition: background-color 0.2s ease;
}

.sprungmarke span:first-of-type {
	margin-left: 0.3em;
}

.sprungmarke span:first-of-type::before {
  content: "";
  position: absolute;
  top: 0;
  left: -13em;
  width: calc(100% + 13em);
  height: 100%;
  background: var(--contrast-2);
  transform: skewX(-30deg);
  transform-origin: left center;
  z-index: -1;
}

/* zweiter Link accent-bg */
.sprungmarke span:nth-of-type(2)::before {
  background: var(--accent);
}

/* umfärben bei hover */
.sprungmarke span:nth-of-type(2):hover::before {
  background: var(--contrast-2);
}

.page-template-archive-produkte #page /* ich kriege es nicht hin, die Angabe "grid-container" zu entfernen */ {
	background-color: var(--base-2);
	max-width: 100%;
}

.page-template-archive-produkte .entry-content > .wp-block-group__inner-container:first-of-type {
	padding-top: 0.6em;
}

.page-template-archive-produkte h2 {
	font-size: 2em;
	margin-bottom: 0.9em;
}

.page-template-archive-produkte .hersteller {
	color: var(--contrast-3);
	font-size: 1em;
	margin-bottom: 0.3em;
}

.page-template-archive-produkte h3,
#ersatzteile figcaption {
	font-weight: 800;
	text-transform: none;
	font-size: 1.1em;
	margin-bottom: 1em;
	color: var(--contrast);
	text-align: left;
}

#ersatzteile figcaption {
	margin-top: 1em;
}

.page-template-archive-produkte .produkt a:link,
.page-template-archive-produkte .produkt a:visited {
	color: var(--contrast);
	text-decoration: none;
}

.page-template-archive-produkte .produkt a:hover {
	text-decoration: underline;
}

.page-template-archive-produkte ul {
	list-style-type: none;
}

.page-template-archive-produkte li.produkt {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 1em;
  box-sizing: border-box;
}

.page-template-archive-produkte .produkt-infos {
	justify-content:flex-start;
}

.preis {
	font-weight: 900;
	color: var(--accent);
	font-size: 1.2em;
}

/* Abstand zwischen Sections "Anhänger" und "Zubehör" */
.page-template-archive-produkte section:first-of-type {
	margin-bottom: 4em;
}


/* Wir freuen uns auf Ihren Besuch! - über dem Footer */
h3.cta /* CTA = call-to-action */ {
	text-transform: none;
	font-style: italic;
	font-size: 1.7em;
	font-weight: 700;
	margin-bottom: 0.2em;
}

/* --------- Footer  ---------*/

#footer-widgets .zeile2 {
	display: block;
	margin-left: 4em;
}

/* Hersteller-Logos */
#footer-widgets img {
	margin-right: 0.3em;
}

/* Weißraum um den Logo-Bereich */
#footer-widgets .fachhandel_fuer {
	padding: 0.4em;
}

#footer-widgets .stema img {
	max-width: 100px;
}
#footer-widgets .hapert img {
	max-width: 200px;
	filter: drop-shadow(0 6px 10px rgba(255,255,255,.5));
}
#footer-widgets .unsinn img {
	max-width: 150px;
	filter: drop-shadow(0 6px 10px rgba(0,0,0,.5));
}

/* --------- Fußzeile  ---------*/

footer a:link, footer a:visited {
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}



/* --------- ab Tablet-Auflösung  ---------*/
@media (min-width: 769px) {

/* Hauptmenü-Link "Kontakt" wieder ausblenden */
	
#menu-item-3699 {
	display: none;
}
	
/* für Margin-top hab ich tatsächlich einen Abstandshalter verwendet*/
.home h1,
.page-template-archive-produkte h1 /* Archive */, 
body:not(.single-anhaenger) .entry-header h1  {
	font-weight: 800;
	color: #ffffff;
	padding: 0.4em;
	padding-left: 2em;
	padding-right: 1.4em;
	display: inline-block;
	left: 0;
	background-color: transparent;
	z-index: 1;
	max-width: 24em; /* Limit für Datenschutz-Infos */
	margin-left: -2em;
}
	
body.home .entry-header h1 {
	margin-left: 0;
}
	
/* Parallelogramm-Hintergrund */
body:not(.single-anhaenger) main h1:before {
	content: '';
	position: absolute;
	top: 0; right: 0; bottom: 0; left: -5em;
	z-index: -1;
	background-color: var(--contrast-2);
	margin: 0;
	padding: 0;
	transform: skew(-30deg);
}
			
/* Schmalere umschließende Elemente */
.schmal {
	max-width: 40em;
	margin-left: auto;
	margin-right: auto;
}
	
#anhaenger figure.anhaenger {
	width: 50%;
	float: left;
	margin-right: 2.2em;
}
	
#anhaenger figure.anhaenger:after {
	clear: both;
}
	
#hu {
	
	border-left: 0.5em solid var(--contrast-2);
	padding-left: 2em;
}

	
/* hover-Grow-Effekt für Boxen */
.grow {
	max-width: 16em;
	transition: transform 300ms ease-in-out;
}
.grow:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* Karosseriebau-Galerie */
#rl-gallery-container-1 .rl-basicgrid-gallery .rl-gallery-item {
	width: calc(33% - 25px) !important;
}	

/* --- Archive --- */
	
/* nebeneinander für archive */
ul.produkte-archive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
	
/* zu Archive */
.sprungmarke span:first-of-type {
	margin-left: -0.7em;
	margin-top: 0em;
}

/* ---- Impressum und Datenschutz ab Tablet --- */

.page-id-3112 #portrait img {
	width: 25em;
	height: auto;
}
	
/* Logos im Footer */

/* untereinander */
.bis-1400-stapeln {
	flex-direction: column;
}
		
}



/* --------- nur für Händi-Auflösungen  ---------*/
@media (max-width: 768px) {

.topbar {
	display: none;
}
	
.home h1 {
	top: 0.8em;
	font-size: 1.4em;
}
	
/* Abstand vor h1 weg */ 
.home .entry-header {
	margin-top: -0.8em;
}
	
.site-branding-container {
	max-width: 80%;
}
	
.menu-toggle {
	right: 1em;
}
	
.menu-toggle svg {
	font-size: 1.2em;
}
	
main .logos {
	margin-bottom: 3em;
}
	
#anhaenger figure.anhaenger {
	margin-bottom: 2em;
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
}
	
#hu ol /* weniger Einrückung bei Aufzählungsliste */ {
	margin-left: 2em;
}
	
#hu ol li {
	margin-bottom: 1em;
}
	
/* Abstand zwischen Spalten, wenn einspaltig, wegnehmen, bei Firmengeschichte */	
#unternehmen :where(.wp-block-columns.is-layout-flex),
#unternehmen :where(.is-layout-flex) {
	gap: 0;	
}
	
/* zu Archive */
.sprungmarke span:first-of-type {
	margin-left: 1.5em;
	margin-top: 0.1em;
}
	
/* Abstand vor Tabelle bei Single-Produkt */
.single-anhaenger table {
	margin-top: 1em;
}

/* unter Produkten, bevor GRID gap */
.page-template-archive-produkte li.produkt {
	margin-bottom: 1.5em;
}

/* Kein Abstand für die Logos im Footer, sonst ist das letzte angeschnitten */
#footer-widgets .logos {
	gap: 0;
}

	
}

/* --------- nur für sehr kleine mobile Geräte < 500 px Viewportbreite - "Graceful Degradation", wo es nicht anders möglich ist ---------*/
@media (max-width: 499px) {
	
body {
	font-size: 1.1em;
}

/* Überschrift archive - funktioniert noch nicht */
.sprungmarke span:first-of-type  {
	margin: 0;
}
	
.entry-header h1 {
	font-size: 1.5em;
}
	
main p, main li {
		hyphens: auto;
}
	
.menu-toggle {
	line-height: 1em;
	position: absolute;
	top: 5em;
	right: 0.4em;
}

/* weniger Weißrand außen */	
.site-main .wp-block-group__inner-container {
	padding: 15px;
}
	
main .logos img {
	max-width: 70%;
}
main .logos {
	text-align: center;
}

#karosseriebau .wp-block-column.box, #innenausbau {
	border: none;
	background-color: rgba(255,255,255, 0.7);
	box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
	padding: 1em;
}
	
#innenausbau {
	margin-top: 2em;
}

/* Galerie Fahrzeugbau */	
#rl-gallery-container-1 .rl-basicgrid-gallery .rl-gallery-item {
	width: 100% !important;
}
	
/* zu Archive  funktioniert nicht */
.sprungmarke span:first-of-typ {
	margin: 0;
}
	
/* Logos im Footer */
	
.wp-block-group.logos {
	display: block;
}
figure.hapert img {
	position: relative;
	left: -0.7em;
	top: -0.5em;
}
	
}


/* --------- nur bis Tablet-Auflösungen  ---------*/
@media (max-width: 1024px) {

#karosseriebau .box {
	margin-left: auto;
	margin-right: auto;
}
	
#karosseriebau .wp-block-column.box, #innenausbau {
	max-width: 24em;
}
	

}


/* --------- nur für Tablet-Auflösungen  ---------*/
@media (min-width: 769px) and (max-width: 1024px) {

/* Navigation auf volle Breite UNTER den Side-Branding-Container, dafür in diesem die 2-spaltigkeit aufheben */
.inside-header {
	display: block;
}
	
.home .entry-header h1 {
	top: 1em;
}

/* Schnellkontakt nach rechts und untereinander */
.topbar {
	top: 0;
	display: flex;
	flex-direction: column;
}
	
#intro {
	margin-top: 1em;
}
/*	
#primary-menu {
	position: relative;
	top: 1.5em;
}
	*/

/* untereinander */
.auf-tablet-stapeln {
	flex-direction: column;
}
	
.auf-tablet-stapeln .grow {
	min-width: 16em;
	}
	
	
}


/* --------- ab Desktop-Auflösungen  ---------*/

@media (min-width: 1025px) {

.topbar {
	top: 8.8em;
}	

.home h1 {
	top: 6em;
}
	
body.home .entry-header h1 {
	position: absolute;
}

.grow {
	max-width: 16em;
}
	

/* Überschrift für Single-Anhänger nicht vollbreit */	
body.single h1 {
	max-width: 20em;
}
	
#hu {
	margin-left: 8em;
}
	
/* Karosseriebau-Galerie */
#rl-gallery-container-1 .rl-basicgrid-gallery .rl-gallery-item {
	width: calc(20% - 30px) !important;
}
	
#karosseriebau .wp-block-column.box, #innenausbau {
	padding: 2.4em;
}

#innenausbau > .wp-block-column:nth-of-type(2) {
	padding-top: 2.7em;
}
	
/* ---- Archive -- */
	
/* nebeneinander für archive */
ul.produkte-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
	
}


/* ---- nur media query 1.400px ---- */
@media (min-width: 1400px) {
	
.topbar {
	right: 15em;
}	
	
#intro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  background-color: rgba(255,255,255,0.95);
  z-index: 10;
	margin: auto;
	margin-top: 10em;
}
	
	
#anhaenger {
	border-top: none;
	margin-top: 5em;
}
	
/* Footer */
	
.bis-1400-stapeln {
	flex-direction: row;
}
/* Fachhandel für */	
.fachhandel-fuer	{
	max-width: 9em;
}
	
.innungslogo {
	margin-top: 2em;
}

	
}


/* ---- nur Nachkorrektur für Logos auf Tablet ---- */
@media (min-width: 770px) and (max-width: 900px) {

/* ---- Impressum und Datenschutz --- */

#footer-widgets .logos {
	position: relative;
	left: -5em;
}
}

/* ---- nur media query 1.800px ---- */
@media (min-width: 1800px) {

/* ---- Impressum und Datenschutz --- */

.page-id-3112 #portrait img {
	position: absolute;
	right: 280px;
	top: 22em;
	width: 25em;
	height: auto;
}
}