/* ==========================================================================
   Metallurgy Home – Grundlage und Theme-Rahmen
   --------------------------------------------------------------------------
   Was das neue Design auch außerhalb des Seiteninhalts braucht:
     1  Schriften (lokal, keine externen Dienste)
     2  Farben & Maße (Design-Tokens)
     3  Theme-Rahmen: obere Leiste, Hauptmenü, Mega-Menüs, mobiles Menü und
        Fußbereich des Avada-Themes

   Das Plugin lädt diese Datei
     – auf jeder Seite mit dem neuen Design (vor met-home.css) und
     – auf allen übrigen Seiten, sobald unter Einstellungen → Lesen der Haken
       „Kopf- und Fußbereich im neuen Design auf allen Seiten" gesetzt ist.
   Die Rahmen-Regeln hängen an der Body-Klasse met-frame. Sie verändern nur
   Farben, Schriften und Flächen des Rahmens, nie den Inhalt einer Seite und
   nie das Layout (das transparente Überlagern des Heros steht in
   met-home.css und gilt nur auf den neuen Seiten).
   ========================================================================== */

/* 1  Schriften ------------------------------------------------------------ */

@font-face {
	font-family: "Archivo Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "JetBrains Mono Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 100 800;
	src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "JetBrains Mono Variable";
	font-style: normal;
	font-display: swap;
	font-weight: 100 800;
	src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2  Farben & Maße -------------------------------------------------------- */

.met-page,
body.met-frame {
	/* Helles Farbkonzept: Weiß und helles Türkis als Flächen, das Türkis der
	   Website (#01737e) als prägende Farbe, tiefes Petrol als Schriftfarbe. */
	/* Tinte: tiefes Petrol – nur für Schrift */
	--met-ink-950: #04262c;
	--met-ink-900: #0b3238;
	--met-ink-800: #1d464d;
	--met-ink-700: #3a5f65;
	/* Türkis: Markenfarbe der Website mit Abstufungen */
	--met-teal-800: #014b52;
	--met-teal-700: #015a63;
	--met-teal-600: #01737e;
	--met-teal-500: #17929d;
	--met-teal-400: #25afb4;
	--met-teal-300: #63d2d5;
	--met-teal-200: #a9eaeb;
	--met-teal-100: #d7f4f4;
	--met-teal-50: #eef9f9;
	/* Stahl: neutrale, leicht türkis getönte Grautöne */
	--met-steel-50: #f5f9f9;
	--met-steel-100: #e8f1f1;
	--met-steel-200: #d4e3e4;
	--met-steel-300: #b3c6c8;
	--met-steel-400: #8fa4a7;
	--met-steel-500: #61777b;
	--met-steel-700: #32484d;
	/* Akzent: ebenfalls Türkis (kräftig) */
	--met-accent-700: #014b52;
	--met-accent-600: #01737e;
	--met-accent-500: #17929d;
	--met-accent-400: #25afb4;
	--met-accent-300: #63d2d5;
	--met-accent-100: #e3f8f8;

	--met-font: "Archivo Variable", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--met-mono: "JetBrains Mono Variable", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

	--met-gutter: clamp(20px, 5vw, 72px);
	--met-max: 1320px;
	--met-pad: max(var(--met-gutter), calc((100% - var(--met-max)) / 2));
	--met-space: clamp(84px, 11vw, 168px);
	--met-radius: clamp(16px, 1.6vw, 24px);
	--met-sheet: clamp(26px, 4vw, 56px);
	--met-ease: cubic-bezier(.2, .7, .1, 1);
	--met-ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 3  Theme-Rahmen ----------------------------------------------------------- */

/* Obere Leiste */
body.met-frame .fusion-secondary-header {
	background: var(--met-teal-600) !important;
	border-bottom: 0 !important;
	color: rgba(255, 255, 255, .9);
	font-family: var(--met-mono);
	font-size: 11px;
	letter-spacing: .08em;
}
body.met-frame .fusion-secondary-header a {
	color: rgba(255, 255, 255, .9) !important;
}
body.met-frame .fusion-secondary-header a:hover {
	color: var(--met-teal-100) !important;
}

/* Kopfzeile beim Scrollen (Sticky-Header): weiß und mattiert. Oben auf der
   Seite behält sie die Fläche des Themes – nur die neuen Seiten legen sie
   transparent über den Hero (met-home.css). */
body.met-frame .fusion-is-sticky .fusion-header {
	background: rgba(255, 255, 255, .88) !important;
	-webkit-backdrop-filter: saturate(160%) blur(18px);
	backdrop-filter: saturate(160%) blur(18px);
	box-shadow: 0 1px 0 rgba(1, 115, 126, .12), 0 12px 30px -22px rgba(1, 75, 82, .4) !important;
}

/* Hauptmenü */
body.met-frame .fusion-main-menu > ul > li:not(.fusion-main-menu-search):not(.fusion-main-menu-cart) > a {
	font-family: var(--met-font);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--met-ink-900) !important;
	border-color: transparent !important;
}
body.met-frame .fusion-main-menu > ul > li > a:hover,
body.met-frame .fusion-main-menu > ul > li.current-menu-item > a,
body.met-frame .fusion-main-menu > ul > li.current-menu-ancestor > a,
body.met-frame .fusion-main-menu > ul > li.current-menu-parent > a {
	color: var(--met-teal-600) !important;
}
body.met-frame .fusion-is-sticky .fusion-main-menu > ul > li > a {
	font-size: 15px !important;
}

/* Symbole im Menü (Schrift-Icons) in der Farbe des Menütextes statt im
   dunklen Grau des Themes */
body.met-frame .fusion-main-menu .fusion-megamenu-icon,
body.met-frame .fusion-main-menu .fusion-megamenu-icon i,
body.met-frame .fusion-megamenu-holder .fusion-megamenu-icon,
body.met-frame .fusion-megamenu-holder .fusion-megamenu-icon i {
	color: inherit !important;
}
body.met-frame .fusion-main-menu .fusion-main-menu-icon,
body.met-frame .fusion-main-menu .fusion-main-menu-icon::before,
body.met-frame .fusion-main-menu .fusion-main-menu-icon::after {
	color: var(--met-ink-900) !important;
}

/* Bild-Symbol eines Hauptmenüpunkts (z. B. „Montanuniversität"): Avada zwingt
   es in ein festes Quadrat (Menü-Vorschaubild 23 × 23 px) – das querformatige
   Logo (30 × 20 px) war dadurch verzerrt. Hier behält es sein Seitenverhältnis
   und wird nie über seine eigene Größe hinaus vergrößert. */
body.met-frame .fusion-main-menu > ul > li > a > .fusion-megamenu-image {
	width: auto !important;
	max-width: none !important;
}
body.met-frame .fusion-main-menu > ul > li > a > .fusion-megamenu-image > img {
	width: auto !important;
	height: auto !important;
	max-width: none !important;
	max-height: var(--menu_thumbnail_size-height, 23px) !important;
}

/* Aufklappmenü (Mega-Menü und einfache Untermenüs) */
body.met-frame .fusion-main-menu .fusion-dropdown-menu > .sub-menu {
	background: rgba(255, 255, 255, .97) !important;
}

/* Mega-Menüs: hell; eigene Hintergrundbilder bleiben unverändert sichtbar */
body.met-frame .fusion-megamenu-holder {
	position: relative;
	background-color: rgba(255, 255, 255, .97) !important;
}
body.met-frame .fusion-megamenu-holder :is(h1, h2, h3, h4, h5, h6, .widget-title, .fusion-megamenu-title, .fusion-megamenu-title a) {
	color: var(--met-ink-950) !important;
}
body.met-frame .fusion-megamenu-holder a {
	color: var(--met-ink-800) !important;
}
body.met-frame .fusion-megamenu-holder a:hover {
	color: var(--met-teal-600) !important;
}
body.met-frame .fusion-megamenu-holder,
body.met-frame .fusion-main-menu .fusion-dropdown-menu > .sub-menu {
	border: 1px solid rgba(1, 115, 126, .12) !important;
	border-top: 3px solid var(--met-teal-600) !important;
	border-radius: 0 0 18px 18px;
	box-shadow: 0 34px 70px -34px rgba(1, 75, 82, .45) !important;
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	overflow: hidden;
}
body.met-frame .fusion-megamenu-holder .fusion-megamenu-submenu {
	border-color: rgba(1, 115, 126, .1) !important;
}
body.met-frame .fusion-megamenu-holder .fusion-megamenu-title,
body.met-frame .fusion-megamenu-holder .fusion-megamenu-title a {
	font-family: var(--met-font) !important;
	font-stretch: 75%;
	font-size: 20px !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	color: var(--met-ink-950) !important;
}
body.met-frame .fusion-megamenu-holder .sub-menu a,
body.met-frame .fusion-main-menu .fusion-dropdown-menu > .sub-menu a {
	font-family: var(--met-font) !important;
	font-size: 15px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--met-ink-800) !important;
	background: transparent !important;
	border-color: rgba(1, 115, 126, .08) !important;
}
body.met-frame .fusion-megamenu-holder .sub-menu a:hover,
body.met-frame .fusion-main-menu .fusion-dropdown-menu > .sub-menu a:hover {
	color: var(--met-teal-600) !important;
	background: var(--met-teal-50) !important;
}

/* Mobiles Menü */
body.met-frame .fusion-mobile-menu-icons a,
body.met-frame .fusion-mobile-menu-icons a::before {
	color: var(--met-teal-700) !important;
}
body.met-frame .fusion-mobile-nav-holder > ul,
body.met-frame .fusion-mobile-nav-holder .fusion-mobile-nav-item a,
body.met-frame .fusion-mobile-nav-holder li a {
	font-family: var(--met-font) !important;
	letter-spacing: 0 !important;
	color: var(--met-ink-900) !important;
	background: rgba(255, 255, 255, .98) !important;
	border-color: rgba(1, 115, 126, .1) !important;
}
body.met-frame .fusion-mobile-nav-holder li a:hover,
body.met-frame .fusion-mobile-nav-holder li.current-menu-item > a {
	color: var(--met-teal-600) !important;
}

/* Fußbereich in Türkis */
body.met-frame .fusion-footer-widget-area {
	background: var(--met-teal-600) !important;
	border-top: 0 !important;
	font-family: var(--met-font);
	color: rgba(255, 255, 255, .9);
}
body.met-frame .fusion-footer-widget-area :is(h1, h2, h3, h4, h5, h6, p, li, span, a) {
	color: rgba(255, 255, 255, .92) !important;
}
body.met-frame .fusion-footer-widget-area a:hover {
	color: var(--met-teal-100) !important;
}
body.met-frame .fusion-footer-copyright-area {
	background: var(--met-teal-700) !important;
	border-top: 0 !important;
	font-family: var(--met-mono);
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .75);
}
body.met-frame .fusion-footer-copyright-area :is(a, span, div, p) {
	color: rgba(255, 255, 255, .8) !important;
}

/* Handy: Die obere Leiste entfällt – Telefon, E-Mail, Social Media, MU Online
   und Pure stehen alle auch im Fußbereich. */
@media (max-width: 780px) {
	body.met-frame .fusion-secondary-header {
		display: none;
	}
}
