/* Filling Industry Experts – ergänzende Styles (Farben/Schriften kommen aus theme.json) */

/* Kopfzeile bleibt beim Scrollen sichtbar */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
.wp-site-blocks > * + * { margin-block-start: 0; }

.site-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.site-header .wp-block-navigation a { color: var(--wp--preset--color--text); text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--petrol-dark); }
.site-header .site-logo-img { margin: 0; }
.site-header .site-logo-img img { display: block; height: auto; }

/* Dachzeile über Überschriften */
.is-style-eyebrow,
.eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--petrol-dark);
}
.has-ink-background-color .is-style-eyebrow,
.has-ink-background-color .eyebrow { color: var(--wp--preset--color--sky); }

/* Abschnitts-Kopf: Dachzeile dicht an der Überschrift */
.section-head { gap: 8px !important; }
.section-head > * { margin: 0 !important; }

/* Karten */
.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 22px;
}
.has-ink-background-color .is-style-card,
.is-style-card.is-dark {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}
.is-style-card > * { margin-block: 0; }
.is-style-card > * + * { margin-block-start: 12px; }

.cards { gap: 16px !important; }
.cards > * { flex: 1 1 300px; min-width: 0; }
.cards > .card-max { max-width: 640px; }

.card-head { justify-content: space-between !important; align-items: center !important; min-height: 48px; }
.card-head > * { margin: 0 !important; }
.card-logo img { height: 48px; width: auto; display: block; }
.card-logo { margin: 0; }
.brand-word { font-family: var(--wp--preset--font-family--alata); font-size: 26px; letter-spacing: 3px; color: var(--wp--preset--color--ink); }
.more-link a { font-weight: 600; text-decoration: none; }

.badge {
	display: inline-block;
	margin: 0;
	padding: 4px 10px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	background: var(--wp--preset--color--petrol-pale);
	color: #0B5A6B;
}
.badge.is-muted { background: #ECEFF1; color: var(--wp--preset--color--muted); }

/* Kennzahlen */
.stats { gap: 12px !important; }
.stats .is-style-card { padding: 16px; }
.stats .is-style-card > * + * { margin-block-start: 4px; }
.stat-number {
	font-family: var(--wp--preset--font-family--alata);
	font-size: 28px;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
}
.stat-label { font-size: 14px; color: var(--wp--preset--color--muted); }

/* Zeitleiste */
ul.timeline {
	list-style: none;
	margin: 8px 0 0 6px;
	padding: 0;
	border-left: 2px solid #C5D0D5;
}
ul.timeline li { position: relative; padding: 0 0 18px 20px; color: var(--wp--preset--color--muted); font-size: 15px; }
ul.timeline li:last-child { padding-bottom: 4px; }
ul.timeline li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--petrol);
}
ul.timeline li strong {
	display: block;
	font-family: var(--wp--preset--font-family--alata);
	font-weight: 400;
	font-size: 16px;
	color: var(--wp--preset--color--text);
}

/* Bilder */
.hero-img { margin: 0; }
.hero-img img {
	display: block;
	width: 100%;
	height: clamp(220px, 32vw, 460px);
	object-fit: cover;
	object-position: center 40%;
	border-radius: 14px;
}
.portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
	border-radius: 12px;
}
.portrait { margin: 0; }

/* Hero */
.hero .wp-block-columns { gap: 32px 56px; }
.hero .wp-block-buttons > .wp-block-button { flex: 1 1 200px; }
.hero .wp-block-button__link { width: 100%; }

/* Kontakt-Buttons groß, auf dem Handy untereinander */
.contact-buttons { gap: 12px !important; }
.contact-buttons > .wp-block-button { flex: 1 1 260px; }
.contact-buttons .wp-block-button__link {
	width: 100%;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	border-radius: 12px;
}
.contact-buttons .is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--line);
	color: var(--wp--preset--color--text);
}
.has-ink-background-color .contact-buttons .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: #4E6470;
	color: var(--wp--preset--color--white);
}

/* Fußzeile */
.site-footer a { color: var(--wp--preset--color--white); }
.site-footer p { margin: 0; }
.footer-links a { display: inline-block; padding: 10px 0; margin-right: 20px; }

/* Ausgeblendete Blöcke: CSS-Klasse „is-hidden“ (Block → Erweitert → Zusätzliche CSS-Klasse) */
.is-hidden { display: none !important; }

/* Rechtstexte */
.legal h2 { font-size: 22px; margin-top: 32px; }

/* Weißes Band mit Linien oben/unten */
.band { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }

/* Dunkle Flächen: Überschriften und Kontur-Buttons hell */
.has-ink-background-color h1,
.has-ink-background-color h2,
.has-ink-background-color h3 { color: var(--wp--preset--color--white); }
.has-ink-background-color .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: #4E6470;
}
.has-ink-background-color .is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--white); }
.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--text); }
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--white); }

/* Logo in der Kachel: feste Höhe, auch im Editor */
.card-logo { flex: 0 1 auto; max-width: 200px; }
.card-logo img { height: 48px !important; width: auto !important; max-width: 100%; }
.card-head .badge { flex-shrink: 0; }

/* Sprachumschalter */
.site-header .lang-switch a { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); }
.site-header .lang-switch.is-current-lang a { color: var(--wp--preset--color--petrol-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Sprungmarken nicht unter der fixierten Kopfzeile verstecken */
[id] { scroll-margin-top: 88px; }

/* ===== Filling Industry Experts ===== */

/* Kopf: Logo, Menü, Datenraum */
.site-header .site-logo-img img { width: 120px; }
@media (min-width: 900px) { .site-header .site-logo-img img { width: 150px; } }
.header-right { gap: 8px !important; align-items: center; }
.dataroom-link { margin: 0; }
.dataroom-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 12px;
	border: 1.5px solid var(--wp--preset--color--ink);
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.dataroom-link a::before {
	content: "";
	width: 14px;
	height: 14px;
	background: 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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dataroom-link a:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }

/* Haken-Listen in den Zielgruppen-Karten */
ul.check-list { list-style: none; margin: 0; padding: 0; color: var(--wp--preset--color--muted); }
ul.check-list li { position: relative; padding-left: 26px; margin-top: 6px; }
ul.check-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 6px;
	width: 14px;
	height: 8px;
	border-left: 2.5px solid var(--wp--preset--color--petrol-dark);
	border-bottom: 2.5px solid var(--wp--preset--color--petrol-dark);
	transform: rotate(-45deg);
}

/* Branchen-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span {
	font-size: 14px;
	padding: 6px 12px;
	border-radius: 99px;
	background: var(--wp--preset--color--petrol-pale);
	color: #0B5A6B;
}

/* Dunkle Projekt-Karten */
.is-style-card.is-dark { color: var(--wp--preset--color--mist); }
.is-style-card.is-dark h3 { color: var(--wp--preset--color--white); }
.is-style-card.is-dark strong { color: var(--wp--preset--color--white); font-weight: 600; }
.is-style-card.is-dark .is-style-eyebrow { color: var(--wp--preset--color--sky); }
.is-style-card.is-dark p { font-size: 15px; }

/* Leistungen als Zeilen */
ul.service-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	column-gap: 40px;
	border-top: 1px solid var(--wp--preset--color--line);
}
ul.service-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	min-height: 64px;
	box-sizing: border-box;
}
ul.service-list li strong {
	display: block;
	font-family: var(--wp--preset--font-family--alata);
	font-weight: 400;
	font-size: 18px;
	color: var(--wp--preset--color--text);
}

/* Team */
.person { gap: 16px !important; align-items: center !important; padding: 16px !important; }
.person > * + * { margin-block-start: 0 !important; }
.person .avatar { margin: 0; flex: none; }
.person .avatar img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block; }
.avatar-ph {
	flex: none;
	width: 76px;
	height: 76px;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--alata);
	font-size: 22px;
}
.person-text > * { margin: 0 !important; }
.person-name { font-family: var(--wp--preset--font-family--alata); font-size: 18px; color: var(--wp--preset--color--ink); }
.person-role { color: var(--wp--preset--color--muted); font-size: 14px; }
.person .more-link a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; }

/* Kontakt auf dunklem Grund */
.has-ink-background-color .contact-buttons .wp-block-button__link { word-break: break-word; }

/* Fußzeile */
.site-footer .brand-of a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--wp--preset--color--mist); text-decoration: none; }
.site-footer .brand-of img { height: 20px; width: auto; }
.footer-links a { color: var(--wp--preset--color--white); }

/* Menü: bis 1023 px als Klappmenü (sieben Einträge passen auf Tablets nicht in eine Zeile) */
@media (min-width: 600px) and (max-width: 1023px) {
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .lang-switch a { font-size: 16px; }
