/*
Theme Name: DCC Finance
*/

/*html :where(img){height:inherit;max-width:none;}*/

/* Fix navbar - overlay banner without negative margin */
.navbar-fixed-magin {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin-bottom: 0;
	z-index: 50;
}

.dcc-container {
	width: 100%;
	max-width: 768px;
	margin-top: 2rem;
	margin-right: auto;
	margin-bottom: 4rem;
	margin-left: auto;
	padding-right: 1rem;
	padding-left: 1rem;
}
@media screen and (min-width: 992px) {
	.dcc-container {
		margin-top: 4rem;
		margin-bottom: 8rem;
	}
}
.footable_parent {
	position: relative;
	left: 50%;
	width: calc(100vw - 2rem);
	max-width: 991px;
	margin: 3rem 1rem;
	transform: translateX(-50%);
}
.wp-block-heading {
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	@media screen and (min-width: 768px) {
		margin-top: 5rem;
		margin-bottom: 2.5rem;
	}
}
.wp-block-buttons {
	margin-top: 2rem;
	margin-bottom: 1rem;
}
.sub-menu {
	padding-left: 0;
	list-style-type: none;
}
@media screen and (min-width: 768px) {
	.sub-menu {
		display: none;
		padding: 1rem 2rem;
		white-space: nowrap;
		background-color: #fff;
	}
	li {
		position: relative;
	}
	li:hover .sub-menu {
		position: absolute;
		top: 100%;
		left: 50%;
		display: block;
		transform: translateX(-50%);
	}
	.sub-menu a {
		display: block;
		padding-top: 1rem;
		padding-bottom: 1rem;
		color: #000;
	}
}

/* Fix .senerios .card overlap issue */
.senerios .card {
	height: auto;
	min-height: 216px;
	padding-bottom: 1rem;
}
.senerios .card p {
	position: static;
	margin-top: 1rem;
}

/* Footer Navigation Menu */
.footer-nav {
	text-align: center;
	margin-top: 0.5rem;
}
.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
}
.footer-menu li {
	display: inline-block;
}
.footer-menu li a {
	color: #aaa;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s ease;
}
.footer-menu li a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Footer Disclaimer */
.footer-disclaimer {
	text-align: center;
	font-size: 13px;
	color: #aaa;
	margin-top: 1rem;
	padding-top: 1rem;
	line-height: 1.6;
	border-top: 1px solid rgba(255,255,255,0.1);
}

/* Reduce footer spacing when menu is present */
.footer,
footer {
	padding-top: 1.5rem;
	padding-bottom: 1rem;
}
.footer .row:first-child,
footer .row:first-child {
	line-height: normal;
	display: flex;
	align-items: center;
}
.footer .row + .row,
footer .row + .row {
	margin-top: 0.75rem;
}
.footer .footer-nav,
footer .footer-nav {
	line-height: 1.5;
}
.footer .col-12,
footer .col-12 {
	line-height: 1.5;
}
.footer .logo img,
footer .logo img {
	height: 80px;
}

/* Banner — reduce padding on mobile */
@media screen and (max-width: 767px) {
	#banner {
		padding-top: 80px;
		padding-bottom: 50px;
	}
}

/* Ninja Tables — Mobile Card Layout */
@media screen and (max-width: 767px) {
	.footable_parent.ninja_table_wrapper {
		width: 100% !important;
		max-width: 100% !important;
		left: auto;
		transform: none;
		margin-left: 0;
		margin-right: 0;
	}
	.ninja_footable colgroup,
	.ninja_footable thead {
		display: none !important;
	}
	.ninja_footable,
	.ninja_footable tbody,
	.ninja_footable tbody tr,
	.ninja_footable tbody td {
		display: block !important;
		width: 100% !important;
	}
	.ninja_footable {
		border: none !important;
	}
	.ninja_footable tbody tr {
		position: relative;
		background: #fff;
		border: 1px solid #e2e2e2;
		border-radius: 12px;
		margin-bottom: 1rem;
		padding: 1.25rem;
		box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	}
	.ninja_footable tbody td {
		border: none !important;
		padding: 0;
		text-align: center;
	}
	/* Rang — badge top-left */
	.ninja_footable td.ninja_clmn_nm_platzierung {
		position: absolute;
		top: 0.75rem;
		left: 0.75rem;
		width: auto !important;
		background: #7A2CEE;
		color: #fff;
		font-weight: 700;
		font-size: 13px;
		padding: 0.2rem 0.6rem;
		border-radius: 6px;
		line-height: 1.4;
	}
	.ninja_footable td.ninja_clmn_nm_platzierung::before {
		content: "#";
	}
	/* Icon — centered logo */
	.ninja_footable td.ninja_clmn_nm_icon {
		margin-top: 0.25rem;
		margin-bottom: 0.5rem;
	}
	.ninja_footable td.ninja_clmn_nm_icon img {
		max-height: 48px;
		width: auto;
	}
	/* Name + Score */
	.ninja_footable td.ninja_clmn_nm_name {
		font-size: 16px;
		font-weight: 600;
		margin-bottom: 0.75rem;
	}
	.ninja_footable td.ninja_clmn_nm_name a {
		font-size: 18px;
	}
	/* Vorteile */
	.ninja_footable td.ninja_clmn_nm_vorteile {
		text-align: left;
		font-size: 14px;
		line-height: 1.6;
		margin-bottom: 0.75rem;
	}
	/* Bonus */
	.ninja_footable td.ninja_clmn_nm_bonus {
		background: #f8f5ff;
		border-radius: 8px;
		padding: 0.75rem !important;
		margin-bottom: 0.75rem;
		font-size: 14px;
		line-height: 1.5;
	}
	/* CTA Button — full width */
	.ninja_footable td.ninja_clmn_nm_button {
		margin-top: 0.25rem;
	}
	.ninja_footable td.ninja_clmn_nm_button .nt_btn {
		display: block;
		width: 100%;
		text-align: center;
		padding: 0.75rem 1rem;
		border-radius: 8px;
		font-size: 16px;
		font-weight: 600;
	}
	/* Remove striped bg from cards */
	.ninja_footable.striped tbody tr:nth-child(odd) {
		background: #fff;
	}
}
