/*!
	Theme Name: Seitenmuehle - WP-Theme
	Theme URI:
	Description: Seitenmühle - Theme for Elementor page builder
	Author:
	Author URI: https://www.seitenmuehle.de/
	Version: 1.08
	Text Domain: stml-theme
*/

/* Google Font für MFC: Oswald
   (muss VOR allen Styles kommen, sonst ist das @import ungültig) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500&display=swap');

/* -------------------------------------------------
   ORIGINAL THEME-STYLES (unverändert gelassen)
-------------------------------------------------- */

/* Global Basic Typo Styles */
body {
  margin: 0;
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
  background-color: #fff; 
}

/* Font Sizes */
h1 {font-size: 2.5rem; }
h2 {font-size: 2.0rem; }
h3 {font-size: 1.75rem; }
h4 {font-size: 1.5rem; }
h5 {font-size: 1.25rem; }
h6 {font-size: 1rem; }

p { margin-top:0; margin-bottom:10px; }

a { background-color: transparent; text-decoration: none; color: #686369; }
a:hover, a:active { color: #ee7b19; }
a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; }
a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus { color: inherit; text-decoration: none; }
a:not([href]):not([tabindex]):focus { outline: 0; }

/* Webkit Highlight */
input,
textarea,
button,
select,
a { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* Selected Text */
::-moz-selection { background: #000;color:#fff; }
::selection { background: #000;color:#fff; }	

/* Logo */
header .elementor-widget-theme-site-logo {width: 130px!important;}
.sticky-logo img {transition:all 0.4s ease;}
.sticky-logo img.stml-small-logo {max-width:79px;}

/* Nav */
header + nav { transition:all 0.4s ease;box-shadow: 0 0 0 0 #000; }
nav.elementor-sticky--active { box-shadow: 0 10px 20px -20px #000; }
nav ul.elementor-nav-menu { transition:all 0.4s ease; }
nav.elementor-sticky--active ul.elementor-nav-menu { margin-right: 0; }

/* BuchenButton */
nav .elementor-nav-menu li {
	border-color: transparent;
	border-style: solid;
	border-width: 1px;
}

nav .elementor-nav-menu li.menu-buchen {
	background-color: #71b1cc;
	border-color: #71b1cc;
	border-radius:4px;
	transition: all 0.4s ease;
}
nav .elementor-nav-menu li.menu-buchen:hover {
	background-color: #4a9cbf;
	border-color: #4a9cbf;
	border-radius:4px;
}
nav .elementor-nav-menu li.menu-buchen a {
	color: #fff!important;
}

/* White-Text-Links */
.white-text-links a span { color:#fff;}

/* FullHeightLink */
body:not(.elementor-editor-active) .elementor-widget-wrap .full-height-link-button,
body:not(.elementor-editor-active) .elementor-widget-wrap .full-height-link-button .elementor-widget-container,
body:not(.elementor-editor-active) .elementor-widget-wrap .full-height-link-button .elementor-widget-container .elementor-button-wrapper,
body:not(.elementor-editor-active) .elementor-widget-wrap .full-height-link-button .elementor-widget-container .elementor-button-wrapper a {
	position: absolute;
	display:block;
	top:0;
	right:0;
	bottom:0;
	left:0;
	opacity:0;
	background-color: transparent;
	color:transparent;
}

/* Mariandl Thumb Slider */
.mariandl-thumb-slider .elementor-swiper:first-child {
	box-shadow: 0px 0px 10px -1px rgba(0,0,0,0.5);
	z-index:1;
}
.mariandl-thumb-slider .elementor-thumbnails-swiper .swiper-wrapper {
	max-height:100px;
}
.mariandl-thumb-slider .elementor-thumbnails-swiper .elementor-fit-aspect-ratio {
    padding-bottom: 100px;
}

/* MariandlKategorienSlider */
.mariandl-kategorien-slider .slick-slide {
	margin:30px;
}

/* Full width Button */
.btn-70 .elementor-button-wrapper a {
	width:70%;
	text-align: left;
}

/* Mariandl Toogle */
.mariandl-toggle .elementor-toggle h2,
.mariandl-toggle .elementor-toggle .elementor-tab-content {
	padding:10px 0px;
}
.mariandl-toggle .elementor-toggle h2 .elementor-toggle-icon {
	position:absolute;
	left:-20px;
	top:-10px;
}
.mariandl-toggle .elementor-toggle h2 .elementor-toggle-icon span {
	font-size: 25px;
}
.mariandl-toggle .elementor-price-list-separator {
	margin-top:15px;
}

.mariandl-toggle .toggle-insertion {
	display:inline-block;
}
/* Mariandl Pricelist */
.mariandl .elementor-price-list-separator {
	margin-top:15px;
}
/* Mariandl Kategorien Slider */
.mariandl-kategorien-slider .slick-slider button {
	transform: rotate(45deg);
	border-color: #002c51;
	border-width: 0;
	border-style: solid;
	width:30px;
	height:30px;
	top:calc(50% - 15px);
}
.mariandl-kategorien-slider .slick-slider button:before {
	display:none;
}
.mariandl-kategorien-slider .slick-slider button.slick-prev {
	border-left-width: 3px;
	border-bottom-width: 3px;
}
.mariandl-kategorien-slider .slick-slider button.slick-next {
	border-top-width: 3px;
	border-right-width: 3px;
}

/* kategorie-beschreibung-ueber-slider */
.elementor-widget-wrap .kategorie-beschreibung-ueber-slider {
    position: absolute;
    pointer-events: none;
}

/* Mariandl LeinenGalerie */
.mariandl-leine .gallery-item:nth-child(1) {transform: rotate(5deg);}
.mariandl-leine .gallery-item:nth-child(2) {transform: rotate(2deg);}
.mariandl-leine .gallery-item:nth-child(3) {transform: rotate(-3deg);}
.mariandl-leine .gallery-item:nth-child(4) {transform: rotate(-7deg);}

/* Scroll-Top Button */
.back-to-top {
	position: fixed;
	bottom: 0;
	right: 0;
	margin: 1rem;
	padding: 12px 16px;
	z-index: 9999999;
	border: 0;
	border-radius: 0;
	outline: none;
	cursor: pointer;
	background-color: #e9ecef;
	color: #adb5bd;	
}
.back-to-top:hover {
	background-color: #ffffff;
	color: #f92500;	
}

/* Responsive */
/* MAX-WIDTH 1024PX */
@media all and (max-width: 1024px) {
	.sticky-logo img.stml-small-logo {max-width:72px;}
	nav ul.elementor-nav-menu li.lang-item {
		display: none;
	}
}
/* MAX-WIDTH 800PX */
@media all and (max-width: 800px) {
	/* logo */
	header .elementor-widget-theme-site-logo {width: 72px!important;}
	
	/* main-nav */
	nav .elementor-nav-menu li a {
		font-size: 0.9rem;
	}
}
/* MAX-WIDTH 768PX */
@media all and (max-width: 768px) {
	/* main-nav */
	nav .elementor-menu-toggle {
		padding-top: 15px;
		padding-bottom: 0px;
	}
	nav .elementor-nav-menu li {
		border-left-width: 0px;
		border-right-width: 0px;
		border-top-width: 0px;
	}
	nav .elementor-nav-menu li a {
		font-size: 1.6rem;
		line-height:1.44;
		padding: 10px 20px 12px;
	}
	nav .elementor-nav-menu li a:hover {
		font-size: 1.6rem;
		line-height:1.44;
		padding: 10px 20px 12px;
	}
	nav .elementor-nav-menu li.menu-buchen {
		margin-top:15px;
		border-color: #71b1cc;
		border-radius:4px;
		border-left-width: 1px;
		border-right-width: 1px;
		border-top-width: 1px;
	}
	nav .elementor-nav-menu li.menu-buchen a:hover {
		border-radius:4px;
	}
	nav .elementor-nav-menu--dropdown ul {
		padding-bottom:20px;
	}
	/* kategorie-beschreibung-ueber-slider */
	.elementor-widget-wrap .kategorie-beschreibung-ueber-slider {
		position: relative;
		padding-top:30px;
	}
}
/* ------- *\  
|    END    | 
\* ------- */  



/* =========================================================
   MFC MOSZAT FIGHT CLUB – CUSTOM HEADER / NAV / FOOTER
   (arbeitet mit eigenem header.php & footer.php)
========================================================= */

/* ---------------- WRAPPER ---------------- */

.mfc-header-wrapper {
    position: relative;
}

/* ---------------- HERO-BILD (Desktop) ---------------- */

.custom-header-image {
    width: 100%;
    height: 580px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.custom-header-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
}

.custom-header-hero-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Logo über dem Hero (Desktop groß) */
.logo-over-hero {
    position: absolute;
    top: 24px;
    left: 40px;
    z-index: 5;
    transition: opacity 0.25s ease;
}

.logo-over-hero img {
    height: 130px;
    width: auto;
}

/* ---------------- NAVIGATION (Desktop) ---------------- */

/* Leiste unter dem Hero */
.custom-nav-wrap {
    width: 100%;
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 50;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

/* Inhalt der Leiste: initial zentriert */
.custom-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; /* Menü mittig */
    padding: 0 24px;
    transition: justify-content 0.25s ease;
}

/* Logo in der Nav (klein) – Standard: unsichtbar */
.logo-in-nav {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transform-origin: left center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo-in-nav img {
    height: 70px;
    width: auto;
}

/* Rechts: Button + Menü */
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ---------------- CTA BUTTON ---------------- */

.cta-probetraining {
    background: #CF331E;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.08em;
    border: 2px solid #CF331E;
    transition: 0.2s;
    white-space: nowrap;
    display: inline-block;
}

.cta-probetraining:hover {
    background: #ffffff;
    color: #CF331E;
    border-color: #CF331E;
}

/* Desktop: beide Labels sichtbar, wir steuern mobile per Media Query */
.cta-probetraining .label-desktop {
    display: inline;
}
.cta-probetraining .label-mobile {
    display: none;
}

/* ---------------- MENÜ (Desktop) ---------------- */

.custom-main-menu ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-main-menu ul li {
    position: relative;
}

.custom-main-menu ul li a {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.08em;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    padding: 6px 0;
    transition: 0.2s;
}

.custom-main-menu ul li a:hover {
    color: #CF331E;
}

.custom-main-menu ul li.current-menu-item > a,
.custom-main-menu ul li.current_page_item > a {
    color: #5E160D !important;
}

/* ---------------- DROPDOWN (ANGEBOT) ---------------- */

.custom-main-menu ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    padding: 10px 0;
    margin: 0;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    overflow: visible;
}

.custom-main-menu ul li ul.sub-menu li {
    display: block;
}

.custom-main-menu ul li ul.sub-menu li a {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.08em;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    padding: 8px 20px;
    white-space: nowrap;
    transition: 0.2s;
}

/* Hover im Dropdown */
.custom-main-menu ul li ul.sub-menu li a:hover {
    color: #CF331E;
    background: #f7f7f7;
}

/* Dropdown auf Desktop beim Hover zeigen */
.custom-main-menu ul li:hover > ul.sub-menu {
    display: block;
}

/* Nichts abschneiden */
.custom-nav-wrap,
.custom-nav-inner,
.custom-main-menu {
    overflow: visible !important;
}

/* ---------------- STICKY HEADER (per body.header-scrolled) ---------------- */

/* Nav werden sticky am oberen Viewport */
body.header-scrolled .custom-nav-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

/* großes Hero-Logo ausblenden, kleines in der Nav zeigen */
body.header-scrolled .logo-over-hero {
    opacity: 0;
    pointer-events: none;
}

body.header-scrolled .logo-in-nav {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Menü von "zentriert" auf "Logo links / Menü rechts" */
body.header-scrolled .custom-nav-inner {
    justify-content: space-between;
}

/* =========================================================
   FOOTER – MFC MOSZAT FIGHT CLUB
========================================================= */

.mfc-footer {
    background: #370404;
    color: #ffffff;
    padding: 60px 0 40px;
}

.mfc-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

/* Logo im Footer */
.mfc-footer-logo img {
    height: 80px;
    width: auto;
}

/* Linie */
.mfc-footer-separator {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    max-width: 80%;
    margin: 32px auto 24px;
}

/* FOOTER-MENÜ */
.mfc-footer-menu-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.mfc-footer-menu-list li a {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Hover & aktiv */
.mfc-footer-menu-list li a:hover {
    color: #d9d9d9; /* hellgrau */
}

.mfc-footer-menu-list li.current-menu-item > a,
.mfc-footer-menu-list li.current_page_item > a {
    color: #CF331E; /* aktiv */
}

/* Adresse & Kontakt */
.mfc-footer-address,
.mfc-footer-contact {
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.03em;
}

.mfc-footer-address a,
.mfc-footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mfc-footer-address a:hover,
.mfc-footer-contact a:hover {
    color: #d9d9d9;
}

/* Trenner zwischen Telefon und Mail */
.mfc-footer-separator-dot {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.7);
}

/* Social Icons */
.mfc-footer-social {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.mfc-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mfc-footer-social a:hover {
    background: #ffffff;
    color: #370404;
    border-color: #ffffff;
}

/* =========================================================
   MOBILE HEADER / MENÜ & RESPONSIVE ANPASSUNGEN
========================================================= */

.mfc-mobile-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.mfc-mobile-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #000000;
    margin: 3px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Mobile Styles ---------- */
@media (max-width: 900px) {

    /* Hero niedriger auf Mobile */
    .custom-header-image {
        height: 420px;
    }

    /* Logo über Hero: direkt in kleiner Größe */
    .logo-over-hero img {
        height: 70px;
    }
    .logo-over-hero {
        top: 16px;
        left: 20px;
    }

    /* Nav-Layout: Logo + Button + Burger in einer Reihe */
    .custom-nav-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .nav-right {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    /* Button-Label: nur kurzes "Probetraining" anzeigen */
    .cta-probetraining .label-desktop {
        display: none;
    }
    .cta-probetraining .label-mobile {
        display: inline;
    }

    .cta-probetraining {
        padding: 8px 14px;
        font-size: 14px;
    }

    /* Burger im Mobile anzeigen */
    .mfc-mobile-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 4px;
    }

    /* Desktop-Menü im Mobile erst mal ausblenden */
    .custom-main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 12px 24px 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        display: none;
        flex-direction: column;
    }

    .custom-main-menu ul {
        flex-direction: column;
        gap: 10px;
        flex-wrap: nowrap;
    }

    /* Wenn Mobile-Menü offen ist (per JS-Klasse) */
    body.mobile-nav-open .custom-main-menu {
        display: flex;
    }

    /* Burger Animation */
    body.mobile-nav-open .mfc-mobile-toggle-bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }
    body.mobile-nav-open .mfc-mobile-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    body.mobile-nav-open .mfc-mobile-toggle-bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    /* Footer etwas enger auf Mobile */
    .mfc-footer-menu-list {
        gap: 18px;
    }

    .mfc-footer-address,
    .mfc-footer-contact {
        font-size: 18px;
    }

    .mfc-footer-social a {
        width: 36px;
        height: 36px;
    }
}
/* FORCE: Logo auf Mobile kleiner machen */
@media (max-width: 900px) {
    .logo-over-hero img,
    .logo-in-nav img {
        height: 70px !important;
        max-height: 70px !important;
        width: auto !important;
    }

    /* etwas weniger Abstand nach unten */
    .logo-over-hero {
        top: 12px;
        left: 16px;
    }
}
/* Wenn die WP-Adminbar sichtbar ist (eingeloggt), 
   verschieben wir die fixe Nav etwas nach unten,
   damit sie nicht abgeschnitten wird. */
@media (max-width: 782px) {
    body.admin-bar.header-scrolled .custom-nav-wrap {
        top: 46px;
    }
}
/* Logo auf Mobile kleiner – gleiche Größe wie im Nav-Balken */
@media (max-width: 900px) {
    .logo-over-hero img,
    .logo-in-nav img {
        height: 70px !important;
        max-height: 70px !important;
        width: auto !important;
    }

    .logo-over-hero {
        top: 12px;
        left: 16px;
    }
}
/* ==========================================
   AUSKLAPP-PFEIL FÜR MENÜPUNKT MIT SUBMENU
========================================== */

.custom-main-menu ul li.menu-item-has-children > a::after {
    content: "▾";
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.custom-main-menu ul li.menu-item-has-children > a:hover::after {
    color: #CF331E;
}

.custom-main-menu ul li.menu-item-has-children.current-menu-item > a::after,
.custom-main-menu ul li.menu-item-has-children.current_page_item > a::after {
    color: #5E160D;
}

.custom-main-menu ul li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .custom-main-menu ul li.menu-item-has-children > a::after {
        font-size: 16px;
        margin-left: 8px;
    }
}