/* ==========================================================================
   Sascha Möllers · Persönliche Startseite
   Ruhiges, Apple-nahes System: Systemschrift, viel Weißraum, eine Akzentfarbe.
   Hell/Dunkel folgt automatisch der Systemeinstellung.
   ========================================================================== */

:root {
	--sx-bg: #ffffff;
	--sx-bg-alt: #f5f5f7;
	--sx-tile: #ffffff;
	--sx-text: #1d1d1f;          /* 16.8:1 auf #fff */
	--sx-text-2: #6e6e73;        /* 5.1:1 auf #fff, 4.6:1 auf #f5f5f7 */
	--sx-line: #d2d2d7;
	--sx-accent: #0066cc;        /* 5.6:1 auf #fff */
	--sx-accent-hover: #0077ed;
	--sx-on-accent: #ffffff;
	--sx-nav: rgba(255, 255, 255, 0.78);
	--sx-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

	/* Dunkle Sektion (Produkte) – in beiden Modi dunkel */
	--sx-d-bg: #000000;
	--sx-d-tile: #1d1d1f;
	--sx-d-text: #f5f5f7;
	--sx-d-text-2: #a1a1a6;      /* 7.9:1 auf #000, 6.6:1 auf #1d1d1f */
	--sx-d-accent: #2997ff;      /* 6.9:1 auf #000 */
	--sx-d-line: #424245;

	--sx-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
	--sx-radius: 22px;
	--sx-radius-sm: 14px;
	--sx-wrap: 1080px;
	--sx-gutter: clamp(16px, 4vw, 24px);
	--sx-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
	:root {
		--sx-bg: #000000;
		--sx-bg-alt: #101012;
		--sx-tile: #1d1d1f;
		--sx-text: #f5f5f7;
		--sx-text-2: #a1a1a6;
		--sx-line: #38383b;
		--sx-accent: #2997ff;
		--sx-accent-hover: #47a6ff;
		--sx-on-accent: #000000;
		--sx-nav: rgba(22, 22, 23, 0.78);
		--sx-shadow: none;
		--sx-d-bg: #1d1d1f;
		--sx-d-tile: #000000;
	}
}

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.sx {
	margin: 0;
	background: var(--sx-bg);
	color: var(--sx-text);
	font-family: var(--sx-font);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -0.022em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
/* Reset mit :where() = Spezifität 0, damit Komponenten-Klassen immer gewinnen */
:where(.sx) *, :where(.sx) *::before, :where(.sx) *::after { box-sizing: border-box; }
:where(.sx) img { max-width: 100%; height: auto; display: block; }
:where(.sx) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.sx) :where(ul, ol) { list-style: none; }
:where(.sx) a { color: inherit; text-decoration: none; }
.sx :focus-visible { outline: 3px solid var(--sx-accent); outline-offset: 3px; border-radius: 6px; }

.sx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sx-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--sx-text); color: var(--sx-bg) !important; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.sx-skip:focus { top: 12px; }

.sx-wrap { width: 100%; max-width: calc(var(--sx-wrap) + 2 * var(--sx-gutter)); margin: 0 auto; padding: 0 var(--sx-gutter); }
.sx-wrap--narrow { max-width: calc(760px + 2 * var(--sx-gutter)); }
.sx-center { text-align: center; }

/* ---------- Typografie ---------- */
.sx-eyebrow { font-size: 17px; font-weight: 600; color: var(--sx-text-2); letter-spacing: -0.01em; margin-bottom: 10px; }
.sx-h2 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.028em; text-wrap: balance; }
.sx-intro { font-size: clamp(19px, 2.2vw, 21px); line-height: 1.4; color: var(--sx-text-2); font-weight: 500; letter-spacing: -0.016em; margin-top: 16px; text-wrap: pretty; }

/* ---------- Buttons & Links ---------- */
.sx-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 11px 22px;
	border-radius: 980px;
	background: var(--sx-accent); color: var(--sx-on-accent) !important;
	font-size: 17px; font-weight: 500; letter-spacing: -0.02em;
	transition: background-color .2s var(--sx-ease);
}
.sx-btn:hover { background: var(--sx-accent-hover); }
.sx-btn--sm { min-height: 32px; padding: 6px 14px; font-size: 14px; }
.sx-btn--secondary { background: transparent; color: var(--sx-accent) !important; box-shadow: inset 0 0 0 1.5px var(--sx-accent); }
.sx-btn--secondary:hover { background: color-mix(in srgb, var(--sx-accent) 10%, transparent); }
.sx-link { color: var(--sx-accent) !important; font-size: 17px; font-weight: 400; display: inline-flex; gap: 4px; align-items: center; min-height: 44px; }
.sx-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.sx-actions--center { justify-content: center; }

/* ---------- Navigation (schwebende Glasleiste) ---------- */
.sx-nav {
	position: sticky; top: 0; z-index: 100;
	background: var(--sx-nav);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid color-mix(in srgb, var(--sx-line) 60%, transparent);
}
@media (prefers-reduced-transparency: reduce) { .sx-nav { background: var(--sx-bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.sx-nav__inner { max-width: calc(var(--sx-wrap) + 2 * var(--sx-gutter)); margin: 0 auto; padding: 0 var(--sx-gutter); height: 52px; display: flex; align-items: center; justify-content: space-between; }
.sx-nav__brand { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.sx-nav__menu { display: flex; align-items: center; gap: 4px; }
.sx-nav__menu a:not(.sx-btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--sx-text); opacity: .85; }
.sx-nav__menu a:not(.sx-btn):hover { opacity: 1; color: var(--sx-accent); }
.sx-nav__cta { margin-left: 8px; }
.sx-nav__toggle { display: none; }

@media (max-width: 860px) {
	.sx-nav__toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--sx-text); cursor: pointer; border-radius: 10px;
	}
	.sx-nav__bars, .sx-nav__bars::before, .sx-nav__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--sx-ease), opacity .2s; }
	.sx-nav__bars::before, .sx-nav__bars::after { content: ""; position: absolute; left: 0; }
	.sx-nav__bars::before { top: -6px; } .sx-nav__bars::after { top: 6px; }
	.sx-nav__toggle[aria-expanded="true"] .sx-nav__bars { background: transparent; }
	.sx-nav__toggle[aria-expanded="true"] .sx-nav__bars::before { transform: translateY(6px) rotate(45deg); }
	.sx-nav__toggle[aria-expanded="true"] .sx-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.sx-nav__menu {
		position: absolute; left: 0; right: 0; top: 52px;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--sx-gutter) 24px;
		background: var(--sx-bg); border-bottom: 1px solid var(--sx-line);
		display: none;
	}
	.sx-nav.is-open .sx-nav__menu { display: flex; }
	.sx-nav__menu a:not(.sx-btn) { font-size: 21px; font-weight: 600; padding: 6px 0; opacity: 1; }
	.sx-nav__cta { margin: 12px 0 0; }
	.sx-nav__cta .sx-btn { width: 100%; min-height: 44px; font-size: 17px; }
	/* Ohne JS: Menü bleibt erreichbar */
	html:not(.sx-js) .sx-nav__toggle { display: none; }
	html:not(.sx-js) .sx-nav__menu { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; background: none; }
}

/* ---------- Hero ---------- */
.sx-hero { padding-top: clamp(48px, 9vw, 96px); }
.sx-hero__copy { text-align: center; }
.sx-hero__title { font-size: clamp(48px, 10vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.sx-hero__lead { max-width: 680px; margin: 20px auto 0; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.3; font-weight: 500; color: var(--sx-text-2); letter-spacing: -0.02em; text-wrap: balance; }
.sx-hero .sx-actions { justify-content: center; }
.sx-hero__media { max-width: calc(var(--sx-wrap) + 2 * var(--sx-gutter)); margin: clamp(40px, 6vw, 64px) auto 0; padding: 0 var(--sx-gutter); }
.sx-hero__media img { width: 100%; border-radius: var(--sx-radius); aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 640px) { .sx-hero__media img { aspect-ratio: 1 / 1; } }

.sx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }
.sx-stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.sx-stats dd { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.sx-stats dt { font-size: 15px; color: var(--sx-text-2); line-height: 1.35; letter-spacing: -0.01em; }
@media (max-width: 760px) { .sx-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* ---------- Sektionen ---------- */
.sx-section { padding: clamp(72px, 11vw, 140px) 0; background: var(--sx-bg); }
.sx-section--alt { background: var(--sx-bg-alt); }
.sx-section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sx-section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------- Über mich ---------- */
.sx-about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.sx-about__body .sx-intro { margin-top: 0; color: var(--sx-text); }
.sx-about__body p + p { margin-top: 18px; }
.sx-about__body p:not(.sx-intro) { color: var(--sx-text-2); font-size: 19px; line-height: 1.5; }
@media (max-width: 860px) { .sx-about { grid-template-columns: 1fr; } }

/* ---------- Expertise (Bento) ---------- */
.sx-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sx-tile {
	background: var(--sx-bg-alt); border-radius: var(--sx-radius);
	padding: clamp(28px, 4vw, 44px);
	display: flex; flex-direction: column; min-height: 360px;
}
.sx-tile__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.sx-tile__text { margin-top: 12px; color: var(--sx-text-2); font-size: 17px; max-width: 46ch; }
.sx-tile__metric { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.sx-tile__num { font-size: clamp(44px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.sx-tile__label { font-size: 15px; color: var(--sx-text-2); }
.sx-tile--shop .sx-tile__num { color: #bf4800; }
.sx-tile--ads .sx-tile__num { color: #0066cc; }
.sx-tile--ai .sx-tile__num { color: #8a3ffc; }
.sx-tile--web .sx-tile__num { color: #0a7d36; }
@media (prefers-color-scheme: dark) {
	.sx-tile { background: var(--sx-tile); }
	.sx-tile--shop .sx-tile__num { color: #ff9f5a; }
	.sx-tile--ads .sx-tile__num { color: #2997ff; }
	.sx-tile--ai .sx-tile__num { color: #b98cff; }
	.sx-tile--web .sx-tile__num { color: #4cd07d; }
}
.sx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sx-tags li { font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 980px; background: var(--sx-bg); color: var(--sx-text); border: 1px solid var(--sx-line); }
@media (prefers-color-scheme: dark) { .sx-tags li { background: transparent; } }
@media (max-width: 760px) { .sx-bento { grid-template-columns: 1fr; } .sx-tile { min-height: 0; } }

/* ---------- Produkte (dunkel) ---------- */
.sx-section--dark { background: var(--sx-d-bg); color: var(--sx-d-text); }
.sx-section--dark .sx-eyebrow, .sx-section--dark .sx-intro { color: var(--sx-d-text-2); }
.sx-section--dark .sx-link { color: var(--sx-d-accent) !important; }
.sx-section--dark :focus-visible { outline-color: var(--sx-d-accent); }
.sx-ventures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sx-venture { background: var(--sx-d-tile); border-radius: var(--sx-radius); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.sx-venture--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; align-items: center; }
.sx-venture__kind { font-size: 15px; color: var(--sx-d-text-2); font-weight: 500; }
.sx-venture__name { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-top: 6px; }
.sx-venture__text { color: var(--sx-d-text-2); margin-top: 12px; max-width: 44ch; }
.sx-venture__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 12px; }
.sx-link--quiet { color: var(--sx-d-text) !important; opacity: .85; }
.sx-browser { border-radius: var(--sx-radius-sm); overflow: hidden; background: #2c2c2e; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); margin-top: auto; }
.sx-browser__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #2c2c2e; }
.sx-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #48484a; }
.sx-browser__bar span { flex: 1; text-align: center; font-size: 12px; color: #a1a1a6; margin-right: 42px; }
.sx-browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
@media (max-width: 860px) { .sx-ventures, .sx-venture--wide { grid-template-columns: 1fr; } }

/* ---------- Case Studies ---------- */
.sx-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sx-case {
	position: relative; background: var(--sx-tile); border-radius: var(--sx-radius);
	padding: clamp(28px, 3.6vw, 40px); display: flex; flex-direction: column;
	box-shadow: var(--sx-shadow); transition: transform .3s var(--sx-ease), box-shadow .3s var(--sx-ease);
}
.sx-case:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) { .sx-case:hover { transform: none; } }
.sx-case__meta { font-size: 14px; color: var(--sx-text-2); font-weight: 500; }
.sx-case__title { font-size: clamp(24px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-top: 8px; }
.sx-case__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sx-case__title a:focus-visible { outline: none; }
.sx-case:has(a:focus-visible) { outline: 3px solid var(--sx-accent); outline-offset: 3px; }
.sx-case__sub { color: var(--sx-text-2); margin-top: 4px; }
.sx-case__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 24px; padding-top: 24px; border-top: 1px solid var(--sx-line); }
.sx-case__metrics div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.sx-case__metrics dd { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.sx-case__metrics dt { font-size: 14px; color: var(--sx-text-2); line-height: 1.35; }
.sx-case__more { margin-top: auto; color: var(--sx-accent); font-size: 17px; }
@media (max-width: 760px) { .sx-cases { grid-template-columns: 1fr; } }

/* ---------- Websites ---------- */
.sx-sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.sx-site a { display: flex; flex-direction: column; gap: 2px; }
.sx-site__shot { display: block; border-radius: var(--sx-radius-sm); overflow: hidden; background: var(--sx-bg-alt); border: 1px solid var(--sx-line); margin-bottom: 14px; }
.sx-site__shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; transition: transform .5s var(--sx-ease); }
.sx-site a:hover .sx-site__shot img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .sx-site a:hover .sx-site__shot img { transform: none; } }
.sx-site__name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.sx-site__kind { font-size: 15px; color: var(--sx-text-2); }
.sx-site__host { font-size: 15px; color: var(--sx-accent); margin-top: 4px; }
@media (max-width: 1000px) { .sx-sites { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sx-sites { grid-template-columns: 1fr; } }

/* ---------- Werdegang ---------- */
.sx-timeline { position: relative; }
.sx-timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--sx-line); }
.sx-timeline li:last-child { border-bottom: 1px solid var(--sx-line); }
.sx-timeline__year { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--sx-text-2); padding-top: 2px; }
.sx-timeline li:last-child .sx-timeline__year { color: var(--sx-accent); }
.sx-timeline h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.sx-timeline p { color: var(--sx-text-2); margin-top: 6px; }
@media (max-width: 520px) { .sx-timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Journal ---------- */
.sx-journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sx-post { position: relative; background: var(--sx-bg-alt); border-radius: var(--sx-radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
@media (prefers-color-scheme: dark) { .sx-post { background: var(--sx-tile); } }
.sx-post__date { font-size: 14px; color: var(--sx-text-2); }
.sx-post__title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.sx-post__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sx-post__title a:hover { color: var(--sx-accent); }
.sx-post__excerpt { color: var(--sx-text-2); font-size: 15px; }
@media (max-width: 860px) { .sx-journal { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.sx-contact .sx-intro { margin-left: auto; margin-right: auto; max-width: 600px; }
.sx-contact__mail { margin-top: 18px; font-size: 15px; color: var(--sx-text-2); }

/* ---------- Footer ---------- */
.sx-footer { background: var(--sx-bg-alt); border-top: 1px solid var(--sx-line); font-size: 13px; color: var(--sx-text-2); }
.sx-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.sx-footer ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.sx-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.sx-footer a:hover { color: var(--sx-text); text-decoration: underline; }

/* ---------- Einblenden (nur mit JS, nie bei reduzierter Bewegung) ---------- */
.sx-js .sx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--sx-ease), transform .8s var(--sx-ease); }
.sx-js .sx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sx-js .sx-reveal { opacity: 1; transform: none; transition: none; } }
@media print { .sx-nav, .sx-skip { display: none; } .sx-js .sx-reveal { opacity: 1; transform: none; } }

/* ---------- Unterseiten (Case Studies, Impressum, Datenschutz, 404) ---------- */
.sx-single { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.sx-single__head { margin-bottom: clamp(32px, 5vw, 48px); }
.sx-single__head .sx-eyebrow a { color: var(--sx-accent); }
.sx-single__head .sx-h2 { font-size: clamp(34px, 5vw, 52px); }
.sx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line); }
.sx-facts div { display: flex; flex-direction: column; gap: 2px; }
.sx-facts dt { font-size: 13px; color: var(--sx-text-2); }
.sx-facts dd { font-size: 17px; font-weight: 600; }
.sx-prose { font-size: 19px; line-height: 1.58; color: var(--sx-text); overflow-wrap: anywhere; }
.sx-prose > * + * { margin-top: 1em; }
.sx-prose h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; margin-top: 1.8em; }
.sx-prose h3, .sx-prose h4 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; margin-top: 1.5em; }
.sx-prose p, .sx-prose li { color: var(--sx-text-2); }
.sx-prose strong { color: var(--sx-text); }
.sx-prose ul, .sx-prose ol { padding-left: 1.2em; list-style: disc; }
.sx-prose ol { list-style: decimal; }
.sx-prose li + li { margin-top: .4em; }
.sx-prose a { color: var(--sx-accent); text-decoration: underline; text-underline-offset: 3px; }
.sx-prose img { border-radius: var(--sx-radius-sm); }
.sx-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sx-prose th, .sx-prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--sx-line); }
.sx-prose .elementor-widget-heading .elementor-heading-title { font-family: var(--sx-font); color: var(--sx-text); }
.sx-prose .elementor-widget-text-editor { font-family: var(--sx-font); color: var(--sx-text-2); }
.sx-single .sx-actions { margin-top: 48px; }

/* ---------- Bewegung & Interaktion (nur mit JS, nie bei reduzierter Bewegung) ---------- */
.sx-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sx-accent); transform-origin: 0 50%; transform: scaleX(var(--sx-p, 0)); pointer-events: none; }
.sx-hero__media picture { display: block; overflow: hidden; border-radius: var(--sx-radius); transform-origin: 50% 0; will-change: transform; }
.sx-hero__media img { border-radius: 0; }
.sx-motion .sx-hero__media img { transform: translate3d(0, var(--sx-hy, 0px), 0) scale(1.12); will-change: transform; }
.sx-motion .sx-hero__copy { will-change: transform, opacity; }
.sx-motion .sx-browser img { transform: translate3d(0, var(--sx-by, 0%), 0) scale(1.16); will-change: transform; }

/* Statement: Wörter leuchten beim Scrollen auf */
.sx-statement { background: var(--sx-bg); padding: clamp(72px, 11vw, 140px) 0; }
.sx-statement__text { font-size: clamp(32px, 5.4vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: -0.032em; max-width: 1000px; text-wrap: balance; }
.sx-statement__by { margin-top: 28px; font-size: 17px; font-weight: 600; color: var(--sx-text-2); }
.sx-motion .sx-statement { height: 240vh; padding: 0; }
.sx-motion .sx-statement__inner { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.sx-motion .sx-statement__text .w { opacity: .16; transition: opacity .35s var(--sx-ease); }
.sx-motion .sx-statement__text .w.on { opacity: 1; }

/* Zeitleiste füllt sich */
.sx-motion .sx-timeline { padding-left: 28px; }
.sx-motion .sx-timeline::before, .sx-motion .sx-timeline::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--sx-line); }
.sx-motion .sx-timeline::after { background: var(--sx-accent); transform-origin: 50% 0; transform: scaleY(var(--sx-tl, 0)); }
.sx-motion .sx-timeline .sx-timeline__year { transition: color .3s; }
.sx-motion .sx-timeline li.is-on .sx-timeline__year { color: var(--sx-accent); }

/* Licht folgt der Maus */
.sx-tile, .sx-case, .sx-venture { position: relative; isolation: isolate; overflow: hidden; }
.sx-tile::before, .sx-case::before, .sx-venture::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--sx-accent) 13%, transparent), transparent 62%); }
.sx-venture::before { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(41, 151, 255, .16), transparent 62%); }
.sx-tile:hover::before, .sx-case:hover::before, .sx-venture:hover::before { opacity: 1; }

/* 3D-Kippen der Website-Vorschauen */
.sx-site__shot { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s var(--sx-ease), box-shadow .45s var(--sx-ease); }
.sx-site a:hover .sx-site__shot { transition-duration: .15s, .45s; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .35); }

@media (prefers-reduced-motion: reduce) {
	.sx-progress { display: none; }
	.sx-site__shot { transform: none; }
}

/* ---------- Projekte (Karten ohne Kennzahlen) ---------- */
.sx-case__text { color: var(--sx-text-2); margin-top: 10px; }
.sx-case .sx-tags { margin-top: auto; padding-top: 22px; }
.sx-case__title a { color: inherit; }
.sx-case__title a:hover { color: var(--sx-accent); }

/* ---------- 3D-Workflow (PHITCON) ---------- */
.sx-flow { overflow: hidden; }
.sx-flow__stage { perspective: 1800px; max-width: 1400px; margin: 0 auto; padding: 8px var(--sx-gutter) 24px; }
.sx-flow__board { width: 100%; transform-origin: 50% 60%; }
.sx-flow__board svg { display: block; width: 100%; height: auto; overflow: visible; }
.sx-motion .sx-flow__board { transform: rotateX(var(--fx, 0deg)) rotateZ(var(--fz, 0deg)) scale(var(--fs, 1)); will-change: transform; }
.sx-flow .e path { fill: none; stroke: #3a3a3c; stroke-width: 2.5; stroke-linecap: round; }
.sx-flow .e--live path { stroke-dasharray: 6 14; animation: sx-dash 1.6s linear infinite; opacity: .9; }
.sx-flow .l-ocr { stroke: #ff9f5a; } .sx-flow .l-par { stroke: #2997ff; } .sx-flow .l-ai { stroke: #b98cff; }
@keyframes sx-dash { to { stroke-dashoffset: -40; } }
.sx-flow .n .sd { fill: #000; opacity: .55; }
.sx-flow .n .tp { fill: #232326; stroke: #48484a; stroke-width: 1.5; }
.sx-flow .n--ocr .tp { stroke: #ff9f5a; } .sx-flow .n--par .tp { stroke: #2997ff; } .sx-flow .n--ai .tp { stroke: #b98cff; } .sx-flow .n--end .tp { stroke: #4cd07d; }
.sx-flow .n .t { fill: #f5f5f7; font: 600 16px var(--sx-font); letter-spacing: -0.01em; }
.sx-flow .n .s { fill: #a1a1a6; font: 400 12px var(--sx-font); }
.sx-flow .pk--par { fill: #2997ff; } .sx-flow .pk--ocr { fill: #ff9f5a; } .sx-flow .pk--ai { fill: #b98cff; }
.sx-flow__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(24px, 4vw, 48px); padding-top: 32px; border-top: 1px solid var(--sx-d-line); }
.sx-flow__facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.sx-flow__facts dd { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--sx-d-text); }
.sx-flow__facts dt { font-size: 15px; color: var(--sx-d-text-2); line-height: 1.35; }
@media (max-width: 860px) {
	.sx-flow__stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.sx-flow__board { min-width: 820px; }
	.sx-flow__facts { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.sx-flow .pk { display: none; }
	.sx-flow .e--live path { animation: none; }
}
