/********************
*      Modules      *
********************/

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

section{
	position: relative;
	width:100%;
}

.opacity_0{
	opacity: 0;
}


/* edit post link */

a.mM_edit_post {
	position: absolute;
	top: 30px;
	left: 30px;
	/* unter Header (999) und klebender Sprungmarken-Leiste m23 (998) - sonst
	   liegt der Stift beim Scrollen ueber beiden und ueber dem offenen Dropdown */
	z-index: 997;
	font-size: 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #0056a1;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	color: #f67939;
	-webkit-transition: color .4s, background .4s, border-color .4s;
	-moz-transition: color .4s, background .4s, border-color .4s;
	-ms-transition: color .4s, background .4s, border-color .4s;
	-o-transition: color .4s, background .4s, border-color .4s;
	transition: color .4s, background .4s, border-color .4s;
}

a.mM_edit_post_global {
	position: fixed;
	top: 150px;
	left: 40px;
}

a.mM_edit_post svg {
	width: 24px;
	fill: #f67939;
	-webkit-transition: fill .4s;
	-moz-transition: fill .4s;
	-ms-transition: fill .4s;
	-o-transition: fill .4s;
	transition: fill .4s;
}

a.mM_edit_post:hover svg {
	fill: #0056a1
}

a.mM_edit_post:hover {
	background: #f67939;
	color: #0056a1;
}

/* end edit post link */

/* form */

.wpcf7 form .wpcf7-not-valid-tip{
	margin-top: 5px;
    position: relative;
    font-size: 0.8rem;
    padding: 6px 10px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
    margin-bottom:0;
}

.wpcf7 form .wpcf7-response-output{
    position: relative;
    font-size: 0.8rem;
    padding: 6px 10px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
    margin: 0;
    margin-top: 10px;
}

.wpcf7 form.sent .wpcf7-response-output{
	color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.wpcf7-form{
	display: table;
	width: 100%;
}

:-ms-input-placeholder,
::-ms-input-placeholder{
	color: gray;
	opacity: 1;
}

.wpcf7-form *::placeholder{
	color: gray;
}

.form_container{
	display:flex;
	gap: 0 20px;
	margin-bottom: 20px;
}

.form_item,
.wpcf7-form-control{
	width: 100%;
}

.form_item{
	display: flex;
	flex-direction: column;
}

.form_acceptance{
	margin-top: 20px;
}

.wpcf7-form-control{
	padding: 5px 15px;
	border-radius: 5px;
	border: 1px solid #000;

	font-family: var(--font_family);
    font-weight: var(--font_weight);
    font-style: normal;
    font-size: var(--font_size);
    line-height: var(--line_height);
}

textarea.wpcf7-form-control {
	resize: none;
}

.form_item [data-name="ihr_anliegen"] .wpcf7-not-valid-tip{
	margin-top: -5px;
}

.form_submit{
	position: relative;
	margin-top: 10px;
}

.wpcf7-form .form_submit .wpcf7-spinner{
	position: absolute;
    left: calc(50% - 12px);
	top: calc(50% - 12px);
    margin: 0;
}

.wpcf7-acceptance .wpcf7-list-item{
	margin:0;
}

.wpcf7-acceptance{
	padding:0;
	border:none;
}

.wpcf7-submit:not([disabled]) {
	cursor: pointer;
}

/* input checked */
.wpcf7-acceptance input {
	/* display: none; */
}

.wpcf7-acceptance label {
	position: relative;
	padding-left: 20px;
}

.wpcf7-acceptance label:before,
.wpcf7-acceptance label:after {
	content: '';
	position: absolute;
}

.wpcf7-acceptance label:before {
	width: 15px;
	height: 15px;
	top: 1px;
	left: 0;
	background-color: transparent;
	border: 1.5px solid #c3c3c3;
}

.wpcf7-acceptance label:has(input:checked):before {
	background-color: #c3c3c3;
}

.wpcf7-acceptance label:has(input:focus):before {
	border-color: #000;
}

.wpcf7-acceptance label:after {
	opacity: 0;
	top: 5px;
	left: 3px;
	background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Isolationsmodus' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 359.22 255.12'%3E%3Cpath class='cls-1' d='M351.86,7.58c-9.93-9.99-26.12-10.12-36.2-.28L126.43,193.31,44.17,108.61c-9.81-10.17-26.05-10.5-36.28-.75-10.23,9.76-10.56,25.91-.75,36.08.04.05.09.09.13.14l100.3,103.38c4.8,4.87,11.36,7.63,18.22,7.66h.28c6.73-.02,13.18-2.67,17.96-7.38L351.63,43.58c10.03-9.89,10.13-25.99.23-36.01Z' style='fill:%23fff'/%3E%3C/svg%3E");
	background-size: 10px 7px;
	width: 10px;
	height: 7px;
}

.wpcf7-acceptance label:has(input:checked):after {
	opacity: 1;
}
/* end input checked */

@media screen and (max-width: 767px) {
	.form_container{
	    flex-direction: column;
		gap: 20px 0;
	}
}

/* end form */


/************************************************************************************************************************************/

/****************************
*       Custom Styles       *
****************************/

:root {
	scroll-behavior: unset;

	--section_padding: var(--section_padding_desktop);

	--next_auskragung_section_padding: calc(var(--section_padding) / 2);
	--prev_auskragung_section_padding: calc(var(--section_padding) / 2);

	--row_gap: 20px;    /* vertical gap between rows of .mM_row */
	--col_gap: 20px;    /* horizontal gap between columns */

	--font_family: sans-serif;
	--line_height: 1.5;
	--font_weight: 400;
}

html,
body,
.mM_reset {
	font-family: var(--font_family);
	font-weight: var(--font_weight);
	font-style: normal;
	font-size: var(--font_size);
	line-height: var(--line_height);
}

/* Form elements keep the browser font (Arial) unless told otherwise */
button,
input,
select,
textarea {
	font-family: inherit;
}

html,
body{
	background-color: var(--background_color);
}

/* Fixed header: start values = real header height, menu.js refines them (on <html>, inherited by body) */
:root {
	--btw_header_height: 78px;
	--btw_topbar_height: 0px;
}

@media all and (max-width: 1199px) {
	:root {
		--btw_header_height: 92px;
	}
}

body {
	margin: 0;
	padding-top: var(--btw_header_height);
}

/* Anchor targets and keyboard focus are not hidden under the fixed header */
html {
	scroll-padding-top: calc(var(--btw_header_height) + var(--wp-admin--admin-bar--height, 0px));
}

*{
	color:var(--font_color);
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
p {
	margin: 0;
}

h1,
.h1 {
	font-size: 3.5rem;
}

h2,
.h2 {
	font-size: 2.5rem;
	margin-bottom: 30px;
}

h3,
.h3 {
	font-size: 2rem;
}

h4,
.h4 {
	font-size: 1.5rem;
}

p:last-child {
	margin-bottom: 0;
}

/* Subtitle outside the container (Titel Einstellungen > Position Untertitel).
   The subtitle box has zero width, so its text overflows to the left into the
   space beside the container and the title keeps its normal position.
   Both variants: top of the subtitle letters level with the top of the title letters.
   js/custom.js (untertitel_aussen) measures that space: --mM_untertitel_platz,
   --mM_untertitel_versatz and .mM_untertitel_eng when there is not enough room. */
.mM_untertitel_aussen {
	--mM_untertitel_abstand: 30px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.mM_untertitel_aussen > [class$="_titel_container"]:not([class$="_untertitel_container"]) {
	flex: 1 1 auto;
	min-width: 0;
}

/* Zero height as well: a long subtitle must not push the content below the title down */
.mM_untertitel_aussen > [class$="_untertitel_container"] {
	flex: 0 0 0;
	width: 0;
	height: 0;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
}

.mM_untertitel_aussen > [class$="_untertitel_container"] > p {
	flex: 0 0 auto;
	max-width: var(--mM_untertitel_platz, none);
	margin: var(--mM_untertitel_versatz, 0px) var(--mM_untertitel_abstand) 0 0;
	text-align: right;
}

/* Vertical: reads bottom to top */
.mM_untertitel_vertikal > [class$="_untertitel_container"] > p {
	max-width: none;
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

/* Not enough room beside the container: subtitle above the title */
.mM_untertitel_aussen.mM_untertitel_eng > [class$="_untertitel_container"] {
	flex: 0 0 100%;
	width: auto;
	height: auto;
	display: block;
}

.mM_untertitel_aussen.mM_untertitel_eng > [class$="_untertitel_container"] > p {
	max-width: none;
	margin: 0;
	text-align: inherit;
	white-space: normal;
	writing-mode: horizontal-tb;
	transform: none;
}

/* Same without JS on small screens */
@media all and (max-width: 575px) {
	.mM_untertitel_aussen > [class$="_untertitel_container"] {
		flex: 0 0 100%;
		width: auto;
		height: auto;
		display: block;
	}

	.mM_untertitel_aussen > [class$="_untertitel_container"] > p {
		max-width: none;
		margin: 0;
		text-align: inherit;
		white-space: normal;
		writing-mode: horizontal-tb;
		transform: none;
	}
}

a,
a:focus,
a:hover,
a:active,
a:visited {
	color: inherit;
	text-decoration: none;
}

a {
	display: inline-block;
}

/* 1.4.1: Links im Fliesstext duerfen nicht nur ueber Farbe erkennbar sein ->
   in Textinhalten (Absaetze, Listen, Tabellenzellen) zusaetzlich unterstreichen.
   Pseudo-Klassen fuer ausreichende Spezifitaet gegen die a:visited/:hover-Regel oben. */
p a:link, p a:visited, p a:hover, p a:focus,
li a:link, li a:visited, li a:hover, li a:focus,
td a:link, td a:visited, td a:hover, td a:focus {
	text-decoration: underline;
}

img { display: block; }

img,
svg {
	max-width: 100%;
	width: 100%;
	height: auto;
}

.coverimg {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center;
	object-position: center;
}

.op_top { object-position: top; }
.op_center { object-position: center; }
.op_bottom { object-position: bottom; }


.overflow_x_hidden{
	overflow-x: hidden !important;
}

.overflow_y_hidden{
	overflow-y: hidden !important;
}

.wpgmza-filter-widgets {
	display: none !important;
}

.mM_container {
	max-width: 100%;
	margin: 0 auto;
}

.mM_row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--row_gap) var(--col_gap);
}

[data-innerer-abstand="innerer_abstand_oben_und_unten"]{
	padding-top:var(--section_padding);
	padding-bottom:var(--section_padding);
}

[data-innerer-abstand="innerer_abstand_nur_oben"]{
	padding-top:var(--section_padding);
	padding-bottom:0;
}

[data-innerer-abstand="innerer_abstand_nur_unten"]{
	padding-top:0;
	padding-bottom:var(--section_padding);
}

[data-auserer-abstand="auserer_abstand_oben_und_unten"]{
	margin-top:var(--section_padding);
	margin-bottom:var(--section_padding);
}

[data-auserer-abstand="auserer_abstand_nur_oben"]{
	margin-top:var(--section_padding);
	margin-bottom:0;
}

[data-auserer-abstand="auserer_abstand_nur_unten"]{
	margin-top:0;
	margin-bottom:var(--section_padding);
}

/* Section mit Auskragung  
 Setze die Klasse .mM_overlap auf das Element, das auskragen soll. 
 Öfterste Fall dafür ist die $_main-Klasse (Section -> .mM_container -> $_main). 
*/
[data-auskragung="oben"] .mM_overlap,
[data-auskragung="unten"] .mM_overlap {
	position: relative;
	z-index: 3;
}

/* Section mit Auskragung oben */
[data-auskragung="oben"] .mM_overlap {
	margin-top: calc(0px - var(--auskragung_padding));
}

/* Section mit Auskragung unten */
[data-auskragung="unten"] .mM_overlap {
	margin-bottom: calc(0px - var(--auskragung_padding));
}

/* Vorangehende der Section mit Auskragung oben Element */
*:has(+ [data-auskragung="oben"]) {
	padding-bottom: calc(var(--auskragung_padding) + var(--prev_auskragung_section_padding));
	z-index: 2;
}

/* Nachfolgende der Section mit Auskragung unten Element */
[data-auskragung="unten"] + * {
	padding-top: calc(var(--auskragung_padding) + var(--next_auskragung_section_padding));
	position: relative;
    z-index: 2;
}

.mM_container[data-ausrichtung="links"]{
	padding-left: 0;
	margin-left: 0;
}

.mM_container[data-ausrichtung="rechts"]{
	padding-right: 0;
	margin-right:0;
}

.mM_container[data-ausrichtung="zentriert_ausfuellung_rechts"]{
	/* padding-right: 0;
	margin-right: 0; */
}

.mM_container[data-ausrichtung="zentriert_ausfuellung_links"]{
	/* padding-left: 0;
	margin-left: 0; */
}

.mM_container[data-container="container_full"] {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* Section-Erscheinung liegt jetzt in css/appearance.css. */
/* [data-appearance="fade"]{
	opacity: 0;
} */

.mM_d_flex {
	display: flex;
}

.mM_d_none {
	display: none;
}

.mM_d_block {
	display: block;
}

.mM_d_inlineblock {
	display: inline-block;
}

[class*="mM_col_"] {
	flex: 0 0 auto;
	max-width: 100%;
}

.mM_col_100,
[class*="mM_col_"] {
	width: 100%;
}

.mM_align {
	max-width: none;
}

.mM_back_to_top {
	width: 50px;
    height: 50px;
    border-radius: 0;
    background: red;
    border: 1px solid red;

    display: flex;
    align-items: center;
    justify-content: center;
	
    position: fixed;
    top: auto;
    bottom: 160px;
    right: 40px;
    opacity: 0;
	
    cursor: pointer;
    pointer-events: none;
    z-index: 999;

    transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

@media screen and (max-height: 799px) {
	.mM_back_to_top {
		bottom: 120px;
	}
}

@media screen and (max-height: 699px) {
	.mM_back_to_top {
		bottom: 60px;
	}
}

@media screen and (max-height: 599px) {
	.mM_back_to_top {
		bottom: 20px;
	}
}

.mM_back_to_top:hover {
	background: white;
	transform: translateY(-5px);
}

.mM_back_to_top.is_visible {
    opacity: 1;
    pointer-events: auto;
}

@media all and (min-width: 576px) {
	.mM_container {
		max-width: 540px;
	}
	
	.mM_col_25,
	.mM_col_33 {
		width: calc(50% - var(--col_gap) / 2);
	}
}

@media all and (min-width: 768px) {
	.mM_container {
		max-width: 720px;
	}
}

@media all and (min-width: 992px) {
	.mM_container {
		max-width: 960px;
	}
	
	.mM_col_50 {
		width: calc(50% - var(--col_gap) / 2);
	}
	
	.mM_col_33 {
		width: calc(33.3333% - var(--col_gap) * 2 / 3);
	}
}

@media all and (min-width: 1200px) {
	.mM_container {
		max-width: 1140px;
	}
	
	.mM_col_25 {
		width: calc(25% - var(--col_gap) * 3 / 4);
	}
}

@media all and (min-width: 1400px) {
	.mM_container {
		max-width: 1320px;
	}
}

@media all and (min-width: 1600px) {
	.mM_container {
		max-width: 1520px;
	}
}

@media all and (min-width: 1800px) {
	.mM_container {
		max-width: 1720px;
	}
}

@media all and (min-width: 1921px) {
	.mM_container {
		max-width: 1841px;
	}
}

@media all and (min-width: 2200px) {
	.mM_container {
		max-width: 2120px;
	}
}

@media all and (max-width: 991px) {
	:root { --section_padding: var(--section_padding_tablet); }
}

@media all and (max-width: 575px) {
	:root { --section_padding: var(--section_padding_mobile); }

	.mM_container {
		padding: 0 20px;
	}

	.mM_back_to_top {
		right: 20px;
		bottom: 60px;
	}
}

/**********************************************
*  Accessibility / WCAG Baseline (Cross-cut)  *
*  C1 focus-visible · Skip-Link · C3 motion    *
**********************************************/

/* C1 — Visible keyboard focus (WCAG 2.4.7).
   Mouse users get no ring (:focus-visible), keyboard users do. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Nur für Screenreader (visuell versteckt, aber vorlesbar) */
.mM_sr_only,
.wpcf7-acceptance input {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Skip-Link — visually hidden until focused (target: #main-content) */
.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100000;
	padding: 10px 16px;
	background: #fff;
	color: #000;
	border: 2px solid #000;
	border-radius: 4px;
	transition: top .15s ease-in-out;
}

.skip-link:focus {
	top: 8px;
}

.mM_slider_pause {
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
}

/* Glyph spiegelt den Zustand: läuft -> Pause-Symbol, pausiert -> Play-Symbol */
.mM_slider_pause::before {
	content: "\2590\2590";
	font-size: .8em;
}

.mM_slider_pause.is-paused::before {
	content: "\25B6";
	font-size: 1em;
}

/* C3 — Respect reduced-motion as a global baseline (WCAG 2.3.3 / 2.2.2).
   Per-module fine-tuning (autoplay sliders, count-up) follows in the module passes. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}