/*
Theme Name: Mittelmühle Hero
Theme URI: https://bw003.gelsenkirchen-werbeagentur.de/
Author: Gelsenkirchen Werbeagentur
Description: Schlankes Elementor-Theme für den Mittelmühle-Auftritt.
Version: 1.0.2
Text Domain: mittelmuehle-hero
*/

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --mm-moss: #36402c;
  --mm-olive: #736e51;
  --mm-sand: #f3eee3;
  --mm-paper: #fbf9f4;
  --mm-clay: #a8743a;
  --mm-text: #2a2a24;
  --mm-footer: #2b3324;
  --mm-content: 1200px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--mm-paper);
  color: var(--mm-text);
  font-family: "Jost", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.mm-hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  height: 100svh;
  max-height: 940px;
  overflow: hidden;
  color: #fff;
  background: #263026 url("assets/hero-mittelmuehle.webp") center center / cover no-repeat;
}

/* Elementor setzt Container-Höhen über eigene Variablen. Diese Regel hält den
   Hero unabhängig von Editor-Defaults zuverlässig auf voller Viewport-Höhe. */
.elementor .mm-hero {
  min-height: 680px !important;
  height: 100vh !important;
  height: 100svh !important;
}

.mm-hero > .elementor-element,
.mm-hero > .elementor-element > .elementor-widget-container {
  width: 100%;
  height: 100%;
}

.mm-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 24, 18, .64) 0%, rgba(17, 24, 18, .47) 38%, rgba(17, 24, 18, .22) 72%, rgba(17, 24, 18, .18) 100%),
    linear-gradient(180deg, rgba(15, 20, 17, .42) 0%, rgba(15, 20, 17, .04) 35%, rgba(15, 20, 17, .3) 100%);
}

.mm-hero > .elementor-element {
  position: relative;
  z-index: 1;
}

.mm-shell {
  width: min(var(--mm-content), calc(100% - 48px));
  margin-inline: auto;
}

.mm-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: 30px;
}

.mm-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.mm-brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 0;
}

.mm-brand__mark img {
  display: block;
  width: 46px;
  height: 46px;
}

.mm-brand__copy {
  gap: 0;
}

.mm-brand__name {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: .9;
  letter-spacing: .01em;
}

.mm-brand__name .elementor-heading-title,
.mm-brand__name .elementor-heading-title a {
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
}

.mm-brand__sub {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mm-brand__sub p {
  margin: 0;
}

.mm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: clamp(20px, 2vw, 36px);
}

.mm-nav > .elementor-widget-container {
  width: 100%;
}

.mm-nav .elementor-nav-menu {
  justify-content: flex-end;
  gap: clamp(18px, 1.7vw, 32px);
}

.mm-nav .elementor-nav-menu > li > a {
  padding: 14px 0;
}

.mm-nav a {
  position: relative;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mm-nav a:not(.mm-nav__cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.mm-nav a:hover::after,
.mm-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mm-nav__cta {
  margin-left: 2px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--mm-text) !important;
  font-weight: 500 !important;
  letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}

.mm-nav__cta:hover,
.mm-nav__cta:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.mm-header-cta {
  flex: 0 0 auto;
}

.mm-header-cta .elementor-button {
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--mm-text);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.mm-language {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
}

.mm-language a {
  display: grid;
  min-width: 39px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.mm-language a[aria-current="page"] {
  background: #fff;
  color: var(--mm-text);
}

.mm-language__button {
  width: auto;
}

.mm-language__button .elementor-button {
  min-width: 39px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 12px;
}

.mm-language__button--active .elementor-button {
  background: #fff;
  color: var(--mm-text);
}

.mm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.mm-menu-toggle span,
.mm-menu-toggle::before,
.mm-menu-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.mm-menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.mm-menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.mm-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mm-hero__content {
  position: relative;
  display: flex;
  min-height: calc(100% - 82px);
  align-items: center;
  padding: 30px 0 72px;
}

.mm-hero__copy {
  width: min(670px, 62vw);
  margin-top: -2vh;
  gap: 0;
}

.mm-eyebrow {
  margin: 0 0 14px;
  color: #e2ccb4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.mm-eyebrow .elementor-heading-title {
  color: inherit;
  font-family: "Jost", sans-serif;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.mm-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(64px, 5.25vw, 84px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.mm-hero__text {
  max-width: 610px;
  margin: 42px 0 0;
  color: rgba(255,255,255,.94);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
}

.mm-hero__text p {
  margin: 0;
}

.mm-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.mm-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--mm-olive);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.mm-button.elementor-widget-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.mm-button .elementor-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--mm-olive);
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

.mm-button:hover,
.mm-button:focus-visible {
  background: #827c5d;
  color: #fff;
  transform: translateY(-1px);
}

.mm-button--outline {
  border-color: rgba(255,255,255,.82);
  background: rgba(20,26,20,.12);
  backdrop-filter: blur(3px);
}

.mm-button--outline .elementor-button {
  border-color: rgba(255,255,255,.82);
  background: rgba(20,26,20,.12);
  backdrop-filter: blur(3px);
}

.mm-button--outline:hover,
.mm-button--outline:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,.12);
}

@media (max-width: 1120px) {
  .mm-language,
  .mm-header-cta {
    display: none;
  }

  .mm-nav {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .mm-nav .elementor-menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: var(--mm-olive);
    color: #fff;
    font-size: 20px;
  }

  .mm-nav .elementor-nav-menu--dropdown {
    position: absolute;
    top: 72px;
    right: 0;
    width: min(360px, calc(100vw - 48px));
    padding: 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(43,51,36,.97);
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
  }

  .mm-nav .elementor-nav-menu--dropdown a {
    padding: 13px 14px;
  }
}

@media (max-width: 767px) {
  .mm-hero {
    min-height: 760px;
    height: 100svh;
    max-height: none;
    background-position: 57% center;
  }

  .elementor .mm-hero {
    min-height: 760px !important;
    height: 100vh !important;
    height: 100svh !important;
  }

  .mm-hero::before {
    background:
      linear-gradient(180deg, rgba(20,27,21,.5) 0%, rgba(20,27,21,.12) 28%, rgba(20,27,21,.68) 66%, rgba(20,27,21,.86) 100%),
      linear-gradient(90deg, rgba(20,27,21,.3), rgba(20,27,21,.1));
  }

  .mm-shell {
    width: min(100% - 36px, var(--mm-content));
  }

  .mm-header {
    min-height: 72px;
  }

  .mm-brand__mark {
    width: 39px;
    height: 39px;
  }

  .mm-brand__mark img {
    width: 39px;
    height: 39px;
  }

  .mm-brand__name {
    font-size: 23px;
  }

  .mm-brand__sub {
    margin-top: 6px;
    font-size: 7px;
  }

  .mm-hero__content {
    min-height: calc(100% - 72px);
    align-items: flex-end;
    padding: 42px 0 48px;
  }

  .mm-hero__copy {
    width: 100%;
    margin: 0;
  }

  .mm-eyebrow {
    margin-bottom: 11px;
    font-size: 11px;
    letter-spacing: .16em;
  }

  .mm-hero h1 {
    font-size: 44px;
    line-height: 1.07;
  }

  .mm-hero__text {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.55;
  }

  .mm-hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
  }

  .mm-button {
    width: 100%;
  }

  .mm-button .elementor-button,
  .mm-button .elementor-button-wrapper {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Native Elementor widget/container normalization */
.elementor .mm-hero {
  --flex-direction: column;
  --justify-content: flex-start;
  --align-items: stretch;
  --gap: 0px;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  gap: 0 !important;
  padding: 0 !important;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 18, .64) 0%, rgba(17, 24, 18, .47) 38%, rgba(17, 24, 18, .22) 72%, rgba(17, 24, 18, .18) 100%),
    linear-gradient(180deg, rgba(15, 20, 17, .42) 0%, rgba(15, 20, 17, .04) 35%, rgba(15, 20, 17, .3) 100%),
    url("assets/hero-mittelmuehle.webp") !important;
}

.elementor .mm-hero::before {
  content: none !important;
}

.elementor .mm-shell {
  --width: min(var(--mm-content), calc(100% - 48px));
  width: min(var(--mm-content), calc(100% - 48px)) !important;
  max-width: var(--mm-content) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.elementor .mm-header {
  --flex-direction: row;
  --justify-content: flex-start;
  --align-items: center;
  --gap: 30px;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  flex-wrap: nowrap;
  height: 82px;
  min-height: 82px;
  gap: 30px !important;
  padding: 0 !important;
  flex-direction: row !important;
}

.elementor .mm-brand {
  --width: auto;
  --flex-direction: row;
  --justify-content: flex-start;
  --align-items: center;
  --gap: 12px;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  width: auto !important;
  flex: 0 0 auto;
  height: 46px;
  gap: 12px !important;
  padding: 0 !important;
  flex-direction: row !important;
}

.elementor .mm-brand__copy {
  --width: auto;
  --flex-direction: column;
  --gap: 0px;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  width: 212px !important;
  gap: 0 !important;
  padding: 0 !important;
  flex-direction: column !important;
}

.elementor .mm-brand__mark {
  width: 46px;
  max-width: 46px;
}

.elementor .mm-brand__name,
.elementor .mm-brand__sub,
.elementor .mm-eyebrow,
.elementor .mm-title,
.elementor .mm-hero__text,
.elementor .mm-button,
.elementor .mm-header-cta,
.elementor .mm-language__button {
  --width: auto;
  width: auto;
}

.elementor .mm-brand__name .elementor-heading-title,
.elementor .mm-brand__name .elementor-heading-title a {
  color: #fff !important;
}

.elementor .mm-brand__sub,
.elementor .mm-brand__sub p {
  color: #fff !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .18em !important;
  white-space: nowrap;
}

.elementor .mm-nav {
  --width: auto;
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.elementor .mm-nav .elementor-item {
  color: rgba(255,255,255,.94) !important;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.elementor .mm-nav .elementor-nav-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
}

.elementor .mm-nav .elementor-nav-menu > li {
  flex: 0 0 auto;
}

.elementor .mm-header-cta {
  flex: 0 0 auto;
  width: 150px;
}

.elementor .mm-header-cta .elementor-button {
  background: rgba(255,255,255,.95) !important;
  color: var(--mm-text) !important;
}

.elementor .mm-language {
  --width: auto;
  --flex-direction: row;
  --justify-content: flex-start;
  --align-items: center;
  --gap: 0px;
  --padding-top: 3px;
  --padding-right: 3px;
  --padding-bottom: 3px;
  --padding-left: 3px;
  width: auto !important;
  flex: 0 0 auto;
  width: 88px !important;
  gap: 0 !important;
  padding: 3px !important;
  border: 1px solid rgba(255,255,255,.85) !important;
  border-radius: 999px !important;
}

.elementor .mm-language__button {
  width: 39px !important;
}

.elementor .mm-language__button .elementor-button {
  background: transparent !important;
  color: #fff !important;
}

.elementor .mm-language__button--active .elementor-button {
  background: #fff !important;
  color: var(--mm-text) !important;
}

.elementor .mm-hero__content {
  --flex-direction: column;
  --justify-content: center;
  --align-items: flex-start;
  --gap: 0px;
  --padding-top: 30px;
  --padding-right: 0px;
  --padding-bottom: 72px;
  --padding-left: 0px;
  min-height: calc(100% - 82px);
  height: calc(100% - 82px);
  gap: 0 !important;
  padding: 30px 0 72px !important;
}

.elementor .mm-hero__copy {
  --width: min(670px, 62vw);
  --flex-direction: column;
  --gap: 0px;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  width: min(670px, 62vw) !important;
  gap: 0 !important;
  padding: 0 !important;
}

.elementor .mm-eyebrow .elementor-heading-title {
  color: #e2ccb4 !important;
}

.elementor .mm-title .elementor-heading-title {
  color: #fff !important;
  font-family: "Cormorant Garamond", serif !important;
  font-size: clamp(64px, 5.25vw, 84px) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: -.015em !important;
}

.elementor .mm-hero__text,
.elementor .mm-hero__text p {
  color: rgba(255,255,255,.94) !important;
  font-family: "Jost", sans-serif !important;
  font-size: 18px !important;
  font-weight: 300 !important;
  line-height: 1.65 !important;
}

.elementor .mm-hero__actions {
  --width: auto;
  --flex-direction: row;
  --justify-content: flex-start;
  --align-items: center;
  --gap: 14px;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  width: auto !important;
  gap: 14px !important;
  padding: 0 !important;
}

.elementor .mm-button--primary .elementor-button {
  background: var(--mm-olive) !important;
  color: #fff !important;
}

.elementor .mm-button--outline .elementor-button {
  border-color: rgba(255,255,255,.82) !important;
  background: rgba(20,26,20,.12) !important;
  color: #fff !important;
}

@media (max-width: 1120px) {
  .elementor .mm-language,
  .elementor .mm-header-cta {
    display: none !important;
  }

  .elementor .mm-nav {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .elementor .mm-shell {
    --width: min(100% - 36px, var(--mm-content));
    width: min(100% - 36px, var(--mm-content)) !important;
  }

  .elementor .mm-header {
    --gap: 16px;
    height: 72px;
    min-height: 72px;
    gap: 16px !important;
  }

  .elementor .mm-brand__mark {
    width: 39px;
    max-width: 39px;
  }

  .elementor .mm-hero__content {
    --justify-content: flex-end;
    --padding-top: 42px;
    --padding-bottom: 48px;
    min-height: calc(100% - 72px);
    height: calc(100% - 72px);
    padding: 42px 0 48px !important;
  }

  .elementor .mm-hero__copy {
    --width: 100%;
    width: 100% !important;
  }

  .elementor .mm-title .elementor-heading-title {
    font-size: 44px !important;
    line-height: 1.07 !important;
  }

  .elementor .mm-hero__text,
  .elementor .mm-hero__text p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .elementor .mm-hero__actions {
    --width: 100%;
    --flex-direction: column;
    --align-items: stretch;
    --gap: 10px;
    width: 100% !important;
  }

  .elementor .mm-button,
  .elementor .mm-button .elementor-button-wrapper,
  .elementor .mm-button .elementor-button {
    width: 100% !important;
  }
}
