/*
 * EW-Art – design layer for Astra + Elementor.
 *
 * Loaded after Astra and Elementor. Anything set on an element in Elementor
 * (colours, sizes, typography) still wins, because Elementor's per-element
 * CSS is more specific than these class rules.
 */

/* ------------------------------------------------------------------ tokens */

:root {
	--ew-gold: #D9A957;
	--ew-gold-light: #F2CF8E;
	--ew-head: #F5F0E8;
	--ew-text: #E4DED4;
	--ew-sand: #C8B08A;
	--ew-muted: #9A8F7F;
	--ew-line: rgba(200, 176, 138, .5);
	--ew-bar: linear-gradient(90deg, #E2A54C, #F2C27E);
	--ew-bar-glow: 0 0 10px rgba(242, 180, 90, .45);
	--ew-hairline: linear-gradient(90deg, rgba(228, 219, 204, 0), rgba(228, 219, 204, .55) 18%, rgba(228, 219, 204, .35) 80%, rgba(228, 219, 204, .15));
}

/* -------------------------------------------------------------------- base */

/* The mist band and the gold lines are wider than the screen. */
html,
body {
	overflow-x: clip;
}

body {
	background-color: #000;
	color: var(--ew-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: rgba(217, 169, 87, .35);
	color: #fff;
}

a {
	transition: color .2s ease;
}

.elementor-widget-heading .elementor-heading-title {
	line-height: 1.15;
}

.elementor-widget-heading .elementor-heading-title a {
	color: inherit;
}

.elementor-widget-heading .elementor-heading-title a:hover,
.elementor-widget-heading .elementor-heading-title a:focus-visible {
	color: var(--ew-gold-light);
}

.elementor-widget-text-editor {
	color: var(--ew-text);
}

.elementor-widget-text-editor p {
	margin: 0 0 .9em;
}

.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.elementor-widget-text-editor strong {
	color: var(--ew-head);
	font-weight: 500;
}

.elementor-widget-text-editor a {
	color: var(--ew-gold);
	text-decoration: underline;
	text-decoration-color: rgba(217, 169, 87, .45);
	text-underline-offset: 3px;
}

.elementor-widget-text-editor a:hover {
	color: var(--ew-gold-light);
}

/* ------------------------------------------------------------------ header */

#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
#masthead .ast-mobile-header-content,
#masthead .ast-desktop-header-content {
	background-color: #000;
	border-bottom: 0;
}

#masthead .site-primary-header-wrap {
	position: relative;
}

/* Fine light line under the header, starting after the logo ring. */
#masthead .site-primary-header-wrap::after {
	content: "";
	position: absolute;
	left: 132px;
	right: 20px;
	bottom: 0;
	height: 1px;
	background: var(--ew-hairline);
	pointer-events: none;
}

/* Site title with the glowing gold ring (hidden when a logo image is set). */
.site-title {
	margin: 0;
	line-height: 1;
}

.site-title a,
.site-title a:hover,
.site-title a:focus {
	position: relative;
	display: inline-block;
	padding-left: 22px;
	color: var(--ew-head);
	font-weight: 300;
	letter-spacing: .02em;
}

.site-title a::before {
	content: "";
	position: absolute;
	left: -8px;
	top: 50%;
	width: 70px;
	height: 70px;
	transform: translateY(-50%);
	background: url(../img/logo-ring.svg) center / contain no-repeat;
	pointer-events: none;
}

.ew-has-logo .site-title a::before {
	content: none;
}

/* Desktop menu. */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	padding: 0 22px;
	color: var(--ew-head);
	font-size: 16px;
	font-weight: 300;
	letter-spacing: .02em;
}

.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:focus-visible,
.ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .current-menu-ancestor > .menu-link,
.ast-builder-menu-1 .main-header-menu > .current-page-ancestor > .menu-link {
	color: var(--ew-gold);
}

/* Language switcher "DE / EN" (added to the menus by the theme). */
.ew-lang {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 300;
	letter-spacing: .02em;
}

.ew-lang__link,
.ew-lang__link:visited {
	color: var(--ew-head);
}

.ew-lang__link:hover,
.ew-lang__link:focus-visible,
.ew-lang__link.is-current {
	color: var(--ew-gold);
}

.ew-lang__sep {
	margin: 0 6px;
	color: var(--ew-head);
	opacity: .7;
}

.main-header-menu > .ew-lang-item {
	display: flex;
	align-items: center;
	padding-left: 22px;
}

/* Small desktops: the menu has five items plus DE / EN. */
@media (min-width: 922px) and (max-width: 1260px) {
	.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding: 0 12px;
		font-size: 15px;
	}

	.main-header-menu > .ew-lang-item {
		padding-left: 12px;
	}
}

/* Mobile header + dropdown menu. */
#masthead .menu-toggle,
#masthead .menu-toggle:hover,
#masthead .menu-toggle:focus {
	background: transparent;
	border: 0;
	color: var(--ew-gold);
}

#masthead .menu-toggle .ast-mobile-svg {
	fill: var(--ew-gold);
}

#masthead .ast-mobile-header-content {
	border-top: 1px solid rgba(200, 176, 138, .25);
}

.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link {
	padding: 14px 24px;
	border-color: rgba(200, 176, 138, .16);
	color: var(--ew-head);
	font-size: 18px;
	font-weight: 300;
}

.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link:hover,
.ast-builder-menu-mobile .main-navigation .main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu-mobile .main-navigation .main-header-menu .current-menu-ancestor > .menu-link,
.ast-builder-menu-mobile .main-navigation .main-header-menu .current-page-ancestor > .menu-link {
	color: var(--ew-gold);
}

.ast-builder-menu-mobile .main-header-menu > .ew-lang-item {
	padding: 18px 24px 24px;
}

.ast-builder-menu-mobile .ew-lang {
	font-size: 18px;
}

@media (max-width: 921px) {
	.site-title a,
	.site-title a:hover,
	.site-title a:focus {
		padding-left: 18px;
	}

	.site-title a::before {
		left: -6px;
		width: 56px;
		height: 56px;
	}

	#masthead .site-primary-header-wrap::after {
		left: 104px;
	}
}

/* ------------------------------------------------------------------ footer */

.site-footer,
.site-footer .site-above-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
	background-color: #000;
}

.site-footer .site-below-footer-wrap {
	position: relative;
	padding-top: 26px;
	padding-bottom: 34px;
	border-top: 0;
}

.site-footer .site-below-footer-wrap::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(1136px, calc(100% - 40px));
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, rgba(228, 219, 204, 0), rgba(228, 219, 204, .3) 20%, rgba(228, 219, 204, .3) 80%, rgba(228, 219, 204, 0));
}

.ast-footer-copyright {
	color: var(--ew-muted);
	font-size: 14px;
	letter-spacing: .04em;
}

.ast-footer-copyright p {
	margin: 0;
}

.ast-footer-copyright a {
	color: var(--ew-sand);
}

.ast-footer-copyright a:hover,
.ast-footer-copyright a:focus-visible {
	color: var(--ew-gold);
}

.ew-legal__sep,
.ew-footer-sep {
	margin: 0 10px;
	opacity: .6;
}

/* -------------------------------------- inner pages: glowing gold lines */

.ew-inner .site-content {
	position: relative;
	isolation: isolate;
	padding-bottom: clamp(120px, 15vw, 230px);
}

.ew-inner .site-content::before,
.ew-inner .site-content::after {
	content: "";
	position: absolute;
	z-index: -1;
	background-repeat: no-repeat;
	pointer-events: none;
}

/* Top right, behind the page title. */
.ew-inner .site-content::before {
	top: 32px;
	right: 0;
	width: min(78vw, 1150px);
	aspect-ratio: 1440 / 320;
	background-image: url(../img/gold-wave-top.svg);
	background-position: right center;
	background-size: contain;
}

/* Full width, above the footer (the SVG stretches to the full width). */
.ew-inner .site-content::after {
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(110px, 18vw, 300px);
	background-image: url(../img/gold-wave-bottom.svg);
	background-position: center bottom;
	background-size: 100% 100%;
}

/* A page can switch the lines off: CSS class "ew-no-waves" on any container. */
.ew-inner:has(.ew-no-waves) .site-content::before,
.ew-inner:has(.ew-no-waves) .site-content::after {
	content: none;
}

/* ----------------------------------------------------------- page header */

.ew-kicker .elementor-heading-title {
	color: var(--ew-gold);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .32em;
	line-height: 1.5;
	text-transform: uppercase;
}

.ew-title .elementor-heading-title {
	color: var(--ew-head);
	font-size: clamp(40px, 5.2vw, 68px);
	font-weight: 200;
	letter-spacing: .01em;
	line-height: 1.08;
}

.ew-subtitle .elementor-heading-title {
	color: var(--ew-head);
	font-size: clamp(20px, 2.1vw, 30px);
	font-weight: 300;
	line-height: 1.3;
}

/* Short glowing gold bar under a heading. */
.ew-bar::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin-top: 24px;
	border-radius: 2px;
	background: var(--ew-bar);
	box-shadow: var(--ew-bar-glow);
}

.ew-bar-center::after {
	margin-left: auto;
	margin-right: auto;
}

/* ------------------------------------------------------------- sections */

.ew-split .elementor-widget-heading h2.elementor-heading-title,
.ew-block-title h2.elementor-heading-title {
	color: var(--ew-head);
	font-size: clamp(30px, 3vw, 40px);
	font-weight: 300;
}

.ew-split .ew-bar::after,
.ew-block-title .ew-bar::after {
	margin-top: 20px;
}

/* Thin vertical divider (a border set in Elementor → Style → Border overrides it). */
.e-con.ew-divider,
.e-con.ew-three__col + .e-con.ew-three__col {
	border-left: 1px solid var(--ew-line);
}

.ew-lead {
	font-size: clamp(20px, 2vw, 24px);
}

.ew-card-title .elementor-heading-title {
	color: var(--ew-head);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 300;
}

/* Three columns with line icons. */
.ew-icon {
	color: var(--ew-gold);
	line-height: 0;
}

.ew-line-icon {
	width: 64px;
	height: 64px;
	filter: drop-shadow(0 0 6px rgba(217, 169, 87, .35));
}

.ew-three__title .elementor-heading-title {
	color: var(--ew-head);
	font-size: 27px;
	font-weight: 600;
}

.ew-three__text {
	font-size: 17px;
}

/* Works grid. */
.ew-work__title .elementor-heading-title {
	color: var(--ew-head);
	font-size: 22px;
	font-weight: 300;
}

.ew-work__caption {
	color: var(--ew-muted);
	font-size: 15px;
	letter-spacing: .04em;
}

/* Legal texts. */
.ew-prose h3 {
	margin: 1.8em 0 .5em;
	color: var(--ew-head);
	font-size: 22px;
	font-weight: 400;
}

.ew-prose h3:first-child {
	margin-top: 0;
}

/* ---------------------------------------------------------- round photos */

.ew-round img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 1px solid rgba(217, 169, 87, .75);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 24px rgba(217, 169, 87, .18);
	transition: filter .6s ease, box-shadow .6s ease;
}

.ew-round a {
	display: block;
	border-radius: 50%;
}

.ew-round a:hover img,
.ew-round a:focus-visible img {
	filter: brightness(1.08);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 36px rgba(217, 169, 87, .32);
}

/* ------------------------------------------------------------- home page */

/* Proportions follow the design (2000 px wide): name 66 px, circles 30.7 % of the
   content width, labels 46 px. Below 2000 px everything scales with the screen
   width. The roles line stops growing at 28.5 px, so it always fits on one line
   within the 1200 px header width. Sizes set in Elementor on an element override
   these. */
.ew-home {
	background: radial-gradient(ellipse 62% 58% at 50% 56%, rgba(46, 36, 30, .32), rgba(0, 0, 0, 0) 72%);
}

.ew-home-name .elementor-heading-title {
	color: var(--ew-head);
	font-size: clamp(30px, 3.3vw, 66px);
	font-weight: 300;
	letter-spacing: .005em;
	line-height: 1.15;
}

.ew-home-roles .elementor-heading-title {
	padding-top: .32em;
	color: rgba(245, 240, 232, .84);
	font-size: clamp(13px, 1.55vw, 28.5px);
	font-weight: 400;
	letter-spacing: .045em;
	line-height: 1.5;
}

.ew-trio__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	transition: filter .6s ease;
}

.ew-trio__photo a {
	display: block;
	border-radius: 50%;
}

.ew-trio__item:hover .ew-trio__photo img,
.ew-trio__photo a:focus-visible img {
	filter: brightness(1.07);
}

/* The mist lies over the photos: clicks pass through to the photos, also in the
   Elementor editor (select the mist in the Structure panel; once selected it can be
   dragged). */
.ew-mist {
	pointer-events: none;
}

.elementor-editor-active .ew-mist.elementor-element-editable {
	pointer-events: auto;
}

/* Editor with "show hidden elements" on: skip the other device's mist layer, which
   would otherwise cover the photos as a large grey overlay. */
.elementor-editor-active[data-elementor-device-mode="widescreen"] .ew-mist.elementor-hidden-widescreen,
.elementor-editor-active[data-elementor-device-mode="desktop"] .ew-mist.elementor-hidden-desktop,
.elementor-editor-active[data-elementor-device-mode="laptop"] .ew-mist.elementor-hidden-laptop,
.elementor-editor-active[data-elementor-device-mode="tablet_extra"] .ew-mist.elementor-hidden-tablet_extra,
.elementor-editor-active[data-elementor-device-mode="tablet"] .ew-mist.elementor-hidden-tablet,
.elementor-editor-active[data-elementor-device-mode="mobile_extra"] .ew-mist.elementor-hidden-mobile_extra,
.elementor-editor-active[data-elementor-device-mode="mobile"] .ew-mist.elementor-hidden-mobile {
	display: none !important;
}

/* Elementor caps widgets in containers at 100 % width – the mist band is wider. */
.elementor.elementor .e-con > .elementor-widget.ew-mist,
.elementor.elementor .e-con > .e-con-inner > .elementor-widget.ew-mist {
	max-width: none;
}

.ew-mist img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.ew-trio__label .elementor-heading-title {
	padding: 0 8%;
	color: #fff;
	font-size: clamp(16px, 2.3vw, 46px);
	font-weight: 400;
	letter-spacing: .015em;
	line-height: 1.22;
	text-shadow: 0 0 22px rgba(70, 50, 34, .35), 0 1px 2px rgba(0, 0, 0, .14);
}

.ew-trio__label .elementor-heading-title a,
.ew-trio__label .elementor-heading-title a:hover,
.ew-trio__label .elementor-heading-title a:focus-visible {
	color: inherit;
}

@media (max-width: 767px) {
	.ew-home-name .elementor-heading-title {
		font-size: clamp(30px, 8.8vw, 40px);
	}

	.ew-home-roles .elementor-heading-title {
		font-size: clamp(13px, 3.6vw, 16px);
		line-height: 1.6;
	}

	.ew-trio__label .elementor-heading-title {
		font-size: clamp(20px, 6.6vw, 30px);
	}
}

/* --------------------------------------------------------------- buttons */

.ew-btn .elementor-button {
	padding: 13px 26px;
	border: 1px solid var(--ew-gold);
	border-radius: 2px;
	background-color: transparent;
	color: var(--ew-head);
	fill: var(--ew-head);
	font-family: inherit;
	font-size: 17px;
	font-weight: 300;
	letter-spacing: .02em;
	line-height: 1.2;
	transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}

.ew-btn .elementor-button:hover,
.ew-btn .elementor-button:focus-visible {
	background-color: rgba(217, 169, 87, .12);
	color: #fff;
	box-shadow: 0 0 18px rgba(217, 169, 87, .25);
}

.ew-btn .elementor-button-content-wrapper {
	gap: 14px;
}

.ew-btn .elementor-button-icon,
.ew-btn .elementor-button-icon svg {
	color: var(--ew-gold);
	fill: var(--ew-gold);
}

.ew-btn .elementor-button-icon svg {
	width: .85em;
	height: .85em;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 767px) {
	.e-con.ew-divider,
	.e-con.ew-three__col + .e-con.ew-three__col {
		border-left: 0;
	}

	.ew-inner .site-content {
		padding-bottom: 96px;
	}

	.ew-inner .site-content::before {
		top: 6px;
		width: 92vw;
		opacity: .75;
	}

	.ew-three__title .elementor-heading-title {
		font-size: 25px;
	}
}
