/*
Theme Name: Mitsubishi Electric Europe B.V. WordPress Theme V2.0
Author: Mitsubishi Electric Europe B.V.
Author URI: https://www.cityupdate.de
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: mitsubishi-electric-europe-b-v-wordpress-theme-v2-0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   FONTS
   ========================================================================== */

/* roboto-300 - latin */
@font-face {
	font-display: swap;
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 300;
	src: url('assets/fonts/roboto-v50-latin-300.woff2') format('woff2');
}

/* roboto-regular - latin */
@font-face {
	font-display: swap;
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	src: url('assets/fonts/roboto-v50-latin-regular.woff2') format('woff2');
}

/* roboto-500 - latin */
@font-face {
	font-display: swap;
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 500;
	src: url('assets/fonts/roboto-v50-latin-500.woff2') format('woff2');
}

/* roboto-700 - latin */
@font-face {
	font-display: swap;
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	src: url('assets/fonts/roboto-v50-latin-700.woff2') format('woff2');
}

/* roboto-900 - latin */
@font-face {
	font-display: swap;
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 900;
	src: url('assets/fonts/roboto-v50-latin-900.woff2') format('woff2');
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
	margin: 0;
}

body.nav-open {
	overflow: hidden;
}

* {
	box-sizing: border-box;
}

/* Links */
a {
	color: #f50f10;
	text-decoration: none;
	transition: 0.3s;
}

a:hover {
	color: #000;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	margin-top: 0;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2.5rem;
}

h3 {
	font-size: 1.5rem;
}

/* Content Wrapper */
.content-wrapper {
	max-width: 1380px;
	margin: 0 auto;
	padding: 0 30px;
    text-align: center;
}

.block-wrapper {
	padding: 60px 0;
}

/* Main content area */
.site-main {
	min-height: calc(100vh - 85px - 260px);
}

.entry-content {
	line-height: 1.5;
}

.entry-content p {
	margin-bottom: 1.5rem;
}

/* WordPress Block Editor Styles */
.wp-block-group {
	max-width: 1380px;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	max-width: 1380px;
}

.alignfull {
	max-width: none;
	width: 100%;
}

/* ==========================================================================
   HEADER STYLES — matches gs18-Header
   ========================================================================== */

/* gs18-Header — outer wrapper */
.site-header {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	right: 0;
	margin: 0 auto;
	box-sizing: border-box;
	transition: 0.4s top;
}

.site-header.scroll-hide {
	top: -90px;
}

/* gs18-Header__Inner — flex container */
.header-inner {
	display: flex;
	max-width: 1380px;
	margin-left: auto;
	margin-right: auto;
	height: 85px;
	align-items: center;
	justify-content: space-between;
	background-color: #fff;
}

/* gs18-Header__Logo */
.header-logo {
	order: 1;
	margin: 6px 0 0;
	padding: 0 16px;
	font-size: 36px;
	border-right: 0;
}

.header-logo a {
	text-decoration: none;
}

.header-logo img {
	height: 36px;
	width: auto;
	vertical-align: baseline;
}

/* gs18-Header__Lang — Branch / Company Name (--withme variant) */
.header-branch {
	order: 2;
	margin: 0 10px 0 16px;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	flex-grow: 2;
	-webkit-font-smoothing: antialiased;
	white-space: nowrap;
}

/* gs18-HeaderNav */
.header-nav {
	order: 3;
	margin: 0 auto;
	height: 85px;
}

/* gs18-HeaderNav__Menu */
.header-nav__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	height: 85px;
	list-style: none;
}

/* gs18-HeaderNav__Item */
.header-nav__menu > li {
	transition: 0.4s opacity;
	height: 100%;
}

/* gs18-HeaderNav__Text */
.header-nav__menu > li > a {
	display: flex;
	align-items: center;
	padding: 0 15px;
	height: 100%;
	font-size: 18px;
	font-weight: 500;
	text-align: center;
	color: #000;
	text-decoration: none;
	white-space: nowrap;
}

.header-nav__menu > li > a:link,
.header-nav__menu > li > a:visited {
	color: #000;
	text-decoration: none;
}

.header-nav__menu > li > a:active,
.header-nav__menu > li > a:focus,
.header-nav__menu > li > a:hover {
	color: #f50f10;
}

.header-nav__menu > li.current-menu-item > a:active,
.header-nav__menu > li.current-menu-item > a:focus,
.header-nav__menu > li.current-menu-item > a:hover {
	color: #f50f10;
}

/* gs18-Header__Global */
.header-global {
	order: 4;
	margin-left: 0;
	height: 100%;
}

/* gs18-Header__GlobalLink — Globe icon (pseudo-element layers) */
.header-global__link {
	display: inline-block;
	position: relative;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	width: 66px;
	height: 100%;
}

.header-global__link::after,
.header-global__link::before {
	position: absolute;
	right: 0;
	top: 0;
	content: "";
	display: inline-block;
	background: #fff no-repeat center;
	background-size: 26px auto;
	width: 100%;
	height: 100%;
}

.header-global__link::before {
	background-image: url(assets/icons/Global-R.svg);
}

.header-global__link::after {
	background-image: url(assets/icons/Global.svg);
}

.header-global__link:active::after,
.header-global__link:focus::after,
.header-global__link:hover::after {
	opacity: 0;
}

.header-global__link.is-open {
	background-color: #000;
}

.header-global__link.is-open::before {
	background-color: #000;
}

.header-global__link.is-open::after {
	background-image: url(assets/icons/Global-W.svg);
	background-color: #000;
}

/* gs18-Header__Hamburger — hidden on desktop */
.header-hamburger {
	display: none;
}

/* Language Overlay */
.lang-overlay {
	display: none;
	position: fixed;
	top: 85px;
	left: 0;
	width: 100%;
	height: calc(100vh - 85px);
	background: #f5f5f5;
	z-index: 9998;
	overflow-y: auto;
}

.lang-overlay.is-open {
	display: block;
}

.lang-overlay__inner {
	position: relative;
	max-width: 1380px;
	margin: 0 auto;
	padding: 40px 30px 60px;
}

.lang-overlay__close {
	position: absolute;
	top: 20px;
	right: 30px;
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #000;
	cursor: pointer;
	padding: 0;
	width: 40px;
	height: 40px;
}

.lang-overlay__close:hover {
	color: #f50f10;
}

.lang-overlay__title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 40px;
	color: #000;
}

.lang-overlay__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #989898;
}

.lang-overlay__list > li {
	border-bottom: 1px solid #989898;
}

.lang-overlay__list > li > a {
	display: block;
	position: relative;
	padding: 15px 30px 15px 0;
	font-size: 18px;
	font-weight: 500;
	color: #000;
	text-decoration: none;
}

.lang-overlay__list > li > a::before {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #000;
	border-left: 2px solid #000;
	transform: translateY(-50%) rotate(135deg);
}

.lang-overlay__list > li > a:hover,
.lang-overlay__list > li > a:focus {
	color: #f50f10;
}

.lang-overlay__list > li > a:hover::before,
.lang-overlay__list > li > a:focus::before {
	border-color: #f50f10;
}

/* Body padding for fixed header */
body {
	padding-top: 85px;
}

/* ==========================================================================
   HEADER RESPONSIVE — matches gs18 @media (max-width: 980px)
   ========================================================================== */

@media only screen and (max-width: 980px) {
	/* gs18-Header mobile */
	.site-header {
		width: 100%;
		padding: 0;
	}

	/* gs18-Header__Inner mobile */
	.header-inner {
		height: 65px;
	}

	body {
		padding-top: 65px;
	}

	/* gs18-Header__Logo mobile */
	.header-logo {
		padding-right: 13px;
		border-right: 0;
	}

	.header-logo img {
		height: 36px;
		width: auto;
	}

	/* gs18-Header__Lang mobile */
	.header-branch {
		margin-right: auto;
		margin-left: 0;
		font-size: 11px;
	}

	/* gs18-Header__Global mobile */
	.header-global {
		padding-left: 0;
		margin-left: auto;
	}

	.header-global__link {
		width: 48px;
	}

	/* gs18-Header__Hamburger — visible on mobile */
	.header-hamburger {
		display: flex;
		align-items: center;
		justify-content: center;
		order: 10;
		width: 48px;
		height: 100%;
		text-align: center;
		border-color: #e1e1e1;
		border-width: 0 0 0 1px;
		border-style: solid;
	}

	.header-hamburger .icon-close {
		display: none;
	}

	.header-hamburger.is-open-small .icon-menu {
		display: none;
	}

	.header-hamburger.is-open-small .icon-close {
		display: block;
	}

	/* gs18-HeaderNav mobile — slide-in */
	.header-nav {
		transition: 0.5s transform;
		position: fixed;
		top: 65px;
		left: 0;
		width: 100%;
		height: calc(100vh - 65px);
		display: block;
		transform: translateX(100%);
		margin: 0;
		background: #fff;
		overflow-y: auto;
		z-index: 5;
	}

	.header-nav.is-open {
		transform: translateX(0);
	}

	/* gs18-HeaderNav__Menu mobile */
	.header-nav__menu {
		display: block;
		height: auto;
		border-top: 1px solid #e1e1e1;
		width: 100%;
	}

	/* gs18-HeaderNav__Item mobile */
	.header-nav__menu > li {
		height: auto;
		background-color: #fff;
		border-bottom: 1px solid #e1e1e1;
	}

	/* gs18-HeaderNav__Text mobile */
	.header-nav__menu > li > a {
		position: relative;
		display: block;
		font-size: 24px;
		min-height: 85px;
		box-sizing: border-box;
		padding: 30px 40px 30px 16px;
		width: 100%;
		height: auto;
		text-align: left;
	}

	/* Chevron arrow — gs18-HeaderNav__Text::before */
	.header-nav__menu > li > a::before {
		content: "";
		position: absolute;
		top: 50%;
		right: 20px;
		width: 6px;
		height: 6px;
		border-top: 1px solid #000;
		border-left: 1px solid #000;
		transform: translateY(-50%) rotate(-225deg);
	}

	/* gs18-HeaderNav__Text mobile hover */
	.header-nav__menu > li > a:active,
	.header-nav__menu > li > a:focus,
	.header-nav__menu > li > a:hover {
		color: #000;
	}

	/* Active state mobile */
	.header-nav__menu > li.current-menu-item > a {
		background-color: #000;
		color: #fff;
	}

	.header-nav__menu > li.current-menu-item > a::before {
		border-color: #fff;
	}

	.header-nav__menu > li.current-menu-item > a:active,
	.header-nav__menu > li.current-menu-item > a:focus,
	.header-nav__menu > li.current-menu-item > a:hover {
		color: #fff;
	}

	/* Language overlay mobile */
	.lang-overlay {
		top: 65px;
		height: calc(100vh - 65px);
	}

	.lang-overlay__inner {
		padding: 30px 15px 40px;
	}

	.lang-overlay__close {
		top: 10px;
		right: 15px;
	}

	.lang-overlay__title {
		font-size: 28px;
		margin: 0 0 30px;
	}

	/* Disable scroll-hide on mobile */
	.site-header.scroll-hide {
		top: 0;
	}
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
	position: relative;
	width: 100%;
	overflow: hidden;
	height: 710px;
	max-height: 710px;
	margin-top: -85px;
}

.hero-image {
	width: 100%;
	height: 100%;
}

.hero-image .hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Ausschnitt oben verankern statt mittig: bei cover fällt sonst je nach
	   Fensterbreite oben und unten gleich viel weg, wodurch Köpfe angeschnitten
	   werden. Der Beschnitt findet jetzt nur noch unten statt. */
	object-position: center top;
	display: block;
}

.hero-content {
	position: absolute;
	top: 85px;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero-content-inner {
	width: 100%;
	max-width: 1380px;
	padding: 0 30px 40px;
}

.hero-kicker {
	display: inline-block;
	color: #000;
	background-color: #fff;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0 0 10px;
	padding: 5px 12px;
	border-radius: 5px;
}

.hero-title {
	color: #fff;
	font-size: 4.5rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	max-width: 60%;
}

.hero-teaser {
	color: #fff;
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.5;
	margin: 15px 0 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	max-width: 50%;
}

.hero-graphic {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	pointer-events: none;
	max-height: 100%;
	width: auto;
}

