/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Rechtstexte (übernommen aus dem Customizer-CSS der Live-Seite) */
.erecht h1 {
	font-size: 18px;
	margin-top: 0;
	margin-bottom: 1rem;
}
.erecht h2 {
	font-size: 16px;
	margin-bottom: .5rem;
}
.erecht h3 {
	font-size: 14px;
	margin-bottom: .25rem;
}
.erecht h4 {
	font-size: 12px;
	margin-bottom: .25rem;
}
.erecht a {
	color: #60a153;
}

/* Datenschutzerklärung mehrspaltig: Desktop 3, Tablet 2, Mobil 1 */
.erecht-columns .brxe-text {
	column-gap: 2rem;
	column-fill: balance;
	hyphens: auto;
	overflow-wrap: break-word;
	word-break: normal;
}
@media (min-width: 1025px) {
	.erecht-columns .brxe-text { column-count: 3; }
}
@media (min-width: 641px) and (max-width: 1024px) {
	.erecht-columns .brxe-text { column-count: 2; }
}
@media (max-width: 640px) {
	.erecht-columns .brxe-text { column-count: 1; }
}
/* Blöcke nicht über Spalten umbrechen, Überschriften nicht am Spaltenende hängen lassen */
.erecht-columns .brxe-text :is(h1, h2, h3, h4, h5, h6, p, ul, ol, table, figure) {
	break-inside: avoid;
}
.erecht-columns .brxe-text :is(h1, h2, h3, h4, h5, h6) {
	break-after: avoid;
	margin-top: 1.2em;
}
.erecht-columns .brxe-text > :first-child {
	margin-top: 0;
}

/* Datenschutzerklärung zweispaltig wie bei Wenzel: Einleitung, Kasten „Das Wichtigste in Kürze“,
   zwei Spalten mit Trennlinie, Widerspruchsrecht als markierter Kasten (Art. 21 Abs. 4 DSGVO) */
.faust-legal .brxe-text {
	font-size: 14px;
	line-height: 1.6;
}
.faust-legal h1 {
	font-size: 28px;
	margin: 0 0 16px;
}
.faust-legal .faust-legal-intro {
	margin-bottom: 32px;
}
.faust-legal .faust-legal-intro p {
	font-size: 16px;
	max-width: 70ch;
}
.faust-legal .faust-legal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.faust-legal .faust-legal-col:first-child {
	padding-right: clamp(20px, 2.5vw, 40px);
}
.faust-legal .faust-legal-col + .faust-legal-col {
	padding-left: clamp(20px, 2.5vw, 40px);
	border-left: 1px solid rgba(255, 255, 255, .18);
}
.faust-legal section {
	margin-bottom: 28px;
}
.faust-legal h2 {
	font-size: 17px;
	line-height: 1.25;
	margin: 0 0 10px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .18);
}
.faust-legal .faust-legal-col > section:first-child h2 {
	padding-top: 0;
	border-top: 0;
}
.faust-legal p {
	margin: 0 0 12px;
}
.faust-legal p:last-child {
	margin-bottom: 0;
}
.faust-legal ul {
	margin: 0 0 12px;
	padding-left: 1.25em;
}
.faust-legal li {
	margin-bottom: 4px;
}
/* !important: Bricks setzt die Textfarbe des Elements als ID-Regel auch auf Links */
.faust-legal .brxe-text a {
	color: #60a153 !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.faust-legal .brxe-text a:hover,
.faust-legal .brxe-text a:focus-visible {
	color: #8bc34a !important;
}
/* Markierte Kästen */
.faust-legal .faust-legal-box {
	padding: 22px 26px;
	background: rgba(255, 255, 255, .07);
	border-left: 3px solid #60a153;
}
.faust-legal .faust-legal-box h2 {
	padding-top: 0;
	border-top: 0;
}
.faust-legal .faust-legal-lead {
	margin-bottom: 40px;
}
.faust-legal .faust-legal-lead ul {
	margin-bottom: 0;
}
.faust-legal .faust-legal-col > .faust-legal-box + section h2 {
	border-top: 0;
}
@media (max-width: 860px) {
	.faust-legal .faust-legal-grid { grid-template-columns: 1fr; }
	.faust-legal .faust-legal-col:first-child { padding-right: 0; }
	.faust-legal .faust-legal-col + .faust-legal-col { padding-left: 0; border-left: 0; }
	.faust-legal .faust-legal-col + .faust-legal-col > section:first-child h2 { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18); }
	.faust-legal .faust-legal-col + .faust-legal-col > section.faust-legal-box:first-child h2 { padding-top: 0; border-top: 0; }
}

/* Hauptmenü immer waagerecht */
.brx-nav-menu .brx-nav-menu-items {
	display: flex !important;
	flex-direction: row !important;
}
