/*
 * Design refresh, October 2026 — loaded after deasa.css on every page.
 * Direction: clean, modern security-company look (large sentence-case sans
 * headlines, pill buttons, dark hero with the text on the left, striped CTA).
 *
 *  0. Type and buttons
 *  1. Header: menu in one row from 992px, language switcher separated (globe)
 *  2. Front page hero (body.home): no box, text on the left
 *  3. ST-2 icon columns as cards
 *  4. ST-9 call-to-action band
 *  5. ST-11 image + text
 *  6. Footer
 *
 * To return to the previous look, delete or rename this file (functions.php
 * only enqueues it when it exists); the front-page content has its own
 * restore script (docs/04-runbook-operations.md, "Design refresh").
 */

/* ---------- 0. Type and buttons ---------------------------------------------- */

:root {
	/* system UI sans (SF Pro / Segoe UI / Roboto): no font download, modern on every platform */
	--fd-font-heading: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fd-band: 3px;
	/* square corners everywhere, like the contact form (owner, 30 Oct 2026); --fd-radius is deasa.css's 3px */
	--fd-radius: 0;
	--fd-radius-lg: 0;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4,
.st-2 .blackCondensed20px {
	font-weight: 700;
	text-transform: none;
	letter-spacing: -.02em;
	line-height: 1.12;
	hyphens: manual;
}
h1, .h1 { font-size: clamp(3.4rem, 4vw, 4.8rem); }
h2, .h2 { font-size: clamp(2.8rem, 2.8vw, 3.6rem); }
h3, .h3 { font-size: clamp(2.2rem, 2vw, 2.6rem); }
h4, .h4 { font-size: 2rem; letter-spacing: -.01em; }

/* square buttons with an arrow */
.myBtn9 a,
.st-1 .myBtn9 a,
.st-9 .myBtn9 a,
.heroTextWrap .myBtn9 a {
	border-radius: 0;
	padding: 14px 26px;
	font-size: 1.6rem;
	box-shadow: none;
}
.myBtn9 a::after {
	content: "\2192";
	display: inline-block;
	margin-left: .6em;
	transition: transform .2s ease;
}
.myBtn9 a:hover::after,
.myBtn9 a:focus::after {
	transform: translateX(4px);
}

/* text blocks (st-1): the theme makes them half width on desktop and 10/12 on
   phones; use two thirds on desktop (about 80 characters a line) and the full width on phones */
@media (min-width: 768px) {
	.st-1 .col-sm-6.col-sm-offset-3 {
		width: 66.6667%;
		margin-left: 16.6667%;
	}
}
@media (max-width: 767px) {
	.st-1 .col-xs-10.col-xs-offset-1 {
		width: 100%;
		margin-left: 0;
	}
}

/* ---------- 1. Header ------------------------------------------------------ */

/* globe in front of the language item, also in the phone menu */
.navbar-nav > .wpml-ls-menu-item > a::before {
	content: "";
	display: inline-block;
	width: 17px;
	height: 17px;
	margin-right: 7px;
	vertical-align: -3px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.8 3.9 6 3.9 9.5s-1.3 6.7-3.9 9.5c-2.6-2.8-3.9-6-3.9-9.5s1.3-6.7 3.9-9.5z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c2.6 2.8 3.9 6 3.9 9.5s-1.3 6.7-3.9 9.5c-2.6-2.8-3.9-6-3.9-9.5s1.3-6.7 3.9-9.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (min-width: 992px) {
	.mainHeader {
		align-items: center;
	}
	.mainHeader .navbar-collapse {
		display: flex !important;
		flex: 1 1 auto;
		justify-content: flex-end;
		padding-right: 0;
	}
	.mainHeader .navbar-nav {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		float: none;
		margin: 0;
	}
	.mainHeader .navbar-nav > li {
		float: none;
	}
	.navbar-default .mainHeader .navbar-nav > li > a {
		padding: 22px 8px;
		font-size: 1.4rem;
		white-space: nowrap;
	}
	.navbar-brand > img {
		height: 40px;
	}
	/* language: separated by a thin rule, shown as globe + code (DE / EN / ES) */
	.mainHeader .navbar-nav > .wpml-ls-menu-item {
		margin-left: 8px;
		padding-left: 8px;
		border-left: 1px solid #dcdcd6;
	}
	.navbar-default .mainHeader .navbar-nav > .wpml-ls-menu-item > a {
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.mainHeader .navbar-nav > .wpml-ls-menu-item > a > .wpml-ls-native {
		font-size: 0;
	}
	.mainHeader .navbar-nav > .wpml-ls-menu-item > a > .wpml-ls-native::after {
		content: attr(lang);
		font-size: 1.4rem;
		text-transform: uppercase;
	}
	.mainHeader .navbar-nav > .wpml-ls-menu-item .dropdown-menu {
		right: 0;
		left: auto;
		min-width: 140px;
	}
}
@media (min-width: 1200px) {
	.navbar-default .mainHeader .navbar-nav > li > a {
		padding-left: 11px;
		padding-right: 11px;
		font-size: 1.5rem;
	}
	.navbar-brand > img {
		height: var(--fd-header-logo-h);
	}
	.mainHeader .navbar-nav > .wpml-ls-menu-item > a > .wpml-ls-native::after {
		font-size: 1.5rem;
	}
}

/* every hero box: modern type, no shouting caps */
.heroTextWrap h1 {
	font-size: clamp(3rem, 3.4vw, 4.4rem);
	line-height: 1.1;
	letter-spacing: -.02em;
}

/* ---------- 2. Front page hero: no box, text on the left -------------------- */

/* team photo on the right, black on the left (fd-front-hero-team-v2.jpg: the
   fade and the light grid are in the image); anchored top right so the heads stay */
.home .leitbildSection {
	position: relative;
	background-color: #0a0a0d;
	background-position: 100% 0% !important;
}
/* darken the left side a little more so the text reads where the photo begins */
.home .leitbildSection::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(90deg, rgba(10, 10, 13, .85) 0%, rgba(10, 10, 13, .55) 40%, rgba(10, 10, 13, 0) 62%) !important;
}
.home .leitbildSection .container-fluid {
	position: relative;
	z-index: 1;
	justify-content: flex-start !important;
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 30px;
}
.home .heroTextWrap,
.home .heroTextWrap.heroTextWrap--full {
	max-width: 660px;
	margin: 0;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
}
.home .heroTextWrap h1 {
	margin: 0 0 2.6rem !important;
	font-size: clamp(4rem, 5vw, 6.2rem);
	line-height: 1.02;
	letter-spacing: -.03em;
	text-align: left !important;
}
.home .heroTextWrap h1::before {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-bottom: 2.4rem;
	border-radius: 2px;
	background: var(--fd-burgundy);
}
.home .heroTextWrap h1 b,
.home .heroTextWrap h1 strong {
	font-weight: inherit;
}
.home .heroTextWrap ul {
	margin-bottom: 3rem;
	padding-left: 0;
	list-style: none;
}
.home .heroTextWrap li {
	position: relative;
	margin-bottom: .9rem;
	padding-left: 3rem;
	font-size: 1.8rem;
	color: #ececE7 !important;
}
.home .heroTextWrap li::before {
	content: "";
	position: absolute;
	top: .3em;
	left: 0;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--fd-burgundy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 70%;
}
.home .heroTextWrap p:empty {
	display: none;
}
.home .heroTextWrap .myBtn9 a {
	padding: 16px 30px;
}
@media (max-width: 767px) {
	.home .leitbildSection {
		background-position: 50% 25% !important;
	}
	.home .leitbildSection::before {
		background: rgba(10, 10, 13, .6) !important;
	}
	.home .leitbildSection .container-fluid {
		padding: 0 22px;
	}
	.home .heroTextWrap h1 {
		font-size: 3.8rem;
	}
	.home .heroTextWrap li {
		font-size: 1.6rem;
	}
}

/* square corners everywhere (owner, 30 Oct 2026): the parent theme and WPForms round a few boxes by 2-3px */
.heroTextWrap,
.navbar-toggle,
.wpforms-container input:not([type="radio"]),
.wpforms-container select,
.wpforms-container textarea,
.wpforms-container button {
	border-radius: 0 !important;
}

/* ---------- 3. ST-2 icon columns as cards ---------------------------------- */

/* the band had no top padding (the "kein Abstand" option), so the cards touched its top edge */
.st-2 {
	padding-top: 56px !important;
	padding-bottom: 56px !important;
}
.st-2 .row {
	display: flex;
	flex-wrap: wrap;
	row-gap: 2rem;
}
.st-2 .row > [class*="col-"] {
	display: flex;
}
.st-2 .text-center {
	position: relative;
	z-index: 0;
	flex-direction: column;
	align-items: flex-start;
	padding: 3.2rem 3.4rem 2.8rem;
	text-align: left;
}
/* the card sits behind the column content, inside the Bootstrap gutter */
.st-2 .text-center::before {
	content: "";
	position: absolute;
	inset: 0 10px;
	z-index: -1;
	background: var(--fd-white);
	border: 1px solid #e6e5e0;
	border-radius: var(--fd-radius-lg);
	transition: box-shadow .2s ease, transform .2s ease;
}
.st-2 .text-center:hover::before {
	box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}
.st-2 .text-center img {
	width: 56px;
	height: 56px;
	margin: 0; /* parent centres it; the card text is left-aligned */
}
.st-2 .blackCondensed20px {
	margin: 2rem 0 0;
	font-family: var(--fd-font-heading);
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--fd-ink);
}
@media (max-width: 991px) {
	.st-2 .row > [class*="col-"] {
		width: 100%;
	}
	.st-2 .maToMo30 {
		margin-top: 0;
	}
}

/* ---------- 4. ST-9 call-to-action band ------------------------------------ */

.st-9 {
	position: relative;
	overflow: hidden;
	background-color: #120d10;
	background-image:
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 16px),
		linear-gradient(115deg, #7c1238 0%, #9b1947 30%, #3a0f20 62%, #120d10 100%);
	border-top: 0;
}
.st-9 h1,
.st-9 h2,
.st-9 h3,
.st-9 h4 {
	margin-top: 0;
	margin-bottom: 2.4rem;
	font-size: clamp(2.8rem, 3vw, 3.8rem);
	letter-spacing: -.02em;
}
.st-9 .textArea p {
	font-size: 1.7rem;
	line-height: 1.6;
}
.st-9 .textArea p:empty {
	display: none;
}
.st-9 .textArea p > a {
	color: var(--fd-white);
	text-decoration: underline;
}
.st-9 .myBtn9 a {
	padding: 15px 30px;
	color: var(--fd-ink);
	background: var(--fd-white);
	border-color: var(--fd-white);
}
.st-9 .myBtn9 a:hover,
.st-9 .myBtn9 a:focus {
	color: var(--fd-white);
	background: transparent;
	border-color: var(--fd-white);
}

/* ---------- 5. ST-11 image + text ------------------------------------------ */

.st-11 img {
	width: 100%;
	height: auto;
	border-radius: var(--fd-radius-lg);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}
/* content pasted with nested, bullet-less lists: flatten them */
.st-11 li[style*="list-style-type: none"] {
	list-style: none;
	margin: 0;
}
.st-11 li[style*="list-style-type: none"] > ul {
	margin: 0;
	padding-left: 0;
}
.st-11 ul {
	padding-left: 2rem;
}
.st-11 li {
	margin-bottom: .6rem;
}
.st-11 li::marker {
	color: var(--fd-burgundy);
}
.st-11 .row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
@media (max-width: 767px) {
	.st-11 img {
		margin-bottom: 2.4rem;
	}
}

/* ---------- 6. Footer ------------------------------------------------------ */

.footerHeadline,
footer .footerHeadline {
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 1.6rem;
}
/* the theme prints up to two extra columns whose headline is empty */
footer .footer4:has(> .footerHeadline:empty:only-child) {
	display: none;
}
@media (min-width: 992px) {
	footer .container > .row:first-child {
		display: flex;
		justify-content: center;
	}
}
