/*
Theme Name: MINT Zentrum Hirschaid
Theme URI: https://achtbit.digital/
Author: Achtbit Media GmbH
Author URI: https://achtbit.digital/
Description: WordPress-Theme für das MINT Zentrum Hirschaid
Version: 1.0
Text Domain: mzh2025
*/

:root {
    --lightblue: #86c2eb;
    --turquiose: #36a9e1;
    --blue: #1d71b8;
    --purple: #2d2e83;
    --pink: #bd154e;
    --font: #000000;
    --white: #ffffff;
    --darkgrey: #2C2C31;
    --lightgrey: #F8F8FF;
}

* {
    font-family: 'Open Sauce Two', sans-serif;
}

html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    background-image: url('./inc/img/body_background.svg');
    background-size: auto 180%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    /*width: 1200px;*/
    max-width: 100%;
    flex-grow: 1;
}

.content {
    line-height: 1.6;
    font-size: 16px;
    color: var(--font);
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    color: var(--blue);
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.content h1 {
    font-size: 2.5rem;
}

.content h2 {
    font-size: 2rem;
}

.content h3 {
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1.2em;
}

.content.blogpost img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Erstes Kind */
.panel-grid-cell .so-panel .content p:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel p:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h1:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel h1:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h2:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel h2:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h3:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel h3:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h4:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel h4:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h5:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel h5:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h6:first-child:not(.mzh-headline),
.panel-grid-cell .so-panel h6:first-child:not(.mzh-headline) {
    margin-top: 0;
}

/* Letztes Kind */
.panel-grid-cell .so-panel .content p:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel p:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h1:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel h1:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h2:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel h2:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h3:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel h3:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h4:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel h4:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h5:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel h5:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel .content h6:last-child:not(.mzh-headline),
.panel-grid-cell .so-panel h6:last-child:not(.mzh-headline) {
    margin-bottom: 0;
}

.mzh2025-row-content .mzh2025-row-content {
    padding: 0 !important;
    margin: 0;
    width: 100%;
}

.mzh2025-row-content .mzh2025-row-content .panel-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 30px;
    width: 100%;
}

.mzh2025-row-content .mzh2025-row-content .panel-grid > .panel-grid-cell {
    flex: 1;
    min-width: 200px;
}

.mzh2025-row-content .mzh2025-row-content .mzh-button-container:first-child {
    margin-bottom: 0;
}

.content a {
    color: var(--blue);
    text-decoration: none;
}

.content a:hover {
    color: var(--turquiose);
}

.content ul, .content ol {
    margin: 1.2em 0;
    padding-left: 2em;
}

.content li {
    margin-bottom: 0.5em;
}

.content .mzh-subheadline {
    color: var(--font) !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    display: inline-block;
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    position: relative;
}

.content .mzh-subheadline::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 40%;
    border-bottom: 2px solid var(--line-color);
}

.text-left::after {
    left: 0;
}

.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-right::after {
    right: 0;
}

.content .mzh-headline {
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 10px 0;
}

/* Wenn keine Subheadline vorhanden ist, zeige Border unter der Headline */
.content .mzh-headline-widget.no-subheadline .mzh-headline {
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.content .mzh-headline-widget.no-subheadline .mzh-headline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    border-bottom: 2px solid var(--line-color);
}

.content .mzh-headline-widget.no-subheadline[style*="text-align: center"] .mzh-headline::after {
    left: 50%;
    transform: translateX(-50%);
}

.content .mzh-headline-widget.no-subheadline[style*="text-align: right"] .mzh-headline::after {
    left: auto;
    right: 0;
}

/* MZH Button Widget Styles */
.mzh-button-container {
    display: flex;
    justify-content: flex-start;
    margin: 20px 0;
}

.mzh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Open Sauce Two', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    box-sizing: border-box;
}

/* Button Sizes */
.mzh-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.mzh-button-medium {
    padding: 12px 24px;
    font-size: 16px;
}

.mzh-button-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Primary Button Colors */
.mzh-button-primary.mzh-button-blue {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.mzh-button-primary.mzh-button-blue:hover {
    background-color: var(--turquiose);
    color: var(--white);
    border-color: var(--turquiose);
    transform: translateY(-2px);
}

.mzh-button-primary.mzh-button-turquoise {
    background-color: var(--turquiose);
    color: var(--white);
    border-color: var(--turquiose);
}

.mzh-button-primary.mzh-button-turquoise:hover {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.mzh-button-primary.mzh-button-lightblue {
    background-color: var(--lightblue);
    color: var(--font);
    border-color: var(--lightblue);
}

.mzh-button-primary.mzh-button-lightblue:hover {
    background-color: var(--turquiose);
    color: var(--white);
    border-color: var(--turquiose);
    transform: translateY(-2px);
}

.mzh-button-primary.mzh-button-purple {
    background-color: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

.mzh-button-primary.mzh-button-purple:hover {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.mzh-button-primary.mzh-button-pink {
    background-color: var(--pink);
    color: var(--white);
    border-color: var(--pink);
}

.mzh-button-primary.mzh-button-pink:hover {
    background-color: var(--pink);
    opacity: 0.8;
    border-color: var(--pink);
    color: var(--white);
    transform: translateY(-2px);
}

.mzh-button-primary.mzh-button-darkgrey {
    background-color: var(--darkgrey);
    color: var(--white);
    border-color: var(--darkgrey);
}

.mzh-button-primary.mzh-button-darkgrey:hover {
    background-color: var(--darkgrey);
    opacity: 0.8;
    color: var(--white);
    border-color: var(--darkgrey);
    transform: translateY(-2px);
}

/* Secondary Button Colors */
.mzh-button-secondary.mzh-button-blue {
    background-color: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.mzh-button-secondary.mzh-button-blue:hover {
    background-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.mzh-button-secondary.mzh-button-turquoise {
    background-color: transparent;
    color: var(--turquiose);
    border-color: var(--turquiose);
}

.mzh-button-secondary.mzh-button-turquoise:hover {
    background-color: var(--turquiose);
    color: var(--white);
    transform: translateY(-2px);
}

.mzh-button-secondary.mzh-button-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.mzh-button-secondary.mzh-button-white:hover {
    background-color: var(--white);
    color: var(--blue);
    transform: translateY(-2px);
}

.mzh-button-secondary.mzh-button-lightblue {
    background-color: transparent;
    color: var(--lightblue);
    border-color: var(--lightblue);
}

.mzh-button-secondary.mzh-button-lightblue:hover {
    background-color: var(--lightblue);
    color: var(--font);
    transform: translateY(-2px);
}

.mzh-button-secondary.mzh-button-purple {
    background-color: transparent;
    color: var(--purple);
    border-color: var(--purple);
}

.mzh-button-secondary.mzh-button-purple:hover {
    background-color: var(--purple);
    color: var(--white);
    transform: translateY(-2px);
}

.mzh-button-secondary.mzh-button-pink {
    background-color: transparent;
    color: var(--pink);
    border-color: var(--pink);
}

.mzh-button-secondary.mzh-button-pink:hover {
    background-color: var(--pink);
    color: var(--white);
    transform: translateY(-2px);
}

.mzh-button-secondary.mzh-button-darkgrey {
    background-color: transparent;
    color: var(--darkgrey);
    border-color: var(--darkgrey);
}

.mzh-button-secondary.mzh-button-darkgrey:hover {
    background-color: var(--darkgrey);
    color: var(--white);
    transform: translateY(-2px);
}

/* Button States */
.mzh-button:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.mzh-button:focus {
    outline: 3px solid rgba(54, 169, 225, 0.3);
    outline-offset: 2px;
}

/* Full Width Button Styles */
.mzh-button-container-full-width {
    width: 100%;
}

.mzh-button-full-width {
    width: 100%;
    justify-content: center;
}

/* MZH List Widget Styles */
.mzh-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.mzh-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.mzh-list-item:last-child {
    margin-bottom: 0;
}

.mzh-list-icon {
    flex: 0 0 auto;
    color: var(--turquiose);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 2px;
}

.mzh-list-icon svg {
    fill: var(--turquiose);
    color: var(--turquiose);
    width: 16px;
    height: 16px;
}

.mzh-list-text {
    flex: 1;
    line-height: 1.6;
    color: var(--font);
    font-size: 16px;
}

/* MZH Accordion Widget Styles */
.mzh-accordion {
    margin: 20px 0;
}

.mzh-accordion-item {
    border-bottom: 1px solid #5E5F63;
}

.mzh-accordion-item:last-child {
    border-bottom: none;
}

.mzh-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: color 0.3s ease;
    outline: none;
}

.mzh-accordion-header:hover {
    color: var(--turquiose);
}

.mzh-accordion-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--font);
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.mzh-accordion-header:hover .mzh-accordion-title {
    color: var(--turquiose);
}

.mzh-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: var(--font);
}

.mzh-accordion-header:hover .mzh-accordion-icon {
    color: var(--turquiose);
}

.mzh-accordion-header.active .mzh-accordion-icon {
    transform: rotate(45deg);
}

.mzh-accordion-header.active .mzh-accordion-title {
    color: var(--turquiose);
}

.mzh-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    padding: 0;
}

.mzh-accordion-content.active {
    max-height: 1000px;
    padding: 0 0 20px 0;
}

.mzh-accordion-content-inner {
    line-height: 1.6;
    color: var(--font);
}

.mzh-accordion-content-inner p {
    margin-bottom: 1em;
}

.mzh-accordion-content-inner p:last-child {
    margin-bottom: 0;
}

.nav-bar {
    width: 100%;
    position: fixed;
    background-color: var(--white);
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 10000;
    transition: background-color 0.4s ease;
}

.nav-bar.active {
    background-color: unset;
}

.nav-bar-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0, 55, 102, 0.8), rgba(0,255,0,0));
    pointer-events: none;
    z-index: 1;
}

.nav-bar.home {
    background-color: transparent;
    color: var(--white);
}

.nav-bar.home .logo-header {
    visibility: hidden;
}

.nav-bar.home .mobile-nav-button .bars {
    background-color: var(--white);
}

.nav-bar.home .search-icon {
    filter: brightness(0) invert(1);
}

.nav-bar.scrolled {
    background-color: var(--white);
    transition: background-color 0.3s ease;
}

.nav-bar.home.scrolled.active {
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.nav-bar.scrolled .logo-header {
    visibility: visible;
}

.nav-bar.scrolled .mobile-nav-button .bars {
    background-color: var(--font);
}

.nav-bar.scrolled .search-icon {
    filter: none;
}

.nav-bar-wrapper {
    max-width: 100%;
    width: 1200px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    padding: 25px 40px;
    align-items: center;
}

.header-logo {
    width: 240px;
    opacity: 1;
    transition: opacity 0.15s ease, visibility 0.1s ease;
}

.header-logo.active {
    opacity: 0;
    visibility: hidden;
}

header {
    margin-top: 114px;
    background-color: var(--blue);
    height: 400px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    top: 0;
    min-height: 400px;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 1200px;
    padding: 0 40px;
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header.home-slider {
    min-height: 100vh;
    margin-top: 0;
}

.home-slider-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(410px + max(0px, (100vw - 1200px) / 2));
    overflow: hidden;
    z-index: 1;
    background: rgba(0, 55, 102, 0.5);
    backdrop-filter: blur(6px);
    transition: backdrop-filter 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: white;
    align-items: end;
    min-width: 410px;
}

.home-slider-overlay.flash {
    backdrop-filter: blur(0); /* Blur entfernen */
}

.home-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
}

.home-slider-track {
    display: flex;
    transition: transform 1s ease-in-out; /* Slide Einrasten */
}

.home-slider-slide {
    min-width: 100%;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--blue);
}

/* Standardzustand (unsichtbar, leicht unten) */
.fixed-overlay .home-slider-overlay-content {
    opacity: 0;
    transform: translateY(80px); /* Startpunkt unten */
    transition: all 1s ease-in-out;
}

/* Ausblenden nach oben */
.fixed-overlay .home-slider-overlay-content.slide-out {
    transform: translateY(-50px); /* nach oben verschieben beim rausgehen */
    opacity: 0;
}

/* Einblenden von unten */
.fixed-overlay .home-slider-overlay-content.slide-in {
    transform: translateY(80px); /* unten starten */
    opacity: 0;
}

/* Aktiv / sichtbar */
.fixed-overlay .home-slider-overlay-content.active {
    opacity: 1;
    transform: translateY(0); /* Endposition */
}


.home-slider-dots {
    display: flex;
    gap: 10px;
    width: 420px;
    max-width: calc(100% - 200px);
    padding: 100px;
    position: absolute;
    bottom: -20px;
}

.home-slider-dots button {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white; /* Outline */
    background-color: transparent;
    cursor: pointer;
    padding: 0;
}

.home-slider-dots button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.home-slider-dots button.active::before {
    opacity: 1;
}

.home-slider-logo {
    width: 420px;
    max-width: calc(100% - 200px);
    padding: 100px;
}

.home-slider-overlay-content {
    padding-bottom: 300px;
    padding-left: 100px;
    padding-right: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 420px;
    max-width: calc(100% - 200px);
    flex: 1;
    gap: 30px;
}

h1.home-slider-heading  {
    font-size: 2.5em;
    font-weight: 600;
    margin: 0;
}

.home-slider-description {
    font-size: 18px;
    line-height: 1.5em;
    font-weight: 500;
    margin: 0;
}

button.home-slider-button {
    flex: 0 !important;
}

@media (max-width: 1400px) {
    .home-slider-overlay {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .home-slider-overlay-content {
        padding: 0 80px 80px 80px;
        max-width: calc(100% - 160px);
    }

    .home-slider-logo {
        width: 420px;
        max-width: calc(100% - 160px);
        padding: 80px;
    }

    .home-slider-dots {
        bottom: -60px;
        padding-right: 120px;
        width: calc(100% - 160px);
    }
}

.mobile-nav-button .bars:not(:last-child) {
    margin-bottom: 7px;
}

.mobile-nav-button.open .bar1 {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-button.open .bar2 {
    opacity: 0;
    visibility: hidden;
}

.mobile-nav-button.open .bar3 {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav-button .bars {
    width: 30px;
    height: 2px;
    background-color: black;
    transition: transform .5s, opacity .5s, visibility .5s, background-color 0.3s ease;
}

.mobile-nav-button:hover {
    cursor: pointer;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: width 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

.search-form.active {
    width: 240px;
    opacity: 1;
    visibility: visible;
}

.search-input {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid var(--font);
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Open Sauce Two', sans-serif;
    outline: none;
    background-color: var(--white);
    color: var(--font);
}

.search-input:focus {
    border-color: var(--turquiose);
}

.search-input::placeholder {
    color: #999;
}

.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    height: 16px;
    width: 16px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d71b8'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.search-input::-webkit-search-cancel-button:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2336a9e1'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.search-header {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.search-icon {
    height: 30px;
    transition: filter 0.3s ease;
}

.header-right {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.header-right.initial .mobile-nav-button .bars {
    background-color: var(--font);
}

.header-right.initial .search-icon {
    filter: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: calc(100vh - 100px);
    width: 100vw;
    background-color: var(--white);
    background-image: url('./inc/img/menu_background.svg');
    background-size: auto 140%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.mobile-menu-header {
    max-width: 100%;
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px;
}

.mobile-menu-logo {
    width: 300px;
    max-width: calc(100% - 80px);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
}


.close-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--font);
    transition: transform 0.3s ease;
}

.close-line:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    width: 1200px;
    padding-left: 40px;
    padding-right: 40px;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-grid > li {
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
}

.mobile-nav-grid > li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-grid > li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-grid > li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-grid > li:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-grid > li:nth-child(5) { animation-delay: 0.5s; }
.mobile-nav-grid > li:nth-child(6) { animation-delay: 0.6s; }
.mobile-nav-grid > li:nth-child(7) { animation-delay: 0.7s; }
.mobile-nav-grid > li:nth-child(8) { animation-delay: 0.8s; }
.mobile-nav-grid > li:nth-child(9) { animation-delay: 0.9s; }
.mobile-nav-grid > li:nth-child(10) { animation-delay: 1.0s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-grid > li > a {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--font);
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.mobile-nav-grid > li > a:hover {
    color: var(--turquiose);
}

.mobile-nav-grid .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 15px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 480px) {
    .mobile-nav-grid .sub-menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .mobile-nav-grid > li.submenu-expanded .sub-menu {
        max-height: 1000px;
        opacity: 1;
    }
}

.mobile-nav-grid .sub-menu li {
    margin-bottom: 12px;
}

.mobile-nav-grid .sub-menu a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--font);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-grid .sub-menu a:hover {
    color: var(--turquiose);
}

.mobile-nav-grid > li.current-menu-item > a {
    color: var(--turquiose);
    background-color: var(--darkgrey);
    padding: 8px 12px;
    margin-left: -12px;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 1.4;
}

.mobile-nav-grid > li.current-menu-item > a:hover {
    color: var(--white);
}

.mobile-nav-grid .sub-menu li.current-menu-item a {
    margin-left: -10px;
    color: var(--turquiose);
    background-color: var(--darkgrey);
    padding: 6px 10px;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 1.4;
}

.sponsors-section {
    background-color: var(--white);
    border-top: 1px solid #e0e0e0;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.sponsors-wrapper {
    width: 1200px;
    max-width: 100%;
    padding: 0 40px;
}

.sponsors-wrapper .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sponsor-logo-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sponsor-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.sponsor-logo-link:hover {
    transform: translateY(-2px);
}

.sponsor-logo-img {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-logo-text {
    color: var(--font);
    font-size: 14px;
    font-weight: 500;
}

footer {

}

footer {
    flex: 0;
    background-color: #2C2C31;
    color: var(--white);
    display: flex;
    justify-content: center;
}

footer a {
    color: var(--white);
    opacity: 0.5;
    text-decoration: none;
    font-weight: normal;
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: var(--white);
    width: 1200px;
    max-width: 100%;
    padding-top: 80px;
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 80px;
}

.footer-logo {
    width: 300px;
    max-width: 100%;
}

.footer-mid {
}

.footer-mid .menu {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 40px;
    width: 100%;
}

.footer-mid .menu li {
    list-style: none;
    margin: 0;
    padding: 0 20px 0 0;
    position: relative;
}

.footer-mid .menu li::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 1px;
    background-color: #5E5F63;
    grid-column: 1 / -1;
}

.footer-mid .menu a {
    display: block;
    transition: opacity 0.2s ease;
}

.footer-mid .menu a:hover {
    opacity: 0.8;
}

#menu-footermenue {
    padding: 0;
    margin-top: 0;
}

.footer-right {
    display: flex;
    align-items: flex-start;
}

.footer-right .menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-right .social-media-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-right .social-media-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-right .social-media-link:hover {
    opacity: 0.8;
}

.footer-right .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.footer-right .social-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--white);
}

.footer-right .social-text {
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 1050px) {
    .footer-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 1050px) {
    .sponsors-wrapper .menu {
        flex-direction: column;
        justify-content: center;
        gap: 30px;
    }

    .mobile-menu-content {
        max-width: calc(100% - 80px);
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .footer-mid .menu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .footer-mid .menu li::after {
        display: none;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    header {
        height: 300px;
        min-height: 300px;
    }
    
    .sponsors-section {
        padding: 30px 0;
    }
    
    .sponsor-logo-img {
        max-height: 50px;
        max-width: 150px;
    }
    
    /* Mobile menu responsive adjustments */
    .mobile-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .mobile-menu-container {
        padding: 20px;
        padding-bottom: 80px;
    }

    .mobile-menu-header {
        margin-bottom: 40px;
        padding: 30px;
    }
    
    .mobile-nav-grid > li > a {
        font-size: 1.1rem;
    }
}

/* MZH Row Wrapper Styles */
.mzh2025-row-wrapper {
    /*width: 100vw;*/
    width: 100%;
    position: relative;
}

.mzh2025-row-content {
    max-width: 1200px;
    width: calc(100% - 120px);
    margin-left: auto;
    margin-right: auto;
    padding: 100px 60px 100px 60px;
}

/* Adjacent rows with same background color - reduce padding */
.mzh2025-row-wrapper.row-color-darkgrey + .mzh2025-row-wrapper.row-color-darkgrey .mzh2025-row-content {
    padding-top: 0;
}

.mzh2025-row-wrapper.row-color-lightblue + .mzh2025-row-wrapper.row-color-lightblue .mzh2025-row-content {
    padding-top: 0;
}

.mzh2025-row-wrapper.row-color-turquoise + .mzh2025-row-wrapper.row-color-turquoise .mzh2025-row-content {
    padding-top: 0;
}

.mzh2025-row-wrapper.row-color-blue + .mzh2025-row-wrapper.row-color-blue .mzh2025-row-content {
    padding-top: 0;
}

.mzh2025-row-wrapper.row-color-purple + .mzh2025-row-wrapper.row-color-purple .mzh2025-row-content {
    padding-top: 0;
}

.mzh2025-row-wrapper.row-color-pink + .mzh2025-row-wrapper.row-color-pink .mzh2025-row-content {
    padding-top: 0;
}

.mzh2025-row-wrapper.row-color-lightgrey + .mzh2025-row-wrapper.row-color-lightgrey .mzh2025-row-content {
    padding-top: 0;
}

/* Default rows (no color class) */
.mzh2025-row-wrapper:not([class*="row-color-"]) + .mzh2025-row-wrapper:not([class*="row-color-"]) .mzh2025-row-content {
    padding-top: 0;
}

.mzh2025-row-wrapper.row-color-darkgrey {
    background-color: var(--darkgrey) !important;
    color: var(--white) !important;
}

.mzh2025-row-wrapper.row-color-darkgrey *:not(.mzh-button):not(.mzh-button *):not(a):not(i[class^="material-symbols-"]) {
    color: var(--white) !important;
}


.mzh2025-row-wrapper.row-color-darkgrey .mzh-button-secondary {
    color: var(--turquiose) !important;
}

.mzh2025-row-wrapper.row-color-darkgrey .mzh-button:hover {
    color: var(--white) !important;
}

.mzh2025-row-wrapper.row-color-darkgrey {
    color: var(--turquiose) !important;
}

.mzh2025-row-wrapper.row-color-darkgrey a:not(.mzh-button):hover {
    color: var(--lightblue) !important;
}

.mzh2025-row-wrapper.row-color-lightgrey {
    background-color: var(--lightgrey) !important;
}

/* Row with Background Image */
.mzh2025-row-wrapper.has-row-image {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 300px;
}

.mzh2025-row-wrapper.has-row-image .mzh2025-row-content {
    margin-left: calc(430px + max(0px, (100vw - 1200px) / 2));
    /*max-width: calc(1200px - (500px + max(0px, (100vw - 1200px) / 2)));*/
    max-width: calc(1200px - 495px);
    flex: 1;
}

.mzh2025-row-image {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc(410px + max(0px, (100vw - 1200px) / 2));
    min-width: 410px;
    overflow: hidden;
    z-index: 1;
}

.mzh2025-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mzh-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.mzh-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.mzh-list-item:last-child {
    margin-bottom: 0;
}

.mzh-list-icon {
    flex: 0 0 auto;
    color: var(--turquiose);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 2px;
}

.mzh-list-icon i {
    fill: var(--turquiose);
    color: var(--turquiose);
    width: 16px;
    height: 16px;
}

.mzh-list-text {
    flex: 1;
    line-height: 1.6;
    color: var(--font);
    font-size: 16px;
}


@media (max-width: 480px) {
    .mobile-nav-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mobile-nav-grid > li > a {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .mobile-menu-content {
        padding-top: 20px;
    }

    .mobile-nav-grid .sub-menu li.current-menu-item a {
        color: var(--turquiose);
        background-color: transparent;
        padding: 0;
        margin-left: 0;
        border-radius: 0;
        box-decoration-break: initial;
        -webkit-box-decoration-break: initial;
    }

    .mobile-nav-grid > li.current-menu-ancestor > a {
        color: var(--turquiose);
        background-color: var(--darkgrey);
        padding: 8px 12px;
        margin-left: -8px;
        border-radius: 4px;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        line-height: 1.4;
    }

    .mobile-nav-grid > li.current-menu-ancestor > a:hover {
        color: var(--white);
    }

    .mzh2025-row-content {
        padding: 30px;
        width: calc(100% - 60px);
    }

    .mzh2025-row-wrapper.has-row-image .mzh2025-row-content {
        flex-direction: column;
        min-height: auto;
        padding: 20px;
        margin-left: 0;
    }

    .mzh2025-row-image {
        position: static;
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }

    .mzh2025-row-wrapper.has-row-image .mzh2025-row-content > * {
        padding: 0;
    }
}

/* MZH List Widget Styles */
.mzh-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.mzh-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.mzh-list-item:last-child {
    margin-bottom: 0;
}

.mzh-list-icon {
    flex: 0 0 auto;
    color: var(--turquiose);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 2px;
}

.mzh-list-icon svg {
    fill: var(--turquiose);
    color: var(--turquiose);
    width: 16px;
    height: 16px;
}

.mzh-list-text {
    flex: 1;
    line-height: 1.6;
    color: var(--font);
    font-size: 16px;
}

.so-widget-mzh-so-card {
}

.mzh-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    cursor: default;
}

.mzh-card.mzh-card-clickable {
    cursor: pointer;
}

.mzh-card.mzh-card-clickable:hover {
    transform: translateY(-2px);
}

/* Card with photo */
.mzh-card.mzh-card-with-photo {
    background: #fff;
    position: relative;
}

.mzh-card.mzh-card-with-photo .mzh-card-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
}

.mzh-card.mzh-card-with-photo .mzh-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mzh-card.mzh-card-with-photo .mzh-card-content {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    min-height: auto;
    align-items: center;
}

.mzh-card.mzh-card-with-photo .mzh-card-headline {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    color: white;
}

.mzh-card.mzh-card-with-photo .mzh-card-subtitle {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    opacity: 0.9;
    color: white;
}

/* Card without photo */
.mzh-card.mzh-card-no-photo .mzh-card-content {
    height: calc(100% - 4rem);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    color: white;
    position: relative;
}

.mzh-card.mzh-card-no-photo .mzh-card-headline {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    align-self: flex-start;
    color: var(--white);
}

.mzh-card.mzh-card-no-photo .mzh-card-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.95;
    flex: 1;
}

.mzh-card.mzh-card-no-photo .mzh-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

/* Colors for cards without photo */
.mzh-card.mzh-card-no-photo.mzh-card-color-blue {
    background-color: var(--blue);
}

.mzh-card.mzh-card-no-photo.mzh-card-color-turquoise {
    background-color: var(--turquiose);
}

.mzh-card.mzh-card-no-photo.mzh-card-color-lightblue {
    background-color: var(--lightblue);
}

.mzh-card.mzh-card-no-photo.mzh-card-color-purple {
    background-color: var(--purple);
}

.mzh-card.mzh-card-no-photo.mzh-card-color-pink {
    background-color: var(--pink);
}

.mzh-card.mzh-card-no-photo.mzh-card-color-darkgrey {
    background-color: var(--darkgrey);
}

/* Colors for cards with photo (overlay background) */
.mzh-card.mzh-card-with-photo.mzh-card-color-blue .mzh-card-content {
    background: var(--blue);
    background: linear-gradient(135deg, var(--blue) 0%, rgba(29, 113, 184, 0.8) 100%);
}

.mzh-card.mzh-card-with-photo.mzh-card-color-turquoise .mzh-card-content {
    background: var(--turquiose);
    background: linear-gradient(135deg, var(--turquiose) 0%, rgba(54, 169, 225, 0.8) 100%);
}

.mzh-card.mzh-card-with-photo.mzh-card-color-lightblue .mzh-card-content {
    background: var(--lightblue);
    background: linear-gradient(135deg, var(--lightblue) 0%, rgba(134, 194, 235, 0.8) 100%);
}

.mzh-card.mzh-card-with-photo.mzh-card-color-purple .mzh-card-content {
    background: var(--purple);
    background: linear-gradient(135deg, var(--purple) 0%, rgba(45, 46, 131, 0.8) 100%);
}

.mzh-card.mzh-card-with-photo.mzh-card-color-pink .mzh-card-content {
    background: var(--pink);
    background: linear-gradient(135deg, var(--pink) 0%, rgba(189, 21, 78, 0.8) 100%);
}

.mzh-card.mzh-card-with-photo.mzh-card-color-darkgrey .mzh-card-content {
    background: var(--darkgrey);
    background: linear-gradient(135deg, var(--darkgrey) 0%, rgba(44, 44, 49, 0.8) 100%);
}

/* Photo-only cards */
.mzh-card.mzh-card-photo-only {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.mzh-card.mzh-card-photo-only .mzh-card-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
}

.mzh-card.mzh-card-photo-only.mzh-card-clickable:hover {
    transform: translateY(-2px);
}

/* Hover effect for photo-only cards with links */
.mzh-card.mzh-card-photo-only.mzh-card-clickable:hover .mzh-card-photo {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.mzh-card.mzh-card-photo-only .mzh-card-photo {
    transition: transform 0.3s ease;
}

/* Card arrow for linked cards */
.mzh-card .mzh-card-arrow {
    bottom: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mzh-card .mzh-card-arrow i {
    font-size: 2.3rem;
}

.mzh-card.mzh-card-clickable:hover .mzh-card-arrow {
    transform: translateX(3px);
    color: rgba(255, 255, 255, 1);
}

/* Arrow for cards without photo */
.mzh-card.mzh-card-no-photo .mzh-card-arrow {
    color: rgba(255, 255, 255, 0.9);
}

.mzh-card.mzh-card-no-photo.mzh-card-clickable:hover .mzh-card-arrow {
    color: rgba(255, 255, 255, 1);
}

/* Link overlay */
.mzh-card .mzh-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Double-width card styles */
.mzh-card.mzh-card-double-width {
    aspect-ratio: 2.23/1; /*TODO*/
}

/* Double-height card styles */
.mzh-card.mzh-card-double-height {
    aspect-ratio: 1/2; /*TODO*/
}

/* Mobile responsiveness - reset to square on mobile */
@media (max-width: 768px) {
    .mzh-card.mzh-card-double-width {
        aspect-ratio: 1/1;
    }
    
    .mzh-card.mzh-card-double-height {
        aspect-ratio: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mzh-card.mzh-card-with-photo .mzh-card-content {
        padding: 1.5rem;
    }

    .mzh-card.mzh-card-with-photo .mzh-card-headline {
        font-size: 1.1rem;
    }

    .mzh-card.mzh-card-with-photo .mzh-card-subtitle {
        font-size: 0.85rem;
    }

    .mzh-card.mzh-card-no-photo .mzh-card-content {
        padding: 1.5rem;
        height: calc(100% - 3rem);
    }

    .mzh-card.mzh-card-no-photo .mzh-card-headline {
        font-size: 1.2rem;
    }

    .mzh-card.mzh-card-no-photo .mzh-card-description {
        font-size: 0.9rem;
    }
}

/* MZH Logo Slider Widget Styles */
.mzh-logo-slider-container {
    margin: 20px 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mzh-logo-slider {
    position: relative;
    max-width: 1200px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mzh-logo-slider-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.mzh-logo-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    align-items: center;
}

.mzh-logo-item {
    flex: 0 0 25%; /* Default: 4 logos per view */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    min-width: 0; /* Prevent flex items from overflowing */
}

.mzh-logo-link {
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
}

.mzh-logo-link:hover {
    transform: translateY(-2px);
}

.mzh-logo-image {
    width: 100%;
    height: auto;
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    background: transparent;
    display: block;
}

/* Slider Arrows */
.mzh-slider-arrow {
    border: none;
    background-color: transparent;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

.mzh-slider-prev.mzh-slider-arrow:hover {
    transform: translateX(-2px);
}

.mzh-slider-next.mzh-slider-arrow:hover {
    transform: translateX(2px);
}

.mzh-slider-arrow i {
    color: var(--turquiose);
    font-size: 2.5rem;
    line-height: 1;
}

.mzh-slider-prev {
    order: 1;
}

.mzh-slider-next {
    order: 3;
}

.mzh-logo-slider-wrapper {
    order: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mzh-logo-item {
        flex: 0 0 100%;
    }
    
    /* Stack images vertically under 1024px */
    .mzh2025-row-wrapper.has-row-image {
        flex-direction: column;
        min-height: auto;
    }
    
    .mzh2025-row-wrapper.has-row-image .mzh2025-row-content {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        width: calc(100% - 120px);
        padding: 100px 60px 100px 60px;
    }
    
    .mzh2025-row-image {
        position: static;
        width: 100%;
        height: 300px;
        margin-bottom: 0;
        order: -1;
    }
}

@media (max-width: 768px) {
    .mzh-logo-item {
        flex: 0 0 100%;
        padding: 0.5rem;
    }
    
    .mzh-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .mzh-slider-arrow i {
        font-size: 1.2rem;
    }
    
    .mzh-logo-image {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .mzh-logo-item {
        flex: 0 0 100%;
    }
    
    .mzh-logo-slider {
        gap: 15px;
    }
    
    .mzh-logo-image {
        max-height: 60px;
    }
    
    .mzh-slider-arrow {
        width: 36px;
        height: 36px;
    }
    
    .mzh-slider-arrow i {
        font-size: 1.1rem;
    }

    .mzh2025-row-wrapper.has-row-image .mzh2025-row-content {
        width: calc(100% - 60px);
        padding: 30px;
    }
}

/* ===== TESTIMONIAL WIDGET ===== */

.mzh-testimonial {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 1rem 0;
    position: relative;
}

/* Layout Variants */
.mzh-testimonial-side-by-side {
    flex-direction: row;
}

.mzh-testimonial-side-by-side.mzh-testimonial-image-right {
    flex-direction: row-reverse;
}

.mzh-testimonial-stacked {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 20px;
}

.mzh-testimonial-image-container {
    border-radius: 8px;
}

.mzh-testimonial-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    z-index: 1;
}

.mzh-testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mzh-testimonial-stacked .mzh-testimonial-content {
    flex: none;
    width: 100%;
}

.mzh-testimonial-quote {
    line-height: 1.6;
    font-style: italic;
    color: var(--font);
    opacity: 0.8;
    margin: 0 0 1.5rem 0;
    position: relative;
    font-weight: 600;
    z-index: 1;
}

.mzh-testimonial-quote-mark {
    opacity: 0.1;
    position: absolute;
    top: -20px;
    margin-left: 40px;
    z-index: 0;
    width: 120px;
}

.mzh-testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--darkgrey);
}

.mzh-testimonial-meta {
    font-size: 14px;
    color: var(--darkgrey);
    opacity: 0.8;
}

.mzh-testimonial-function,
.mzh-testimonial-company {
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mzh-testimonial {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .mzh-testimonial-quote-mark {
        margin-left: 0;
    }

    .mzh-testimonial-side-by-side,
    .mzh-testimonial-side-by-side.mzh-testimonial-image-right {
        flex-direction: column;
        text-align: center;
    }
    
    .mzh-testimonial-image {
        width: 140px;
        height: 140px;
    }
    
    .mzh-testimonial-quote {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .mzh-testimonial {
        padding: 1rem;
        gap: 1rem;
        margin: 0.5rem 0;
    }
    
    .mzh-testimonial-image {
        width: 120px;
        height: 120px;
    }
    
    .mzh-testimonial-quote {
        font-size: 0.95rem;
    }

    .mzh-testimonial-quote-mark {
        margin-left: -10px;
    }
    
    .mzh-testimonial-name {
        font-size: 1rem;
    }
    
    .mzh-testimonial-meta {
        font-size: 0.9rem;
    }
}

.mzh2025-row-wrapper.row-color-darkgrey .mzh-testimonial-quote-mark {
    opacity: 1 !important;
}

/* Blog Cards Widget */
.mzh-blog-cards-container {
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

.mzh-blog-cards-wrapper {
    padding-top: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    transition: transform 0.3s ease;
}

.mzh-blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mzh-blog-card:hover {
    transform: translateY(-5px);
}

.mzh-blog-card-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 60%;
}

.mzh-blog-card-image a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mzh-blog-card-image .card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mzh-blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mzh-blog-card-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mzh-blog-card-category {
    font-size: 12px;
    color: var(--turquiose);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: inline-block;
}

h3.mzh-blog-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.mzh-blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mzh-blog-card-title a:hover {
    color: #007cba;
}

.mzh-blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-size: 15px;
}

.mzh-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, gap 0.3s ease;
    margin-top: auto;
}

.mzh-blog-card-link:hover {
    color: #005a87;
    gap: 12px;
}

.mzh-blog-card-link .material-icons {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.mzh-blog-card-link:hover .material-icons {
    transform: translateX(1px);
}

/* Arrow navigation */
.mzh-blog-cards-navigation,
.mzh-blog-cards-navigation-desktop {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mzh-blog-arrow {
    border-radius: 8px;
    border: 2px solid var(--turquiose);
    background: transparent;
    color: var(--turquiose);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.mzh-blog-arrow:hover:not(:disabled) {
    background: var(--turquiose);
    color: var(--white);
}

.mzh-blog-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.mzh-blog-arrow .material-symbols-sharp {
    font-size: 20px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.mzh-blog-cards-navigation-desktop {
    display: none;
}

.mzh-blog-cards-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
}

/* No posts fallback */
.mzh-blog-cards-no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .mzh-blog-cards-navigation {
        display: none;
    }
    
    .mzh-blog-cards-navigation-desktop {
        display: flex;
    }
}

@media (max-width: 1200px) {
    .mzh-blog-cards-wrapper {
        gap: 40px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mzh-blog-cards-wrapper:not(.mobile-swipe-active) {
        grid-template-columns: repeat(2, 1fr);
    }
    .mzh-blog-cards-wrapper .mzh-blog-card:first-child {
        grid-column: 1 / -1; /* span 2 columns */
    }

}

@media (max-width: 768px) {
    .mzh-blog-cards-container.has-mobile-swipe .mzh-blog-cards-wrapper {
        display: flex;
        width: calc((100% - 40px) * var(--cards-count));
        gap: 20px;
        grid-template-columns: none;
        margin: 0;
    }
    
    .mzh-blog-cards-container:not(.has-mobile-swipe) .mzh-blog-cards-wrapper {
        grid-template-columns: 1fr;
    }
    
    .mzh-blog-cards-container.has-mobile-swipe .mzh-blog-card {
        width: calc(100% - 40px);
        max-width: calc((100% + 120px) / var(--cards-count));
        flex-shrink: 0;
    }
    
    .mzh-blog-cards-navigation {
        display: flex;
    }
    
    .mzh-blog-cards-navigation-desktop {
        display: none;
    }

    .mzh-blog-cards-button-container {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .mzh-blog-card-title {
        font-size: 18px;
    }
}

/* Blog Post Layout for Index Page */
.mzh-blog-post-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.mzh-blog-post-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.mzh-blog-post-image {
    flex: 0 0 calc(33.3% - ( 0.667 * 60px ) );
    max-width: calc(33.3% - ( 0.667 * 60px ) );
}

.mzh-blog-post-image img.mzh-post-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.3s ease
}

.mzh-blog-post-image img.mzh-post-thumbnail:hover {
    transform: translateY(-2px);
}

.mzh-post-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.mzh-blog-post-content {
    flex: 1;
    min-width: 0;
}

/* Pagination Styles */
.mzh-pagination {
    margin: 3rem 0;
    text-align: center;
    display: flex;
    justify-content: start;
}

.mzh-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.mzh-pagination .page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mzh-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--turquiose);
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--turquiose);
    background-color: transparent;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.mzh-pagination .page-numbers:hover,
.mzh-pagination .page-numbers.current {
    background-color: var(--turquiose);
    color: white;
}

/* Category Filter Dropdown */
.mzh-category-filter {
    margin-bottom: 4rem;
    display: flex;
    justify-content: flex-start;
}

.mzh-dropdown {
    position: relative;
    display: inline-block;
}

.mzh-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    min-width: 200px;
    justify-content: space-between;
}

.mzh-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: inherit;
}

.mzh-dropdown.active .mzh-dropdown-arrow {
    transform: rotate(180deg);
}

.mzh-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: none;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mzh-dropdown.active .mzh-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mzh-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--font);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.mzh-dropdown-item:hover {
    background-color: var(--lightgrey);
    color: var(--turquiose);
}

.mzh-dropdown-item.active {
    background-color: var(--turquiose);
    color: white;
}

.mzh-dropdown-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .mzh-blog-post-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mzh-blog-post-image {
        flex: none;
        max-width: 100%;
    }
    
    .mzh-blog-post-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .mzh-dropdown-toggle {
        min-width: 180px;
        padding: 10px 16px;
    }
}
/* MZH Grid Cards Widget Styles */

.mzh-grid-cards-widget {
    margin: 40px 0;
    container-type: inline-size;
}

.mzh-grid-cards-widget .widget-title {
    font-size: 24px;
    margin: 0 0 24px;
    color: #0b2940;
}

/* Auto Grid Layout System */
.mzh-auto-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: auto;    /* automatische Höhe */
    grid-auto-flow: dense;   /* füllt Lücken */
    align-items: stretch;
}

/* Card Size Variations */
.mzh-auto-grid .mzh-grid-size-small {
    grid-column: span 1;
    grid-row: span 1;
}

.mzh-auto-grid .mzh-grid-size-normal {
    grid-column: span 1;
    grid-row: span 1;
}

.mzh-auto-grid .mzh-grid-size-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.mzh-auto-grid .mzh-grid-size-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.mzh-auto-grid .mzh-grid-size-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Default aspect ratios im Grid */
.mzh-auto-grid .mzh-card {
    aspect-ratio: 1/1;
    height: auto;
    min-height: 250px;
    margin: 0;
}

/* Override for photo cards */
.mzh-auto-grid .mzh-card-with-photo {
    min-height: 250px;
    aspect-ratio: unset;
}
.mzh-auto-grid .mzh-grid-size-small.mzh-card-with-photo {
    aspect-ratio: 1/1;
}
.mzh-auto-grid .mzh-grid-size-tall.mzh-card-with-photo {
    aspect-ratio: unset;
}
.mzh-auto-grid .mzh-grid-size-large.mzh-card-with-photo {
    aspect-ratio: 1/1;
}

/* Responsive Grid Adjustments */
@container (max-width: 900px) {
    .mzh-auto-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }

    .mzh-auto-grid .mzh-grid-size-wide,
    .mzh-auto-grid .mzh-grid-size-large {
        grid-column: span 1;
    }
}

@container (max-width: 736px) {
    .mzh-auto-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* alle Karten gleich behandeln -> Querformat */
    .mzh-auto-grid .mzh-card,
    .mzh-auto-grid .mzh-card-with-photo,
    .mzh-auto-grid .mzh-grid-size-small.mzh-card-with-photo,
    .mzh-auto-grid .mzh-grid-size-tall.mzh-card-with-photo,
    .mzh-auto-grid .mzh-grid-size-large.mzh-card-with-photo {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 2 / 1;
    }
}

/* Fallback for browsers ohne container queries */
@supports not (container-type: inline-size) {
    @media (max-width: 900px) {
        .mzh-auto-grid {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 16px;
        }

        .mzh-auto-grid .mzh-grid-size-wide,
        .mzh-auto-grid .mzh-grid-size-large {
            grid-column: span 1;
        }
    }

    @media (max-width: 736px) {
        .mzh-auto-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .mzh-auto-grid .mzh-card,
        .mzh-auto-grid .mzh-card-with-photo,
        .mzh-auto-grid .mzh-grid-size-small.mzh-card-with-photo,
        .mzh-auto-grid .mzh-grid-size-large.mzh-card-with-photo {
            grid-column: span 1;
            grid-row: span 1;
            aspect-ratio: 2 / 1;
        }
    }
}


.widget_media_video {
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-height: 800px) {
    .home-slider-description {
        display: none;
    }

    .home-slider-button {
        display: none !important;
    }
}

/* Mobile slider and navbar modifications */
@media (max-width: 768px), (max-height: 600px){
    /* Hide the slider overlay on mobile */

    .nav-bar-wrapper {
        align-items: flex-start;
        padding-bottom: 20px;
    }
    .home-slider-overlay {
        width: 100%;
        background-color: transparent;
        backdrop-filter: none;
    }

    .home-slider-overlay-content, .home-slider-logo {
        display: none;
    }

    /* Apply overlay background to navbar on mobile */
    .nav-bar.home {
        background: rgba(0, 55, 102, 0.5) !important;
        backdrop-filter: blur(6px);
    }

    /* Remove background from navbar-wrapper when menu is opened */
    .nav-bar.active {
        background: none !important;
        backdrop-filter: none;
    }

    .nav-bar .logo-header{
        visibility: visible !important;
    }

    .nav-bar:not .header-logo {
        content: url('./inc/img/logo_menu.svg');
        filter: none !important;
        transition: transform 0.3s ease;
    }

    /* Show logo on mobile home page but use slider logo initially */
    .nav-bar.home .header-logo {
        content: url('./inc/img/logo_header_white_mobile.svg');
        filter: none !important;
    }

    /* After scrolling, use normal logo */
    .nav-bar.home.scrolled .header-logo {
        content: url('./inc/img/logo_header.svg');
    }

    /* White background after scrolling */
    .nav-bar.home.scrolled:not(.active) {
        background: white !important;
        backdrop-filter: none;
    }

    /* Logo sliding is handled by JavaScript in mzh2025_toggleSearch() */

    /* Hide mobile nav button when search is opened */
    .search-form.active ~ .mobile-nav-button {
        opacity: 0;
        visibility: hidden;
    }

    /* Fixed slider height (not 100vh) */
    .home-slider-wrapper {
        height: 600px;
        min-height: 600px;
    }

    .home-slider-slide {
        height: 600px;
    }

    /* Make sure dots are visible on mobile (outside of hidden overlay) */
    .home-slider-wrapper .home-slider-dots {
        display: flex !important;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        width: auto;
        padding: 0;
        background: none;
    }
}

/* Contact Form 7 Styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
    background-color: var(--lightgrey);
    border: 1px solid #D8E0EB;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Fokus-Effekt */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--turquiose); /* optional: etwas dunkler beim Fokus */
}

/* Buttons */
.wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Open Sauce Two', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    -webkit-appearance: none;

    /* zusätzlich typische Farben */
    background-color: transparent;
    border: 2px solid var(--turquiose);
    color: var(--turquiose);
    padding: 10px 20px;
    font-size: 14px;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--turquiose); /* leichter Hover-Effekt */
    color: white;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 0.2em 1em;
    border-left: 4px solid #00a0d2;
    border-bottom: none;
    border-top: none;
    border-right: none;
}

.mzh-text-small p {
    font-size: 14px;
}
.mzh-text-large p {
    font-size: 24px;
}