/*
 * Responsive Stylesheet für online-kredite.com
 * Desktop (>= 1130px) bleibt im bestehenden Corporate-Design unverändert.
 */

/* ==========================================================================
   1. Globale Basis-Ergänzungen (Desktop + Mobile, ohne Desktop-Layout-Bruch)
   ========================================================================== */

.fm-mobile-bar,
.fm-mobile-bar *,
.fm-mobile-drawer,
.fm-mobile-drawer *,
.fm-kontakt-wrapper,
.fm-kontakt-wrapper *,
.fm-hybrid-table,
.fm-hybrid-table *,
.c2a-wrap,
.c2a-wrap *,
.wp-block-columns,
.wp-block-columns * {
	box-sizing: border-box;
}

@media screen and (max-width: 1129.98px) {

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

img,
video,
canvas,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

.fm-mobile-bar,
.fm-mobile-drawer,
.fm-mobile-backdrop {
	display: none;
}

.fm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* List-Reset gegen glob. #content ul li Background-Pfeil für Block- & Plugin-Listen */
#content ul.fm-mobile-menu li,
#content .wp-block-gallery li,
#content #ez-toc-container li,
#content .fm-detail-box ul li,
#content .kreditvergleich .ul-details-container li {
	background-image: none;
}

/* Breadcrumbs (FM_SEO_Breadcrumbs <nav id="breadcrumbs"><ol class="breadcrumb-trail">) */
#content #breadcrumbs {
	right: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#content #breadcrumbs ol.breadcrumb-trail {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline;
}

#content #breadcrumbs ol.breadcrumb-trail li.breadcrumb-item {
	list-style: none !important;
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	line-height: inherit;
}

#content #breadcrumbs a,
#content #breadcrumbs a span {
	color: #474747;
	text-decoration: underline;
}

#content #breadcrumbs a:hover,
#content #breadcrumbs a:hover span {
	color: #3673b1;
}

#content #breadcrumbs .breadcrumb-separator {
	color: #3673b1;
	margin: 0 3px;
}

#content #breadcrumbs li.breadcrumb-item.active>span {
	color: #929292;
}

/* Call2Action Störer ([call2action]) */
.c2a-wrap {
	margin: 14px 0;
	clear: both;
}

.c2a-wrap::after {
	content: "";
	display: table;
	clear: both;
}

#content p.c2a {
	padding: 10px 14px;
	margin: 0;
	line-height: 1.45;
}

#content p.c2a.type-01 {
	background: #e8f4ff;
	border: 1px solid #bbd0e5;
	border-left: 4px solid #4076a5;
	border-radius: 3px;
	color: #2a5b86;
}

#content p.c2a.type-02 {
	padding: 6px 0;
}

#content p.c2a.type-03 {
	background: #f8f9fb;
	border: 1px dashed #bbd0e5;
	border-radius: 3px;
}

#content .button.red,
#content a.button.red {
	background: linear-gradient(to bottom, #f8d14b 0%, #ee981c 100%);
	border: 2px solid #f6e5ad;
	border-radius: 3px;
	box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.25);
	color: #1f1f1f;
	display: inline-block;
	font-weight: 700;
	padding: 10px 18px;
	text-decoration: none;
	line-height: 1.3;
	transition: opacity 0.15s ease;
}

#content .button.red:hover,
#content a.button.red:hover {
	background: #a4cef3;
	border-color: #e8f4ff;
	color: #0e4379;
	text-decoration: none;
}

/* Kontaktformular ([wpkontakt]) */
.fm-kontakt-wrapper {
	margin: 16px 0;
	padding: 18px 20px;
	background: #f7fafd;
	border: 1px solid #bbd0e5;
	border-radius: 4px;
}

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

.fm-kontakt-success {
	background: #e9f6ec;
	border: 1px solid #8bc49a;
	color: #1e5f30;
}

.fm-kontakt-error {
	background: #fdecec;
	border: 1px solid #e09a9a;
	color: #8b1e1e;
}

.fm-kontakt-form p {
	margin: 0 0 12px 0;
	padding: 0;
}

.fm-kontakt-form label {
	display: inline-block;
	font-weight: 700;
	color: #2a5b86;
	margin-bottom: 4px;
}

.fm-kontakt-form input[type="text"],
.fm-kontakt-form input[type="email"],
.fm-kontakt-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 9px 11px;
	border: 1px solid #bbd0e5;
	border-radius: 3px;
	background: #fff;
	font: inherit;
	color: #333;
}

.fm-kontakt-form input:focus,
.fm-kontakt-form textarea:focus {
	outline: none;
	border-color: #4076a5;
	box-shadow: 0 0 0 2px rgba(64, 118, 165, 0.15);
}

.fm-kontakt-form button[type="submit"] {
	background: linear-gradient(to bottom, #f8d14b 0%, #ee981c 100%);
	border: 2px solid #f6e5ad;
	border-radius: 3px;
	color: #1f1f1f;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 22px;
	cursor: pointer;
}

.fm-kontakt-form button[type="submit"]:hover {
	background: #4076a5;
	border-color: #2a5b86;
	color: #fff;
}

/* Gutenberg Core-Blöcke im Artikelbereich */
#content .wp-block-columns {
	display: flex;
	flex-wrap: nowrap;
	gap: 18px;
	margin: 16px 0;
}

#content .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}

#content .wp-block-image {
	margin: 14px 0;
}

#content .wp-block-image img {
	max-width: 100%;
	height: auto;
}

#content .wp-block-table {
	margin: 16px 0;
	overflow-x: auto;
}

#content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

#content .wp-block-table th,
#content .wp-block-table td {
	border: 1px solid #dcdcdc;
	padding: 8px 10px;
	text-align: left;
}

#content .wp-block-table th {
	background: #4076a5;
	color: #fff;
	font-weight: 700;
}

#content .wp-block-button__link {
	background: #4076a5;
	color: #fff;
	border-radius: 3px;
	padding: 10px 18px;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
}

/* ==========================================================================
   2. Hybride Responsive Datentabelle (.fm-hybrid-table) — Desktop
   ========================================================================== */

#content table.fm-hybrid-table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
	background: #fff;
	font-size: 14px;
	line-height: 1.45;
}

#content table.fm-hybrid-table thead th {
	background: #4076a5;
	color: #fff;
	font-weight: 700;
	text-align: left;
	padding: 10px 12px;
	border: 1px solid #2a5b86;
}

#content table.fm-hybrid-table tbody td {
	padding: 10px 12px;
	border: 1px solid #dcdcdc;
	vertical-align: middle;
	text-align: left;
	color: #474747;
}

#content table.fm-hybrid-table tbody tr:nth-child(even) {
	background: #f8fafc;
}

#content table.fm-hybrid-table td.col-action a,
#content table.fm-hybrid-table td a.fm-table-cta {
	display: inline-block;
	padding: 6px 12px;
	background: linear-gradient(to bottom, #f8d14b 0%, #ee981c 100%);
	border: 1px solid #d48914;
	border-radius: 3px;
	color: #1f1f1f;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

#content table.fm-hybrid-table td.col-action a:hover,
#content table.fm-hybrid-table td a.fm-table-cta:hover {
	background: #4076a5;
	border-color: #2a5b86;
	color: #fff;
}

/* Horizontaler Touch-Scroll-Wrapper für komplexe Alt-Tabellen */
.fm-table-scroll {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 14px 0;
}

.fm-table-scroll>table {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* ==========================================================================
   3. Tablet Landscape (<= 1129.98px): Skyscraper ausblenden, Layout fluid
   ========================================================================== */

@media screen and (max-width: 1129.98px) {
	#wrapper .w1 {
		width: 100%;
		max-width: 984px;
		padding: 0 12px;
	}

	#wrapper .w1 .w2 {
		width: 100%;
		padding: 0;
	}

	#wrapper .w1 .w2 .empfehlung {
		display: none !important;
	}

	#header {
		width: 100%;
		background-size: 100% auto;
	}

	#nav {
		width: 100%;
	}

	#nav ul {
		display: flex;
		flex-wrap: nowrap;
		width: 100%;
	}

	#nav ul li {
		float: none;
	}

	#search {
		left: auto;
		right: 0;
	}

	#contentbox {
		width: 100%;
	}

	#contentbox .cbg {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
	}

	#sidebar {
		order: 1;
		width: 194px;
		flex: 0 0 194px;
		float: none;
	}

	#content {
		order: 2;
		width: calc(100% - 194px);
		flex: 1 1 0;
		min-width: 0;
		float: none;
	}

	#contentbox .cbg>br.clear {
		display: none;
	}

	#footer {
		width: 100%;
		height: auto;
		min-height: 45px;
		padding: 12px 16px;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 10px;
	}

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

	#footer ul.menu li {
		padding-left: 14px;
	}

	#footer ul.menu li:first-child {
		padding-left: 0;
	}

	/* Spalten [col] im fluiden #content proportional halten */
	#content div.col_left,
	#content div.col_right {
		width: calc(50% - 8px) !important;
	}

	#content div.col_none {
		width: 100% !important;
	}

	#content .row_viernullvier .col_viernullvier {
		width: calc(50% - 10px);
	}

	#kreditrechner-maske,
	#baufinanzierungsrechner-maske {
		width: 100%;
	}

	/* WP-Charts & Calculator Container fluid halten */
	#content .fm-chart-wrap,
	#content #calculator_fq {
		max-width: 100% !important;
		width: 100% !important;
	}
}

/* ==========================================================================
   4. Tablet Portrait & Mobile Navigation (<= 979.98px)
   ========================================================================== */

@media screen and (max-width: 979.98px) {
	html {
		background: #f4f6f9;
	}

	#wrapper .w1 {
		padding: 0;
	}

	#header,
	#nav,
	#search {
		display: none !important;
	}

	/* Sticky Mobile Topbar */
	.fm-mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: sticky;
		top: 0;
		z-index: 10010;
		width: 100%;
		min-height: 60px;
		padding: 8px 14px;
		background:
			linear-gradient(180deg, rgba(66, 128, 190, 0.52) 0%, rgba(126, 184, 238, 0.28) 100%),
			url("../images/bg_header.jpg") left center / cover no-repeat,
			linear-gradient(180deg, #518fcb 0%, #6ba7df 55%, #86bcf0 100%);
		border-bottom: 3px solid #1e4f80;
		box-shadow: 0 2px 8px rgba(14, 67, 121, 0.18);
	}

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

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

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

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

	.fm-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 0;
		background: #1e4f80;
		border: 1px solid rgba(255, 255, 255, 0.45);
		border-radius: 4px;
		box-shadow: 0 1px 3px rgba(10, 35, 66, 0.28);
		color: #fff;
		cursor: pointer;
		flex-shrink: 0;
	}

	.fm-menu-toggle .fm-menu-label {
		display: none;
	}

	.fm-menu-toggle:hover,
	.fm-menu-toggle:focus-visible {
		background: #143a61;
		outline: 2px solid #ee951a;
		outline-offset: 2px;
	}

	.fm-burger {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 20px;
		height: 15px;
	}

	.fm-burger span {
		display: block;
		width: 100%;
		height: 2px;
		background: #fff;
		border-radius: 1px;
	}

	/* Slide-Over Off-Canvas Drawer (rechts) */
	.fm-mobile-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(14, 34, 58, 0.55);
		z-index: 10020;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.22s ease, visibility 0.22s ease;
	}

	.fm-mobile-backdrop.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.fm-mobile-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(88vw, 340px);
		background: #fff;
		z-index: 10030;
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.22);
		transform: translateX(100%);
		transition: transform 0.25s ease;
		text-align: left;
		overflow: hidden;
	}

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

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

	.fm-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 16px;
		background: #4076a5;
		color: #fff;
		flex-shrink: 0;
	}

	.fm-drawer-title {
		font-size: 16px;
		font-weight: 700;
		color: #fff;
	}

	.fm-drawer-close {
		width: 40px;
		height: 40px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: rgba(255, 255, 255, 0.14);
		border: 1px solid rgba(255, 255, 255, 0.28);
		border-radius: 4px;
		color: #fff;
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
	}

	.fm-drawer-close:hover {
		background: rgba(255, 255, 255, 0.26);
	}

	.fm-drawer-search {
		padding: 12px 14px;
		background: #e8f4ff;
		border-bottom: 1px solid #bbd0e5;
		flex-shrink: 0;
	}

	.fm-drawer-search form {
		display: flex;
		gap: 6px;
	}

	.fm-drawer-search input[type="search"] {
		flex: 1 1 auto;
		min-width: 0;
		height: 38px;
		padding: 6px 10px;
		border: 1px solid #bbd0e5;
		border-radius: 3px;
		background: #fff;
		color: #333;
		font-size: 14px;
	}

	.fm-drawer-search button {
		height: 38px;
		padding: 0 14px;
		background: #4076a5;
		border: 1px solid #2a5b86;
		border-radius: 3px;
		color: #fff;
		font-weight: 700;
		font-size: 13px;
		cursor: pointer;
		flex-shrink: 0;
	}

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

	.fm-mobile-menu,
	.fm-mobile-menu ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

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

	.fm-mobile-menu .fm-item-row {
		display: flex;
		align-items: stretch;
	}

	.fm-mobile-menu a {
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 10px 16px;
		color: #2a5b86;
		font-size: 14px;
		font-weight: 700;
		text-decoration: none;
		line-height: 1.3;
	}

	.fm-mobile-menu a:hover {
		background: #e8f4ff;
		color: #0e4379;
	}

	/* Aktiver Seitenpfad (mit Unterstrich & Bindestrich) */
	.fm-mobile-menu li.current_page_item>a,
	.fm-mobile-menu li.current_page_item>.fm-item-row>a,
	.fm-mobile-menu li.current-menu-item>a,
	.fm-mobile-menu li.current-menu-item>.fm-item-row>a,
	.fm-mobile-menu li.current_page_ancestor>.fm-item-row>a,
	.fm-mobile-menu li.current-menu-ancestor>.fm-item-row>a,
	.fm-mobile-menu li.current_page_parent>.fm-item-row>a {
		background: #4076a5;
		color: #fff;
	}

	.fm-submenu-toggle {
		width: 46px;
		min-height: 44px;
		flex: 0 0 46px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: #f4f8fc;
		border: none;
		border-left: 1px solid #e1ebf5;
		color: #2a5b86;
		cursor: pointer;
		padding: 0;
	}

	.fm-submenu-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
		margin-top: -3px;
	}

	.fm-mobile-menu li.is-open>.fm-item-row .fm-submenu-toggle::before {
		transform: rotate(-135deg);
		margin-top: 3px;
	}

	.fm-mobile-menu li.current_page_item>.fm-item-row .fm-submenu-toggle,
	.fm-mobile-menu li.current-menu-item>.fm-item-row .fm-submenu-toggle,
	.fm-mobile-menu li.current_page_ancestor>.fm-item-row .fm-submenu-toggle,
	.fm-mobile-menu li.current-menu-ancestor>.fm-item-row .fm-submenu-toggle {
		background: #2a5b86;
		color: #fff;
		border-left-color: rgba(255, 255, 255, 0.2);
	}

	/* 2. & 3. Ebene */
	.fm-mobile-menu li>ul {
		display: none;
		background: #f8fbff;
		border-top: 1px solid #e1ebf5;
	}

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

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

	.fm-mobile-menu ul li:last-child {
		border-bottom: none;
	}

	.fm-mobile-menu ul a {
		padding-left: 26px;
		font-weight: 400;
		font-size: 13.5px;
		color: #3a4654;
	}

	.fm-mobile-menu ul ul a {
		padding-left: 38px;
		font-size: 13px;
	}

	/* Einspaltiger Content & Sidebar darunter */
	#contentbox {
		padding: 10px 10px 0;
	}

	#contentbox .cbg {
		display: block;
		border-radius: 4px;
	}

	#content {
		width: 100%;
		padding: 14px 16px 24px;
		float: none;
		overflow: visible;
	}

	#content #breadcrumbs {
		position: static;
		right: auto;
		height: auto;
		line-height: 1.45;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		padding: 0 0 10px;
		margin: 0 0 14px;
		border-bottom: 1px solid #ededf2;
		font-size: 12px;
	}

	#sidebar {
		width: 100%;
		float: none;
		border-top: 1px solid #dcdcdc;
		background: #fafbfd;
	}

	#sidebar .fm-sidebar-menu-box {
		display: none !important;
	}

	#sidebar .fm-sidebar-ad-box {
		margin: 14px 16px;
		border: 1px solid #dcdcdc;
		border-radius: 4px;
		text-align: center;
	}

	#sidebar .fm-sidebar-ad-box div.bg {
		width: 100%;
	}

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

	#footer {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		padding: 16px 12px 24px;
	}

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

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

/* ==========================================================================
   5. Smartphone Layout, Spalten, Rechner & Vergleichsformulare (<= 767.98px)
   ========================================================================== */

@media screen and (max-width: 767.98px) {

	body,
	input,
	select,
	textarea {
		font-size: 14px;
	}

	#content {
		text-align: left;
		padding: 12px 14px 20px;
		overflow-wrap: break-word;
	}

	#content h1 {
		font-size: 22px;
		line-height: 1.25;
		margin-bottom: 12px;
	}

	#content h2 {
		font-size: 18px;
		line-height: 1.3;
	}

	#content h3 {
		font-size: 16px;
		line-height: 1.3;
	}

	#content div[style*="width"],
	#content iframe,
	#content table {
		max-width: 100% !important;
	}

	#content img.alignleft,
	#content img.alignright {
		float: none !important;
		display: block;
		margin: 10px auto !important;
	}

	/* Gutenberg Columns */
	#content .wp-block-columns {
		flex-direction: column;
		gap: 14px;
	}

	/* [col]-Shortcode Boxen auf volle Breite stapeln */
	#content div.col,
	#content div.col_left,
	#content div.col_right,
	#content div.col_none {
		float: none !important;
		width: 100% !important;
		margin: 0 0 14px 0 !important;
	}

	#content div.col .col_headline {
		height: auto !important;
		min-height: 31px;
		line-height: 1.35 !important;
		padding: 8px 12px;
	}

	#content div.col div.inner div.bg {
		height: auto !important;
		padding: 10px 12px;
	}

	/* Startseite Teaser & Empfehlung */
	#teaser-home {
		height: auto;
		min-height: 0;
		background-image: none;
		background-color: #e8f4ff;
		border: 1px solid #bbd0e5;
		border-radius: 4px;
		padding: 14px 16px;
		margin-bottom: 14px;
	}

	#teaser-home h1 {
		text-align: left;
		font-size: 20px;
		margin-bottom: 10px;
	}

	#teaser-home .ul-haken-blau li {
		font-size: 15px;
	}

	#empfehlung-kredit {
		display: flex;
		flex-direction: column;
		border: 1px solid #bbd0e5;
		border-radius: 4px;
		overflow: hidden;
		margin: 14px 0;
	}

	.empfehlung-produkt {
		float: none;
		width: 100%;
		padding: 12px 14px;
		background: #fff;
		text-align: center;
	}

	.empfehlung-produkt-details {
		float: none;
		width: 100%;
		background: linear-gradient(135deg, #2a5b86 0%, #4076a5 100%);
		padding: 14px;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.empfehlung-produkt-details>div {
		float: none !important;
		padding: 0 !important;
		text-align: center;
	}

	#content .ul-haken-weiss {
		text-align: left;
		margin: 0;
	}

	#content .ul-haken-weiss li {
		font-size: 15px;
	}

	/* 404 Seite */
	.row_viernullvier {
		padding: 10px 0;
		margin: 6px 0;
	}

	.row_viernullvier .col_viernullvier {
		float: none;
		width: 100%;
		padding-left: 0;
		margin-bottom: 14px;
	}

	.banner_viernullvier {
		padding: 14px 16px;
		background-image: none;
		background-color: #e8f4ff;
		border-left: 4px solid #4076a5;
		border-radius: 3px;
	}

	/* Eingabemasken & Rechner-Widgets */
	#kreditrechner-maske,
	#baufinanzierungsrechner-maske,
	.widget_shortcode_small {
		width: 100% !important;
		padding: 14px !important;
		text-align: left !important;
		border-radius: 4px;
	}

	#kreditrechner-maske p,
	#baufinanzierungsrechner-maske p {
		padding: 4px 0 !important;
	}

	#kreditrechner-maske label,
	#baufinanzierungsrechner-maske label,
	.widget_shortcode_small label {
		display: block !important;
		width: 100% !important;
		margin: 8px 0 4px !important;
	}

	#kreditrechner-maske input,
	#kreditrechner-maske select,
	#kreditrechner-maske select#purpose,
	#kreditrechner-maske textarea,
	#baufinanzierungsrechner-maske input,
	#baufinanzierungsrechner-maske select,
	#baufinanzierungsrechner-maske textarea,
	.widget_shortcode_small input,
	.widget_shortcode_small select {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 8px 0 !important;
		min-height: 42px;
	}

	#baufinanzierungsrechner-maske br {
		display: none;
	}

	#kreditrechner-maske input[type="submit"],
	#baufinanzierungsrechner-maske input[type="submit"],
	.widget_shortcode_small input[type="submit"] {
		width: 100% !important;
		margin-top: 8px !important;
		min-height: 44px;
		font-size: 15px;
	}

	/* wp-pagenavi & native Pagination */
	div.wp-pagenavi {
		width: 100%;
		float: none;
		text-align: center;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px;
	}

	/* wp-calculators & FinanceAds Rechner-Plugins */
	#content .wp-calculators,
	#content [class*="wp-calculator"],
	#content .rechner-wrapper {
		width: 100% !important;
		max-width: 100% !important;
	}

	#content .wp-calculators input[type="text"],
	#content .wp-calculators input[type="number"],
	#content .wp-calculators select {
		width: 100% !important;
		max-width: 100% !important;
		min-height: 40px;
	}

	/* Call2Action Buttons mobil vollbreit */
	#content p.c2a[style*="float"] {
		float: none !important;
		width: 100%;
		text-align: center;
	}

	#content .button.red,
	#content a.button.red {
		display: block;
		width: 100%;
		text-align: center;
	}

	/* Kommentarformular */
	#respond input,
	#respond textarea {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ==========================================================================
   6. Responsive Datentabellen (< 640px) — Card-Transformation & Vergleichs-Cards
   ========================================================================== */

@media screen and (max-width: 639.98px) {

	/* 6A: Skill responsive-card-table (.fm-hybrid-table) */
	#content table.fm-hybrid-table {
		border: none;
		background: transparent;
	}

	#content table.fm-hybrid-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	#content table.fm-hybrid-table tbody,
	#content table.fm-hybrid-table tr,
	#content table.fm-hybrid-table td {
		display: block;
		width: 100%;
	}

	#content table.fm-hybrid-table tbody tr {
		margin-bottom: 14px;
		background: #fff;
		border: 1px solid #dcdcdc;
		border-top: 3px solid #4076a5;
		border-radius: 4px;
		box-shadow: 0 2px 6px rgba(14, 67, 121, 0.08);
		overflow: hidden;
	}

	#content table.fm-hybrid-table tbody td {
		display: grid;
		grid-template-columns: minmax(110px, 42%) 1fr;
		gap: 8px 12px;
		align-items: center;
		border: none;
		border-bottom: 1px solid #eef2f6;
		padding: 10px 12px;
		text-align: right;
	}

	#content table.fm-hybrid-table tbody td:last-child {
		border-bottom: none;
	}

	#content table.fm-hybrid-table tbody td::before {
		content: attr(data-label);
		font-weight: 700;
		color: #2a5b86;
		text-align: left;
		font-size: 13px;
	}

	#content table.fm-hybrid-table tbody td.col-primary {
		display: block;
		background: #e8f4ff;
		text-align: left;
		font-weight: 700;
		font-size: 15px;
		color: #0e4379;
		border-bottom: 1px solid #bbd0e5;
	}

	#content table.fm-hybrid-table tbody td.col-primary::before {
		display: none;
	}

	#content table.fm-hybrid-table tbody td.col-action {
		display: block;
		text-align: center;
		padding: 12px;
		background: #fafbfd;
	}

	#content table.fm-hybrid-table tbody td.col-action::before {
		display: none;
	}

	#content table.fm-hybrid-table tbody td.col-action a,
	#content table.fm-hybrid-table tbody td a.fm-table-cta {
		display: block;
		width: 100%;
		padding: 10px 14px;
		text-align: center;
	}

	/* 6B: Automatische Card-Darstellung für saubere 2-4 Spalten Bestandstabellen */
	#content table.fm-auto-card-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	#content table.fm-auto-card-table tbody,
	#content table.fm-auto-card-table tr,
	#content table.fm-auto-card-table td {
		display: block;
		width: 100%;
	}

	#content table.fm-auto-card-table tbody tr {
		margin-bottom: 12px;
		background: #fff;
		border: 1px solid #dcdcdc;
		border-top: 3px solid #4076a5;
		border-radius: 4px;
	}

	#content table.fm-auto-card-table tbody tr.fm-header-row {
		display: none;
	}

	#content table.fm-auto-card-table tbody td {
		display: grid;
		grid-template-columns: minmax(105px, 42%) 1fr;
		gap: 6px 10px;
		align-items: center;
		padding: 8px 10px;
		border: none !important;
		border-bottom: 1px solid #eef2f6 !important;
		text-align: right;
	}

	#content table.fm-auto-card-table tbody td:last-child {
		border-bottom: none !important;
	}

	#content table.fm-auto-card-table tbody td::before {
		content: attr(data-label);
		font-weight: 700;
		color: #2a5b86;
		text-align: left;
		font-size: 12.5px;
	}

	#content table.fm-auto-card-table tbody td[data-label=""] {
		display: block;
		text-align: left;
	}

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

	/* 6C: Vergleichstabellen aus vergleich-templates/*.php (table.kreditvergleich) */
	#content .kreditvergleich,
	#content .kreditvergleich thead,
	#content .kreditvergleich tbody,
	#content .kreditvergleich tfoot,
	#content .kreditvergleich tr,
	#content .kreditvergleich th,
	#content .kreditvergleich td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
	}

	#content #baufinanzierung-vergleich.kreditvergleich thead {
		display: none;
	}

	#content .kreditvergleich thead tr,
	#content .kreditvergleich th,
	#content .kreditvergleich td.sektor {
		padding: 10px 12px;
		text-align: center;
	}

	#content .kreditvergleich td {
		border-left: 1px solid #dcdcdc !important;
		border-right: 1px solid #dcdcdc !important;
		border-bottom: none !important;
		padding: 8px 12px;
	}

	#content .kreditvergleich tr.tr-produkt-headline {
		margin-top: 14px;
		background: #e8f4ff;
		border-top: 3px solid #4076a5;
	}

	#content .kreditvergleich tr.tr-produkt-headline td {
		background: #e8f4ff;
		border-top: none;
		padding: 8px 12px;
		text-align: left;
	}

	#content .kreditvergleich tr.tr-produkt-headline td:empty,
	#content .kreditvergleich tr.tr-produkt-headline td:nth-child(2) {
		display: none;
	}

	#content .kreditvergleich tr.tr-produkt td {
		padding: 6px 12px;
		text-align: center;
	}

	#content .kreditvergleich .p-zins {
		text-align: center;
		padding: 8px 10px;
	}

	#content .kreditvergleich .antrag {
		display: block;
		width: 100%;
		text-align: center;
		padding: 10px 14px;
	}

	#content .kreditvergleich tr.tr-repbsp td {
		padding: 6px 12px 12px;
		border-bottom: 1px solid #dcdcdc !important;
	}

	#content .td-repbsp div {
		float: none;
		text-align: left;
		font-size: 11.5px;
		line-height: 1.4;
	}

	/* Per Inline-JS geöffnetes Details-Panel mobil als Block erzwingen */
	#content .kreditvergleich tr.tr-details[style*="table-row"] {
		display: block !important;
	}

	#content .kreditvergleich .tr-details td {
		padding: 12px;
		border-bottom: 2px solid #4076a5 !important;
	}

	#content .kreditvergleich .tr-details .ul-details-container li,
	#content .kreditvergleich .tr-details .ul-details-container li:first-child,
	#content .kreditvergleich .tr-details .ul-details-container li:last-child {
		float: none;
		width: 100%;
		padding: 0 0 10px 0;
	}

	#content .kreditvergleich tfoot td {
		margin-top: 14px;
		border: 1px solid #dcdcdc !important;
		border-top: 4px solid #4076a5 !important;
	}
}