/*
Theme Name: Hello Elementor Child
Description: Hello Elementor Child Theme
Author: Your Name
Template: hello-elementor
Version: 1.0.0
*/

/* Typography Styles from heinrichmanten.de - UIKit Framework */

/* Global Heading Styles - Phase 1: Increased specificity to prevent Elementor overrides */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: normal;
    color: #333;
    text-transform: none;
}

/* Add margin if adjacent element */
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
    margin-top: 40px;
}

/* H1 Styles */
h1 {
    font-size: 2.23125rem;
    line-height: 1.2;
}

/* H2 Styles */
h2 {
    font-size: 1.7rem;
    line-height: 1.3;
}

/* H3 Styles */
h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

/* H4 Styles */
h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

/* H5 Styles */
h5 {
    font-size: 16px;
    line-height: 1.4;
}

/* H6 Styles */
h6 {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive Typography - Tablet landscape and bigger - Phase 1: Added  */
@media (min-width: 768px) {
    h1 {
        font-size: 2.625rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Body Text Styles - Phase 1: Added */
p, ul, ol, dl, pre, address, fieldset, figure {
    margin: 0 0 20px 0;
}

/* Add margin if adjacent element */
* + p, * + ul, * + ol, * + dl, * + pre, * + address, * + fieldset, * + figure {
    margin-top: 20px;
}

/* Link Styles - Phase 1: Added  */
a, .uk-link {
    color: #1e87f0;
    text-decoration: none;
    cursor: pointer;
}

a:hover, .uk-link:hover, .uk-link-toggle:hover .uk-link, .uk-link-toggle:focus .uk-link {
    color: #0f6ecd;
    text-decoration: underline;
}

/* Strong/Bold Text - Phase 1: Added  */
b, strong {
    font-weight: bolder;
}

/* Emphasis - Phase 1: Added  */
em {
    color: #f0506e;
}

/* Lists - Phase 1: Added  */
ul, ol {
    padding-left: 30px;
}

/* Blockquotes - Phase 1: Added  */
blockquote {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    line-height: 1.5;
    font-style: italic;
    color: #333;
}

* + blockquote {
    margin-top: 20px;
}

blockquote p:last-of-type {
    margin-bottom: 0;
}

blockquote footer {
    margin-top: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #636262;
}

blockquote footer::before {
    content: "— ";
}

/* Custom styles from heinrichmanten.de */

/* Mobile responsive adjustments */
@media (max-width: 667px) {
  .keyvisual .image img {
		margin-left: 0;
		transform: translateX(0%);
  }
}

/* Kununu widget grayscale */
img[alt="kununu widget"] {
	 -webkit-filter: grayscale(1);
    filter: grayscale(1);
}

/* Hide page-header on beispiel-seite */
.page.beispiel-seite .page-header,
.page-template-default .page-header {
    display: none;
}

/* Elementor-specific overrides - Phase 1: Targeting Elementor pages to ensure custom styles take precedence */
.elementor-page h1,
.elementor-page h2,
.elementor-page h3,
.elementor-page h4,
.elementor-page h5,
.elementor-page h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: #333;
}

.elementor-page p,
.elementor-page ul,
.elementor-page ol {
    margin: 0 0 20px 0;
}

.elementor-page a {
    color: #1e87f0;
    text-decoration: none;
}

.elementor-page a:hover {
    color: #0f6ecd;
    text-decoration: underline;
}

/* Additional custom styles can be added here */


/* Main menu */

.main-menu {
}


.main-menu nav.elementor-nav-menu__container {
	top: 58px !important;
	height: 80vmax;
}

.main-menu li {
	z-index: 1;
}

.main-menu a {
	text-decoration: none !important;
}

.main-menu div.elementor-menu-toggle.elementor-active {
	background-color: #E40E1B !important;
}

.main-menu .sub-menu .menu-item {
	border-bottom: none !important;
	border-bottom-width: 0px !important;
}

.main-menu .sub-menu .menu-item a {
	color: rgb(99, 98, 98) !important;
}

.main-menu .menu-item.menu-item-has-children:after {
    content: "";
    height: 47px;
    display: block;
    vertical-align: bottom;
    position: absolute;
    left: 0;
    right: 30px;
    text-align: right;
    top: 9px;
    z-index: -1;
    box-sizing: content-box;
    max-width: 1300px;
    padding: 0 !important;
}

.main-menu .menu-item.menu-item-has-children:nth-child(1):after {
    content: '';
    background: url(img/icons/kontakt.png) no-repeat 100% 0;
}

.main-menu .menu-item.menu-item-has-children:nth-child(2):after {
    background: url(img/icons/Aktuelles.png) no-repeat 100% 0;
}

.main-menu .menu-item.menu-item-has-children:nth-child(3):after {
    background: url(img/icons/Verkauf_Export.png) no-repeat 100% 0;
}

.main-menu .menu-item.menu-item-has-children:nth-child(4):after {
    background: url(img/icons/Landwirtschaft.png) no-repeat 100% 0;
}

.main-menu .menu-item.menu-item-has-children:nth-child(5):after {
    background: url(img/icons/Qualitaet.png) no-repeat 100% 0;
}

.main-menu .menu-item.menu-item-has-children:nth-child(6):after {
    background: url(img/icons/Innovationen.png) no-repeat 100% 0;
}

.main-menu .menu-item.menu-item-has-children:nth-child(7):after {
    background: url(img/icons/Verantwortung.png) no-repeat 100% 0;
}

.main-menu .menu-item.menu-item-has-children:nth-child(8):after {
    background: url(img/icons/mkv_mpv_manten.png) no-repeat 100% 0;
}

.main-menu .menu-item.menu-item-has-children:nth-child(9):after {
    background: url(img/icons/Unternehmen.png) no-repeat 100% 0;
}

/* Main menu bottom-menu items */

.main-menu .bottom-menu,
.main-menu .bottom.menu.current-menu-item,
.main-menu .bottom-menu:hover,
.main-menu .bottom.menu.current-menu-item:hover {
	height: 36px !important;
	background-color: rgb(201, 201, 201) !important;
}

.main-menu .bottom-menu a,
.main-menu .bottom-menu a.elementor-item-active {
	height: 36px !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 24px !important;
	color: #fff !important;
	background-color: transparent !important;
}

.main-menu .bottom-menu:last-child {
	border-bottom-width: 2px !important;
	border-bottom-color: #fff !important;
}

/* Sprachwechsler */

nav.cpel-switcher__nav,
nav.cpel-switcher__nav:hover {
	padding: 8px 10px;
	border: 1px solid #E1E1E1;
	border-radius: 5px;
	background: #fff;
	margin-top: 0px;
	width: 40px;
	height: 40px;	
}

.cpel-switcher__toggle a span.cpel-switcher__code {
	line-height: 17px;
	font-size: 9px;
	color: #4A4A4A;
	font-weight: 300;
	font-family: "Museo-Sans";
	padding-left: 3px !important;
}

.cpel-switcher__toggle a span.cpel-switcher__code:hover,
.cpel-switcher__toggle:hover,
.cpel-switcher__toggle a:hover {
	background: transparent !important;
}

nav.cpel-switcher__nav .cpel-switcher__toggle a {
	padding: 0px !important;
}

.cpel-switcher__toggle--on .cpel-switcher__list .cpel-switcher__lang {
  z-index: 1020;
  position: absolute;
  box-sizing: border-box;
  min-width: 140px;
  height: 110px;
  padding: 15px;
  background: #fff;
  color: #636262;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* jumplink-menu */
.jumplink-menu {
  border-bottom: 1px solid #c9c9c9;
  border-top: 1px solid #c9c9c9;
  list-style: none;
  padding: 9px 0;
  margin: 0;
  text-align: center;
}

.jumplink-menu li {
  display: inline-block;
  font-family: Museo-sans;
  font-size: 14px;
  line-height: 17px;
  padding: 0;
}

.jumplink-menu li a,
.jumplink-menu li a:hover {
  font-family: Museo-sans;
  font-size: 14px;
  line-height: 17px;
  text-decoration: none;
}

.jumplink-menu li a:after {
  display: inline-block;
  content: ' · ';
  margin-left: 5px;
  margin-right: 5px;
}


/* footer */

.footer-menu,
.footer-menu a {
	font-size: 12px !important;
	font-weight: 400 !important;
	color: rgb(99, 98, 98) !important;
	font-family: "Museo-Sans" !important;
	text-decoration: none !important;
}

.footer-menu a:hover {
	text-decoration: underline !important;
}