/*
Theme Name: Canyonstyle
Template: greenshift
Description: Child theme for canyonstyle.com: design tokens (theme.json), self-hosted fonts, exact responsive type steps.
Version: 0.3.0
Text Domain: canyonstyle
*/

/* Exact type steps of the original (Elementor breakpoints 1024 / 767 px).
   theme.json holds the desktop values; these override the preset variables. */
@media (max-width: 1024px) {
	:root {
		--wp--preset--font-size--body: 14px;
		--wp--preset--font-size--ui: 14px;
		--wp--preset--font-size--label: 14px;
		--wp--preset--font-size--large: 22px;
		--wp--preset--font-size--x-large: 38px;
		--wp--preset--font-size--huge: 58px;
		--wp--preset--font-size--display: 58px;
		--cs-label-tracking: 6px;
	}
}
@media (max-width: 767px) {
	:root {
		--wp--preset--font-size--label: 12px;
		--wp--preset--font-size--medium: 18px;
		--wp--preset--font-size--large: 18px;
		--wp--preset--font-size--x-large: 28px;
		--wp--preset--font-size--huge: 36px;
		--wp--preset--font-size--display: 36px;
		--cs-label-tracking: 4px;
	}
}

/* Label above headings ("LASS DICH INSPIRIEREN"), category label, hero sub-line */
.is-style-cs-label {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	line-height: 24px;
	letter-spacing: var(--cs-label-tracking, 5px);
	text-transform: uppercase;
}

/* Hero display headline */
.is-style-cs-display {
	font-family: var(--wp--preset--font-family--lato);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	text-shadow: 3px 3px 0 var(--wp--preset--color--cyan-shadow);
}

/* Keyboard focus (proposal D2) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}
.has-ink-background-color :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--yellow);
}

html, body { overflow-x: clip; }

/* Entrance animation: visible by default, animated only when motion is allowed and JS has marked the element */
@media (prefers-reduced-motion: no-preference) {
	.cs-reveal.is-pending { opacity: 0; transform: translateY(24px); }
	.cs-reveal { transition: opacity 1.2s ease, transform 1.2s ease; }
}

/* ---------- Utilities ---------- */
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* ---------- Header (design.md §5) ---------- */
.cs-site-header { position: sticky; top: 0; z-index: 100; background: var(--wp--preset--color--white); margin: 0; }
.cs-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 70px; padding: 0 5%; box-sizing: border-box; }
.cs-header > * { margin: 0 !important; }
.cs-header__nav { justify-self: start; position: relative; }
.cs-header__nav .cs-menu__list { display: flex; gap: 52px; list-style: none; margin: 0; padding: 0; }
.cs-header__nav .cs-menu__list a { font-family: var(--wp--preset--font-family--inter); font-size: var(--wp--preset--font-size--ui); font-weight: 500; line-height: 1; letter-spacing: -0.2px; color: var(--wp--preset--color--ink); text-decoration: none; padding: 3px 0; display: inline-block; }
.cs-header__nav .cs-menu__list a:hover,
.cs-header__nav .cs-menu__list a[aria-current="page"],
.cs-header__nav .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cs-header__logo { justify-self: center; align-self: start; }
.cs-header__logo img { width: 140px; height: 140px; border-radius: 50%; background: var(--wp--preset--color--white); display: block; }
.cs-header__contact { justify-self: end; }
.cs-icon-link--envelope { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 2px; background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); transition: background-color .3s; }
.cs-icon-link--envelope:hover { background: var(--wp--preset--color--yellow-hover); }
.cs-menu__toggle { display: none; }

@media (max-width: 1024px) {
	.cs-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 6px; border: 0; border-radius: 3px; background: transparent; color: var(--wp--preset--color--ink); cursor: pointer; }
	.cs-menu__icon-close, .cs-menu__toggle[aria-expanded="true"] .cs-menu__icon-open { display: none; }
	.cs-menu__toggle[aria-expanded="true"] .cs-menu__icon-close { display: block; }
	.cs-header__nav { position: static; }
	.cs-js .cs-header__nav .cs-menu__list { display: none; }
	.cs-header__nav .cs-menu__list.is-open,
	html:not(.cs-js) .cs-header__nav .cs-menu__list { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--wp--preset--color--ink); padding: 8px 0; z-index: 99; }
	.cs-header__nav .cs-menu__list.is-open a,
	html:not(.cs-js) .cs-header__nav .cs-menu__list a { display: block; color: var(--wp--preset--color--white); padding: 12px 20px; }
	.cs-header { position: relative; }
}
@media (max-width: 767px) {
	.cs-header { height: 45px; padding: 0 20px; }
	.cs-header__logo img { width: 90px; height: 90px; }
	.cs-icon-link--envelope { width: 34px; height: 34px; }
}

/* ---------- Footer: CTA band ---------- */
.cs-site-footer { margin-top: 0; }
.cs-cta { padding: 100px 5%; margin: 0; }
.cs-cta > * { margin-left: auto; margin-right: auto; }
.cs-cta .is-style-cs-label { margin-bottom: 20px; }
.cs-cta__heading { font-size: var(--wp--preset--font-size--x-large); margin: 0 auto 20px; max-width: 780px; }
.cs-cta p:not(.is-style-cs-label) { margin: 0 0 40px; }
.wp-block-button.is-style-cs-dark .wp-block-button__link { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); border: 2px solid var(--wp--preset--color--ink); border-radius: 2px; padding: 16px 32px; transition: background-color .3s, color .3s; }
.wp-block-button.is-style-cs-dark .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--ink); }

/* ---------- Footer: dark area ---------- */
.cs-footer { padding: 50px 14px 40px; margin: 0; }
.cs-footer__cols, .cs-footer__bottom { display: grid; grid-template-columns: 39% 29% 1fr; align-items: start; }
.cs-footer__cols > *, .cs-footer__bottom > * { margin: 0 !important; }
.cs-footer__heading { font-family: var(--wp--preset--font-family--inter); font-size: var(--wp--preset--font-size--medium); font-weight: 600; line-height: 24px; letter-spacing: 0; color: var(--wp--preset--color--white); margin: 0 0 20px; }
.cs-footer__col { padding-top: 0; }
.cs-footer__menu .cs-menu__list { list-style: none; margin: 0; padding: 0; }
.cs-footer__menu a { color: var(--wp--preset--color--yellow); text-decoration: none; line-height: 24px; }
.cs-footer__menu a:hover, .cs-footer__menu a[aria-current="page"] { text-decoration: underline; }
.cs-footer__line { margin: 0; line-height: 24px; }
.cs-footer__line a { color: var(--wp--preset--color--white); text-decoration: none; }
.cs-footer__line a:hover { text-decoration: underline; }
.cs-footer__bottom { margin-top: 70px; align-items: center; }
.cs-footer__rights { margin: 0; }
.cs-footer__lang ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.cs-footer__lang a { color: var(--wp--preset--color--white); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.cs-footer__lang a:hover { text-decoration: underline; }
.cs-footer__instagram { justify-self: end; color: var(--wp--preset--color--yellow); display: inline-flex; }
.cs-footer :where(a, button):focus-visible { outline-color: var(--wp--preset--color--yellow); }

@media (max-width: 767px) {
	.cs-footer { padding: 50px 20px 40px; text-align: center; }
	.cs-footer__cols, .cs-footer__bottom { grid-template-columns: 1fr; row-gap: 40px; justify-items: center; }
	.cs-footer__logo img { width: 118px !important; }
	.cs-footer__lang ul { justify-content: center; }
	.cs-footer__instagram { justify-self: center; }
	.cs-cta { padding: 70px 20px; }
}

/* Headings: tight line height as on the source (GreenShift sets a looser default) */
:where(h1, h2).wp-block-heading, :where(h1, h2).wp-block-post-title, .wp-block-query-title { line-height: 1; }
.cs-cta__heading { line-height: 56px; }
@media (max-width: 1024px) { .cs-cta__heading { line-height: 1; } }

/* Logo overlaps the hero without stretching the header row */
.cs-header__logo { height: 70px; overflow: visible; }
.cs-header__logo a { display: block; }
@media (max-width: 767px) { .cs-header__logo { height: 45px; } }
.cs-header { grid-template-rows: 70px; }
@media (max-width: 767px) {
	.cs-header { grid-template-rows: 45px; }
	.cs-footer__lang { justify-self: center; }
	.cs-footer__lang.pll-switcher ul { justify-content: center !important; }
}
@media (max-width: 767px) { .cs-footer__lang.pll-switcher ul { align-items: center !important; } }
.cs-header__logo { position: relative; z-index: 101; }

/* ---------- Helpers ---------- */
.cs-center { text-align: center; }
.cs-cta { text-align: center; }

/* ---------- Project card (design.md §5): image only, overlay on hover/focus; text always visible on touch / small screens (D3) ---------- */
.cs-cards .wp-block-post-template { gap: 30px; }
.cs-card { position: relative; overflow: hidden; aspect-ratio: 633 / 512; margin: 0; background: var(--wp--preset--color--ink); }
.cs-card__img, .cs-card__img a, .cs-card__img img { position: absolute; inset: 0; width: 100%; height: 100% !important; margin: 0; }
.cs-card__img img { object-fit: cover; transition: transform 1s ease; }
.cs-card__overlay { position: absolute; inset: 0; margin: 0 !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--wp--preset--color--white); background: var(--wp--preset--color--overlay); opacity: 0; transition: opacity .5s ease; }
.cs-card__overlay > * { margin: 0 !important; }
.cs-card__title { font-family: var(--wp--preset--font-family--inter); font-size: var(--wp--preset--font-size--label); font-weight: 700; line-height: 24px; letter-spacing: var(--cs-label-tracking, 5px); text-transform: uppercase; }
.cs-card__title a { color: var(--wp--preset--color--white); text-decoration: none; }
.cs-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cs-kunde-card { font-size: var(--wp--preset--font-size--body); line-height: 24px; }
.cs-card__btn { display: inline-block; padding: 12px 24px; border: 2px solid var(--wp--preset--color--white); font-weight: 500; line-height: 1; letter-spacing: -0.2px; }
.cs-card:hover .cs-card__overlay, .cs-card:focus-within .cs-card__overlay { opacity: 1; }
.cs-card:hover .cs-card__img img, .cs-card:focus-within .cs-card__img img { transform: scale(1.08); }
.cs-card:focus-within { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 3px; }
@media (hover: none), (max-width: 767px) {
	.cs-card__overlay { opacity: 1; background: linear-gradient(to top, rgba(18, 19, 23, .75), rgba(18, 19, 23, .15) 65%); justify-content: flex-end; }
	.cs-card__btn { display: none; }
}
@media (max-width: 767px) { .cs-cards .wp-block-post-template { grid-template-columns: 1fr !important; } }
@media (prefers-reduced-motion: reduce) { .cs-card__img img, .cs-card__overlay { transition: none; } .cs-card:hover .cs-card__img img { transform: none; } }

/* Outline button (main button style): theme.json element "button"; keep Elementor proportions */
.wp-block-button:not(.is-style-cs-dark) .wp-block-button__link { padding: 16px 32px; }

/* No automatic gaps between header / main / footer and between page sections (sections bring their own spacing) */
.wp-site-blocks > .cs-main, .wp-site-blocks > .cs-site-footer { margin-block-start: 0; }
.cs-page-content > * { margin-block-start: 0; margin-block-end: 0; }
@media (max-width: 1024px) { .cs-card { aspect-ratio: auto; height: 243px; } }
@media (max-width: 767px) { .cs-card { height: 240px; } }
@media (max-width: 1024px) and (min-width: 768px) {
	.cs-header { height: 50px; grid-template-rows: 50px; }
	.cs-header__logo { height: 50px; }
	.cs-header__logo img { width: 100px; height: 100px; }
	.cs-icon-link--envelope { width: 34px; height: 34px; }
}

/* ---------- Entrance animations (Elementor/animate.css equivalents, 1.25 s), driven by canyonstyle-core motion.js ---------- */
@keyframes cs-fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes cs-fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes cs-zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { transform: none; } }
@keyframes cs-fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cs-motion-ready .cs-anim-pending { opacity: 0; }
.cs-anim-run { animation-duration: 1.25s; animation-fill-mode: both; }
.cs-anim-run-fadeInUp { animation-name: cs-fadeInUp; }
.cs-anim-run-fadeInDown { animation-name: cs-fadeInDown; }
.cs-anim-run-zoomIn { animation-name: cs-zoomIn; }
.cs-anim-run-fadeIn { animation-name: cs-fadeIn; }
@media (prefers-reduced-motion: reduce) { .cs-anim-run { animation: none !important; } .cs-anim-pending { opacity: 1 !important; } }

/* Scroll effects (Elementor Motion Effects equivalent): 1 s easing like the original */
.cs-motion-el { transition: transform 1s cubic-bezier(0, .33, .07, 1.03), opacity 1s cubic-bezier(0, .33, .07, 1.03); transform-origin: center center; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .cs-motion-el { transition: none; } }

/* Card size as on the source (Elementor CTA): 16 px cell padding, fixed heights 480 / 192 / 208 px */
.cs-cards .wp-block-post-template > li { padding: 16px; box-sizing: border-box; }
/* min-heights like Elementor's CTA (content min-height 480 / 192 / 208 px, padding 35 px): a card grows when
   title + client need more room, exactly like on the source */
.cs-card { aspect-ratio: auto !important; height: auto !important; min-height: 480px; display: flex; }
.cs-card__overlay { position: relative !important; inset: auto !important; flex: 1 1 auto; padding: 35px !important; box-sizing: border-box; }
@media (max-width: 1024px) { .cs-card { min-height: 192px; } }
@media (max-width: 767px) { .cs-card { min-height: 208px; } }

/* ---------- Footer 1:1 with the source (measured 2026-11-20 at 1440 / 768 / 390) ---------- */
.cs-site-footer { padding-top: 72px; background: var(--wp--preset--color--white); }
.cs-cta { padding: 72px 5vw 72px; }
.cs-cta .is-style-cs-label { margin: 0 auto 20px; }
.cs-cta__heading { margin: 0 auto 20px; }
.cs-cta p:not(.is-style-cs-label) { margin: 0 auto 34px; }
.cs-cta .wp-block-buttons { margin: 0; }
.cs-footer { padding: 45px 1vw 68px; }
.cs-footer__cols, .cs-footer__bottom { grid-template-columns: 40% 30% 20%; }
.cs-footer__logo { margin-top: 14px !important; }
.cs-footer__heading { margin: 0 0 20px; }
.cs-footer__bottom { margin-top: 38px; grid-template-columns: 40% 30% 1fr; align-items: center; }
.cs-footer__instagram svg { width: 22px; height: 22px; }

@media (max-width: 1024px) {
	.cs-site-footer { padding-top: 0; }
	.cs-cta { padding: 35px 5vw 34px; }
	.cs-footer { padding: 25px 1vw 99px; text-align: left; }
	.cs-footer__cols { grid-template-columns: 41.5% 50%; column-gap: 4.25%; padding-left: 4.3%; row-gap: 45px; justify-items: start; }
	.cs-footer__logo { grid-column: 1 / -1; justify-self: center; margin: 0 !important; }
	.cs-footer__logo img { width: 128px !important; }
	.cs-footer__bottom { grid-template-columns: 41.5% 1fr auto; column-gap: 4.25%; padding: 0 4.3%; margin-top: 82px; }
	.cs-footer__instagram svg { width: 18px; height: 18px; }
}
@media (max-width: 767px) {
	.cs-site-footer { padding-top: 20px; }
	.cs-cta { padding: 17px 20px 18px; }
	.cs-footer { padding: 50px 1vw 60px; text-align: left; }
	.cs-footer__cols, .cs-footer__bottom { justify-items: start; }
	.cs-footer__cols { grid-template-columns: 29% 45.8%; column-gap: 8.4%; padding-left: 12.6%; row-gap: 35px; }
	.cs-footer__logo { justify-self: center !important; }
	.cs-footer__logo img { width: 118px !important; }
	.cs-footer__col:nth-of-type(1) .cs-footer__heading { margin-bottom: 10px; }
	.cs-footer__col:nth-of-type(2) .cs-footer__heading { margin-bottom: 13px; }
	.cs-footer__menu a { line-height: 29px; }
	.cs-footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 26px; padding: 0 9%; margin-top: 120px; }
	.cs-footer__lang ul { justify-content: center; }
}
/* footer bottom row offsets (measured) */
.cs-footer__bottom { margin-top: 57px; }
@media (max-width: 1024px) { .cs-footer__bottom { margin-top: 33px; } }
@media (max-width: 767px) { .cs-footer__bottom { margin-top: 74px; } .cs-footer { padding-bottom: 95px; } }
/* footer columns: track widths relative to the content box (live: tablet 312 / 32 / 376 px, mobile 111 / 32 / 175 px) */
@media (max-width: 1024px) { .cs-footer__cols { grid-template-columns: 43.3% 52.2%; column-gap: 4.44%; } .cs-footer__bottom { grid-template-columns: 43.3% 1fr auto; column-gap: 4.44%; } }
@media (max-width: 767px) { .cs-footer__cols { grid-template-columns: 33.2% 52.4%; column-gap: 9.6%; } .cs-footer__bottom { grid-template-columns: 1fr; } }

/* ---------- Single project (measured on /projekt/karl-der-koeter/ at 1440 / 768 / 390) ---------- */
.cs-project { margin: 0; }
.cs-project__head { max-width: 780px; margin: 0 auto; padding: 80px 0 128px; box-sizing: content-box; text-align: center; }
.cs-project__head > * { margin: 0; }
.cs-project__cat { margin: 0 0 20px !important; }
.cs-project__title { font-size: var(--wp--preset--font-size--x-large); line-height: 56px; margin: 0 0 20px !important; text-align: center; }
.cs-project__content > p { margin: 0 0 14px; text-align: center; }
.cs-project__content > p.cs-kunde { margin: 35px 0 0; }
.cs-project__content strong { font-weight: 700; }
.cs-project__content .cs-galerie { margin: 72px 0 0; padding: 0; }
.cs-project__content .cs-galerie > * { margin: 0 0 80px !important; max-width: none !important; }
.cs-project__content .wp-block-image img { display: block; width: 100%; height: auto; }
.cs-project__content .wp-block-embed iframe { display: block; width: 100%; }
.cs-project__content figcaption { margin: 34px 0 0; font-size: var(--wp--preset--font-size--body); line-height: 1.5; letter-spacing: -0.8px; color: var(--wp--preset--color--ink); text-align: center; }
.cs-more { padding: 80px 0 0; margin: 0; text-align: center; }
.cs-more__title { font-size: var(--wp--preset--font-size--x-large); line-height: 56px; margin: 0 16px 20px !important; text-align: center; }
.cs-more__cards { margin: 0 !important; }
.cs-more__buttons { margin: 20px 0 0 !important; justify-content: center; }
@media (max-width: 1024px) {
	.cs-project__head { max-width: none; padding: 80px 16px 16px; }
	.cs-project__title, .cs-more__title { line-height: 1; }
	.cs-project__content figcaption { margin-top: 33px; }
	.cs-more { padding: 80px 32px 0; }
	.cs-more__title { margin: 0 0 20px !important; }
}
@media (max-width: 767px) {
	.cs-project__head { padding: 64px 16px 0; }
	.cs-more { padding: 80px 16px 0; }
}

/* Buttons: typography like the source (Elementor: Inter 500 16 px, padding 15 × 32 px incl. 2 px border) */
.wp-block-button__link { font-family: var(--wp--preset--font-family--inter); font-size: var(--wp--preset--font-size--ui); font-weight: 500; line-height: 1; letter-spacing: -0.2px; }
.wp-block-button:not(.is-style-cs-dark) .wp-block-button__link { padding: 15px 32px; }

/* ---------- Project archive + category archives (measured on /projekte/ at 1440 / 768 / 390) ---------- */
.cs-archive__head { padding: 94px 5vw 0; text-align: center; margin: 0; }
.cs-archive__head > * { margin: 0; }
.cs-archive__label { margin: 0 0 34px !important; }
.cs-archive__title { font-size: var(--wp--preset--font-size--x-large); line-height: 56px; margin: 0 0 20px !important; }
.cs-archive__intro { margin: 0 0 66px !important; }
.cs-archive__cards { padding: 52px 5vw 0; margin: 0 !important; }
.cs-filter__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; list-style: none; margin: 0; padding: 2px 0; }
.cs-filter__link { display: inline-block; padding: 15px 20px; font-family: var(--wp--preset--font-family--inter); font-size: var(--wp--preset--font-size--ui); font-weight: 500; line-height: 1; letter-spacing: -0.2px; color: var(--wp--preset--color--ink); text-decoration: none; background: transparent; border: 0; transition: background-color .3s, color .3s; }
.cs-filter__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.cs-filter__link.is-active { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); border: 2px solid var(--wp--preset--color--ink); }
.cs-filter__link:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; }
@media (max-width: 1024px) {
	.cs-archive__head { padding-top: 64px; }
	.cs-archive__title { line-height: 1; }
	.cs-archive__intro { margin-bottom: 51px !important; }
	.cs-filter__list { gap: 16px; }
	.cs-archive__cards { padding-top: 36px; }
}
@media (max-width: 767px) {
	.cs-filter__list { gap: 0; }
}
.cs-filter__list { padding: 0; }
.cs-archive__filter { padding: 0 32px; }
@media (max-width: 1024px) { .cs-archive__filter { padding: 0 16px; } }
/* no client line: the source keeps the paragraph spacing (14 px) + 72 px before the gallery */
.cs-project__content > p:not(.cs-kunde) + .cs-galerie { margin-top: 86px; }
/* Gallery item box model of the source (Elementor container per item, measured on Dia de los Muertos,
   Franz von Assisi, Karl der Köter): item = media + inline descender (7 px desktop / 5 px ≤1024) + 20 px gap
   + heading widget; 32 + 32 px margins between items; min-height 35vh on mobile only (none from 768 px).
   Captioned items: figcaption margin + 80 px reproduce descender + gap + heading widget + margins, so their
   mobile min-height is 35vh minus the 16 px that sit in the 80 px margin.
   Items without heading: the descender + gap stay (padding), then the 64 px margins. */
.cs-project__content .cs-galerie > * { box-sizing: border-box; }
.cs-project__content .cs-galerie > .wp-block-image:not(:has(figcaption)) { padding-bottom: 27px; margin-bottom: 64px !important; }
@media (max-width: 1024px) { .cs-project__content .cs-galerie > .wp-block-image:not(:has(figcaption)) { padding-bottom: 25px; } }
@media (max-width: 767px) {
	.cs-project__content .cs-galerie > * { min-height: calc(35vh - 16px); }
	.cs-project__content .cs-galerie > .wp-block-image:not(:has(figcaption)) { min-height: 35vh; }
}

/* ---------- FAQ (core/details, class cs-faq) = Elementor toggle of the source (Stile + style subpages,
   measured on /stile/ at 1440 / 1024 / 768 / 390): title padding 15 px, 1 px divider, caret icon left,
   question Inter 600 28/22/18 px (line-height 1.6), answer padding 15 px. D1: the open question is not
   yellow text (1.3:1) but ink with a yellow underline. Several items can be open at once. ---------- */
.wp-block-details.cs-faq { margin: 0; padding: 0; border: 0; }
.cs-faq > summary { display: block; list-style: none; padding: 15px; border-bottom: 1px solid #D5D8DC; font-family: var(--wp--preset--font-family--inter); font-size: var(--wp--preset--font-size--large); font-weight: 600; line-height: 1.6; letter-spacing: -0.7px; color: var(--wp--preset--color--ink); cursor: pointer; }
.cs-faq > summary::-webkit-details-marker { display: none; }
.cs-faq > summary::before { content: ""; float: left; width: 28px; height: 32px; background-color: var(--wp--preset--color--ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 192 512'%3E%3Cpath d='M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z'/%3E%3C/svg%3E") -5px 0 / 28px 28px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 192 512'%3E%3Cpath d='M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z'/%3E%3C/svg%3E") -5px 0 / 28px 28px no-repeat; }
.cs-faq[open] > summary::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z'/%3E%3C/svg%3E"); }
.cs-faq[open] > summary { text-decoration: underline; text-decoration-color: var(--wp--preset--color--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.cs-faq > summary:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.cs-faq[open] { padding-bottom: 29px; border-bottom: 1px solid #D5D8DC; } /* 15 px padding + the 14 px margin of the last paragraph (would collapse out of ::details-content) */
.cs-faq > :not(summary):last-child { margin-bottom: 0; }
.cs-faq > :not(summary) { margin: 0 15px 14px; font-size: var(--wp--preset--font-size--body); line-height: 1.5; letter-spacing: -0.8px; color: var(--wp--preset--color--ink); }
.cs-faq > summary + * { margin-top: 15px; }
.cs-faq a { color: var(--wp--preset--color--ink); text-decoration: underline; text-underline-offset: 3px; }
.cs-faq a:hover { text-decoration-color: var(--wp--preset--color--yellow); text-decoration-thickness: 2px; }
/* opening slides like the source's toggle where the browser supports it (otherwise it opens instantly) */
@supports (interpolate-size: allow-keywords) {
	.cs-faq { interpolate-size: allow-keywords; }
	.cs-faq::details-content { height: 0; overflow: clip; transition: height .4s ease, content-visibility .4s allow-discrete; }
	.cs-faq[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .cs-faq::details-content { transition: none !important; } }
@media (max-width: 767px) {
	.cs-faq > summary { padding: 12px; line-height: 33px; } /* source: 18 px text in a 28 px heading line box → 33 px per line */
	.cs-faq[open] { padding-bottom: 26px; }
	.cs-faq > :not(summary) { margin: 0 10px 14px; }
	.cs-faq > summary + * { margin-top: 12px; }
}

/* Footer, tablet 768–1024 px: the source scales with the window (measured at 768 / 900 / 1024):
   CTA padding 4.5vw; dark part: logo 3.2vw from the top, 6 % (of the 98vw inner width) below the logo,
   two 50 % columns (links column with 32 px padding), bottom row 5 % above and below, columns 39.65 / 25.85 / rest.
   Fixed parts are calibrated so 768 px stays identical to the previous values. */
@media (min-width: 768px) and (max-width: 1024px) {
	.cs-cta { padding: 4.5vw 5vw 4.5vw; }
	.cs-footer { padding: 3.2vw 1vw calc(4.9vw + 61.4px); }
	.cs-footer__cols { grid-template-columns: 50% 50%; column-gap: 0; padding-left: 0; row-gap: 5.88vw; }
	.cs-footer__col:nth-of-type(1) { padding: 0 32px; }
	.cs-footer__bottom { grid-template-columns: 39.65% 25.85% 1fr; column-gap: 0; padding: 0 32px; margin-top: calc(4.9vw - 4.6px); }
	.cs-footer__instagram { justify-self: end; }
}
/* Footer logo on mobile: centred on the full width like the source (not inside the padded columns grid:
   measured offset: 8.25vw) */
@media (max-width: 767px) {
	.cs-footer .cs-footer__logo { justify-self: stretch !important; margin: 0 0 0 -8.25vw !important; }
	.cs-footer .cs-footer__logo img { display: block; margin: 0 auto; }
}

/* Header, desktop: like the source, two halves (gap 20 px) with the menu centred in the left half
   (menu x = 199 px at 1440, 106 px at 1100); the logo sits centred on top (absolute, not a grid column). */
@media (min-width: 1025px) {
	.cs-header { position: relative; grid-template-columns: 1fr 1fr; column-gap: 20px; }
	.cs-header__nav { justify-self: center; grid-column: 1; grid-row: 1; }
	.cs-header__logo { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
	.cs-header__contact { grid-column: 2; grid-row: 1; }
}

/* ---------- Phase 10 QA (Hallmark audit) ---------- */
/* no horizontal scrolling on any page (clip, not hidden: the sticky header keeps working) */
html, body { overflow-x: clip; }
/* long German words in headings may break instead of overflowing on narrow screens (no change where they fit) */
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
/* keyboard focus on project cards: two-tone ring, visible on dark images and light backgrounds (contrast ≥ 3:1) */
.cs-card :where(a, button):focus-visible { outline: 2px solid var(--wp--preset--color--white); outline-offset: 0; box-shadow: 0 0 0 4px var(--wp--preset--color--ink); }
/* form button while sending */
.fluentform .ff-btn-submit:disabled, .fluentform .ff-btn-submit[disabled] { opacity: .6; cursor: progress; }

/* Project tiles = home page size on desktop (Karin 2026-11-21): "Weitere Projekte" and archive/category grids get the
   home grid box: 5vw side padding, max 1440 px (wide size), centred. Tablet/mobile unchanged. */
@media (min-width: 1025px) {
	.cs-more__cards { padding-left: 5vw; padding-right: 5vw; }
	.cs-more__cards .wp-block-post-template,
	.cs-archive__cards .wp-block-post-template { max-width: var(--wp--style--global--wide-size, 1440px); margin-left: auto !important; margin-right: auto !important; }
}
