/* MH24 1.3.0 – Erlebniskategorien für Desktop, Handy und Hofprofile. */
body.mh24hc-active .mh24hc-experiences-nav { position: relative; }
body.mh24hc-active .mh24hc-experiences-dropdown > summary {
    list-style: none; display: inline-flex; align-items: center; gap: 6px;
    min-height: 42px; padding: 9px 11px; border-radius: 8px;
    color: #34483b; font-weight: 600; font-size: 14px; cursor: pointer;
    white-space: nowrap;
}
body.mh24hc-active .mh24hc-experiences-dropdown > summary::-webkit-details-marker { display: none; }
body.mh24hc-active .mh24hc-experiences-dropdown > summary:hover,
body.mh24hc-active .mh24hc-experiences-dropdown[open] > summary,
body.mh24hc-active .mh24hc-experiences-dropdown > summary.mh24hc-current { background: #eff7ec; color: #286a43; }
body.mh24hc-active .mh24hc-experiences-dropdown[open] .mh24hc-chevron { transform: rotate(180deg); }
body.mh24hc-active .mh24hc-experiences-submenu {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 7px;
    position: absolute; left: 0; top: calc(100% + 8px); z-index: 200;
    width: min(530px, calc(100vw - 30px)); max-height: 68vh; overflow: auto;
    padding: 13px; margin: 0; border: 1px solid #dce7dc;
    border-radius: 12px; background: #fff; box-shadow: 0 14px 33px rgba(22,50,29,.17);
}
body.mh24hc-active .mh24hc-experiences-submenu li { list-style: none; margin: 0; padding: 0; }
body.mh24hc-active .mh24hc-experiences-submenu li:first-child { grid-column: 1 / -1; }
body.mh24hc-active .mh24hc-experiences-submenu a { white-space: normal; line-height: 1.35; width: 100%; }
body.mh24hc-active .mh24hc-experiences-submenu .mh24hc-all-experiences { font-weight: 750; color: #286a43; }
body.mh24hc-active .mh24hc-experiences-dropdown summary:focus-visible,
body.mh24hc-active .mh24hc-experiences-submenu a:focus-visible { outline: 3px solid #dc9534; outline-offset: 3px; }
/* Short submenu title fits at normal desktop widths; collapse only on narrower screens. */
@media (max-width: 1120px) {
    body.mh24hc-replace .mh24hc-desktop-nav { display: none; }
    body.mh24hc-replace .mh24hc-account { margin-left: auto; }
    body.mh24hc-replace .mh24hc-mobile-nav { display: block; }
    body.mh24hc-replace .mh24hc-mobile-nav summary {
        list-style: none; display: inline-flex; align-items: center; justify-content: center;
        gap: 8px; min-height: 42px; padding: 8px 11px; border-radius: 8px;
        border: 1px solid #cbdccc; color: #173a29; font-weight: 600; cursor: pointer;
    }
    body.mh24hc-replace .mh24hc-mobile-nav summary::-webkit-details-marker { display: none; }
    body.mh24hc-replace .mh24hc-mobile-nav summary svg { width: 20px; height: 20px; }
    body.mh24hc-replace .mh24hc-mobile-nav nav {
        position: absolute; top: calc(100% + 8px); right: 0;
        width: min(340px, calc(100vw - 28px)); padding: 8px;
        background: #fff; border: 1px solid #e0e9dd; border-radius: 12px;
        box-shadow: 0 16px 30px rgba(20,48,28,.14);
    }
    body.mh24hc-replace .mh24hc-mobile-nav .mh24hc-links { display: flex; flex-direction: column; align-items: stretch; }
    body.mh24hc-replace .mh24hc-mobile-nav .mh24hc-links a { display: flex; width: 100%; }
    body.mh24hc-active .mh24hc-mobile-nav .mh24hc-experiences-nav { width: 100%; }
    body.mh24hc-active .mh24hc-mobile-nav .mh24hc-experiences-dropdown > summary { width: 100%; justify-content: space-between; }
    body.mh24hc-active .mh24hc-mobile-nav .mh24hc-experiences-submenu {
        position: static; display: grid; grid-template-columns: 1fr; width: 100%;
        max-height: 42vh; padding: 4px 5px 4px 14px; margin: 0;
        border: 0; border-left: 2px solid #d1e2ce; border-radius: 0;
        background: #fbfdfb; box-shadow: none;
    }
    body.mh24hc-active .mh24hc-mobile-nav .mh24hc-experiences-submenu li:first-child { grid-column: auto; }
    /* Existing products submenu also adapts to earlier mobile breakpoint. */
    body.mh24hc-replace .mh24hc-mobile-nav .mh24hc-products-nav { width: 100%; }
    body.mh24hc-replace .mh24hc-mobile-nav .mh24hc-products-dropdown > summary { display: flex; width: 100%; }
    body.mh24hc-replace .mh24hc-mobile-nav .mh24hc-product-submenu {
        position: static; grid-template-columns: 1fr; width: 100%; max-height: 42vh;
        padding: 4px 5px 4px 14px; border: 0; border-left: 2px solid #d1e2ce;
        border-radius: 0; background: #fbfdfb; box-shadow: none;
    }
    body.mh24hc-replace .mh24hc-mobile-nav .mh24hc-product-submenu li:first-child { grid-column: auto; }
}
/* Optimized theme header: allow menu dropdown without replacing the original navigation. */
body.mh24hc-optimize .main-navigation .mh24hc-experiences-nav { position: relative; }
body.mh24hc-optimize .main-navigation .mh24hc-experiences-dropdown > summary { color: inherit; }
body.mh24hc-optimize .main-navigation .mh24hc-experiences-submenu a {
    color: #34483b; line-height: 1.35; background: #fff; padding: 9px 11px;
}
/* Visitor-facing experience catalogue. */
.mh24hc-experience-catalog { color: #173a29; max-width: 1320px; margin: 20px auto 40px; padding: 0 14px; }
.mh24hc-experience-catalog * { box-sizing: border-box; }
.mh24hc-experience-intro h1 { font-size: clamp(26px,3.4vw,38px); margin: 0 0 10px; line-height: 1.2; }
.mh24hc-experience-intro p { max-width: 820px; color: #4c6254; margin: 0 0 22px; }
.mh24hc-experience-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,265px),1fr)); gap: 15px; }
.mh24hc-experience-card { border: 1px solid #dce7dc; background: #fff; padding: 22px; border-radius: 16px;
    display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: #22462c; min-height: 205px;
}
.mh24hc-experience-card:hover { border-color: #76a96a; background: #f5fbf2; box-shadow: 0 5px 20px rgba(25,60,35,.06); }
.mh24hc-experience-card:focus-visible, .mh24hc-experience-back:focus-visible { outline: 3px solid #cf852d; outline-offset: 3px; }
.mh24hc-experience-icon { font-size: 33px; line-height: 1.2; }
.mh24hc-experience-card strong { font-size: 18px; }
.mh24hc-experience-card > span:not(.mh24hc-experience-icon):not(.mh24hc-experience-action) { color: #516459; font-size: 14px; }
.mh24hc-experience-action { color: #266641; font-weight: 700; margin-top: auto; }
.mh24hc-experience-note { font-size: 13px; color: #526554; margin-top: 20px; }
.mh24hc-experience-farms { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: 12px; list-style: none; margin: 22px 0; padding: 0; }
.mh24hc-experience-farms li { margin: 0; padding: 0; list-style: none; }
.mh24hc-experience-farms a { display: block; border: 1px solid #d9e6d4; border-radius: 10px; padding: 18px;
    background: #f7faf5; font-weight: 700; color: #225637; }
.mh24hc-experience-empty { padding: 18px; border-left: 3px solid #7da96b; background: #f6faf4; }
.mh24hc-experience-back { color: #286a43; font-weight: 700; }
/* Operator experience editor */
.mh24hc-experience-editor { border: 1px solid #dce7dc; border-radius: 14px; margin: 25px 0; padding: 20px; background: #fff; }
.mh24hc-experience-editor-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: 9px; margin: 15px 0; }
.mh24hc-experience-choice { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #e0e9dd; padding: 12px; border-radius: 9px; background: #fafdfa; cursor: pointer; }
.mh24hc-experience-choice input { margin-top: 4px; }
.mh24hc-experience-saved { color: #166334; font-weight: 700; }

/* 1.3.1: inherit site typography for menu, hero and category cards. */
body.mh24hc-active .mh24hc-experiences-dropdown > summary,
body.mh24hc-active .mh24hc-experiences-submenu a {
    font-family: inherit;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
}
body.mh24hc-optimize .main-navigation .mh24hc-experiences-dropdown > summary {
    font-size: inherit;
    font-weight: inherit;
    line-height: 46px;
    padding-top: 0;
    padding-bottom: 0;
}
.mh24hc-experience-catalog,
.mh24hc-experience-catalog .mh24hc-experience-card {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.5;
}
.mh24hc-experience-catalog h1,
.mh24hc-experience-catalog h2,
.mh24hc-experience-catalog .mh24hc-experience-card strong {
    font-family: inherit;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
}
.mh24hc-experience-grid-title {
    font-size: clamp(21px,2.5vw,29px);
    font-weight: 700;
    line-height: 1.3;
    color: #173a29;
    margin: 20px 0 15px;
}
@media (max-width: 1070px) {
    body.mh24hc-optimize .main-navigation .mh24hc-experiences-dropdown > summary {
        line-height: 1.4;
        min-height: 44px;
        padding: 10px 11px;
    }
}

/* 1.3.3: Make the short Erlebnisse dropdown genuinely selectable (desktop/mobile). */
body.mh24hc-active .mh24hc-experiences-dropdown:not([open]) > .mh24hc-experiences-submenu {
    display: none !important;
}
body.mh24hc-active .mh24hc-experiences-dropdown[open] > .mh24hc-experiences-submenu {
    display: grid !important;
}
body.mh24hc-active .mh24hc-experiences-nav,
body.mh24hc-active .mh24hc-experiences-dropdown { position: relative; }
body.mh24hc-active .mh24hc-experiences-dropdown > summary { min-height: 44px; }
body.mh24hc-optimize .main-navigation,
body.mh24hc-optimize .main-navigation .inside-navigation,
body.mh24hc-optimize .main-navigation .main-nav { overflow: visible; }
body.mh24hc-optimize .main-navigation .mh24hc-experiences-submenu {
    z-index: 2000; left: 0; top: 100%; margin: 0;
}
body.mh24hc-optimize .main-navigation .mh24hc-experiences-submenu a {
    display: block; min-height: 43px; color: #34483b !important;
    line-height: 1.35 !important; background: #fff; padding: 10px 12px !important;
    white-space: normal !important; font-weight: 500;
}
@media (max-width: 900px) {
    body.mh24hc-active .mh24hc-mobile-nav .mh24hc-experiences-submenu,
    body.mh24hc-optimize .main-navigation .mh24hc-experiences-submenu {
        position: static; grid-template-columns: minmax(0,1fr); width: 100%;
        max-height: 50vh; overflow-y: auto; padding: 7px;
    }
}
body.mh24hc-active .mh24hc-experiences-submenu li { float: none !important; width: auto; clear: none; }

/* 1.3.4: independent clickable control, independent of theme hover/details CSS. */
body.mh24hc-active .mh24hc-experiences-nav,
body.mh24hc-active .mh24hc-experiences-dropdown { position: relative; }
body.mh24hc-active button.mh24hc-experiences-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    width: auto;
    min-height: 44px;
    padding: 10px 12px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    color: #30483a !important;
    background: transparent !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap;
    cursor: pointer !important;
    pointer-events: auto !important;
}
body.mh24hc-active button.mh24hc-experiences-toggle:hover,
body.mh24hc-active button.mh24hc-experiences-toggle[aria-expanded="true"] {
    background: #eff7ec !important; color: #286a43 !important;
}
body.mh24hc-active button.mh24hc-experiences-toggle:focus-visible {
    outline: 3px solid #d78d27 !important; outline-offset: 2px;
}
body.mh24hc-active button.mh24hc-experiences-toggle[aria-expanded="true"] .mh24hc-chevron { transform: rotate(180deg); }
body.mh24hc-active .mh24hc-experiences-submenu[hidden] { display: none !important; }
body.mh24hc-active ul.mh24hc-experiences-submenu.mh24hc-floating-experiences {
    position: fixed !important;
    top: auto;
    bottom: auto;
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 4px;
    z-index: 2147480000 !important;
    overflow: auto;
    padding: 12px !important;
    margin: 0 !important;
    list-style: none;
    background: #fff !important;
    border: 1px solid #ccddca !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 40px rgba(15,43,22,.22) !important;
}
body.mh24hc-active ul.mh24hc-floating-experiences > li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
body.mh24hc-active ul.mh24hc-floating-experiences > li:first-child {grid-column: 1 / -1;}
body.mh24hc-active ul.mh24hc-floating-experiences a {
    display: block !important;
    width: 100%; min-height: 44px;
    padding: 10px !important;
    border-radius: 7px;
    color: #244f36 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
    text-decoration: none;
    white-space: normal !important;
    background: #fff !important;
}
body.mh24hc-active ul.mh24hc-floating-experiences a:hover,
body.mh24hc-active ul.mh24hc-floating-experiences a:focus-visible {
    color: #17472a !important; background: #eff7ec !important;
    outline-offset: 1px;
}
@media (max-width: 560px) {
    body.mh24hc-active ul.mh24hc-floating-experiences {grid-template-columns: 1fr !important;}
}

/* v1.4: Native dropdown works on keyboard/touch with JavaScript unavailable. */
body.mh24hc-active details.mh24hc-experiences-native { position: relative; z-index: 300; }
body.mh24hc-active details.mh24hc-experiences-native > summary { cursor: pointer; }
body.mh24hc-active details.mh24hc-experiences-native:not([open]) > ul { display: none !important; }
body.mh24hc-active details.mh24hc-experiences-native[open] > ul { display: grid !important; }
body.mh24hc-active details.mh24hc-experiences-native > summary:focus-visible { outline: 3px solid #ce8427; outline-offset: 2px; }
@media (max-width: 767px) {
 body.mh24hc-active details.mh24hc-experiences-native[open] > ul {
  position: static !important; width: 100% !important;
  max-height: 52vh; grid-template-columns: 1fr !important; overflow-y: auto;
 }
}

/* 1.4.1: Layout-neutral navigation: always keep a real Erlebnisse link. */
body.mh24hc-active .mh24hc-experiences-inline {
  display: inline-flex; align-items: center; max-width: 100%; gap: 0;
  font: inherit;
}
body.mh24hc-active .mh24hc-experiences-inline > a.mh24hc-experiences-main-link {
  display: inline-flex; align-items: center; padding: 9px 8px 9px 12px;
  min-height: 44px; color: inherit; text-decoration: none; font: inherit;
  white-space: nowrap;
}
body.mh24hc-active .mh24hc-experiences-inline > a.mh24hc-experiences-main-link:focus-visible {
  outline: 3px solid #cb8423; outline-offset: 2px;
}
body.mh24hc-active .mh24hc-experiences-inline details > summary {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; min-height: 44px; padding: 4px;
  font: inherit; cursor: pointer; list-style: none;
}
body.mh24hc-active .mh24hc-experiences-inline details > summary::-webkit-details-marker {display: none;}
body.mh24hc-active .mh24hc-experiences-inline .mh24hc-experiences-submenu {
  right: 0; left: auto; max-width: calc(100vw - 24px); z-index: 99999;
  background: #fff; list-style: none;
}
body.mh24hc-active details.mh24hc-experiences-native:not([open]) > ul {display:none!important;}
body.mh24hc-active details.mh24hc-experiences-native[open] > ul {display:grid!important;}
@media(max-width:767px){body.mh24hc-active .mh24hc-experiences-inline details[open] > ul {
  position: absolute!important; right:0; left:auto; width:min(330px,calc(100vw - 24px))!important;
  max-height:55vh; overflow:auto;
}}

/* Classic theme menu with existing Erlebnisse link: leave its anchor usable. */
body.mh24hc-active .main-navigation li.mh24hc-experiences-nav:has(> a) {
  display: inline-flex; align-items: center; flex-wrap: nowrap;
}
body.mh24hc-active .main-navigation li.mh24hc-experiences-nav > details {display: inline-block;}
