/* ==========================================================================
   3D Partner — Werkstatt-Footer (Designrichtlinie v2.5.0)
   4-Spalten-Navy-Footer + schlanke Rechtsleiste. Hohe Spezifität über
   footer#colophon.site-footer schlägt Dynamic CSS (#main-footer / #footer-bottom).
   ========================================================================== */

footer#colophon.site-footer {
	padding-top: 32px;
	clear: both;
}

body.p3d-home-page:has(.p3dh) footer#colophon.site-footer {
	padding-top: 0;
}

/* Action Bar ("Zurück nach oben") ruhig und kompakt halten */
footer#colophon.site-footer #footer-action-bar {
	height: auto;
	min-height: 54px;
	background: #f1f5f9;
	border-top: 1px solid #d5dde6;
	border-bottom: 1px solid rgba(18, 54, 125, 0.14);
}

footer#colophon.site-footer #footer-action-bar .inner {
	max-width: var(--p3d-container-max, 1400px);
	padding: 10px 24px;
	min-height: 54px;
}

footer#colophon.site-footer #footer-action-bar .back-to-top button.back-to-top-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 14px;
	border-radius: 8px;
	color: #12367d;
	font: 600 0.84375rem/1.2 Inter, Arial, sans-serif;
	letter-spacing: 0.04em;
	transition: background-color 0.15s ease, color 0.15s ease;
}

footer#colophon.site-footer #footer-action-bar .back-to-top button.back-to-top-button:hover,
footer#colophon.site-footer #footer-action-bar .back-to-top button.back-to-top-button:focus-visible {
	background: #e2e8f0;
	color: #0b204d;
}

footer#colophon.site-footer #footer-action-bar .back-to-top button.back-to-top-button:focus-visible {
	outline: 3px solid var(--p3d-accent-line, #d97706);
	outline-offset: 2px;
}

footer#colophon.site-footer #footer-action-bar .back-to-top i {
	display: inline-block;
	margin: 0;
	font-size: 0.95rem;
	animation: none;
}

footer#colophon.site-footer #footer-action-bar .back-to-top i.fa-angle-double-up {
	animation: none;
}

/* Hauptfooter (Navy, 1400px Container, 4 Spalten) */
footer#colophon.site-footer #main-footer.p3df-main {
	background: linear-gradient(180deg, #102d69 0%, #0b204d 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.88);
	font-family: Inter, Arial, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.55;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-inner {
	max-width: var(--p3d-container-max, 1400px);
	margin: 0 auto;
	padding: 56px 24px 48px;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 40px 36px;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-col {
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}

/* Spalte 1: Marke & Profil */
footer#colophon.site-footer #main-footer.p3df-main .p3df-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: #ffffff;
	margin-bottom: 16px;
	border-radius: 10px;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-logo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	background: #ffffff;
	padding: 6px 10px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-logo-img {
	display: block;
	width: 58px;
	height: auto;
	max-height: 42px;
	object-fit: contain;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-brand-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-brand-name {
	font-family: "Space Grotesk", Arial, sans-serif;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-brand-sub {
	font-size: 0.8125rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.78);
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-brand-desc,
footer#colophon.site-footer #main-footer.p3df-main .p3df-contact-intro {
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.90625rem;
	line-height: 1.55;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-brand-actions {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 18px;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-action-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fbbf24;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(251, 191, 36, 0.55);
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-action-link:hover,
footer#colophon.site-footer #main-footer.p3df-main .p3df-action-link:focus-visible {
	color: #ffffff;
	text-decoration-color: #f59e0b;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-socials {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #ffffff;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-social-link:hover,
footer#colophon.site-footer #main-footer.p3df-main .p3df-social-link:focus-visible {
	background: #f59e0b;
	border-color: #f59e0b;
	color: #1a202c;
}

/* Spaltenüberschriften mit Amber-Akzentlinie */
footer#colophon.site-footer #main-footer.p3df-main h2.p3df-title {
	margin: 0 0 16px;
	font-family: "Space Grotesk", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: #ffffff;
	text-transform: none;
}

footer#colophon.site-footer #main-footer.p3df-main h2.p3df-title::before {
	content: none;
	display: none;
}

footer#colophon.site-footer #main-footer.p3df-main h2.p3df-title::after {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	margin-top: 8px;
	background: #f59e0b;
}

/* Navigationslisten */
footer#colophon.site-footer #main-footer.p3df-main ul.p3df-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

footer#colophon.site-footer #main-footer.p3df-main ul.p3df-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

footer#colophon.site-footer #main-footer.p3df-main ul.p3df-list li a {
	display: inline-block;
	padding: 2px 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.9375rem;
	line-height: 1.4;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

footer#colophon.site-footer #main-footer.p3df-main ul.p3df-list li a:hover,
footer#colophon.site-footer #main-footer.p3df-main ul.p3df-list li a:focus-visible {
	color: #ffffff;
	border-bottom-color: #f59e0b;
	text-decoration: none;
}

/* Spalte 4: Werkstatt & Kontakt */
footer#colophon.site-footer #main-footer.p3df-main .p3df-address {
	margin: 16px 0 0;
	font-style: normal;
	display: grid;
	gap: 11px;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-contact-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.90625rem;
	line-height: 1.45;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-contact-row svg {
	flex: none;
	margin-top: 2px;
	color: #f59e0b;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-contact-row span {
	color: rgba(255, 255, 255, 0.9);
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-contact-row a {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(255, 255, 255, 0.4);
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

footer#colophon.site-footer #main-footer.p3df-main .p3df-contact-row a:hover,
footer#colophon.site-footer #main-footer.p3df-main .p3df-contact-row a:focus-visible {
	color: #fbbf24;
	text-decoration-color: #f59e0b;
}

/* Tastaturfokus in allen Footer-Bereichen */
footer#colophon.site-footer #main-footer.p3df-main a:focus-visible,
footer#colophon.site-footer #footer-bottom.p3df-bottom a:focus-visible {
	outline: 3px solid #f59e0b;
	outline-offset: 2px;
	border-radius: 4px;
}

/* Rechtsleiste (#footer-bottom) */
footer#colophon.site-footer #footer-bottom.p3df-bottom {
	width: 100%;
	float: none;
	background: #08183b;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 18px 0;
	color: rgba(255, 255, 255, 0.8);
	font-family: Inter, Arial, sans-serif;
	font-size: 0.84375rem;
	line-height: 1.45;
}

footer#colophon.site-footer #footer-bottom.p3df-bottom .p3df-bottom-inner {
	max-width: var(--p3d-container-max, 1400px);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

footer#colophon.site-footer #footer-bottom.p3df-bottom .p3df-copyright {
	color: rgba(255, 255, 255, 0.78);
}

footer#colophon.site-footer #footer-bottom.p3df-bottom .p3df-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}

footer#colophon.site-footer #footer-bottom.p3df-bottom a.p3df-legal-link {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

footer#colophon.site-footer #footer-bottom.p3df-bottom a.p3df-legal-link:hover,
footer#colophon.site-footer #footer-bottom.p3df-bottom a.p3df-legal-link:focus-visible {
	color: #ffffff;
	border-bottom-color: #f59e0b;
}

/* ==========================================================================
   Responsive (Tablet <= 1024px / Mobile <= 768px)
   ========================================================================== */
@media (max-width: 1024px) {
	footer#colophon.site-footer #main-footer.p3df-main .p3df-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 28px;
		padding: 44px 20px 40px;
	}

	footer#colophon.site-footer #footer-bottom.p3df-bottom .p3df-bottom-inner {
		padding: 0 20px;
	}
}

@media (max-width: 768px) {
	footer#colophon.site-footer #footer-action-bar .inner {
		padding: 8px 16px;
	}

	footer#colophon.site-footer #main-footer.p3df-main .p3df-inner {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 36px 16px;
	}

	footer#colophon.site-footer #main-footer.p3df-main ul.p3df-list {
		gap: 2px;
	}

	footer#colophon.site-footer #main-footer.p3df-main ul.p3df-list li a,
	footer#colophon.site-footer #main-footer.p3df-main .p3df-action-link,
	footer#colophon.site-footer #main-footer.p3df-main .p3df-contact-row a,
	footer#colophon.site-footer #footer-bottom.p3df-bottom a.p3df-legal-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		line-height: 1.35;
	}

	footer#colophon.site-footer #main-footer.p3df-main .p3df-social-link {
		width: 44px;
		height: 44px;
	}

	footer#colophon.site-footer #footer-bottom.p3df-bottom {
		padding: 16px 0 22px;
	}

	footer#colophon.site-footer #footer-bottom.p3df-bottom .p3df-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 0 16px;
		gap: 10px;
	}

	footer#colophon.site-footer #footer-bottom.p3df-bottom .p3df-legal {
		gap: 0 16px;
	}

	/* Abstand für die mobile Startseiten- und Produktseiten-Sticky-Bar sauber unten an der Rechtsleiste */
	body.p3d-home-page:has(.p3dh) footer#colophon.site-footer #main-footer.p3df-main,
	body.p3d-product-page:has(.p3dp-mobile-bar) footer#colophon.site-footer #main-footer.p3df-main {
		padding-bottom: 36px;
	}

	body.p3d-home-page:has(.p3dh) footer#colophon.site-footer #footer-bottom.p3df-bottom,
	body.p3d-product-page:has(.p3dp-mobile-bar) footer#colophon.site-footer #footer-bottom.p3df-bottom {
		padding-bottom: 84px;
	}
}

@media (prefers-reduced-motion: reduce) {
	footer#colophon.site-footer #footer-action-bar .back-to-top button.back-to-top-button,
	footer#colophon.site-footer #main-footer.p3df-main a,
	footer#colophon.site-footer #footer-bottom.p3df-bottom a.p3df-legal-link {
		transition: none;
	}
}
