/* CampingfursMap V46.0-TEST1-N1 / T-024: EIN globaler Unterseitenkopf, drei Originaldesigns. */
html[data-theme="classic"] .cfm46-global-header,
html[data-theme="campingfurs"] .cfm46-global-header,
html[data-theme="community2"] .cfm46-global-header{
  --cfm46-head-bg:#f7faf7;--cfm46-head-ink:#143c2c;--cfm46-head-border:#cadbd0;
  --cfm46-head-active:#245f3d;--cfm46-head-active-bg:#e8f2ec;
}
html[data-theme="campingfurs"] .cfm46-global-header{
  --cfm46-head-bg:#f5eee2;--cfm46-head-ink:#143c2c;--cfm46-head-border:#d3b99b;
  --cfm46-head-active:#245f3d;--cfm46-head-active-bg:#fffdf8;
  background-image:linear-gradient(90deg,rgba(126,70,31,.08),transparent 32%,rgba(36,95,61,.07));
}
html[data-theme="community2"] .cfm46-global-header{
  --cfm46-head-bg:#173441;--cfm46-head-ink:#ffffff;--cfm46-head-border:#2b4b56;
  --cfm46-head-active:#173441;--cfm46-head-active-bg:#ffffff;
}
/* Single normalised header: all page-local topbars are REMOVED in PHP, not hidden in CSS. */
html body .cfm46-global-header{
  box-sizing:border-box!important;position:relative!important;z-index:70!important;
  margin:0!important;padding:0!important;width:100%!important;height:auto!important;
  min-height:76px!important;max-width:none!important;display:block!important;
  background-color:var(--cfm46-head-bg)!important;color:var(--cfm46-head-ink)!important;
  border:0!important;border-bottom:1px solid var(--cfm46-head-border)!important;
  box-shadow:0 2px 10px rgba(13,42,43,.07)!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
  line-height:1.3!important;text-align:left!important;
}
html body .cfm46-global-header *,html body .cfm46-global-header *::before,html body .cfm46-global-header *::after{box-sizing:border-box}
html body .cfm46-global-header .cfm46-global-inner{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:18px!important;min-height:76px!important;max-width:1380px!important;margin:0 auto!important;
  padding:8px 22px!important;width:100%!important;
}
html body .cfm46-global-header .cfm46-global-brand{
  display:flex!important;align-items:center!important;flex:0 0 auto!important;gap:10px!important;
  padding:0!important;margin:0!important;width:185px!important;min-width:0!important;
  color:var(--cfm46-head-ink)!important;text-decoration:none!important;background:none!important;border:none!important;
}
html body .cfm46-global-header .cfm46-global-logo{
  display:block!important;height:auto!important;max-width:100%!important;max-height:55px!important;
  width:100%!important;object-fit:contain!important;object-position:left center!important;
  filter:none!important;border:0!important;
}
html[data-theme="campingfurs"] body .cfm46-global-header .cfm46-global-brand{width:210px!important}
html[data-theme="campingfurs"] body .cfm46-global-header .cfm46-global-logo{width:43px!important;height:43px!important;flex:0 0 43px!important}
html body .cfm46-global-header .cfm46-global-brand-text{display:flex!important;flex-direction:column!important;color:var(--cfm46-head-ink)!important;white-space:nowrap!important}
html body .cfm46-global-header .cfm46-global-brand-text strong{font-size:17px!important;font-weight:800!important}
html body .cfm46-global-header .cfm46-global-brand-text small{font-size:10px!important;letter-spacing:.025em!important}
html body .cfm46-global-header .cfm46-global-menu{flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
html body .cfm46-global-header .cfm46-global-menu-toggle{display:none!important;cursor:pointer!important;list-style:none!important}
html body .cfm46-global-header .cfm46-global-nav{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;flex-wrap:wrap!important;
  gap:4px!important;min-width:0!important;padding:0!important;margin:0!important;width:100%!important;
  position:static!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
html body .cfm46-global-header .cfm46-global-item{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  height:40px!important;min-height:40px!important;padding:8px 10px!important;margin:0!important;
  border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;
  color:var(--cfm46-head-ink)!important;font-size:13px!important;font-weight:650!important;
  text-align:center!important;text-decoration:none!important;white-space:nowrap!important;
  line-height:1.25!important;box-shadow:none!important;cursor:pointer!important;
}
html body .cfm46-global-header .cfm46-global-item :is(svg,.cfm-lucide){width:16px!important;height:16px!important;min-width:16px!important;flex-shrink:0!important;display:inline-block!important}
html body .cfm46-global-header .cfm46-todo-dot{display:inline-block!important;flex:0 0 auto!important;width:8px!important;height:8px!important;border-radius:50%!important;background:#bd293c!important}
html body .cfm46-global-header .cfm46-global-item:hover{background:rgba(87,139,109,.15)!important}
html body .cfm46-global-header .cfm46-global-item.is-active{
  background:var(--cfm46-head-active-bg)!important;color:var(--cfm46-head-active)!important;
  border-color:var(--cfm46-head-border)!important;
}
html[data-theme="community2"] body .cfm46-global-header .cfm46-global-item:hover{background:#32515e!important}
html body .cfm46-global-header :is(a,button):focus-visible{outline:3px solid #e79a20!important;outline-offset:2px!important}
html body .cfm46-global-header .campmap-logout-form{display:inline-flex!important;align-items:center!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
/* Narrow viewport: one common keyboard-accessible JS-controlled menu; desktop stays visible without scripting. */
@media(max-width:1179px){
  html body .cfm46-global-header .cfm46-global-inner{min-height:72px!important;padding:8px 16px!important;align-items:center!important}
  html body .cfm46-global-header .cfm46-global-menu{flex:0 0 auto!important;position:relative!important}
  html body .cfm46-global-header .cfm46-global-menu-toggle{
    display:inline-flex!important;align-items:center!important;gap:8px!important;
    padding:11px 14px!important;border:1px solid var(--cfm46-head-border)!important;
    border-radius:8px!important;color:var(--cfm46-head-ink)!important;background:transparent!important;
    font-size:14px!important;font-weight:700!important;min-height:44px!important;
  }
  html body .cfm46-global-header .cfm46-global-menu.cfm46-menu-ready:not(.is-open) .cfm46-global-nav{display:none!important}
  html body .cfm46-global-header .cfm46-global-nav{
    display:flex!important;position:absolute!important;right:0!important;top:calc(100% + 9px)!important;
    width:min(330px,calc(100vw - 28px))!important;flex-direction:column!important;align-items:stretch!important;
    gap:3px!important;padding:12px!important;max-height:75vh!important;overflow-y:auto!important;
    border-radius:12px!important;border:1px solid var(--cfm46-head-border)!important;
    background:var(--cfm46-head-bg)!important;box-shadow:0 12px 30px rgba(10,32,33,.24)!important;
  }
  html body .cfm46-global-header .cfm46-global-item{justify-content:flex-start!important;text-align:left!important;width:100%!important;min-height:43px!important}
  html body .cfm46-global-header .campmap-logout-form{display:block!important;width:100%!important}
  html body .cfm46-global-header .campmap-logout-form button{width:100%!important}
}
@media(max-width:400px){
  html body .cfm46-global-header .cfm46-global-brand{width:152px!important}
  html[data-theme="campingfurs"] body .cfm46-global-header .cfm46-global-brand{width:190px!important}
  html body .cfm46-global-header .cfm46-global-brand-text strong{font-size:15px!important}
  html body .cfm46-global-header .cfm46-global-inner{padding:8px 10px!important;gap:5px!important}
}
/* Optional, page-local staff actions live BELOW the shared global navigation. */
html body .cfm46-contextbar{box-sizing:border-box;max-width:1380px;margin:8px auto 0;padding:0 22px;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
html body .cfm46-contextbar a{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:7px 11px;background:#fff;color:#173e36;border:1px solid #aabeb9;border-radius:7px;text-decoration:none;font:600 13px system-ui,sans-serif}
html body .cfm46-contextbar a:focus-visible{outline:3px solid #e79a20;outline-offset:2px}
@media(max-width:600px){html body .cfm46-contextbar{padding:0 12px;justify-content:flex-start}}

/* N2: Communitydesign 2.0 needs a high-contrast white logo on the dark header. */
html[data-theme="community2"] body .cfm46-global-header .cfm46-global-logo{filter:brightness(0) invert(1)!important}
/* N2: the menu toggle is a real button; desktop menu stays visible even with JS disabled. */
html body .cfm46-global-header .cfm46-global-menu-toggle{font-family:inherit!important}

/* V46.0-TEST1-N3: gleiche Button-Hoehe, typografische Ausrichtung und Abstand auch fuer Logout (POST). */
html body .cfm46-global-header .campmap-logout-form{height:40px!important;min-height:40px!important;align-self:center!important;flex:0 0 auto!important}
html body .cfm46-global-header .campmap-logout-form button.cfm46-global-item{
  appearance:none!important;box-sizing:border-box!important;height:40px!important;min-height:40px!important;
  padding:8px 10px!important;line-height:1.25!important;font-family:inherit!important;
  font-size:13px!important;font-weight:650!important;vertical-align:middle!important;
}
@media(max-width:1179px){
 html body .cfm46-global-header .cfm46-global-item,html body .cfm46-global-header .campmap-logout-form button.cfm46-global-item{height:auto!important;min-height:44px!important}
 html body .cfm46-global-header .campmap-logout-form{width:100%!important;height:auto!important}
}

/* V46.0-TEST1-N4: eigenstaendiges, kompaktes Holzschild-Logo nur auf Communitydesign-1-Unterseiten. */
html[data-theme="campingfurs"] body .cfm46-global-header .cfm46-global-brand{
  width:218px!important;max-width:218px!important;
}
html[data-theme="campingfurs"] body .cfm46-global-header .cfm46-global-logo{
  display:block!important;width:100%!important;height:auto!important;max-height:58px!important;
  flex:0 1 auto!important;object-fit:contain!important;object-position:left center!important;
}
@media(max-width:400px){
  html[data-theme="campingfurs"] body .cfm46-global-header .cfm46-global-brand{width:174px!important;max-width:174px!important}
  html[data-theme="campingfurs"] body .cfm46-global-header .cfm46-global-logo{max-height:51px!important}
}
