/*
Theme Name: Ostash Child
Template: twentytwentyfive
Description: Eigenes Design für Ostash – Fliesen, Trockenbau, Renovierungen. Gelb/Anthrazit, farbige Abschnitte, sanfte Bewegung beim Scrollen.
Version: 1.0.2
Text Domain: ostash-child
*/

/* ========== Farben & Grundwerte ========== */
:root {
	--os-yellow: #f6ff04;
	--os-yellow-soft: #fbffa8;
	--os-ink: #1a1a1a;
	--os-ink-2: #2a2a28;
	--os-grey: #f4f4f2;
	--os-line: #dcdcd6;
	--os-muted: #5a5a55;
	--os-radius: 6px;
	--os-ease: cubic-bezier(.2,.7,.2,1);
}

body { color: var(--os-ink); background: var(--os-grey); }

/* Sichtbarer Fokus-Rahmen (Barrierefreiheit) */
a:focus-visible, button:focus-visible, .wp-element-button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid var(--os-ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--os-yellow);
}

/* ========== Kopfzeile (gelb, bleibt oben) ========== */
header.wp-block-template-part {
	background: var(--os-yellow); color: var(--os-ink);
	position: sticky; top: 0; z-index: 50;
	box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 0; } }
header.wp-block-template-part a { color: var(--os-ink); text-decoration: none; }
header.wp-block-template-part .wp-block-site-title a { font-weight: 800; letter-spacing: -.01em; }
header.wp-block-template-part .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open { background: var(--os-yellow) !important; color: var(--os-ink) !important; }

/* ========== Sanftes „Fenster zu Fenster" Scrollen (nur Startseite) ========== */
@media (prefers-reduced-motion: no-preference) {
	html:has(body.home) { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 72px; }
	.home .os-snap { scroll-snap-align: start; }
}

/* ========== Abschnitte ========== */
.os-section { position: relative; overflow: hidden; }
.os-section .os-inner { max-width: 1180px; margin-inline: auto; }

.os-bg-yellow { background: var(--os-yellow) !important; color: var(--os-ink) !important; }
.os-bg-ink    { background: var(--os-ink) !important; color: #fff !important; }
.os-bg-stone  { background: #e6e5df !important; color: var(--os-ink) !important; }
.os-bg-stone .os-kicker::before { background: var(--os-ink); }
.os-bg-ink a:not(.wp-element-button) { color: var(--os-yellow); }

/* helles Fliesenraster */
.os-bg-tiles, .hero-tiles {
	background-color: var(--os-grey) !important;
	background-image:
		linear-gradient(var(--os-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--os-line) 1px, transparent 1px) !important;
	background-size: 64px 64px !important;
	background-position: -1px -1px !important;
}

/* Millimeterpapier: 1 mm / 5 mm / 10 mm Linien */
.os-bg-mm, .os-bg-plan {
	background-color: #f4f4f2 !important;
	background-image:
		linear-gradient(rgba(26,26,26,.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26,26,26,.09) 1px, transparent 1px),
		linear-gradient(rgba(26,26,26,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26,26,26,.05) 1px, transparent 1px),
		linear-gradient(rgba(26,26,26,.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26,26,26,.025) 1px, transparent 1px) !important;
	background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px, 10px 10px, 10px 10px !important;
	background-position: -1px -1px !important;
}
.os-bg-mm, .os-bg-plan, .os-bg-plan .os-inner { position: relative; }
/* Grundriss als Zeichnung rechts, nach links ausgeblendet */
.os-bg-plan::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	top: 50%; right: -2%; width: min(62vw, 820px); aspect-ratio: 780 / 740;
	transform: translateY(-50%) rotate(-2deg);
	background: url("assets/img/grundriss.svg") center / contain no-repeat;
	opacity: .42;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	        mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.os-bg-plan > * { position: relative; z-index: 1; }
.os-bg-plan .os-tile { background: rgba(255,255,255,.93); backdrop-filter: blur(2px); }
.os-bg-mm .os-kicker::before, .os-bg-plan .os-kicker::before { background: var(--os-ink); }

/* Handskizze Bad im Schluss-Abschnitt */
.os-cta.os-bg-mm::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	left: 50%; top: 50%; width: min(1150px, 110vw); aspect-ratio: 1600 / 1163;
	transform: translate(-50%, -50%) rotate(-1.5deg);
	background: url("assets/img/skizze-bad-erweitert.png") center / contain no-repeat;
	opacity: .32;
}
.os-cta.os-bg-mm > * { position: relative; z-index: 1; }
/* Startseite: farbiger Grundriss (Martin Simchen) statt Handskizze */
.os-cta.os-cta-plan::before {
	aspect-ratio: 1430 / 1030; width: min(1050px, 115vw);
	background-image: url("assets/img/plan-farbig.png");
	opacity: .36;
}
/* Leistungen: Handskizze Bad (M. Simchen, vom Karton auf helles Papier) rechts im Kopfbereich */
.os-lst-head { position: relative; overflow: hidden; }
.os-lst-head::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	top: 50%; right: 1%; width: min(50vw, 680px); aspect-ratio: 1400 / 980;
	transform: translateY(-50%) rotate(1.5deg);
	background: url("assets/img/skizze-bad-3.png") center / contain no-repeat;
	opacity: .5;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
	        mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.os-lst-head > * { position: relative; z-index: 1; }
.os-cta h2, .os-cta p { text-shadow: 0 0 12px #f4f4f2, 0 0 4px #f4f4f2; }

/* Vergleich Skizze / fertiges Bad (Regler) */
.os-compare {
	position: relative; margin-top: 2.5rem !important; aspect-ratio: 1600 / 1163; max-height: 78vh;
	border-radius: var(--os-radius); overflow: hidden; background: #f4f4f2;
	box-shadow: 0 20px 50px rgba(0,0,0,.35); user-select: none; touch-action: pan-y;
}
.os-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.os-compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0);
	background-color: #f4f4f2;
	background-image: linear-gradient(rgba(26,26,26,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(26,26,26,.07) 1px, transparent 1px);
	background-size: 40px 40px; }
.os-compare-before img { object-fit: contain; }
.os-compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--os-yellow); pointer-events: none; }
.os-compare-line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
	width: 52px; height: 52px; border-radius: 50%; background: var(--os-yellow); color: var(--os-ink);
	display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.os-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.os-compare-range:focus-visible + * , .os-compare:focus-within .os-compare-line::after { outline: 3px solid #fff; }
.os-compare-tag { position: absolute; top: 14px; padding: .3em .7em; border-radius: 3px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.os-compare-tag-l { left: 14px; background: var(--os-ink); color: var(--os-yellow); }
.os-compare-tag-r { right: 14px; background: var(--os-yellow); color: var(--os-ink); }
.os-idee > .os-kicker, .os-idee > h2, .os-idee > p { text-align: center; }
.os-idee > p { max-width: 60ch; }

/* Ihre Idee. Unsere Hände. */
.os-slogan { font-size: clamp(2.4rem, 6vw, 4.4rem) !important; font-weight: 800; line-height: 1.05; }
.os-slogan mark { background: none; color: var(--os-yellow); }
.os-idee-hero .os-lead { margin-inline: auto !important; }
.os-steps { gap: 22px !important; }
.os-step { background: #fff; border-radius: var(--os-radius); padding: 14px 14px 22px !important; box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.os-step .wp-block-image { margin: 0 0 14px !important; overflow: hidden; border-radius: 4px; background: #f4f4f2; }
.os-step .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s var(--os-ease); }
.os-step:hover .wp-block-image img { transform: scale(1.04); }
.os-step:last-child .wp-block-image img { object-fit: contain; background-color: #f4f4f2;
	background-image: linear-gradient(rgba(26,26,26,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(26,26,26,.07) 1px, transparent 1px); background-size: 24px 24px; }
.os-step h3 { font-size: 1.3rem !important; margin: 0 8px 6px !important; display: flex; align-items: center; gap: 10px; }
.os-step p { margin: 0 8px !important; color: var(--os-muted); }
.os-step-nr { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--os-yellow); color: var(--os-ink); font-size: 1rem; font-weight: 800; flex: 0 0 34px; }

/* Kleine gelbe Überzeile */
.os-kicker {
	font-size: .8rem !important;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--os-ink) !important;
	margin-bottom: .6rem !important;
}
.os-kicker::before {
	content: ""; display: inline-block; vertical-align: middle;
	width: 34px; height: 5px; margin-right: 12px; margin-top: -3px;
	background: var(--os-yellow); border-radius: 2px;
}
.os-bg-tiles .os-kicker::before { background: var(--os-ink); }
.os-bg-yellow .os-kicker::before { background: var(--os-ink); }
.os-bg-ink .os-kicker, .os-hero .os-kicker, .wp-block-cover .os-kicker { color: var(--os-yellow) !important; }

.os-section h1, .os-section h2 { letter-spacing: -.02em; line-height: 1.08; }

/* ========== Hero ========== */
.os-hero { min-height: calc(100svh - 72px) !important; }
.os-hero .wp-block-cover__image-background { will-change: transform; }
.os-hero .wp-block-cover__inner-container { width: 100% !important; max-width: 1180px !important; margin-inline: auto !important; }
.os-hero h1 { font-size: clamp(2.3rem, 6.5vw, 4.8rem) !important; font-weight: 800; max-width: 14ch; }
.os-hero h1 mark { background: none; color: var(--os-yellow); }
.os-hero .os-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; opacity: .92; }

.os-scroll-hint {
	display: none; position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px;
	margin-left: -13px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px;
}
.os-scroll-hint::after {
	content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
	margin-left: -2px; border-radius: 2px; background: var(--os-yellow);
	animation: os-wheel 1.8s var(--os-ease) infinite;
}
@keyframes os-wheel { 0% {opacity:0; transform: translateY(0);} 30% {opacity:1;} 100% {opacity:0; transform: translateY(14px);} }

/* Wechselnde Hintergrundbilder im Hero (Überblendung) */
.os-hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; margin: 0 !important; max-width: none !important; }
.os-hero-slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.os-hero-slides figure.is-active { opacity: 1; }
.os-hero-slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.os-hero-slides figure.is-active img { animation: os-kenburns 7s ease-out both; }
@keyframes os-kenburns { from { transform: scale(1.14); } to { transform: scale(1.04); } }
.os-hero-slides figcaption { display: none; }
.os-hero-caption {
	position: absolute; right: 24px; bottom: 24px; z-index: 3;
	background: var(--os-yellow); color: var(--os-ink); font-weight: 800; font-size: .8rem;
	letter-spacing: .12em; text-transform: uppercase; padding: .45em .9em; border-radius: 3px;
}
.os-hero .wp-block-cover__background { z-index: 1 !important; }
.os-hero .wp-block-cover__inner-container { z-index: 2; }
.os-hero.has-slides > .wp-block-cover__image-background { display: none; }
@media (prefers-reduced-motion: reduce) { .os-hero-slides figure.is-active img { animation: none; } }

/* ========== Buttons ========== */
.os-btn-yellow .wp-block-button__link {
	background: var(--os-yellow) !important; color: var(--os-ink) !important;
	font-weight: 700; border-radius: var(--os-radius); padding: .95em 1.6em;
	transition: transform .2s var(--os-ease), box-shadow .2s;
}
.os-btn-dark .wp-block-button__link {
	background: var(--os-ink) !important; color: #fff !important;
	font-weight: 700; border-radius: var(--os-radius); padding: .95em 1.6em;
	transition: transform .2s var(--os-ease), box-shadow .2s;
}
.os-btn-ghost .wp-block-button__link {
	background: transparent !important; color: inherit !important;
	border: 2px solid currentColor !important; font-weight: 700;
	border-radius: var(--os-radius); padding: calc(.95em - 2px) 1.5em;
}
.os-btn-yellow .wp-block-button__link:hover,
.os-btn-dark .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ========== Leistungs-Kacheln ========== */
.os-tiles { gap: 18px !important; }
.os-tile {
	background: #fff; border: 1px solid var(--os-line); border-radius: var(--os-radius);
	padding: 28px 24px 26px !important; position: relative;
	transition: transform .25s var(--os-ease), box-shadow .25s, border-color .25s;
}
.os-tile::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
	background: var(--os-yellow); transform: scaleX(0); transform-origin: left;
	transition: transform .35s var(--os-ease); border-radius: 0 0 var(--os-radius) var(--os-radius);
}
.os-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); border-color: var(--os-ink); }
.os-tile:hover::after { transform: scaleX(1); }
.os-tile h3 { font-size: 1.3rem !important; margin-top: 14px !important; }
.os-tile p { color: var(--os-muted); }

.os-icon {
	width: 56px; height: 56px; border-radius: 50%; background: var(--os-yellow);
	display: grid; place-items: center; margin: 0 !important;
}
.os-icon::before {
	content: ""; width: 28px; height: 28px; background: var(--os-ink);
	-webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.os-i-fliesen   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v8H3zM13 3h8v8h-8zM3 13h8v8H3zM13 13h8v8h-8z'/%3E%3C/svg%3E"); }
.os-i-trockenbau{ --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 3h20v2H2zM2 19h20v2H2zM4 5h2v14H4zM11 5h2v14h-2zM18 5h2v14h-2z'/%3E%3C/svg%3E"); }
.os-i-daemmung  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 11h3v11h16V11h3zM7 20v-8h2v8zm4 0v-8h2v8zm4 0v-8h2v8z'/%3E%3C/svg%3E"); }
.os-i-renovierung{ --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h13a1 1 0 0 1 1 1v1h2v6h-8v3h1v8h-4v-8h1v-5h8V7h-2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }

/* ========== „Alles aus einer Hand" ========== */
.os-partner-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 14px; }
.os-partner-list li {
	position: relative; display: block;
	padding: 16px 18px 16px 52px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--os-radius);
	background: rgba(255,255,255,.03);
}
.os-partner-list li::before {
	content: ""; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--os-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.2'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.os-partner-list li strong { color: #fff; }

/* ========== Projekt-Fotostreifen ========== */
.os-strip { gap: 14px !important; }
.os-strip .wp-block-image { margin: 0 !important; overflow: hidden; border-radius: var(--os-radius); position: relative; }
.os-strip .wp-block-image img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: 100%; transition: transform .6s var(--os-ease); }
.os-strip .wp-block-image:hover img { transform: scale(1.05); }
.os-strip figcaption {
	position: absolute; left: 10px; bottom: 10px; margin: 0 !important;
	background: var(--os-ink); color: var(--os-yellow); font-size: .8rem; font-weight: 700;
	padding: .35em .7em; border-radius: 3px;
}

/* ========== Schluss-Abschnitt ========== */
.os-cta h2 { font-size: clamp(2rem, 5vw, 3.6rem) !important; font-weight: 800; }
.os-cta .os-phone a { color: var(--os-ink); text-decoration: none; border-bottom: 3px solid var(--os-ink); }

/* ========== Fußzeile ========== */
.os-footer { background: var(--os-ink); color: #d8d8d2; }
.os-footer a { color: #fff; text-decoration: none; }
.os-footer a:hover { color: var(--os-yellow); text-decoration: underline; }
.os-footer h2, .os-footer h3 { color: #fff; }
.os-footer .os-footer-brand { color: var(--os-yellow) !important; }
.os-footer ul { list-style: none; padding: 0 !important; margin: 0; line-height: 2; }
.os-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: #9a9a94; font-size: .85rem; }

/* ========== Einblenden beim Scrollen ========== */
@media (prefers-reduced-motion: no-preference) {
	.os-js .os-reveal, .os-js .os-stagger > * {
		opacity: 0; transform: translateY(28px);
		transition: opacity .7s var(--os-ease), transform .7s var(--os-ease);
	}
	.os-js .os-reveal.is-visible, .os-js .os-stagger > .is-visible { opacity: 1; transform: none; }
	/* Hero-Text kommt direkt beim Laden */
	.os-hero .os-hero-in > * { animation: os-up .9s var(--os-ease) both; }
	.os-hero .os-hero-in > *:nth-child(2) { animation-delay: .12s; }
	.os-hero .os-hero-in > *:nth-child(3) { animation-delay: .24s; }
	.os-hero .os-hero-in > *:nth-child(4) { animation-delay: .36s; }
}
@keyframes os-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* Im Editor immer alles sichtbar */
.editor-styles-wrapper .os-reveal, .editor-styles-wrapper .os-stagger > * { opacity: 1 !important; transform: none !important; }

/* ========== Handy ========== */
@media (max-width: 781px) {
	.os-hero h1 { max-width: none; }
	.os-bg-tiles, .hero-tiles { background-size: 44px 44px !important; }
	.os-bg-plan::before { width: 150vw; right: -70vw; top: 38%; opacity: .28; }
	.os-lst-head::before { right: -30vw; opacity: .3; }
	.wp-block-columns.os-strip { flex-wrap: wrap !important; }
	.wp-block-columns.os-strip > .wp-block-column { flex: 0 0 calc(50% - 7px) !important; }
	.os-hero .wp-block-button__link { white-space: nowrap; padding-inline: 1.2em !important; }
	.os-scroll-hint { display: none; }
}

/* ========== Über uns: Millimeterpapier + Handskizze ========== */
body.page-id-58 main {
	position: relative; overflow: hidden; min-height: 90vh; margin-top: 0 !important; padding-top: 3rem;
	background-color: #f4f4f2;
	background-image:
		linear-gradient(rgba(26,26,26,.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26,26,26,.07) 1px, transparent 1px),
		linear-gradient(rgba(26,26,26,.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26,26,26,.03) 1px, transparent 1px);
	background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
body.page-id-58 main::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	top: 40px; right: -6vw; width: min(62vw, 1100px); aspect-ratio: 1600 / 1163;
	background: url("assets/img/skizze-bad-erweitert.png") center / contain no-repeat;
	opacity: .5; transform: rotate(2deg);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
	        mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
body.page-id-58 main > * { position: relative; z-index: 1; }
body.page-id-58 main .entry-content,
body.page-id-58 main .wp-block-post-content { text-shadow: 0 0 10px #f4f4f2, 0 0 3px #f4f4f2; }
@media (max-width: 781px) {
	body.page-id-58 main::before { width: 140vw; right: -60vw; top: 20px; opacity: .25; }
}

/* ========== Galerie ========== */
.os-g-title { font-size: clamp(2rem, 5vw, 3.4rem) !important; font-weight: 800; }
.os-g-intro { max-width: 60ch; color: var(--os-muted); }
.os-g-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem !important; }
.os-g-filter button { font: inherit; font-weight: 700; padding: .6em 1.1em; border-radius: 999px; border: 2px solid var(--os-ink); background: transparent; color: var(--os-ink); cursor: pointer; }
.os-g-filter button.is-active, .os-g-filter button:hover { background: var(--os-ink); color: var(--os-yellow); }
.os-g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; align-items: start; }
.os-g-card { background: #fff; border-radius: var(--os-radius); overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.06); transition: transform .25s var(--os-ease), box-shadow .25s; }
.os-g-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.1); }
.os-g-card[hidden] { display: none; }
.os-g-thumbs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 3px; aspect-ratio: 4 / 3; }
.os-g-thumbs .os-g-thumb:first-child { grid-row: 1 / span 3; }
.os-g-thumbs .os-g-thumb:nth-child(n+5) { display: none; }
.os-g-thumb { position: relative; padding: 0; border: 0; margin: 0; cursor: zoom-in; overflow: hidden; background: #ddd; }
.os-g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--os-ease); }
.os-g-thumb:hover img { transform: scale(1.06); }
.os-g-tag { position: absolute; left: 8px; bottom: 8px; background: var(--os-ink); color: var(--os-yellow); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3em .6em; border-radius: 3px; }
.os-g-tag.is-after { background: var(--os-yellow); color: var(--os-ink); }
.os-g-meta { padding: 16px 18px 18px; }
.os-g-meta h3 { margin: 0 0 4px !important; font-size: 1.15rem !important; }
.os-g-meta p { margin: 0 !important; color: var(--os-muted); }
.os-g-place { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.os-g-text { margin-top: 8px !important; font-size: .95rem; line-height: 1.5; }
.os-g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(26,26,26,.6); color: #fff; font-weight: 800; font-size: 1.05rem; }
.os-g-pin { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--os-yellow); box-shadow: inset 0 0 0 3px var(--os-ink); flex: 0 0 12px; }
/* Projektbericht in der Galerie-Karte */
.os-g-story { margin-top: 12px; border-top: 1px solid rgba(26,26,26,.12); padding-top: 10px; }
.os-g-story summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; color: var(--os-ink); background: var(--os-yellow); padding: .45em .9em; border-radius: 4px; }
.os-g-story summary::-webkit-details-marker { display: none; }
.os-g-story summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.os-g-story[open] summary::after { content: "–"; }
.os-g-story h4 { margin: 14px 0 4px !important; font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--os-ink); }
.os-g-story p, .os-g-story li { font-size: .93rem; line-height: 1.55; color: #3a3a36; }
.os-g-story ol { margin: 0; padding-left: 1.3em; }
.os-g-story li { margin: 2px 0; }
.os-g-story li::marker { font-weight: 800; color: var(--os-ink); }
.os-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20,20,20,.94); display: grid; place-items: center; padding: 20px; }
.os-lightbox[hidden] { display: none; }
.os-lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.os-lightbox img { max-width: 100%; max-height: 80vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.os-lightbox figcaption { color: #fff; margin: 14px auto 0; max-width: 760px; display: grid; gap: 6px; }
.os-lb-cap { font-weight: 700; }
.os-lb-desc { font-size: 1rem; line-height: 1.5; color: #e6e6e0; background: rgba(255,255,255,.06); border-left: 4px solid var(--os-yellow); padding: 8px 12px; text-align: left; border-radius: 3px; }
.os-lb-desc[hidden] { display: none; }
.os-lb-count { font-size: .8rem; color: #aaa; letter-spacing: .08em; }
.os-lightbox img { max-height: 70vh !important; }
.os-lightbox button { position: absolute; background: var(--os-yellow); color: var(--os-ink); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; font-weight: 700; }
.os-lb-close { top: 18px; right: 18px; }
.os-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.os-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .os-g-grid { grid-template-columns: 1fr; } .os-lb-prev, .os-lb-next { top: auto; bottom: 18px; transform: none; } }

/* ========== Leistungen: 6 Kacheln im Raster (3 / 2 / 1) ========== */
.wp-block-columns.os-tiles { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px !important; }
.wp-block-columns.os-tiles > .wp-block-column { flex: none !important; width: auto !important; margin: 0 !important; }
@media (max-width: 1000px) { .wp-block-columns.os-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .wp-block-columns.os-tiles { grid-template-columns: 1fr; } }
.os-bg-plan .os-tile.os-tile-cta, .os-tile.os-tile-cta { background: var(--os-ink); border-color: var(--os-ink); color: #d8d8d2; }
.os-tile-cta h3 { color: #fff; }
.os-tile-cta p { color: #d8d8d2; }
.os-tile-phone { margin-top: 1rem !important; }
.os-tile-phone a { color: var(--os-yellow) !important; font-weight: 800; font-size: 1.35rem; text-decoration: none; border-bottom: 3px solid var(--os-yellow); }
.os-i-haus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 11h3v11h16V11h3zM7 20v-8h2v8zm4 0v-8h2v8zm4 0v-8h2v8z'/%3E%3C/svg%3E"); }
.os-i-blatt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M21 2C11 2 4 6.5 4 14.5c0 1.8.5 3.3 1.3 4.6L2.3 22 3.7 23.4l3-3C8 21.4 9.9 22 12 22c8 0 9.5-9 9-20zM8.2 18.6c1.6-4.2 4.6-7.4 8.6-9.6-2.8 2.6-5.3 5.9-6.8 10.4z'/%3E%3C/svg%3E"); }
.os-i-telefon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }

/* ========== Projekte: Fotoband läuft durch die ganze Galerie ========== */
.os-has-marquee { overflow: hidden; }
.os-marquee { width: 100vw; max-width: none !important; margin-left: calc(50% - 50vw) !important; overflow: hidden; }
.os-marquee-track { display: flex; gap: 14px; width: max-content; padding: 0 14px; }
.os-mq-item { position: relative; flex: 0 0 auto; width: 230px; aspect-ratio: 3 / 4; border-radius: var(--os-radius); overflow: hidden; background: rgba(0,0,0,.08); display: block; }
.os-mq-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--os-ease); }
.os-mq-item:hover img { transform: scale(1.05); }
.os-mq-item span {
	position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content;
	background: var(--os-ink); color: var(--os-yellow); font-size: .78rem; font-weight: 700;
	padding: .35em .7em; border-radius: 3px;
}
@media (prefers-reduced-motion: no-preference) {
	.os-marquee.is-running .os-marquee-track { animation: os-marquee var(--mq-dur, 240s) linear infinite; }
	.os-marquee.is-running:hover .os-marquee-track { animation-play-state: paused; }
}
@keyframes os-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .os-marquee { overflow-x: auto; } }
@media (max-width: 781px) { .os-mq-item { width: 160px; } }

/* ========== Seite Leistungen ========== */
html { scroll-padding-top: 90px; }
.os-lst-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.8rem; }
.os-lst-jump a {
	background: #fff; border: 1px solid var(--os-line); color: var(--os-ink); text-decoration: none;
	font-size: .9rem; font-weight: 600; padding: .5em .95em; border-radius: 999px; transition: background .2s, border-color .2s;
}
.os-lst-jump a:hover { background: var(--os-yellow); border-color: var(--os-ink); }
.os-lst-row { gap: 3.5rem !important; padding: 3rem 0 !important; margin: 0 !important; border-bottom: 1px solid rgba(26,26,26,.12); }
.os-lst-row:last-child { border-bottom: 0; }
.os-lst-flip { flex-direction: row-reverse; }
.os-lst-media .wp-block-image { margin: 0 !important; position: relative; border-radius: var(--os-radius); overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.os-lst-media .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.os-lst-media figcaption {
	position: absolute; left: 12px; bottom: 12px; margin: 0 !important;
	background: var(--os-ink); color: var(--os-yellow); font-size: .8rem; font-weight: 700; padding: .35em .7em; border-radius: 3px;
}
.os-lst-graphic {
	aspect-ratio: 4 / 3; border-radius: var(--os-radius); background: var(--os-ink); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 2rem;
	background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	background-size: 24px 24px;
}
.os-lst-graphic .os-icon { width: 96px; height: 96px; }
.os-lst-graphic .os-icon::before { width: 48px; height: 48px; }
.os-lst-tag { margin: 0 !important; text-align: center; color: var(--os-yellow); font-weight: 700; letter-spacing: .02em; }
.os-lst-nr { margin: 0 !important; font-weight: 800; font-size: .95rem; color: var(--os-muted); letter-spacing: .1em; }
.os-lst-nr::after { content: ""; display: inline-block; width: 40px; height: 4px; background: var(--os-yellow); vertical-align: middle; margin-left: 12px; border-radius: 2px; }
.os-lst-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem) !important; font-weight: 800; margin: .4rem 0 .6rem !important; }
.os-lst-lead { font-size: 1.12rem; margin: 0 0 1.2rem !important; }
.os-lst-list { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 10px; }
.os-lst-list li { position: relative; padding-left: 30px; color: var(--os-muted); line-height: 1.5; }
.os-lst-list li strong { color: var(--os-ink); }
.os-lst-list li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--os-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.2'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.os-i-tropfen { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2s-7 7.6-7 12.5A7 7 0 0 0 19 14.5C19 9.6 12 2 12 2z'/%3E%3C/svg%3E"); }
@media (max-width: 781px) {
	.os-lst-row, .os-lst-flip { flex-direction: column !important; gap: 1.5rem !important; padding: 2.2rem 0 !important; }
	.os-lst-row > .wp-block-column { flex-basis: 100% !important; }
	.os-lst-graphic { aspect-ratio: 16 / 9; }
}

/* ========== Seite Jobs ========== */
.os-jobs-hero { position: relative; overflow: hidden; background: var(--os-grey) !important; }
.os-jobs-wall { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.os-jobs-wall img { width: 100%; height: 100%; object-fit: cover; display: block; }
.os-jobs-wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244,244,242,.94) 0%, rgba(244,244,242,.82) 42%, rgba(244,244,242,.15) 75%, rgba(244,244,242,0) 100%); }
.os-jobs-hero > *:not(.os-jobs-wall):not(.os-lang) { position: relative; z-index: 1; }
.os-jobs-card { max-width: 560px; }
.os-jobs-card .os-g-intro { color: var(--os-ink); }
.os-jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 1.2rem; }
.os-jobs-item { background: #fff; border: 1px solid var(--os-line); border-radius: var(--os-radius); padding: 1.4rem 1.4rem 1.2rem; }
.os-jobs-item h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.os-jobs-item p { margin: 0; color: var(--os-muted); }
.os-jobs-azubi { background: var(--os-yellow); border-color: var(--os-yellow); }
.os-jobs-azubi p { color: var(--os-ink); }
.os-jobs-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.os-jobs-list li { padding: .6rem 0 .6rem 2rem; position: relative; border-bottom: 1px solid rgba(0,0,0,.08); }
.os-jobs-list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 14px; height: 14px; background: var(--os-yellow); border: 2px solid var(--os-ink); border-radius: 50%; }
.os-jobs-photo { margin: 0 !important; border-radius: var(--os-radius); overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.10); }
.os-jobs-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.os-jobs-ua { font-size: 1.15rem; font-weight: 600; background: #fff; border-left: 5px solid #0057b7; padding: 1rem 1.2rem; border-radius: 0 var(--os-radius) var(--os-radius) 0; }
@media (max-width: 781px) {
	.os-jobs-wall { grid-template-columns: repeat(3, 1fr); }
	.os-jobs-wall::after { background: rgba(244,244,242,.85); }
}
/* Jobs: Sprachumschalter oben rechts (ohne Fahnen) */
.os-jobs-hero > .os-lang { position: absolute; top: 1.2rem; right: 1.2rem; left: auto; margin: 0 !important; width: auto; max-width: none; z-index: 2; }
.os-lang { display: flex; gap: 4px; background: rgba(255,255,255,.92); border: 1px solid var(--os-line); border-radius: 999px; padding: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.os-lang button { font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: transparent; color: var(--os-ink); padding: .45em .95em; border-radius: 999px; cursor: pointer; }
.os-lang button:hover { background: var(--os-grey); }
.os-lang button.is-active { background: var(--os-ink); color: #fff; }
.os-jobs-you { font-size: 1.15rem; line-height: 1.55; margin-top: 1.1rem; }
@media (max-width: 781px) {
	.os-jobs-hero > .os-lang { position: relative; top: auto; right: auto; margin: 0 0 1.4rem !important; width: max-content; max-width: 100%; z-index: 1; }
	.os-lang button { padding: .45em .7em; font-size: .85rem; }
}

/* Impressum / Datenschutz */
.os-legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
.os-legal p { line-height: 1.65; }
.os-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.os-legal-date { margin-top: 2.5rem; color: var(--os-muted); font-size: .9rem; }
