/* SAAR Architekten — theme styles. Mobile first; breakpoints 600 px (tablet) and 1024 px (desktop). */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/urbanist-300.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/urbanist-400.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/urbanist-600.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/urbanist-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--saar-orange: #ff8000;
	--saar-black: #111111;
	--saar-grey: #595959;
	--saar-light: #f4f3ef;
	--saar-white: #ffffff;
	--saar-ink: #111111;
	--saar-paper: #ffffff;
	--saar-surface: #ffffff;
	--saar-body: #2b2b2b;
	--saar-field: #b9b6af;
	--saar-error: #b32d2e;
	--saar-line: #e5e3de;
	--saar-font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--saar-container: 1280px;
	--saar-gutter: 20px;
	--saar-section: clamp(4rem, 9vw, 7.5rem);
	--saar-header-h: 80px;
	--saar-ease: cubic-bezier(.2, .7, .2, 1);
	--saar-shadow: 0 18px 50px rgba(17, 17, 17, .08);
}
@media (min-width: 768px) { :root { --saar-gutter: 32px; } }
@media (min-width: 1025px) { :root { --saar-gutter: 40px; } }
@media (min-width: 1024px) { :root { --saar-header-h: 104px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--saar-white); color: var(--saar-black); font-family: var(--saar-font); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--saar-black); text-decoration-color: var(--saar-orange); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-family: var(--saar-font); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; color: var(--saar-black); }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p, ul, ol, dl, figure { margin: 0 0 1.2em; }
:focus-visible { outline: 2px solid var(--saar-black); outline-offset: 3px; }
.site-footer :focus-visible, .project-hero :focus-visible, .saar-hero :focus-visible, .saar-heroslider :focus-visible, .saar-lb :focus-visible, .has-overlay-header .site-header:not(.is-scrolled):not(.is-open) :focus-visible { outline-color: var(--saar-orange); }
::selection { background: var(--saar-orange); color: var(--saar-paper); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 0; padding: .75rem 1.25rem; top: .75rem; left: .75rem; z-index: 1000; background: var(--saar-black); color: var(--saar-white); white-space: normal; }
.site-main { display: block; outline: 0; }

.container { width: 100%; max-width: calc(var(--saar-container) + 2 * var(--saar-gutter)); margin-inline: auto; padding-inline: var(--saar-gutter); }
.section { padding-block: var(--saar-section); }
.section--tight-top { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.label { display: inline-flex; align-items: center; gap: .5em; margin: 0 0 1rem; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--saar-grey); }

/* ---------- Buttons ---------- */
.button, .wp-element-button, .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75rem 1.5rem;
	border: 1px solid var(--saar-black); border-radius: 0; background: var(--saar-black); color: var(--saar-white);
	font: 600 .9375rem/1.2 var(--saar-font); letter-spacing: .01em; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.button:hover, .wp-element-button:hover, .wpcf7-submit:hover { background: var(--saar-orange); border-color: var(--saar-orange); color: var(--saar-ink); }
.button--outline { background: transparent; color: var(--saar-black); }
.button--outline:hover { background: var(--saar-black); border-color: var(--saar-black); color: var(--saar-white); }
.button--light { background: transparent; border-color: rgba(255, 255, 255, .85); color: var(--saar-paper); }
.button--light:hover { background: var(--saar-paper); border-color: var(--saar-paper); color: var(--saar-ink); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--saar-header-h); background: var(--saar-white); border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--saar-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 100%; }
.site-logo { position: relative; display: block; flex: none; width: clamp(150px, 15vw, 205px); line-height: 0; }
.site-logo__img { width: 100%; height: auto; max-height: 76px; object-fit: contain; object-position: left center; }
.site-logo__img--invert { filter: invert(1) hue-rotate(180deg); }
.site-logo__light { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.site-logo__dark { display: block; transition: opacity .3s; }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-toggle__close, .is-open .menu-toggle__open { display: none; }
.is-open .menu-toggle__close { display: inline-flex; }

.site-nav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { position: relative; display: block; padding: .5rem 0; font-size: 1rem; font-weight: 400; text-decoration: none; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--saar-orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--saar-ease); }
.site-nav__list a:hover::after, .site-nav__list .current-menu-item > a::after, .site-nav__list .current-menu-ancestor > a::after, .site-nav__list .current_page_item > a::after { transform: scaleX(1); }

@media (max-width: 1023.98px) {
	.js .site-nav { position: fixed; inset: var(--saar-header-h) 0 0; z-index: 99; display: flex; flex-direction: column; gap: 2rem; padding: 2rem var(--saar-gutter) 3rem; background: var(--saar-white); color: var(--saar-black); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
	.js.admin-bar .site-nav, .js .admin-bar .site-nav { inset: calc(var(--saar-header-h) + 46px) 0 0; }
	.js .site-header.is-open { position: fixed; left: 0; right: 0; }
	.js .is-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
	.js .site-nav__list { flex-direction: column; }
	.js .site-nav__list a { padding: .9rem 0; font-size: 1.5rem; font-weight: 600; border-bottom: 1px solid var(--saar-line); }
	.js .site-nav__list a::after { bottom: -1px; width: 48px; }
	.site-nav__cta { align-self: flex-start; }
	.saar-menu-open, .saar-menu-open body { overflow: hidden; }
	/* Without JavaScript the menu is simply shown below the logo. */
	.no-js .menu-toggle { display: none; }
	.no-js .site-header { height: auto; padding-block: .75rem; }
	.no-js .site-header__inner { flex-wrap: wrap; gap: .5rem 1.5rem; }
	.no-js .site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; width: 100%; }
	.no-js .site-nav__list { flex-wrap: wrap; gap: 0 1.25rem; }
	.no-js.has-overlay-header .site-main, .no-js .has-overlay-header .site-main { margin-top: 0; }
}
@media (min-width: 1024px) {
	.menu-toggle { display: none; }
	.site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 2.5rem; }
	.site-nav__list { flex: 1; justify-content: center; gap: 2.25rem; }
	.site-nav__cta { min-height: 44px; padding: .625rem 1.25rem; font-weight: 400; }
}

/* Transparent header over a full-screen project hero. */
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) { background: transparent; color: var(--saar-paper); }
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .site-logo__light { opacity: 1; }
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .site-logo__dark { opacity: 0; }
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .site-nav__cta { border-color: rgba(255, 255, 255, .85); color: var(--saar-paper); }
.has-overlay-header .site-header:not(.is-scrolled):not(.is-open) .site-nav__cta:hover { background: var(--saar-paper); color: var(--saar-ink); }
.has-overlay-header .site-main { margin-top: calc(-1 * var(--saar-header-h)); }
.has-overlay-header .site-header.is-scrolled { box-shadow: 0 1px 0 var(--saar-line); }

/* ---------- Page header ---------- */
.page-header { padding-block: clamp(3rem, 7vw, 6rem) 0; }
.page-header__title { margin-bottom: .35em; }
.page-header__intro { max-width: 40rem; margin: 0; color: var(--saar-grey); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.entry-content { max-width: 46rem; }
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 1.6em; }
.entry-content img { height: auto; }
.page-default .entry-content a { color: var(--saar-black); text-decoration: underline; text-decoration-color: var(--saar-orange); }

/* ---------- Project grid + filter ---------- */
.saar-filter { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.saar-filter__list { display: flex; flex-wrap: wrap; gap: .25rem clamp(1rem, 3.5vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
.saar-filter__link { position: relative; display: inline-block; padding: .55rem 0; color: var(--saar-grey); font-size: clamp(.875rem, 3.6vw, .9375rem); text-decoration: none; transition: color .2s; }
.saar-filter__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--saar-orange); transform: scaleX(0); transition: transform .25s var(--saar-ease); }
.saar-filter__link:hover, .saar-filter__link[aria-current] { color: var(--saar-black); }
.saar-filter__link[aria-current]::after { transform: scaleX(1); }

.saar-projects__list { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .saar-projects__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .saar-projects__list { grid-template-columns: repeat(3, 1fr); } }
.saar-card[hidden] { display: none; }
.saar-card__link { display: block; text-decoration: none; color: inherit; }
.saar-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--saar-light); }
.saar-card__media .saar-card__img, .saar-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--saar-ease); }
.saar-card__link:hover .saar-card__img, .saar-card__link:focus-visible .saar-card__img { transform: scale(1.03); }
/* Project name on the photo: on hover and keyboard focus, always visible on touch screens. */
.saar-card__info { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(17, 17, 17, .74); color: var(--saar-paper); text-align: center; opacity: 0; transition: opacity .35s var(--saar-ease); }
.saar-card__link:hover .saar-card__info, .saar-card__link:focus-visible .saar-card__info { opacity: 1; }
.saar-card__info .saar-card__title { position: relative; margin: 0 0 .5rem; padding-bottom: .7rem; color: var(--saar-paper); font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.25; }
.saar-card__title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 2px; margin-left: -20px; background: var(--saar-orange); }
.saar-card__meta { margin: 0; color: rgba(255, 255, 255, .82); font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
@media (hover: none) {
	.saar-card__info { inset: auto 0 0; align-items: flex-start; justify-content: flex-end; padding: 3rem 1rem 1rem; background: linear-gradient(180deg, rgba(17, 17, 17, 0), rgba(17, 17, 17, .82)); text-align: left; opacity: 1; }
	.saar-card__title::after { left: 0; margin-left: 0; }
}
.saar-projects__none, .saar-projects__empty { color: var(--saar-grey); }

/* Masonry (Home): CSS columns, natural image heights. */
.saar-projects--masonry .saar-projects__list { display: block; columns: 1; column-gap: clamp(.75rem, 1.4vw, 1rem); }
@media (min-width: 600px) { .saar-projects--masonry .saar-projects__list { columns: 2; } }
@media (min-width: 1024px) { .saar-projects--masonry .saar-projects__list { columns: 3; } }
.saar-projects--masonry .saar-card { break-inside: avoid; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 600px) {
	.saar-projects--masonry .saar-card:nth-child(3n+1) .saar-card__media { aspect-ratio: 4 / 5; }
	.saar-projects--masonry .saar-card:nth-child(3n) .saar-card__media { aspect-ratio: 1 / 1; }
}

/* ---------- Single project ---------- */
.saar-slider { position: absolute; inset: 0; }
/* No blue flash on tap (mobile browsers). */
.saar-slider button, .menu-toggle, .theme-toggle, .saar-lb__btn, .saar-filter__link, .saar-card__link { -webkit-tap-highlight-color: transparent; }
.saar-slider button { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.saar-slider__track { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.saar-slider__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--saar-ease), visibility 0s .9s; }
.saar-slider__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--saar-ease); }
.saar-slider .saar-slider__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.saar-slider__zoom { display: block; height: 100%; cursor: zoom-in; }
.saar-slider__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(1rem, 3vw, 1.75rem); display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding-inline: var(--saar-gutter); }
.saar-slider__dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.saar-slider__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(17, 17, 17, .25); transition: background-color .2s, transform .2s; }
.saar-slider__dot:hover::before { background: var(--saar-paper); transform: scale(1.25); }
.saar-slider__dot[aria-current]::before { background: var(--saar-orange); transform: scale(1.25); }
.saar-slider__dots { pointer-events: none; }
.saar-slider__dots > * { pointer-events: auto; }
.saar-slider__arrow { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--saar-paper); cursor: pointer; filter: drop-shadow(0 1px 2px rgba(17, 17, 17, .6)); transition: background-color .2s, color .2s; }
.saar-slider__arrow--prev { left: clamp(.25rem, 1.5vw, 1.25rem); }
.saar-slider__arrow--next { right: clamp(.25rem, 1.5vw, 1.25rem); }
/* Home: beside the dots, so the arrows never sit on the headline. */
.saar-heroslider .saar-slider__arrow { top: auto; bottom: 136px; margin-top: 0; }
.saar-slider__arrow:hover { background: rgba(17, 17, 17, .45); color: var(--saar-orange); }
.saar-slider__arrow:focus-visible { outline: 2px solid var(--saar-orange); outline-offset: 0; }
@media (max-width: 767px) { .saar-slider__arrow { width: 40px; height: 40px; margin-top: -20px; } .saar-slider__arrow svg { width: 24px; height: 24px; } .saar-heroslider .saar-slider__arrow { top: auto; bottom: 104px; margin-top: 0; } }
.saar-slider__pause { display: grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .85); cursor: pointer; }
.saar-slider__pause-icon { width: 8px; height: 10px; border-inline: 3px solid currentColor; }
.saar-slider__pause[aria-pressed="true"] .saar-slider__pause-icon { width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
.saar-slider__pause:hover { color: var(--saar-orange); }
.saar-slider__pause:focus-visible { outline: 2px solid var(--saar-orange); outline-offset: 0; }
.saar-slider__dot:focus-visible { outline: 2px solid var(--saar-orange); outline-offset: 0; }

.project-hero { position: relative; display: flex; align-items: flex-end; min-height: 82vh; min-height: 82svh; overflow: hidden; background: var(--saar-ink); color: var(--saar-paper); }
.project-hero__overlay, .saar-heroslider__overlay { position: absolute; inset: 0; pointer-events: none; }
.project-hero__overlay { background: linear-gradient(180deg, rgba(17, 17, 17, .45) 0%, rgba(17, 17, 17, 0) 28%, rgba(17, 17, 17, 0) 50%, rgba(17, 17, 17, .72) 100%); }
.project-hero__content { position: relative; padding-bottom: clamp(4rem, 8vw, 5.5rem); pointer-events: none; }
.project-hero__title { max-width: 18ch; margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
.project-hero__meta { margin: 0; font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }

/* Home hero slideshow (Elementor widget "SAAR Hero") */
.saar-heroslider { position: relative; display: flex; align-items: center; min-height: min(86vh, 860px); overflow: hidden; background: var(--saar-ink); color: var(--saar-paper); }
.saar-heroslider__overlay { background: linear-gradient(90deg, rgba(17, 17, 17, .74) 0%, rgba(17, 17, 17, .08) 78%); }
.saar-heroslider__content { position: relative; z-index: 2; padding-block: 120px 210px; pointer-events: none; }
.saar-heroslider__content > * { pointer-events: auto; }
.saar-heroslider .saar-heroslider__title { max-width: 24ch; margin-bottom: 1.25rem; color: var(--saar-paper); }
.saar-heroslider__text { max-width: 34rem; margin-bottom: 2rem; color: rgba(255, 255, 255, .94); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); }
.saar-heroslider .button-row { margin: 0; }
.saar-heroslider__project { background: var(--saar-ink); border-color: var(--saar-ink); color: var(--saar-paper); }
.saar-heroslider__name { display: inline-flex; align-items: center; gap: .75rem; margin: 1.5rem 0 0; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.saar-heroslider__name::before { content: ""; width: 28px; height: 2px; background: var(--saar-orange); }
.saar-heroslider .saar-slider__dots { bottom: 148px; }
@media (max-width: 767px) {
	.saar-heroslider { min-height: 80vh; }
	.saar-heroslider__overlay { background: linear-gradient(180deg, rgba(17, 17, 17, .74) 0%, rgba(17, 17, 17, .15) 78%); }
	.saar-heroslider__content { padding-block: 96px 170px; }
	.saar-heroslider .saar-slider__dots { bottom: 112px; }
}
.saar-heroslider-wrap .elementor-widget-saar-hero { width: 100%; }

.project-body { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); padding-block: var(--saar-section); scroll-margin-top: var(--saar-header-h); }
@media (min-width: 1024px) { .project-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.project-body__title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .3em; }
.project-body__subtitle { margin: 0 0 1.75rem; color: var(--saar-grey); font-size: 1.125rem; }
.project-body__content { color: var(--saar-body); }
.project-body__facts .label { margin-bottom: .9rem; }
.project-facts { margin: 0; border-top: 1px solid var(--saar-line); }
.project-facts__row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--saar-line); }
.project-facts dt { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--saar-grey); padding-top: .15em; }
.project-facts dd { margin: 0; }


.project-nav { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 3.5rem) var(--saar-section); border-top: 1px solid var(--saar-line); }
.project-nav__link { display: block; text-decoration: none; }
.project-nav__link .label { margin-bottom: .35rem; }
.project-nav__title { display: block; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 700; line-height: 1.3; }
.project-nav__link:hover .project-nav__title { text-decoration: underline; text-decoration-color: var(--saar-orange); }
.project-nav__all { justify-self: start; }
@media (min-width: 768px) {
	.project-nav { grid-template-columns: 1fr auto 1fr; }
	.project-nav__all { grid-column: 2; grid-row: 1; justify-self: center; }
	.project-nav__link--prev { grid-column: 1; grid-row: 1; }
	.project-nav__link--next { grid-column: 3; grid-row: 1; text-align: right; }
	.project-nav__link--next .label { justify-content: flex-end; }
}

/* ---------- Lightbox ---------- */
.saar-lb { position: fixed; inset: 0; z-index: 9999; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: #000; color: var(--saar-paper); }
.saar-lb[hidden] { display: none; }
.saar-lb-open, .saar-lb-open body { overflow: hidden; }
.saar-lb__stage { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; height: 100dvh; margin: 0; padding: 4rem 0 1.5rem; }
.saar-lb__img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; transition: opacity .2s; user-select: none; }
.saar-lb__img.is-loading { opacity: .35; }
.saar-lb__caption { max-width: 60ch; margin-top: 1rem; font-size: .9375rem; text-align: center; color: rgba(255, 255, 255, .8); }
.saar-lb__counter { position: absolute; top: 1.25rem; left: 1.25rem; margin: 0; font-size: .875rem; font-weight: 600; letter-spacing: .12em; }
.saar-lb__btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--saar-paper); cursor: pointer; transition: background-color .2s; }
.saar-lb__btn:hover { background: rgba(255, 255, 255, .12); }
.saar-lb__btn[hidden] { display: none; }
.saar-lb__close { position: absolute; top: .5rem; right: .5rem; z-index: 2; }
.saar-lb__prev { grid-column: 1; grid-row: 1; justify-self: center; }
.saar-lb__next { grid-column: 3; grid-row: 1; justify-self: center; }
@media (max-width: 599.98px) {
	.saar-lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
	.saar-lb__prev, .saar-lb__next { position: absolute; bottom: 1rem; background: rgba(255, 255, 255, .1); }
	.saar-lb__prev { left: 1rem; }
	.saar-lb__next { right: 1rem; }
	.saar-lb__stage { padding: 3.5rem 0 5rem; }
	.saar-lb__img { max-height: calc(100dvh - 10rem); }
}

/* ---------- Elementor building blocks (classes set on Elementor containers) ---------- */
.elementor .elementor-heading-title { font-family: var(--saar-font); }
.elementor .elementor-widget-text-editor { color: var(--saar-grey); }
.elementor .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor .elementor-button { border-radius: 0; background-color: var(--saar-black); color: var(--saar-white); font-family: var(--saar-font); font-weight: 600; }

/* Buttons: set the class on an Elementor button (Advanced → CSS classes) */
.elementor .saar-btn-dark .elementor-button, .elementor .saar-btn-light .elementor-button, .elementor .saar-btn-outline .elementor-button { min-height: 48px; padding: .9rem 1.5rem; border: 1px solid var(--saar-black); border-radius: 0; background: var(--saar-black); color: var(--saar-white); fill: currentColor; font-size: .9375rem; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s; }
.elementor .saar-btn-dark .elementor-button:hover, .elementor .saar-btn-dark .elementor-button:focus { background: var(--saar-orange); border-color: var(--saar-orange); color: var(--saar-ink); }
.elementor .saar-btn-outline .elementor-button { background: transparent; color: var(--saar-black); }
.elementor .saar-btn-outline .elementor-button:hover, .elementor .saar-btn-outline .elementor-button:focus { background: var(--saar-black); color: var(--saar-white); }
.elementor .saar-btn-light .elementor-button { background: transparent; border-color: rgba(255, 255, 255, .85); color: var(--saar-paper); }
.elementor .saar-btn-light .elementor-button:hover, .elementor .saar-btn-light .elementor-button:focus { background: var(--saar-paper); border-color: var(--saar-paper); color: var(--saar-ink); }

/* Hero */
.saar-hero { position: relative; }
.saar-hero .elementor-heading-title { max-width: 24ch; color: var(--saar-paper); }
.saar-hero .elementor-widget-text-editor { color: rgba(255, 255, 255, .94); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); }
.saar-hero .elementor-widget-text-editor p { max-width: 34rem; }

/* Service cards overlapping the hero */
.saar-services { position: relative; z-index: 2; }
.saar-leistung { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: clamp(2rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2.25rem); background: var(--saar-surface); border: 1px solid var(--saar-line); text-align: center; transition: box-shadow .3s; }
.saar-leistung::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--saar-orange); transform: scaleX(0); transition: transform .35s var(--saar-ease); }
.saar-leistung:hover::before, .saar-leistung:focus-within::before, .saar-leistung--active::before { transform: scaleX(1); }
.saar-leistung__icon { display: inline-flex; margin-bottom: 1.25rem; color: var(--saar-black); }
.saar-leistung__icon svg { width: 34px; height: 34px; }
.saar-leistung__title { margin: 0 0 .6rem; font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.saar-leistung__text { flex: 1; margin: 0; color: var(--saar-grey); font-size: .9688rem; line-height: 1.6; }
.saar-services-grid { box-shadow: var(--saar-shadow); }
.saar-services-grid > .e-con + .e-con .saar-leistung { border-top-width: 0; }
@media (min-width: 768px) { .saar-services-grid > .e-con + .e-con .saar-leistung { border-top-width: 1px; border-left-width: 0; } }
.saar-services-grid .elementor-widget-saar-leistung, .saar-services-grid .elementor-widget-saar-leistung > .elementor-widget-container { height: 100%; width: 100%; }

/* About teaser: image left, light box overlapping on desktop */
.saar-about-box { position: relative; z-index: 1; background: var(--saar-light); }
@media (min-width: 1025px) { .saar-about-box { margin-left: -4rem !important; --width: calc(42% + 4rem) !important; } }
.saar-about-img img, .saar-wide-img img { width: 100%; object-fit: cover; }
.saar-about-img img { aspect-ratio: 3 / 2; }
.saar-wide-img img { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .saar-wide-img img { aspect-ratio: 21 / 9; } }

/* Text helpers usable inside Elementor text widgets */
.elementor .label { margin: 0; }
.saar-lead { color: var(--saar-black); font-size: clamp(1.1875rem, 1.05rem + .7vw, 1.5rem); line-height: 1.45; }
.saar-intro { max-width: 40rem; }
.saar-h3 .elementor-heading-title { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.saar-lph { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--saar-line); color: var(--saar-black); }
.saar-lph li { display: flex; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--saar-line); font-size: 1.0625rem; }
.saar-lph span { flex: none; width: 4.5rem; padding-top: .3em; color: var(--saar-grey); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.elementor .saar-contact a, .wpcf7 form a { color: var(--saar-black); text-decoration: underline; text-decoration-color: var(--saar-orange); }
.saar-contact { color: var(--saar-black) !important; }
.saar-placeholder { padding: 1rem 1.25rem; border-left: 3px solid var(--saar-orange); background: var(--saar-light); }

/* Team and contact cards */
.saar-card-box { background: var(--saar-light); padding: clamp(1.75rem, 3vw, 2.5rem) !important; }
.saar-badge { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--saar-line); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Forms (Contact Form 7) ---------- */
.wpcf7 form p { margin-bottom: 1.1rem; }
.wpcf7 label { display: block; font-size: .875rem; font-weight: 600; color: var(--saar-black); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; margin-top: .4rem; padding: .85rem 1rem; border: 1px solid var(--saar-field); border-radius: 0; background: var(--saar-white); color: var(--saar-black); font: 400 1rem/1.5 var(--saar-font); transition: border-color .2s; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--saar-black); outline: 2px solid var(--saar-black); outline-offset: 0; }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7-acceptance label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9375rem; color: var(--saar-grey); }
.wpcf7-acceptance input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--saar-black); flex: none; }
.wpcf7-list-item { margin: 0; }
.wpcf7-not-valid-tip { margin-top: .35rem; color: var(--saar-error); font-size: .875rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .9rem 1rem; border: 1px solid var(--saar-line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--saar-ink); color: rgba(255, 255, 255, .78); font-size: .9688rem; }
body .site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
body .site-footer a:hover { color: var(--saar-paper); text-decoration: underline; text-decoration-color: var(--saar-orange); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-logo--footer { width: 180px; margin-bottom: 1.25rem; }
.site-footer__text { max-width: 26rem; }
.site-footer__badge { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
body .site-footer__heading { margin-bottom: 1rem; color: var(--saar-paper); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.site-footer__contact, .site-footer__menu, .site-footer__social, .site-footer__legal-list { margin: 0; padding: 0; list-style: none; }
.site-footer__contact li, .site-footer__menu li { margin-bottom: .55rem; }
.site-footer__contact a, .site-footer__address { display: inline-flex; gap: .6rem; align-items: flex-start; }
.site-footer__contact svg { flex: none; margin-top: .2em; color: var(--saar-orange); }
.site-footer__social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.site-footer__social a { display: inline-flex; padding: .35rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }
.site-footer__copy { margin: 0; }
.site-footer__legal-list { display: flex; gap: 1.5rem; }

/* ---------- Light / dark switch ---------- */
.theme-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .25rem .25rem; border: 0; background: none; color: inherit; font: 400 .9375rem/1 var(--saar-font); cursor: pointer; }
.theme-toggle:hover .theme-toggle__label { text-decoration: underline; text-decoration-color: var(--saar-orange); text-underline-offset: .3em; }
.theme-toggle__moon, [data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: inline-flex; }
.theme-toggle__sun { display: inline-flex; }
.no-js .theme-toggle { display: none; }
@media (max-width: 1023.98px) { .js .theme-toggle { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--saar-line); width: 100%; font-size: 1.0625rem; } }
@media (min-width: 1024px) { .site-nav .theme-toggle { margin-left: -1rem; } }

/* ---------- Dark version (default): dark grey, white and orange ---------- */
html[data-theme="dark"] { color-scheme: dark; --saar-black: #ffffff; --saar-white: #1e1e1e; --saar-grey: #b8b5ae; --saar-light: #272727; --saar-line: #3b3b3b; --saar-surface: #272727; --saar-body: #e4e2dd; --saar-field: #666666; --saar-error: #ff8a80; --saar-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
[data-theme="dark"] .site-logo__light { opacity: 1; }
[data-theme="dark"] .site-logo__dark { opacity: 0; }
[data-theme="dark"] .site-footer { background: #151515; }
/* Elementor stores the light backgrounds inside the page, so they are replaced here. */
[data-theme="dark"] .saar-about-box, [data-theme="dark"] .saar-card-box, [data-theme="dark"] .e-con.e-parent:has(.saar-team) { background-color: var(--saar-light) !important; }
[data-theme="dark"] .saar-team { background-color: #313131 !important; }

/* ---------- Misc ---------- */
.post-list__item { padding-block: 1.75rem; border-bottom: 1px solid var(--saar-line); }
.post-list__title { font-size: 1.5rem; margin-bottom: .25rem; }
.post-list__title a { text-decoration: none; }
.post-list__meta { color: var(--saar-grey); font-size: .875rem; }
.alignwide { max-width: var(--saar-container); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { color: var(--saar-grey); font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
