/* ==========================================================================
   finanzierungen.net — Responsive Stylesheet
   Desktop (>= 1160px) bleibt unveraendert.
   Breakpoints:
     - 980px .. 1159.98px : Kleiner Desktop / Tablet Querformat
     - <= 979.98px        : Tablet Hochformat & Mobile Header + Off-Canvas Drawer
     - <= 767.98px        : Smartphone Content, Formulare & wp-calculators
     - <= 639.98px        : Mobile Card-Tabellen (.fm-hybrid-table & .fm-auto-card-table)
     - <= 599.98px        : Gefloatete Bilder & Captions zentrieren
     - <= 479.98px        : Feinschliff fuer kompakte Smartphones
   ========================================================================== */

/* 1. Desktop-Grundzustand & globale Komponenten (alle Breiten)
-------------------------------------------------------------------------- */
.fm-mobile-bar,
.fm-mobile-drawer,
.fm-mobile-backdrop {
	display: none;
}

.fm-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 15px 0;
}

.fm-table-scroll > table {
	margin: 0;
}

/* Hybrid-Tabellen-Basis (.fm-hybrid-table) */
.mob-only,
.cell-m-label {
	display: none !important;
}

.desk-only {
	display: inline !important;
}

table.fm-hybrid-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 28px 0;
	font-variant-numeric: tabular-nums;
	background: #ffffff;
	border-left: 0;
	border-top: 0;
}

table.fm-hybrid-table > thead > tr > th {
	background-color: #6C9711;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	padding: 11px 14px;
	text-align: left;
	vertical-align: middle;
	line-height: 1.35;
	border: 1px solid #5f860e;
}

table.fm-hybrid-table .th-center { text-align: center; }
table.fm-hybrid-table .th-right  { text-align: right; }

table.fm-hybrid-table > tbody > tr.fm-hybrid-row {
	border-bottom: 1px solid #e2e8d8;
	transition: background-color 0.15s ease;
}

table.fm-hybrid-table > tbody > tr.fm-hybrid-row:hover {
	background-color: #f8faf4;
}

table.fm-hybrid-table > tbody > tr.fm-hybrid-row > td {
	padding: 12px 14px;
	vertical-align: middle;
	border-top: 1px solid #e2e8d8;
	border-right: 1px dotted #c7c7c7;
	border-bottom: 1px solid #e2e8d8;
	color: #464646;
	font-size: 14px;
	line-height: 1.4;
}

table.fm-hybrid-table > tbody > tr.fm-hybrid-row > td:first-child {
	border-left: 1px dotted #c7c7c7;
}

table.fm-hybrid-table > tfoot > tr.fm-summary-row > td {
	padding: 12px 14px;
	background: #f3f6ec;
	border-top: 2px solid #91B428;
	font-weight: 600;
	color: #333333;
}

/* Globale Absicherung fuer Medien & natives Kontaktformular */
#content img {
	max-width: 100%;
	height: auto;
}

#content iframe:not([width="1"]) {
	max-width: 100%;
}

.fm-kontakt-wrapper {
	margin: 12px 0;
}

.fm-kontakt-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 14px;
	font-weight: 700;
}

.fm-kontakt-success {
	background: #eef5e1;
	border: 1px solid #6B9610;
	color: #3f5d06;
}

.fm-kontakt-error {
	background: #fdf0ef;
	border: 1px solid #d9534f;
	color: #9e2a27;
}

.fm-kontakt-form input[type="text"],
.fm-kontakt-form input[type="email"],
.fm-kontakt-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #c5c5c5;
	border-radius: 3px;
	font-size: 14px;
}

.fm-kontakt-form button[type="submit"] {
	background: #6B9610;
	color: #ffffff;
	border: 0;
	border-radius: 3px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.fm-kontakt-form button[type="submit"]:hover {
	background: #5b810d;
}

/* 2. Kleiner Desktop / Tablet Querformat (980px - 1159.98px)
-------------------------------------------------------------------------- */
@media (max-width: 1159.98px) and (min-width: 980px) {
	html,
	body {
		overflow-x: clip;
	}

	.w1 {
		width: 100%;
		max-width: 980px;
		padding: 0 10px;
		box-sizing: border-box;
	}

	.w2 {
		width: 100%;
		padding: 0;
	}

	.ad,
	#facebook .facebook {
		display: none;
	}

	#contentbox {
		width: 100%;
	}

	#content {
		width: calc(100% - 236px);
		box-sizing: border-box;
	}

	#content span.top,
	#content span.bottom {
		display: none;
	}

	#content div.bg {
		width: auto;
		background: #ffffff;
		border: 1px solid #e0e0e0;
		border-radius: 4px;
		box-sizing: border-box;
	}

	#nav {
		width: 100%;
		box-sizing: border-box;
		background: linear-gradient(to bottom, #ffffff 0%, #f1f1f1 100%);
		border: 1px solid #dfdfdf;
		border-radius: 5px;
		height: auto;
		min-height: 46px;
		top: 64px;
		padding: 0 4px;
	}

	#nav ul {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
	}

	#nav ul li {
		float: none;
	}

	#nav ul li a {
		height: 46px;
		line-height: 46px;
		padding: 0 11px;
		font-size: 13px;
		white-space: nowrap;
	}

	#nav ul li a:hover,
	#nav ul li.current_page_item a,
	#nav ul li.current_page_parent a,
	#nav ul li.current-page-ancestor a {
		background: #6B9610;
		color: #ffffff;
		border-radius: 3px;
	}

	#nav ul li a span {
		display: none !important;
	}

	#search {
		right: 0;
	}

	#breadcrumbs,
	nav#breadcrumbs {
		left: 236px;
		right: 0;
	}

	#footer {
		width: 100%;
		max-width: 980px;
		height: auto;
		background: #eaeaea;
		border-top: 1px solid #d5d5d5;
		padding: 14px 20px;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 10px;
	}

	#footer p.copy,
	#footer ul#menu-footer {
		position: static;
	}
}

/* 3. Tablet Hochformat & Mobile (<= 979.98px)
-------------------------------------------------------------------------- */
@media (max-width: 979.98px) {
	html,
	body {
		height: auto;
		overflow-x: clip;
	}

	body.fm-drawer-open {
		overflow: hidden;
	}

	#wrapper {
		min-height: auto;
		margin: 0;
		overflow: visible;
	}

	.w1,
	.w2 {
		width: 100%;
		max-width: 100%;
		padding: 0;
		margin: 0;
	}

	/* Doppelte Desktop-Navigation, Suche, Skyscraper & Sidebar-Menue ausblenden */
	#header,
	#nav,
	#search,
	.ad,
	#clearfooter,
	#facebook,
	#sidebar div.box.fm-sidebar-menu-box {
		display: none !important;
	}

	/* Sticky Mobiler Header */
	.fm-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: sticky;
		top: 0;
		z-index: 900;
		background: #ffffff;
		border-bottom: 2px solid #6B9610;
		padding: 10px 14px;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
		box-sizing: border-box;
	}

	body.admin-bar .fm-mobile-bar {
		top: 32px;
	}

	.fm-mobile-logo {
		display: inline-flex;
		align-items: center;
		max-width: calc(100% - 60px);
		text-decoration: none;
	}

	.fm-mobile-logo img {
		display: block;
		max-height: 30px;
		width: auto;
		max-width: 100%;
	}

	.fm-menu-toggle {
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		background: #f6f7f4;
		border: 1px solid #d5dcc7;
		border-radius: 5px;
		color: #464646;
		line-height: 1;
		cursor: pointer;
		flex-shrink: 0;
		transition: border-color 0.15s ease, background-color 0.15s ease;
	}

	.fm-menu-toggle:hover,
	.fm-menu-toggle:focus-visible,
	.fm-menu-toggle[aria-expanded="true"] {
		border-color: #6B9610;
		background: #eef5e1;
		outline: none;
	}

	.fm-hamburger {
		display: inline-flex;
		flex-direction: column;
		justify-content: space-between;
		width: 20px;
		height: 14px;
	}

	.fm-hamburger span {
		display: block;
		width: 20px;
		height: 2px;
		background: #494949;
		border-radius: 2px;
	}

	/* Backdrop & Off-Canvas Slide-Over Drawer (von rechts) */
	.fm-mobile-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.48);
		z-index: 100000;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.22s ease;
	}

	.fm-mobile-backdrop:not([hidden]),
	.fm-mobile-backdrop.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	.fm-mobile-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(88vw, 350px);
		background: #ffffff;
		z-index: 100001;
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.24s ease, visibility 0.24s ease;
		text-align: left;
	}

	.fm-mobile-drawer.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.fm-mobile-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 16px;
		background: #494949;
		color: #ffffff;
		border-bottom: 3px solid #6B9610;
		flex-shrink: 0;
	}

	.fm-drawer-brand {
		color: #ffffff;
		font-weight: 700;
		font-size: 16px;
		text-decoration: none;
	}

	.fm-drawer-close {
		width: 44px;
		height: 44px;
		background: transparent;
		border: 0;
		color: #ffffff;
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-radius: 4px;
	}

	.fm-drawer-close:hover,
	.fm-drawer-close:focus-visible {
		background: rgba(255, 255, 255, 0.14);
		outline: none;
	}

	.fm-mobile-search {
		padding: 12px 14px;
		background: #f6f7f4;
		border-bottom: 1px solid #e3e7dc;
		flex-shrink: 0;
	}

	.fm-mobile-search form {
		display: flex;
		width: 100%;
	}

	.fm-mobile-search input[type="search"] {
		flex: 1;
		min-width: 0;
		font-size: 16px;
		padding: 8px 10px;
		border: 1px solid #c7d0b8;
		border-right: 0;
		border-radius: 4px 0 0 4px;
		background: #ffffff;
		color: #333333;
		box-sizing: border-box;
	}

	.fm-mobile-search button[type="submit"] {
		background: #6B9610;
		color: #ffffff;
		border: 0;
		padding: 8px 14px;
		font-size: 14px;
		font-weight: 700;
		border-radius: 0 4px 4px 0;
		cursor: pointer;
		flex-shrink: 0;
	}

	.fm-mobile-nav {
		flex: 1;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 4px 0 24px;
	}

	/* 3-Ebenen-Sidebarmenue im Drawer */
	.fm-mobile-menu,
	.fm-mobile-menu ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.fm-mobile-menu > li {
		border-bottom: 1px solid #ececec;
	}

	.fm-menu-row {
		display: flex;
		align-items: stretch;
		width: 100%;
	}

	.fm-mobile-menu a {
		flex: 1;
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 10px 16px;
		color: #464646;
		text-decoration: none;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
		box-sizing: border-box;
	}

	.fm-mobile-menu a:hover,
	.fm-mobile-menu a:focus-visible {
		background: #f6f8f2;
		color: #6B9610;
		outline: none;
	}

	.fm-submenu-toggle {
		flex: 0 0 48px;
		width: 48px;
		min-height: 44px;
		background: transparent;
		border: 0;
		border-left: 1px solid #eeeeee;
		color: #494949;
		cursor: pointer;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0;
	}

	.fm-submenu-toggle:hover,
	.fm-submenu-toggle:focus-visible {
		background: #f2f6ea;
		outline: none;
	}

	.fm-submenu-toggle svg {
		width: 16px;
		height: 16px;
		transition: transform 0.2s ease, color 0.2s ease;
	}

	.fm-submenu-toggle[aria-expanded="true"] {
		color: #6B9610;
	}

	.fm-submenu-toggle[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	/* Untermenues eingeklappt bis .is-open */
	.fm-mobile-menu ul.sub-menu {
		display: none;
	}

	.fm-mobile-menu li.is-open > ul.sub-menu {
		display: block;
	}

	/* Ebene 2 */
	.fm-mobile-menu > li > ul.sub-menu {
		background: #f8faf4;
		border-top: 1px solid #e7ece0;
	}

	.fm-mobile-menu > li > ul.sub-menu > li {
		border-bottom: 1px solid #edf1e6;
	}

	.fm-mobile-menu > li > ul.sub-menu > li:last-child {
		border-bottom: 0;
	}

	.fm-mobile-menu > li > ul.sub-menu a {
		padding: 9px 14px 9px 26px;
		font-size: 14px;
		font-weight: 500;
		min-height: 40px;
		border-left: 3px solid #d5e2bc;
	}

	/* Ebene 3 */
	.fm-mobile-menu ul.sub-menu ul.sub-menu {
		background: #f1f5ea;
		border-top: 1px solid #e2e8d7;
	}

	.fm-mobile-menu ul.sub-menu ul.sub-menu > li {
		border-bottom: 1px solid #e6ecdb;
	}

	.fm-mobile-menu ul.sub-menu ul.sub-menu > li:last-child {
		border-bottom: 0;
	}

	.fm-mobile-menu ul.sub-menu ul.sub-menu a {
		padding: 8px 14px 8px 40px;
		font-size: 13.5px;
		font-weight: 400;
		min-height: 38px;
		border-left: 3px solid #b8cf8a;
	}

	/* Aktiver Seitenpfad */
	.fm-mobile-menu > li.current-menu-item > .fm-menu-row,
	.fm-mobile-menu > li.current_page_item > .fm-menu-row {
		background: #6B9610;
	}

	.fm-mobile-menu > li.current-menu-item > .fm-menu-row > a,
	.fm-mobile-menu > li.current-menu-item > a,
	.fm-mobile-menu > li.current_page_item > .fm-menu-row > a,
	.fm-mobile-menu > li.current_page_item > a {
		background: #6B9610;
		color: #ffffff;
	}

	.fm-mobile-menu > li.current-menu-item > .fm-menu-row > .fm-submenu-toggle,
	.fm-mobile-menu > li.current_page_item > .fm-menu-row > .fm-submenu-toggle {
		color: #ffffff;
		border-left-color: rgba(255, 255, 255, 0.28);
	}

	.fm-mobile-menu > li.current-menu-item > .fm-menu-row > .fm-submenu-toggle:hover,
	.fm-mobile-menu > li.current_page_item > .fm-menu-row > .fm-submenu-toggle:hover {
		background: rgba(0, 0, 0, 0.12);
	}

	.fm-mobile-menu > li.current-menu-parent > .fm-menu-row > a,
	.fm-mobile-menu > li.current-menu-ancestor > .fm-menu-row > a,
	.fm-mobile-menu > li.current_page_parent > .fm-menu-row > a,
	.fm-mobile-menu > li.current-page-ancestor > .fm-menu-row > a {
		background: #eef5e1;
		color: #4f700a;
	}

	.fm-mobile-menu ul.sub-menu li.current-menu-item > .fm-menu-row > a,
	.fm-mobile-menu ul.sub-menu li.current-menu-item > a,
	.fm-mobile-menu ul.sub-menu li.current_page_item > .fm-menu-row > a,
	.fm-mobile-menu ul.sub-menu li.current_page_item > a {
		color: #5b810d;
		font-weight: 700;
		border-left-color: #6B9610;
		background: #eaf3d8;
	}

	.fm-mobile-menu ul.sub-menu li.current-menu-parent > .fm-menu-row > a,
	.fm-mobile-menu ul.sub-menu li.current-menu-ancestor > .fm-menu-row > a,
	.fm-mobile-menu ul.sub-menu li.current_page_parent > .fm-menu-row > a,
	.fm-mobile-menu ul.sub-menu li.current-page-ancestor > .fm-menu-row > a {
		color: #5b810d;
		font-weight: 600;
		border-left-color: #6B9610;
	}

	/* Einzelspalten-Content, Breadcrumbs, Sidebar-Empfehlung & Footer */
	#contentbox {
		width: 100%;
		padding: 12px 12px 20px;
		box-sizing: border-box;
	}

	#breadcrumbs,
	nav#breadcrumbs {
		position: static;
		top: auto;
		left: auto;
		margin: 0 0 10px 0;
		font-size: 12px;
		line-height: 1.5;
	}

	#content {
		float: none;
		width: 100%;
		padding-top: 0;
	}

	#content span.top,
	#content span.bottom {
		display: none;
	}

	#content div.bg {
		width: auto;
		background: #ffffff;
		border: 1px solid #e2e2e2;
		border-radius: 6px;
		padding: 18px 16px;
		box-sizing: border-box;
	}

	#sidebar {
		float: none;
		width: 100%;
		margin: 0;
	}

	#sidebar div.box.fm-sidebar-ad-box {
		width: 100%;
		margin: 16px 0 0 0;
		padding: 0;
		background: #ffffff;
		border: 1px solid #e2e2e2;
		border-radius: 6px;
		box-sizing: border-box;
	}

	#sidebar div.box.fm-sidebar-ad-box span.top,
	#sidebar div.box.fm-sidebar-ad-box span.bottom {
		display: none;
	}

	#sidebar div.box.fm-sidebar-ad-box h3 {
		width: auto;
		height: auto;
		margin: 0;
		padding: 10px 14px;
		background: #6B9610;
		color: #ffffff;
		border-radius: 5px 5px 0 0;
	}

	#sidebar div.box.fm-sidebar-ad-box .bg {
		padding: 14px;
		text-align: center;
	}

	#sidebar div.box.fm-sidebar-ad-box img {
		max-width: 100%;
		height: auto;
	}

	#footer {
		width: 100%;
		height: auto;
		background: #eaeaea;
		border-top: 1px solid #d5d5d5;
		padding: 16px 14px;
		box-sizing: border-box;
		display: flex;
		flex-direction: column-reverse;
		align-items: center;
		gap: 10px;
		text-align: center;
	}

	#footer p.copy {
		position: static;
		font-size: 12px;
		color: #555555;
		line-height: 1.45;
	}

	#footer ul#menu-footer {
		position: static;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px 16px;
	}

	#footer ul#menu-footer li {
		float: none;
		padding: 0;
	}
}

@media (max-width: 782.98px) {
	body.admin-bar .fm-mobile-bar {
		top: 46px;
	}
}

/* 4. Mobile Content, Rechner, Shortcodes & Formulare (<= 767.98px)
-------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
	#content {
		text-align: left;
		overflow-wrap: break-word;
	}

	#content p,
	#content li {
		font-size: 15px;
		line-height: 1.55;
	}

	h1 {
		font-size: 22px;
		line-height: 1.25;
	}

	h2 {
		font-size: 19px;
		line-height: 1.3;
	}

	h3 {
		font-size: 17px;
		line-height: 1.3;
	}

	h4 {
		font-size: 16px;
	}

	div.contentnavi,
	div.contentnavi_floatnone {
		float: none !important;
		width: auto !important;
		margin: 0 0 16px 0 !important;
		padding: 10px 14px !important;
		background: #fafcf6;
		box-sizing: border-box;
	}

	ul.contentnav {
		font-size: 14px;
	}

	ul.contentnav li {
		margin: 4px 0;
		line-height: 1.45;
	}

	div.wp-pagenavi,
	nav.navigation.pagination {
		width: 100%;
		float: none;
		text-align: center;
	}

	/* Iframes & feste Shortcode-Container */
	#content iframe:not([width="1"]) {
		width: 100% !important;
		max-width: 100% !important;
	}

	#content #calculator_fq,
	#content div[style*="width:690px"],
	#content div[style*="width: 690px"],
	#content div[style*="width:700px"],
	#content div[style*="width: 700px"],
	#content div[style*="width: 740px"] {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
	}

	.div-kr-maske {
		padding-left: 0 !important;
		background-image: none !important;
	}

	.div-kr-maske form label,
	.div-kr-maske form input,
	.div-kr-maske form select,
	.div-kr-maske form input#submit {
		display: block;
		width: 100% !important;
		margin-left: 0 !important;
		margin-bottom: 8px;
		box-sizing: border-box;
	}

	/* Legacy WPCF7 Formulare */
	div.wpcf7 h3 {
		width: auto;
	}

	div.wpcf7 label {
		float: none;
		width: auto;
	}

	div.wpcf7 input,
	div.wpcf7 select,
	div.wpcf7 textarea {
		width: 100% !important;
		box-sizing: border-box;
	}

	div.wpcf7 p span.wpcf7-not-valid-tip,
	div.wpcf7 p span.wpcf7-not-valid-tip-no-ajax {
		position: static;
		width: auto;
		margin-top: 4px;
		display: block;
	}

	/* Alle 35 wp-calculators Rechner */
	#content .wp-calculators {
		max-width: 100% !important;
		width: 100% !important;
		box-sizing: border-box !important;
		overflow-x: hidden;
	}

	#content .wp-calculators form {
		background-image: none !important;
		background-color: #f6f7f4 !important;
		padding: 12px !important;
	}

	#content .wp-calculators fieldset {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 6px 4px !important;
		margin: 0 !important;
		background: none !important;
		box-sizing: border-box !important;
	}

	#content .wp-calculators fieldset p {
		position: static !important;
		padding: 6px 0 !important;
		margin: 0 0 4px 0 !important;
	}

	#content .wp-calculators fieldset label {
		float: none !important;
		display: block !important;
		width: auto !important;
		margin: 0 0 4px 0 !important;
		font-size: 14px !important;
		font-weight: 600 !important;
	}

	#content .wp-calculators fieldset input[type="text"],
	#content .wp-calculators fieldset input[type="number"],
	#content .wp-calculators fieldset select {
		width: calc(100% - 34px) !important;
		max-width: 100% !important;
		min-height: 40px !important;
		font-size: 16px !important;
		padding: 6px 10px !important;
		box-sizing: border-box !important;
		display: inline-block !important;
		vertical-align: middle !important;
	}

	#content .wp-calculators fieldset input.submit,
	#content .wp-calculators fieldset input[type="submit"],
	#content .wp-calculators fieldset input[type="reset"] {
		position: static !important;
		margin: 8px 8px 4px 0 !important;
		min-height: 42px !important;
		padding: 8px 16px !important;
		font-size: 14px !important;
		cursor: pointer;
	}

	#content .wp-calculators div[id$="Results"],
	#content .wp-calculators #results {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 12px 0 !important;
		padding: 10px 12px !important;
		text-align: left !important;
		border: 1px solid #d8d8d8 !important;
		box-sizing: border-box !important;
		overflow-x: auto !important;
	}

	#content .wp-calculators div[id$="Results"] span,
	#content .wp-calculators div[id$="Results"] strong {
		width: auto !important;
		display: inline !important;
	}

	#content .wp-calculators table {
		width: 100% !important;
		margin: 10px 0 !important;
	}

	#content .wp-calculators td,
	#content .wp-calculators th {
		width: auto !important;
		white-space: normal !important;
	}
}

/* 5. Mobile Tabellen-Cards (< 640px) & kleine Smartphone-Ansichten
-------------------------------------------------------------------------- */
@media (max-width: 639.98px) {
	.desk-only {
		display: none !important;
	}

	.mob-only {
		display: inline-block !important;
	}

	/* .fm-hybrid-table (Skill: responsive-card-table) */
	table.fm-hybrid-table,
	table.fm-hybrid-table > tbody,
	table.fm-hybrid-table > tfoot {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	table.fm-hybrid-table > thead {
		display: none !important;
	}

	table.fm-hybrid-table > tbody > tr.fm-hybrid-row {
		display: grid !important;
		grid-template-columns: 1fr auto;
		background: #ffffff;
		border: 1px solid #d6dec8 !important;
		border-radius: 6px;
		padding: 14px 16px !important;
		margin-bottom: 12px !important;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
		box-sizing: border-box !important;
	}

	table.fm-hybrid-table > tbody > tr.fm-hybrid-row > td {
		display: block !important;
		border: 0 !important;
		padding: 0 !important;
		width: auto !important;
		box-sizing: border-box !important;
	}

	table.fm-hybrid-table > tbody > tr.fm-hybrid-row > td.cell-primary {
		grid-column: 1 / 2;
		grid-row: 1;
		padding-right: 12px !important;
		padding-bottom: 10px !important;
	}

	table.fm-hybrid-table > tbody > tr.fm-hybrid-row > td.cell-badge {
		grid-column: 2 / 3;
		grid-row: 1;
		align-self: start;
		text-align: right !important;
		padding-bottom: 10px !important;
	}

	table.fm-hybrid-table > tbody > tr.fm-hybrid-row > td.cell-metric-left {
		grid-column: 1 / 2;
		grid-row: 2;
		border-top: 1px solid #eef2e8 !important;
		padding-top: 10px !important;
		padding-right: 10px !important;
		text-align: left !important;
	}

	table.fm-hybrid-table > tbody > tr.fm-hybrid-row > td.cell-metric-right {
		grid-column: 2 / 3;
		grid-row: 2;
		border-top: 1px solid #eef2e8 !important;
		padding-top: 10px !important;
		text-align: right !important;
		min-width: 96px;
	}

	table.fm-hybrid-table > tbody > tr.fm-hybrid-row > td.cell-full {
		grid-column: 1 / -1;
		border-top: 1px solid #eef2e8 !important;
		padding-top: 10px !important;
		margin-top: 8px !important;
	}

	table.fm-hybrid-table .cell-m-label {
		display: block !important;
		font-size: 11px !important;
		font-weight: 700 !important;
		text-transform: uppercase;
		letter-spacing: 0.4px;
		color: #6B9610 !important;
		margin-bottom: 2px;
		line-height: 1.2 !important;
	}

	table.fm-hybrid-table > tfoot > tr.fm-summary-row {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		width: 100% !important;
		background: #f3f6ec;
		border: 1px solid #c5d4a6;
		border-radius: 6px;
		padding: 12px 16px !important;
		box-sizing: border-box !important;
	}

	table.fm-hybrid-table > tfoot > tr.fm-summary-row > td {
		display: block !important;
		border: 0 !important;
		padding: 0 !important;
		background: transparent !important;
	}

	/* .fm-auto-card-table (automatische Karten fuer 2- bis 4-spaltige Bestandstabellen) */
	table.fm-auto-card-table {
		display: block !important;
		width: 100% !important;
		border: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
	}

	table.fm-auto-card-table > thead,
	table.fm-auto-card-table tr.fm-card-header-row {
		display: none !important;
	}

	table.fm-auto-card-table > tbody {
		display: block !important;
		width: 100% !important;
	}

	table.fm-auto-card-table > tbody > tr {
		display: block !important;
		width: 100% !important;
		background: #ffffff;
		border: 1px solid #d6dec8 !important;
		border-radius: 6px;
		padding: 12px 14px !important;
		margin-bottom: 12px !important;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
		box-sizing: border-box !important;
	}

	table.fm-auto-card-table > tbody > tr > td {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		border: 0 !important;
		padding: 0 !important;
		text-align: left !important;
		background: transparent !important;
		box-sizing: border-box !important;
	}

	table.fm-auto-card-table > tbody > tr > td + td {
		border-top: 1px solid #eef2e8 !important;
		margin-top: 8px;
		padding-top: 8px !important;
	}

	table.fm-auto-card-table > tbody > tr > td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.3px;
		color: #6B9610;
		margin-bottom: 2px;
	}

	table.fm-auto-card-table > tbody > tr > td[data-label=""]::before {
		display: none;
	}

	/* Tabellenbasierte Rechner-Formulare unter 640px sauber stapeln */
	#content .wp-calculators form table,
	#content .wp-calculators form tbody,
	#content .wp-calculators form tr,
	#content .wp-calculators form td {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	/* 1x1 Hinweisboxen bleiben kompakt & vollbreit */
	#content table.texttabelle {
		width: 100% !important;
		box-sizing: border-box;
	}

	/* Lange Link-Buttons in Tabellenzellen umbrechen lassen */
	#content table td a {
		white-space: normal;
		word-break: break-word;
	}
}

@media (max-width: 599.98px) {
	body.admin-bar .fm-mobile-bar {
		top: 0;
	}

	#content .wp-caption,
	#content figure {
		width: auto !important;
		max-width: 100% !important;
	}

	#content img.alignleft,
	#content img.alignright,
	#content img.floatleft,
	#content img.floatright,
	#content img[style*="float"] {
		float: none !important;
		display: block !important;
		margin: 10px auto !important;
		padding: 0 !important;
	}
}

@media (max-width: 479.98px) {
	#contentbox {
		padding: 8px;
	}

	#content div.bg {
		padding: 14px 12px;
	}
}
