/*
Dittmar Dacheindeckungen GmbH
creation Date: 2026-08-12
Author: Sebastian Osinski
http://www.sebbi.net
https://ddm-friends.de

mod_ddm_footer - only what the template utilities do not already cover.
Colours come from colors.css (rose_bg, blue, blue_bg, blue_border, white_bg),
layout from template.css (cont-block, main-container, flexwrap, flexbox, regpad_top, font_s).

Note: Joomla injects this file through <jdoc:include type="head" />, which sits
above the template stylesheets in index.php. Selectors are therefore scoped with
.ddm_footer wherever they override a template rule, so they win on specificity
instead of relying on source order.
*/

.ddm_footer {
	position: relative;
	display: block;
	width: 100%;
}
.ddm_footer ul {
	list-style: none;
	margin: 0px;
	padding: 0px;
}
.ddm_footer a:focus-visible {
	outline: 2px solid;
	outline-offset: 3px;
}



/* NAVIGATION - PILL BUTTONS */
.ddm_footer .ddm_footer_pills li {
	display: block;
	margin: 0px 0px 3px 0px;
}
.ddm_footer .ddm_footer_pill {
	position: relative;
	display: inline-block;
	overflow: hidden;
	border: 1px solid;
	border-radius: 40px;
	padding: 8px 30px 9px 30px;
	font-family: 'Avenir-Medium', sans-serif;
	font-size: 22px;
	line-height: 28px;
	background-color: transparent;
	-webkit-transition: transform 350ms cubic-bezier(.2, .7, .2, 1), color 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms cubic-bezier(.2, .7, .2, 1);
	transition: transform 350ms cubic-bezier(.2, .7, .2, 1), color 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms cubic-bezier(.2, .7, .2, 1);
}
.ddm_footer .ddm_footer_pill_fill {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	z-index: 0;
	transform: scaleX(0);
	transform-origin: left center;
	-webkit-transition: transform 350ms cubic-bezier(.2, .7, .2, 1);
	transition: transform 350ms cubic-bezier(.2, .7, .2, 1);
}
.ddm_footer .ddm_footer_pill_label {
	position: relative;
	z-index: 1;
}
.ddm_footer .ddm_footer_pill:hover,
.ddm_footer .ddm_footer_pill:focus-visible {
	color: #ffffff;
	transform: translateX(4px);
	-webkit-box-shadow: 0px 6px 18px rgba(0, 38, 67, 0.18);
	-moz-box-shadow: 0px 6px 18px rgba(0, 38, 67, 0.18);
	box-shadow: 0px 6px 18px rgba(0, 38, 67, 0.18);
}
.ddm_footer .ddm_footer_pill:hover .ddm_footer_pill_fill,
.ddm_footer .ddm_footer_pill:focus-visible .ddm_footer_pill_fill {
	transform: scaleX(1);
}



/* NAVIGATION - SECONDARY LINKS */
.ddm_footer .ddm_footer_links {
	margin-top: 30px;
}
.ddm_footer .ddm_footer_links li {
	display: block;
	margin: 0px 0px 8px 0px;
	font-size: 18px;
	line-height: 26px;
	opacity: 0.72;
	-webkit-transition: opacity 250ms ease;
	transition: opacity 250ms ease;
}
.ddm_footer .ddm_footer_links li:hover {
	opacity: 1;
}
.ddm_footer .ddm_footer_links a {
	display: inline-block;
}



/* KONTAKT */
.ddm_footer .ddm_footer_headline {
	display: inline-block;
	font-family: 'Avenir-Medium', sans-serif;
	font-size: 30px;
	line-height: 38px;
	letter-spacing: 0.5px;
}
.ddm_footer .ddm_footer_hours {
	margin: 4px 0px 0px 0px;
	font-size: 17px;
	line-height: 25px;
	opacity: 0.85;
}
.ddm_footer .ddm_footer_mail_label {
	margin-top: 38px;
}
.ddm_footer .ddm_footer_mail {
	margin: 4px 0px 0px 0px;
	font-size: 17px;
	line-height: 25px;
	opacity: 0.85;
}



/* ZERTIFIKATE UND PARTNER */
.ddm_footer .ddm_footer_seals_list {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-end;
	align-items: stretch;
	gap: 5px;
}
.ddm_footer .ddm_footer_seal {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 152px;
	height: 103px;
	margin: 0px;
	padding: 12px;
	box-sizing: border-box;
	border-radius: 10px;
	-webkit-box-shadow: 0px 2px 8px rgba(0, 38, 67, 0.10);
	-moz-box-shadow: 0px 2px 8px rgba(0, 38, 67, 0.10);
	box-shadow: 0px 2px 8px rgba(0, 38, 67, 0.10);
	-webkit-transition: transform 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms cubic-bezier(.2, .7, .2, 1);
	transition: transform 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms cubic-bezier(.2, .7, .2, 1);
}
.ddm_footer .ddm_footer_seal img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: saturate(0.85) opacity(0.9);
	-webkit-transition: filter 350ms cubic-bezier(.2, .7, .2, 1);
	transition: filter 350ms cubic-bezier(.2, .7, .2, 1);
}
.ddm_footer .ddm_footer_seal:hover {
	transform: translateY(-6px);
	-webkit-box-shadow: 0px 10px 24px rgba(0, 38, 67, 0.18);
	-moz-box-shadow: 0px 10px 24px rgba(0, 38, 67, 0.18);
	box-shadow: 0px 10px 24px rgba(0, 38, 67, 0.18);
}
.ddm_footer .ddm_footer_seal:hover img {
	filter: saturate(1) opacity(1);
}

/* touch devices never hover - show the seals at full strength right away */
@media (hover: none) {
	.ddm_footer .ddm_footer_seal img {
		filter: none;
	}
}



/* CLAIM - LOGO, SLOGAN, GRUENDUNGSJAHR */
.ddm_footer .ddm_footer_claim {
	display: flex;
	flex-flow: row nowrap;
	align-items: baseline;
	gap: 30px;
	margin-top: 90px;
	padding-bottom: 55px;
}
.ddm_footer .ddm_footer_claim_logo {
	display: block;
	flex: 0 0 auto;
	width: auto;
	height: clamp(38px, 6.8vw, 130px);
}
/* Avenir-Medium is this project's bold weight (see .bold/b/strong in template.css) */
.ddm_footer .ddm_footer_claim_text {
	font-family: 'Avenir-Medium', sans-serif;
	font-size: clamp(26px, 4.4vw, 86px);
	line-height: 1.1;
	letter-spacing: 0.5px;
	white-space: nowrap;
}
.ddm_footer .ddm_footer_claim_since {
	flex: 0 0 auto;
	margin-left: auto;
	font-family: 'Avenir-Book', sans-serif;
	font-size: clamp(18px, 2.4vw, 46px);
	line-height: 1.1;
	white-space: nowrap;
}

/* staggered scroll-in, driven by the .animAct / ._animAct hook in viewports.js */
.ddm_footer .ddm_footer_claim_logo,
.ddm_footer .ddm_footer_claim_text,
.ddm_footer .ddm_footer_claim_since {
	opacity: 0;
	transform: translateY(40px);
	-webkit-transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1);
	transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1);
}
.ddm_footer .ddm_footer_claim._animAct .ddm_footer_claim_logo,
.ddm_footer .ddm_footer_claim._animAct .ddm_footer_claim_text,
.ddm_footer .ddm_footer_claim._animAct .ddm_footer_claim_since {
	opacity: 1;
	transform: translateY(0px);
}
.ddm_footer .ddm_footer_claim._animAct .ddm_footer_claim_logo {
	transition-delay: 0ms;
}
.ddm_footer .ddm_footer_claim._animAct .ddm_footer_claim_text {
	transition-delay: 120ms;
}
.ddm_footer .ddm_footer_claim._animAct .ddm_footer_claim_since {
	transition-delay: 240ms;
}



/* RECHTLICHES */
.ddm_footer .ddm_footer_legal {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 18px;
	padding-bottom: 18px;
	border-top: 1px solid rgba(0, 38, 67, 0.25);
}
.ddm_footer .ddm_footer_legal p {
	line-height: 22px;
}
.ddm_footer .ddm_footer_legal a {
	display: inline-block;
	font-family: 'Avenir-Medium', sans-serif;
	margin-left: 4px;
	white-space: nowrap;
}
.ddm_footer .ddm_footer_consent {
	cursor: pointer;
}



/* RESPONSIVE */

/* below ~1860px .main-container.wide falls back to 98% and would sit almost
   flush against the viewport edges - give the footer some breathing room */
@media (max-width: 1860px) {
	.ddm_footer .main-container.wide {
		max-width: 96%;
	}
}

@media (max-width: 1410px) {
	.ddm_footer .main-container.wide {
		max-width: 93%;
	}
}

@media (max-width: 1320px) {
	.ddm_footer .ddm_footer_nav.flexbox._s20 {
		width: 34%;
	}
	.ddm_footer .ddm_footer_contact.flexbox._s35 {
		width: 58%;
	}
	.ddm_footer .ddm_footer_seals.flexbox._s40 {
		width: 100%;
		margin-top: 55px;
	}
	.ddm_footer .ddm_footer_seals_list {
		justify-content: flex-start;
	}
	.ddm_footer .ddm_footer_claim {
		margin-top: 70px;
	}
}

@media (max-width: 860px) {
	.ddm_footer .main-container.wide {
		max-width: 88%;
	}
	/* same specificity as the 1320px rules above, so these win by source order */
	.ddm_footer .ddm_footer_nav.flexbox._s20,
	.ddm_footer .ddm_footer_contact.flexbox._s35,
	.ddm_footer .ddm_footer_seals.flexbox._s40 {
		width: 100%;
	}
	.ddm_footer .ddm_footer_contact.flexbox._s35,
	.ddm_footer .ddm_footer_seals.flexbox._s40 {
		margin-top: 45px;
	}
	.ddm_footer .ddm_footer_pills {
		display: flex;
		flex-flow: row wrap;
		gap: 10px;
	}
	.ddm_footer .ddm_footer_pills li {
		margin-bottom: 0px;
	}
	.ddm_footer .ddm_footer_seals_list {
		flex-flow: row wrap;
		gap: 12px;
	}
	.ddm_footer .ddm_footer_seal {
		flex: 0 0 calc(50% - 6px);
		max-width: calc(50% - 6px);
	}
	.ddm_footer .ddm_footer_claim {
		flex-flow: column nowrap;
		align-items: center;
		text-align: center;
		gap: 18px;
		margin-top: 60px;
	}
	.ddm_footer .ddm_footer_claim_text {
		white-space: normal;
	}
	.ddm_footer .ddm_footer_claim_since {
		margin-left: 0px;
	}
	.ddm_footer .ddm_footer_legal p {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ddm_footer .ddm_footer_claim_logo,
	.ddm_footer .ddm_footer_claim_text,
	.ddm_footer .ddm_footer_claim_since {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.ddm_footer .ddm_footer_pill,
	.ddm_footer .ddm_footer_pill_fill,
	.ddm_footer .ddm_footer_seal,
	.ddm_footer .ddm_footer_seal img,
	.ddm_footer .ddm_footer_links li {
		transition: none;
	}
	.ddm_footer .ddm_footer_pill:hover,
	.ddm_footer .ddm_footer_seal:hover {
		transform: none;
	}
}
