/*
Theme Name: MPM Theme
Theme URI: https://devvibe.io
Author: Matthias Ruf
Author URI: https://devvibe.io
Description: Minimales WordPress-Theme optimiert für Elementor Page Builder - entwickelt von devvibe.io
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mpm-theme
Tags: elementor, minimal, flexible-header, custom-colors, custom-menu

MPM Theme, Copyright 2025 Matthias Ruf / devvibe.io
MPM Theme is distributed under the terms of the GNU GPL.
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glass Box - Reusable Component */
.glass-box {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px;
  position: relative;
}

.glass-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(150deg, #e0e0e0 14.11%, #757575 82.1%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Glass Box Small - 15px Border Radius */
.glass-box-small {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px;
  position: relative;
}

.glass-box-small::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(150deg, #e0e0e0 14.11%, #757575 82.1%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* WordPress Core Styles */
.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Header & Navigation */
.site-header {
  background-color: transparent;
  padding: 56px 0 15px;
  margin-bottom: -100px;
  position: relative;
  z-index: 999;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  flex-shrink: 0;
}

.site-logo-link,
.custom-logo-link {
  display: block;
  line-height: 0;
}

.site-logo,
.custom-logo {
  width: 150px;
  height: auto;
  display: block;
}

.main-navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-wrapper {
  display: inline-block;
  overflow: visible;
}

.nav-indicator {
  position: absolute;
  top: 8px;
  left: 0;
  background-color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform-origin: left center;
}

.nav-indicator.click-animation {
  animation: indicatorClick 0.3s ease;
}

@keyframes indicatorClick {
  0% {
    transform: translateX(var(--indicator-x)) scale(1);
  }
  50% {
    transform: translateX(var(--indicator-x)) scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  100% {
    transform: translateX(var(--indicator-x)) scale(1);
  }
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  position: relative;
  z-index: 1;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 10px 24px;
  color: #fff;
  font-family:
    Gotham,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.nav-menu a:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.nav-menu a:hover,
.nav-menu a.has-indicator {
  text-decoration: none;
  color: #000 !important;
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: #000 !important;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* WPML Language Switcher */
.wpml-language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wpml-language-switcher .lang-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0.7;
  border: 2px solid transparent;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.wpml-language-switcher .lang-item:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.2);
}

.wpml-language-switcher .lang-item.active {
  opacity: 1;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.25);
}

.wpml-language-switcher .lang-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Navigation */
@media screen and (max-width: 1024px) {
  .site-header {
    padding: 20px 0 5px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .main-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 20px;
    transform: none;
    display: none;
  }

  .main-navigation.active {
    display: block;
  }

  .nav-wrapper {
    width: 100%;
    border-radius: 20px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 4px;
  }

  .nav-menu a {
    text-align: center;
    padding: 14px 20px;
    color: #000;
  }

  .nav-menu a:hover,
  .nav-menu .current-menu-item > a,
  .nav-menu .current_page_item > a {
    color: #000;
  }

  /* Language Switcher Mobile */
  .wpml-language-switcher {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .wpml-language-switcher .lang-item {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.9);
  }

  .wpml-language-switcher .lang-item:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
  }

  .wpml-language-switcher .lang-item.active {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
  }
}

@media screen and (max-width: 768px) {
  .site-header {
    padding: 10px 0 5px;
  }

  .site-logo,
  .custom-logo {
    width: 120px;
  }

  /* Language Switcher Small Mobile - bleibt zentriert */
  .wpml-language-switcher {
    top: 12px;
    gap: 6px;
  }

  .wpml-language-switcher .lang-item {
    width: 28px;
    height: 28px;
  }
}

/* Hero Slider Widget */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease-in-out,
    visibility 0s 0.8s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-slider__slide.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.8s ease-in-out,
    visibility 0s 0s;
  z-index: 1;
}

.hero-slider__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to top, var(--fade-color, #e8f5e9), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-slider__content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}

.hero-slider__content {
  width: 100%;
  padding: 70px 48px 40px;
  margin-bottom: 40px;
}

.hero-slider__content-inner {
  max-width: 100%;
}

.hero-slider__title {
  font-family:
    Gotham,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 100px;
  font-style: normal;
  font-weight: 400;
  line-height: 100px;
  letter-spacing: -6px;
  color: #fff;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-slider__subtitle {
  color: #fff;
  font-family:
    Gotham,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -1.92px;
  margin: 0 0 32px 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-slider__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 8px 7px 26px;
  height: 54px;
  background-color: #fff;
  color: #000;
  font-family:
    Gotham,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slider__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.hero-slider__cta-button:active {
  transform: translateY(0) scale(0.98);
}

.hero-slider__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #000;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-slider__cta-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.hero-slider__cta-button:hover .hero-slider__cta-icon {
  transform: rotate(45deg);
}

.hero-slider__nav-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-slider__nav-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider__nav-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-slider__nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider__nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .hero-slider__content-wrapper {
    padding: 0 40px 100px;
  }

  .hero-slider__title {
    font-size: 48px;
  }

  .hero-slider__subtitle {
    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  .hero-slider {
    height: 100svh;
  }

  .hero-slider__content-wrapper {
    padding: 0 20px 80px;
  }

  .hero-slider__content {
    padding: 32px 24px;
    margin-top: 60px;
  }

  .hero-slider__content-inner {
    max-width: 100%;
  }

  .hero-slider__title {
    font-family:
      Gotham,
      -apple-system,
      BlinkMacSystemFont,
      'Segoe UI',
      Roboto,
      sans-serif;
    font-size: clamp(32px, 8vw, 48px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.06em;
  }

  .hero-slider__subtitle {
    color: #fff;
    font-family:
      Gotham,
      -apple-system,
      BlinkMacSystemFont,
      'Segoe UI',
      Roboto,
      sans-serif;
    font-size: clamp(14px, 4vw, 18px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  .hero-slider__nav-buttons {
    flex-direction: row;
    width: 100%;
    gap: 12px;
  }

  .hero-slider__nav-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    justify-content: center;
  }
}

/* Icon Button Widget */
.mpm-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.mpm-icon-button:hover {
  transform: translateY(-2px) rotate(45deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.mpm-icon-button:active {
  transform: translateY(0) scale(0.95);
}

.mpm-icon-button__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Navigation Chips Widget */
.mpm-navigation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mpm-navigation-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-family:
    Gotham,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mpm-navigation-chip:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.mpm-navigation-chip:active {
  transform: translateY(0) scale(0.98);
}

.mpm-navigation-chip__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mpm-navigation-chip__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpm-navigation-chip__text {
  line-height: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .mpm-navigation-chips {
    flex-direction: row;
    width: 100%;
    gap: 12px;
  }

  .mpm-navigation-chip {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    justify-content: center;
  }
}

/* Elementor Compatibility */
.elementor-page {
  margin: 0;
  padding: 0;
}
