/* ==========================================================================
   MOBIL / TABLET  (wird geladen bis max-width: 1051px, siehe functions.php)
   Alle Schriftgrößen sind feste px-Werte – keine verschachtelten em-Faktoren
   mehr, die sich gegenseitig verkleinern.
   ========================================================================== */

.desktop {
	display: none !important;
}
BODY {
	font-size: 16px;
}
BODY #content {
	width: 100%;
	min-width: 0;
}

BODY #content #header_top_background {
	display: none;
}

/*** Kopfleiste mit Logo + Menü-Button (bleibt beim Scrollen oben) ***/
BODY #content header {
	position: sticky;
	top: 0;
	z-index: 1000;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "links logo menu";
	align-items: center;
	height: 88px;
	padding: 0 8px 0 12px;
	background-color: #ae7230;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
BODY #content header::after {
	display: none; /* Clearfix würde sonst als Raster-Element mitzählen */
}
/* WordPress-Adminleiste (nur eingeloggt): unter 601px scrollt sie mit weg */
@media screen and (min-width: 601px) {
	BODY.admin-bar #content header {
		top: 46px;
	}
}
@media screen and (min-width: 783px) {
	BODY.admin-bar #content header {
		top: 32px;
	}
}
/* Logo groß und mittig */
BODY #content header #logo {
	grid-area: logo;
}
BODY #content header #logo A,
BODY #content header #logo IMG {
	display: block;
}
BODY #content header #logo IMG {
	width: auto;
	height: 80px;
}
/* Mobil: weißes Logo (SVG) statt PNG mit weißem Hintergrund */
BODY #content header #logo IMG.logo-desktop {
	display: none;
}

/* Hamburger-Button */
BODY #content header .menu-toggle {
	grid-area: menu;
	justify-self: end;
	position: relative;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
BODY #content header .menu-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
BODY #content header .menu-toggle-bars,
BODY #content header .menu-toggle-bars::before,
BODY #content header .menu-toggle-bars::after {
	position: absolute;
	left: 12px;
	width: 24px;
	height: 2px;
	background-color: #fff;
	border-radius: 1px;
	transition: transform 0.25s ease, background-color 0.25s ease, top 0.25s ease;
}
BODY #content header .menu-toggle-bars {
	top: 23px;
}
BODY #content header .menu-toggle-bars::before,
BODY #content header .menu-toggle-bars::after {
	content: "";
	left: 0;
}
BODY #content header .menu-toggle-bars::before {
	top: -8px;
}
BODY #content header .menu-toggle-bars::after {
	top: 8px;
}
BODY #content header.is-open .menu-toggle-bars {
	background-color: transparent;
}
BODY #content header.is-open .menu-toggle-bars::before {
	top: 0;
	transform: rotate(45deg);
}
BODY #content header.is-open .menu-toggle-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Aufklappendes Menü */
BODY #content header nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - 88px);
	max-height: calc(100dvh - 88px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background-color: #ae7230;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
BODY #content header.is-open nav {
	display: block;
}
HTML.menu-offen,
HTML.menu-offen BODY {
	overflow: hidden;
}
BODY #content header nav A {
	color: #fff;
	text-decoration: none;
}
BODY #content header nav UL.hauptnavigation {
	list-style: none;
	margin: 0;
	padding: 0;
}
BODY #content header nav UL.hauptnavigation > LI {
	position: relative;
	border-bottom: 1px solid rgba(211, 182, 138, 0.6);
}
BODY #content header nav UL.hauptnavigation LI A {
	display: block;
	padding: 13px 56px 13px 20px;
	font-size: 18px;
	line-height: 1.35;
}
BODY #content header nav UL.hauptnavigation LI.current-menu-item > A,
BODY #content header nav UL.hauptnavigation LI.current-menu-parent > A,
BODY #content header nav UL.hauptnavigation LI.current-page-ancestor > A {
	color: #fbe9d4;
	font-weight: bold;
}
/* 2. Ebene */
BODY #content header nav UL.hauptnavigation UL.sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 6px 0;
	background-color: rgba(0, 0, 0, 0.08);
}
BODY #content header nav UL.hauptnavigation LI.sub-open > UL.sub-menu {
	display: block;
}
BODY #content header nav UL.hauptnavigation UL.sub-menu LI A {
	padding: 10px 20px 10px 36px;
	font-size: 16px;
}
/* Aufklapp-Pfeil für Untermenüs */
BODY #content header nav .sub-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 52px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: none;
	border-left: 1px solid rgba(211, 182, 138, 0.4);
	background: transparent;
	cursor: pointer;
}
BODY #content header nav .sub-toggle::before {
	content: "";
	position: absolute;
	top: 19px;
	left: 21px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
	transition: transform 0.2s ease, top 0.2s ease;
}
BODY #content header nav LI.sub-open > .sub-toggle::before {
	top: 23px;
	transform: rotate(-135deg);
}
/* Sprachumschalter im Menü: mobil nicht nötig, sitzt in der Kopfleiste */
BODY #content header nav #hd_language {
	display: none;
}

/* Sprache + Mail in der Kopfleiste (Grundstil in style.css) */
BODY #content header .header_buttons {
	display: flex;
	align-items: center;
	gap: 8px;
	grid-area: links;
	justify-self: start;
}
BODY #content header .header_buttons .icon-btn {
	width: 38px;
	height: 38px;
}
/* sehr schmale Geräte: im Sprach-Button nur die Flagge */
@media screen and (max-width: 374px) {
	BODY #content header .header_buttons {
		gap: 6px;
	}
	BODY #content header .header_buttons .sprachwahl A {
		width: 38px;
		height: 38px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
	BODY #content header .header_buttons .sprachwahl A::after {
		content: none;
	}
}
/* in der Kopfleiste nur die jeweils andere Sprache zeigen */
BODY #content header .header_buttons .wpml-ls-current-language {
	display: none;
}

/*** Inhaltskasten ***/
BODY #content #inhalt {
	padding: 28px 20px 24px 20px;
}
BODY #content #zeile1 {
	margin: 0 0 20px 0;
}
BODY #content #zeile1 TABLE {
	width: 100%;
	border-collapse: collapse;
}
BODY #content #zeile1 TABLE TR,
BODY #content #zeile1 TABLE TD {
	display: block;
	width: 100%;
	padding: 0;
}
BODY #content #zeile1 TABLE TD {
	margin: 0 0 12px 0;
}
BODY #content #inhalt IMG {
	display: block;
	width: 100%;
	height: auto;
}
.size-bilderserie_oben {
	width: 100% !important;
	height: auto !important;
}
BODY #content #inhalt #spalte1 {
	width: 100%;
}
BODY #content #inhalt #spalte2 {
	clear: both;
	width: 100%;
	margin: 12px 0 0 0;
	padding: 24px 0 8px 0;
	border-top: 1px solid #ad712e;
}
BODY #content #inhalt #spalte2 > P {
	margin: 0 0 16px 0;
}
.zeile,
.fotos_top_kopie {
	clear: both;
	margin: 0;
}
.page12 {
	padding-top: 0;
}

/* [halbegroesse]: Bilder zweispaltig */
BODY #content #inhalt .halbegroesse {
	display: flow-root;
	margin: 8px -1% 12px -1%;
}
BODY #content #inhalt .halbegroesse P {
	margin: 0;
}
BODY #content #inhalt .halbegroesse IMG {
	float: left;
	width: 48%;
	margin: 0 1% 2% 1%;
}

/* iFrames (Karten, Videos) */
BODY #content #inhalt IFRAME {
	max-width: 100%;
}
BODY #content #inhalt #spalte1 IFRAME {
	width: 100%;
}

/*** Typografie Inhalt ***/
BODY #content #inhalt H1 {
	font-size: 26px;
	line-height: 1.2;
	margin: 0 0 16px 0;
}
BODY #content #inhalt H2 {
	font-size: 20px;
	line-height: 1.3;
	margin: 30px 0 10px 0;
}
BODY #content #inhalt H2.startseite {
	margin-top: 16px;
}
BODY #content #inhalt H3,
BODY #content #inhalt H4,
BODY #content #inhalt H5 {
	font-size: 17px;
	line-height: 1.35;
	margin: 24px 0 8px 0;
}
BODY #content #inhalt H1 + H2,
BODY #content #inhalt H2 + H3 {
	margin-top: 0;
}
BODY #content #inhalt P {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 16px 0;
}
BODY #content #inhalt UL {
	margin: 4px 0 18px 0;
}
BODY #content #inhalt UL LI {
	font-size: 16px;
	line-height: 1.55;
	margin: 0 0 8px 22px;
}

/*** Zitat ***/
BODY #content #inhalt DIV.zitat {
	font-size: 18px;
	line-height: 1.5;
	margin: 0 0 12px 0;
}
BODY #content #inhalt DIV.zitat P {
	margin: 0 0 0.6em 0;
}
BODY #content #inhalt DIV.zitatgeber {
	font-size: 14px;
	margin: 0 0 20px 0;
}

/*** Kontaktformular: Beschriftung über dem Feld ***/
TABLE.kontaktformular,
TABLE.kontaktformular TBODY,
TABLE.kontaktformular TR,
TABLE.kontaktformular TH,
TABLE.kontaktformular TD {
	display: block;
	width: 100%;
}
TABLE.kontaktformular TH {
	padding: 0 0 4px 0;
	font-size: 15px;
	color: #ad712e;
}
TABLE.kontaktformular TD {
	padding: 0;
	margin: 0 0 14px 0;
}
TABLE.kontaktformular TD INPUT,
TABLE.kontaktformular TD SELECT {
	width: 100%;
	height: 44px;
	padding: 0 10px;
	font-size: 16px; /* verhindert Auto-Zoom auf iOS */
}
TABLE.kontaktformular TD TEXTAREA {
	width: 100%;
	height: 140px;
	padding: 10px;
	font-size: 16px;
}
TABLE.kontaktformular TD INPUT#sendenbutton {
	width: auto;
	min-width: 60%;
	height: 48px;
	padding: 0 24px;
	font-size: 17px;
}

/*** FOOTER (Grundstil in style.css) ***/
footer.seitenfuss {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	padding: 36px 20px 26px 20px;
	text-align: center;
	font-size: 14px;
}
footer.seitenfuss .fuss_marke {
	display: contents;
}
footer.seitenfuss .fuss_logo {
	order: 1;
}
footer.seitenfuss .fuss_logo IMG {
	height: 64px;
}
footer.seitenfuss .fuss_aktionen {
	order: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
footer.seitenfuss .fuss_social {
	gap: 14px;
}
footer.seitenfuss .icon-btn {
	width: 46px;
	height: 46px;
}
footer.seitenfuss .icon-btn .icon {
	width: 22px;
	height: 22px;
}
footer.seitenfuss .fuss_links A {
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
footer.seitenfuss .fuss_copyright {
	order: 3;
	align-self: stretch;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	font-size: 13px;
}

/*** Tablet (größere Mobilansicht) ***/
@media screen and (min-width: 700px) {
	BODY #content #inhalt {
		padding: 40px 6% 32px 6%;
	}
	BODY #content #inhalt #spalte2 IMG {
		max-width: 420px;
	}
	BODY #content #inhalt #spalte2 > P {
		max-width: 420px;
	}
	TABLE.kontaktformular {
		max-width: 520px;
	}
}
