/*
Theme Name: Consiera
Description: Schlankes eigenes Theme für consiera.de.
Version: 0.82
Author: Consiera GmbH
Text Domain: consiera
Requires PHP: 8.0
*/

/* ---------- Schrift (lokal, keine Google Fonts) ---------- */
@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-sans-regular.woff2") format("woff2");
}
/* Echter Fettschnitt: ohne ihn rechnet der Browser Fett aus dem Regular hoch, das wirkt verschwommen (v0.69) */
@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 600 900;
	font-display: swap;
	src: url("fonts/pt-sans-bold.woff2") format("woff2");
}
/* Hausschrift für Überschriften laut CI (variable Schrift, lokal) */
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("fonts/space-grotesk.woff2") format("woff2");
}

/* ---------- Grundlagen ---------- */
:root {
	--c-anthracite: #252723;
	--c-green: #03463C;
	--c-lime: #B0E04B;
	--c-gray: #F2F2F2;
	--c-text: #4a4a45; /* Fließtext im CD-Grau (v0.72, vorher #888) */
	--c-muted: #5D5D57;
	--c-border: #D9D9D2;
	--c-dark-text: #CFE0DA;
	--c-dark-muted: #8C8C85;
	--wrap: 1040px;
	--font: "PT Sans", "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Space Grotesk", "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
html, body { overflow-x: clip; }
body { margin: 0; font: 14px/1.75 var(--font); color: var(--c-text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--c-green); }
a:hover { color: var(--c-anthracite); }
/* Grundtypografie wie im bisherigen Theme (Seiteninhalte sind darauf abgestimmt) */
h1, h2, h3, h4, h5, h6 { position: relative; margin: 0; padding: 0 0 10px; color: #666; font-weight: 400; line-height: 140%; letter-spacing: 0; }
h1 { font-size: 28px; } h2 { font-size: 24px; } h3 { font-size: 20px; } h4 { font-size: 18px; } h5 { font-size: 16px; } h6 { font-size: 14px; }
p { margin: 0; padding: 0 0 16px; }
ul, ol { margin: 0 0 20px 17px; padding: 0; }
/* Formularelemente übernehmen die Seitenschrift (sonst Arial) */
button, input, select, textarea { font-family: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Überschriften-Widget des alten Theme-Plugins (z. B. „Kontaktformular“ mit Stern) */
.cns-heading .featured_article_title { margin: 0; padding: 0 20px 0 0; font-size: 20px; line-height: 28px; color: #666; }
.cns-heading .heading_icon { margin-right: 5px; color: #97B164; }
/* graue Zierlinie rechts neben der Überschrift */
.cns-heading .title_line { position: relative; overflow: hidden; }
.cns-heading .featured_article_title { display: inline-block; position: relative; }
.cns-heading .featured_article_title::after { content: ""; position: absolute; top: 14px; left: 100%; width: 500px; height: 1px; margin-top: -1px; background: #F0F0F0; }
/* Karriere: erste Überschrift ohne Abstand oben */
.ueb h4.krr-first { margin-top: 0 !important; }

.wrap, .content-blocks { width: var(--wrap); max-width: calc(100% - 40px); margin-left: auto; margin-right: auto; }
/* Feste Inhaltsbreiten wie im bisherigen Theme */
@media (max-width: 1099px) { :root { --wrap: 940px; } }
@media (max-width: 960px) { :root { --wrap: 740px; } }
@media (max-width: 767px) { .wrap, .content-blocks { width: 90%; max-width: none; } }
/* Schmale Bildschirme: Titelleiste bündig mit dem Fließtext (Elementor-Spalten haben 10 px Innenabstand) */
@media (max-width: 960px) { .title-bar .wrap { padding-left: 10px; padding-right: 10px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--c-lime); color: var(--c-anthracite); padding: 8px 14px; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Topbar (Sprachumschalter) ---------- */
.top-bar { background: #F8F8F8; border-bottom: 1px solid rgba(0, 0, 0, .04); font-size: 12px; }
.top-bar .wrap { display: flex; justify-content: flex-end; min-height: 31px; align-items: center; }
.top-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.top-links a { display: flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; color: #919191; text-decoration: none; line-height: 1.4; }
.top-links a:hover { background: rgba(176, 224, 75, .25); color: var(--c-anthracite); }
.top-links .trp-flag-image { display: block; width: 18px; height: auto; border-radius: 2px; }

/* ---------- Header ---------- */
.header-holder { position: relative; z-index: 100; }
.site-header { background: #fff; position: relative; z-index: 100; }
/* Schmale Sticky-Leiste beim Scrollen, rollt von oben ein */
.site-header.is-stuck { position: fixed; top: 0; left: 0; right: 0; animation: consiera-roll-in .35s ease-out both; }
.admin-bar .site-header.is-stuck { top: 32px; }
.site-header.is-stuck .wrap { min-height: 44px; }
.site-header.is-stuck .site-logo img { max-height: 28px; }
.site-header.is-stuck .site-nav .menu > li > a { min-height: 44px; font-size: 14px; padding: 0 18px; }
.site-header.is-stuck .site-nav .sap-badge img { height: 30px; margin-top: 2px; }
@keyframes consiera-roll-in {
	from { transform: translateY(-100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.site-header.is-stuck { animation: none; }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 85px; }
.site-logo img { display: block; max-height: 65px; width: auto; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.site-nav .menu > li { display: flex; position: relative; border-right: 1px solid #EEE; }
.site-nav .menu > li:first-child { border-left: 1px solid #EEE; }
.site-nav .menu > li > a {
	position: relative; display: flex; align-items: center; padding: 0 15px; min-height: 85px;
	font-size: 18px; color: #8A8A8A; text-decoration: none; transition: color .2s;
}
/* Linie oben: wächst beim Hover von links, beim aktiven Menüpunkt volle Breite */
.site-nav .menu > li > a::after {
	content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: #97B164; transition: width .25s;
}
.site-nav .menu > li > a:hover { color: var(--c-anthracite); }
.site-nav .menu > li > a:hover::after,
.site-nav .menu > .current-menu-item > a::after,
.site-nav .menu > .current-page-ancestor > a::after { width: 100%; }
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-page-ancestor > a { color: var(--c-anthracite); }
.site-nav .menu > .sap-badge { border-right: 0; }
.site-nav .sap-badge > a { padding-right: 0; }
.site-nav .sap-badge img { height: 46px; width: auto; display: block; margin-top: 3px; }

/* ---------- Mobil: dunkle Leiste mit Burger-Menü und Zahnrad (wie bisher) ---------- */
.mobile-bar { display: none; }
.mobile-bar button { background: none; border: 0; padding: 10px 15px; color: #999; cursor: pointer; line-height: 0; }
.mobile-bar button:hover, .mobile-bar button[aria-expanded="true"] { color: #fff; }
.nav-toggle .bar { display: block; width: 24px; height: 3px; border-radius: 2px; background: currentColor; margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.mobile-bar { display: flex; justify-content: space-between; align-items: center; background: #353535; padding: 10px 8px; }
	.top-bar { display: none; }
	.top-bar.is-open { display: block; }
	.site-header .wrap { flex-direction: column; justify-content: center; gap: 0; min-height: 0; }
	.site-logo { padding: 30px 0 38px; }
	.site-logo img { max-height: 65px; }
	.site-nav { display: none; order: -1; width: 100vw; margin: 0 calc(50% - 50vw); background: #fff; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu > li { border: 0 !important; }
	.site-nav .menu > li > a { flex: 1; min-height: 0; padding: 12px 20px; font-size: 16px; border-bottom: 1px solid #EEE; }
	.site-nav .menu > li > a::after { display: none; }
	.site-nav .menu > .current-menu-item > a { border-left: 3px solid #97B164; }
	.site-nav .sap-badge > a { padding: 10px 20px; }
	/* auf schmalen Bildschirmen nichts sticky (wie bisher) */
	.site-header.is-stuck { position: relative; animation: none; }
}

/* ---------- Titelleiste ---------- */
.title-bar { position: relative; z-index: 2; background: var(--c-anthracite); color: var(--c-gray); padding: 22px 0 18px; }
.title-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; }
.title-bar h1, .title-bar .title-bar__title { margin: 0; padding: 0; font-size: 21px; font-weight: 400; line-height: 1; color: var(--c-gray); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; font-size: 11px; line-height: 1; color: var(--c-gray); }
@media (max-width: 767px) {
	.title-bar .wrap { flex-direction: column; align-items: flex-start; gap: 15px; }
}
.breadcrumb a { color: var(--c-gray); text-decoration: none; }
.breadcrumb .bc-home { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb .bc-home .icon { display: block; }
.breadcrumb a:hover { color: var(--c-lime); }
.breadcrumb .sep { display: inline-flex; margin: 0 7px; }
.breadcrumb .sep svg { display: block; }

/* ---------- Inhalt ---------- */
.site-main { display: block; }
.content-blocks { position: relative; z-index: 1; padding: 20px 0; }
.content-blocks.is-full { width: auto; max-width: none; margin: 0; padding: 0; }
.content-area { padding: 40px 0 64px; }

/* ---------- Footer-Widgets ---------- */
.footer-widgets {
	background: var(--c-anthracite); color: var(--c-dark-text); border-top: 2px solid var(--c-lime);
	position: relative; overflow: hidden; padding: 22px 0 8px; font-size: 14px; line-height: 1.6;
}
.footer-widgets::after {
	content: ""; position: absolute; width: 340px; height: 347px; right: max(-120px, calc(50% - 760px)); bottom: -150px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1004 1024'%3E%3Cpath fill='%23b0e04b' d='M454 2h112v369L454 259zM570 375 833 112l79 79-262 263zM653 459h349v112H765zM2 459h564v563H454V651L166 937l-79-80 286-286H2z'/%3E%3C/svg%3E") no-repeat center / contain;
	opacity: .06; pointer-events: none;
}
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-widgets a { color: var(--c-dark-text); }
.footer-widgets a:hover { color: var(--c-lime); }
.footer-title { margin: 0 0 8px; padding: 0; color: var(--c-lime); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-about { display: flex; gap: 14px; align-items: flex-start; }
.footer-about p { margin: 0; padding: 0; }
.footer-mark {
	flex: 0 0 46px; width: 46px; height: 47px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1004 1024'%3E%3Cpath fill='%23b0e04b' d='M454 2h112v369L454 259zM570 375 833 112l79 79-262 263zM653 459h349v112H765zM2 459h564v563H454V651L166 937l-79-80 286-286H2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.footer-claim { color: #fff; font-weight: 700; margin-top: 4px !important; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 8px; padding-bottom: 2px; }
.footer-contact .icon { color: var(--c-lime); flex: 0 0 16px; }
.footer-contact a { text-decoration: none; }
.footer-cta p { margin: 0 0 8px; padding: 0; }
.footer-widgets a.footer-btn {
	display: inline-block; background: var(--c-lime); color: var(--c-anthracite); padding: 5px 14px;
	border-radius: 999px; font-weight: 700; font-size: 13px; line-height: 1.5; text-decoration: none; transition: background .2s;
}
.footer-widgets a.footer-btn:hover { background: #fff; color: var(--c-anthracite); }

/* ---------- Footer-Leiste ---------- */
.site-footer { background: var(--c-anthracite); border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 0; color: #A9A9A9; }
.footer-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-links li + li { border-left: 1px solid rgba(255, 255, 255, .15); }
.footer-links a { display: block; padding: 0 10px; font-size: 13px; line-height: 1.2; color: var(--c-dark-text); text-decoration: none; }
.footer-links li:first-child a { padding-left: 0; }
.footer-links a:hover { color: var(--c-lime); }
.copyright { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--c-dark-muted); }
.social-media { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social-media a { position: relative; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s, color .2s; }
/* Hover-Etikett in Lime, gleitet beim Hover sanft heran */
.social-media .tip {
	--shift: 6px;
	position: absolute; left: 50%; white-space: nowrap; pointer-events: none;
	background: var(--c-lime); color: var(--c-anthracite); font-size: 11px; font-weight: 700; line-height: 1.4; padding: 4px 9px; border-radius: 4px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
	opacity: 0; visibility: hidden; z-index: 200;
	transform: translate(-50%, var(--shift));
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.social-media .tip::before { content: ""; position: absolute; left: 50%; margin-left: -5px; border: 5px solid transparent; }
.social-media a:hover .tip, .social-media a:focus-visible .tip { opacity: 1; visibility: visible; --shift: 0px; }
@media (prefers-reduced-motion: reduce) { .social-media .tip { transition: opacity .2s, visibility .2s; } }
/* Topbar: kleine graue Kacheln, Etikett gleitet von unten heran */
.social-top { margin-left: 10px; gap: 4px; }
.social-top a { width: 20px; height: 20px; background: #BBB; color: #fff; }
.social-top a:hover { background: #97B164; }
.social-top .icon { width: 12px; height: 12px; }
.social-top .icon-linkedin { width: 11px; height: 11px; }
.social-top .tip { top: calc(100% + 8px); color: #F2F2F2; background: #86AC30; }
.social-top .tip::before { bottom: 100%; border-bottom-color: #86AC30; }
.social-top li:last-child .tip { left: auto; right: 0; transform: translate(0, var(--shift)); }
.social-top li:last-child .tip::before { left: auto; right: 5px; margin-left: 0; }
/* Footer: Rahmen in Lime, Etikett darüber */
.social-footer .icon { width: 14px; height: 14px; }
.social-footer a { width: 30px; height: 30px; border: 1px solid rgba(176, 224, 75, .45); border-radius: 6px; color: var(--c-lime); }
.social-footer a:hover { background: var(--c-lime); color: var(--c-anthracite); }
.social-footer .tip { --shift: -6px; bottom: calc(100% + 8px); }
.social-footer .tip::before { top: 100%; border-top-color: var(--c-lime); }

@media (max-width: 767px) {
	.footer-grid { grid-template-columns: 1fr; gap: 22px; }
	.footer-info { flex-direction: column; align-items: flex-start; }
}

/* ---------- Suche ---------- */
.search-list { list-style: none; margin: 0; padding: 0; }
.content-area > p { padding-bottom: 16px; }
.search-list li { padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.search-list .search-title { font-size: 18px; text-decoration: none; }
.search-list p { margin: 4px 0 0; padding: 0; }

/* ---------- Passwortgeschützte Seiten ---------- */
.post-password-form input[type="password"] { padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 4px; font: inherit; }
.post-password-form input[type="submit"] { padding: 8px 18px; border: 0; border-radius: 999px; background: var(--c-green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.post-password-form input[type="submit"]:hover { background: var(--c-anthracite); }

/* ---------- Überschriften in Space Grotesk (v0.54) ----------
   Alle Überschriften, Kartentitel und kleine Rubrik-Labels in der CI-Hausschrift,
   höchstens Medium (500). Fließtext, Aufreißer, Listen und Links bleiben PT Sans. */
h1, h2, h3, h4, h5, h6,
.title-bar__title,
.t-title,
.kmp-sub,
.lst-svc strong,
.map-title,
.ueb-name,
.ueb-claim,
.legal-label,
.ktk-label,
.news-side__title,
.news-related__name {
	font-family: var(--font-head) !important;
	font-weight: 500 !important;
}
h1, h2, .title-bar__title, .ueb-claim {
	letter-spacing: -0.01em;
}
/* Space Grotesk wirkt kleiner als PT Sans: Zwischenüberschriften der Inhaltsseiten 19 → 21 px (v0.55) */
.content-blocks h4:not(.partner-head),
.cns-heading h3.featured_article_title {
	font-size: 21px !important;
}
.jobs .job-body h4 {
	font-size: 15px !important;
}
/* Einleitungssätze oben auf den Inhaltsseiten ebenfalls in Space Grotesk (v0.56) */
.lst-lead,
.kmp-lead,
.ueb-lead,
.ktk-lead,
.legal-lead {
	font-family: var(--font-head) !important;
	font-weight: 500 !important;
}
/* Beitragstitel (Einzelbeitrag und Übersicht) eine Stufe kräftiger */
.news-card__title,
.post-title {
	font-weight: 600 !important;
}
/* Einleitungssätze und Zwischenüberschriften: Semibold und 5 % höher gestreckt (v0.57),
   ab v0.58 auch Datenschutz, „Weitere Beiträge“ und die Rubriken im News-Menü.
   Gestreckt wird nach oben (Ursprung unten links), damit nichts in den folgenden Text ragt. */
.lst-lead,
.kmp-lead,
.ueb-lead,
.ktk-lead,
.legal-lead,
.content-blocks h4:not(.partner-head):not(.job-body h4),
.cns-heading h3.featured_article_title,
.post-content h2,
.post-content h3,
.legal-text h3,
.news-related__title,
.news-side__title {
	font-weight: 600 !important;
	transform: scaleY(1.05);
	transform-origin: left bottom;
}
/* Buttons und Formular-Beschriftungen in Space Grotesk Medium (v0.59).
   Der Pfeil → stammt aus Space Grotesk und ist dort kräftig genug. */
.hero-cta,
.footer-btn,
.post-cta__btn,
.map-load,
.wpcf7-submit,
.news-side__back a,
.wpcf7 label,
.wpcf7-quiz-label {
	font-family: var(--font-head) !important;
	font-weight: 500 !important;
}
/* Eingaben in den Feldern bleiben in der Textschrift */
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea,
.wpcf7 select {
	font-family: var(--font) !important;
}
/* „Senden“: Formular-Plugin-Regel mit !important (Semibold) überstimmen, damit alle Buttons Medium sind (v0.60) */
.wpcf7 form input.wpcf7-submit {
	font-weight: 500 !important;
}
/* Karten-Labels im Impressum und auf Kontakt (z. B. „Telefon“, „Anbieter“) kräftiger (v0.61) */
.legal-label,
.ktk-label {
	font-weight: 700 !important;
}
/* Einleitungssätze der Inhaltsseiten einen Tick größer: 17 → 18 px (v0.62) */
.lst-lead,
.kmp-lead,
.ueb-lead,
.ktk-lead,
.legal-lead {
	font-size: 18px !important;
}
/* Hauptmenü in Space Grotesk Regular, 5 % höher gestreckt wie die Zwischenüberschriften (v0.63) */
.site-nav .menu > li > a {
	font-family: var(--font-head);
	font-weight: 400;
}
@media (min-width: 961px) {
	.site-nav .menu > li > a {
		font-size: 17px;
	}
}
.site-nav .nav-label {
	display: inline-block;
	transform: scaleY(1.05);
}
.site-header.is-stuck .site-nav .menu > li > a {
	font-size: 13.5px;
}
/* Hell/Dunkel-Schalter in der Topbar, im Stil der Icons daneben (v0.64) */
.social-top .theme-toggle {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
	background: #BBB; color: #fff; font: inherit; transition: background .2s;
}
.social-top .theme-toggle:hover,
.social-top .theme-toggle:focus-visible { background: #97B164; }
.social-top .theme-toggle .icon { width: 12px; height: 12px; }
.theme-toggle .icon-sun,
.theme-toggle .tip-to-light { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .tip-to-light { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon,
html[data-theme="dark"] .theme-toggle .tip-to-dark { display: none; }
.social-media .theme-toggle:hover .tip,
.social-media .theme-toggle:focus-visible .tip { opacity: 1; visibility: visible; --shift: 0px; }
/* Claim im Footer in der Hausschrift (v0.80) */
.footer-claim {
	font-family: var(--font-head) !important;
	font-weight: 500 !important;
}
