/* ==========================================================================
   Custom Project Styles (Marcus Getriebeservice)
   ========================================================================== */

/* --- Desktop Layout & Header --- */
.header-flex-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 0;
}
.header-logo-col {
	flex: 0 0 42%;
	padding-right: 15px;
	box-sizing: border-box;
}
.header-logo-col img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Kontaktdaten Mitte (Desktop) */
.header-contact-col {
	flex: 0 0 38%;
	border-left: 1px solid #e0e0e0;
	padding-left: 35px;
	box-sizing: border-box;
}
.header-contact-col .contact-row {
	margin-bottom: 12px;
	font-size: 13px;
	color: #333;
	display: flex;
	align-items: center;
}
.header-contact-col .contact-row:last-child {
	margin-bottom: 0;
	align-items: flex-start;
}
.header-contact-col a {
	color: #0088cc;
	text-decoration: none;
}
.header-contact-col a:hover {
	text-decoration: underline;
}

/* Icon-Kreise in der Header-Kontaktspalte */
.header-contact-col .icon-circle {
	width: 28px;
	height: 28px;
	background-color: #1a3c6c;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	flex-shrink: 0;
}
.header-contact-col .icon-circle i {
	color: #fff;
	font-size: 12px;
	line-height: 1;
	margin: 0;
	padding: 0;
	position: relative;
	top: 0px;
	left: -4px;
}

/* WhatsApp-Bereich Desktop */
.header-whatsapp-col {
	flex: 0 0 20%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-left: 1px solid #e0e0e0;
	padding-left: 20px;
	box-sizing: border-box;
}
.whatsapp-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-bottom: 6px;
}
.whatsapp-header svg {
	width: 18px;
	height: 18px;
	fill: #25D366;
}
.whatsapp-title {
	font-weight: bold;
	font-size: 14px;
	color: #25D366;
}
.whatsapp-qr {
	width: 85px;
	height: 85px;
	border: 2px solid #25D366;
	border-radius: 12px;
	padding: 4px;
	background: #fff;
	box-sizing: border-box;
	display: block;
	margin: 0 auto;
}
.whatsapp-hint {
	font-size: 11px;
	font-style: italic;
	color: #555;
	margin-top: 4px;
	text-align: center;
}

/* Tabellen-Wrapper (Horizontales Scrollen auf Smartphones) */
.table-responsive {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 15px;
}

/* Desktop Tabs Standard */
ul.tabs-nav li {
	width: 16.66%;
	box-sizing: border-box;
	text-align: center;
}
ul.tabs-nav li a {
	padding: 10px 4px !important;
	font-size: 12px !important;
	white-space: nowrap;
}

/* Mobile Icon-Leiste Standardmäßig ausblenden */
.mobile-contact-bar {
	display: none;
}


/* --- Mobile Ansicht (unter 768px) --- */
@media (max-width: 768px) {
	/* Verhindert seitliches Scrollen der gesamten Seite */
	html, body, #wrapper {
		max-width: 100% !important;
		overflow-x: hidden !important;
	}

	/* Fix für die Navigation (Behebt weißen Freiraum rechts) */
	#navigation {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	.header-flex-wrapper {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 10px 0;
	}
	.header-logo-col {
		flex: 0 0 100%;
		padding: 0;
		margin-bottom: 15px;
	}
	.header-logo-col img {
		margin: 0 auto;
	}

	/* Ausblenden der Desktop-Kontaktblöcke */
	.header-contact-col, 
	.header-whatsapp-col {
		display: none !important;
	}

	/* Einblenden der mobilen Icon-Reihe */
	.mobile-contact-bar {
		display: flex !important;
		justify-content: center;
		align-items: center;
		gap: 15px;
		width: 100%;
		margin-top: 5px;
	}

	.mobile-icon-btn {
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background-color: #1a3c6c;
		display: flex;
		align-items: center;
		justify-content: center;
		text-decoration: none !important;
		box-shadow: 0 2px 5px rgba(0,0,0,0.15);
	}

	.mobile-icon-btn i {
		color: #fff;
		font-size: 18px;
		line-height: 1 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.mobile-icon-btn.whatsapp-btn {
		background-color: #25D366;
	}

	.mobile-icon-btn.whatsapp-btn svg {
		width: 22px;
		height: 22px;
		fill: #ffffff;
	}

	/* Tabs: Native Touch-Sliding Unterstützung */
	ul.tabs-nav {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		touch-action: pan-x;
		border-bottom: 1px solid #ddd;
		padding-bottom: 2px;
	}
	ul.tabs-nav li {
		width: auto !important;
		flex: 0 0 auto !important;
		scroll-snap-align: start;
	}
	ul.tabs-nav li a {
		padding: 10px 14px !important;
		font-size: 13px !important;
		white-space: nowrap !important;
		overflow: visible !important;
		text-overflow: clip !important;
	}
}