/* Cosyworld header (moved from Code injection into the theme) */
/* Theme-Header ausblenden */
.site-header, .gh-head, .gh-head-menu, .gh-head-actions { display: none !important; }

html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

/* ====== Header (Desktop = Standard) ====== */
.cosy-header {
  width: 100%;
  background: #f0b57e; /* EXAKT wie im Bild */
  display: flex;                 /* Desktop: Flex-Layout */
  align-items: center;
  justify-content: space-between;
  padding: 0 54px;
  height: 94px;
  box-sizing: border-box;
  position: sticky; top: 0; left: 0;
  z-index: 9999;
  border-bottom: none; box-shadow: none;
}

/* Reihenfolge/Anzeige Desktop */
.cosy-burger-wrap { display: none; }        /* Burger nur mobil */
.cosy-nav { display: flex; align-items: center; gap: 50px; } /* Nav links */
.cosy-logo { flex: 1 1 auto; display: flex; justify-content: center; } /* Logo mittig */
.cosy-logo img { max-height: 56px; width: auto; }

/* Links der Nav + Dropdown (Desktop) */
.cosy-nav a,
.cosy-dropdown-toggle {
  color: #222; text-decoration: none;
  font-size: 1.38rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 3px 0;
  transition: color 0.2s; cursor: pointer;
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
}
.cosy-nav a:hover, .cosy-dropdown-toggle:hover { color: #b88044; }

.cosy-dropdown { position: relative; }
.cosy-dropdown-toggle {
  background: none; border: none; font: inherit; color: #232323;
  font-size: 1.38rem; font-weight: 700; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 5px;
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
}
.cosy-dropdown-menu {
  display: none; position: absolute; top: 115%; left: 0; background: #fff;
  min-width: 200px; box-shadow: 0 4px 16px rgba(0,0,0,0.11);
  border-radius: 10px; padding: 14px 0; z-index: 10;
}
.cosy-dropdown:hover .cosy-dropdown-menu,
.cosy-dropdown:focus-within .cosy-dropdown-menu { display: block; }
.cosy-dropdown-menu a {
  display: block; padding: 13px 30px; color: #232323; text-decoration: none;
  font-size: 1.12rem; font-weight: 600; white-space: nowrap; font-family: Arial, sans-serif;
}
.cosy-dropdown-menu a:hover { background: #f0b57e; color: #b88044; }

/* Shop-Button (rechts) */
.cosy-shop-btn {
  background: #fff; color: #232323;
  border-radius: 32px; padding: 16px 38px;
  font-size: 1.20rem; font-weight: 700; border: none;
  text-decoration: none; margin-left: 34px;
  transition: background 0.18s, color 0.18s;
  display: inline-block; letter-spacing: 0.03em;
  white-space: nowrap;
}
.cosy-shop-btn:hover { background: #232323; color: #fff; }

/* ====== Off-canvas Mobile Menu (hidden desktop) ====== */
.cosy-mobile-menu {
  position: fixed; top: 0; left: 0;
  height: 100vh; width: 82vw; max-width: 360px;
  background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transform: translateX(-100%); transition: transform 0.25s ease-out;
  z-index: 10000; padding: 18px 20px 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.cosy-mobile-menu.open { transform: translateX(0); }
.cosy-mobile-menu a, .cosy-mobile-menu summary {
  color: #232323; text-decoration: none;
  font-size: 1.12rem; font-weight: 700;
  padding: 14px 6px; border-radius: 10px; display: block;
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif; cursor: pointer;
}
.cosy-mobile-menu a:hover, .cosy-mobile-menu summary:hover { background: #f7e0cb; }
.cosy-mobile-menu details[open] > summary { background: #f0b57e22; }
.cosy-mobile-sub { padding-left: 10px; margin: 4px 0 8px; }
.cosy-mobile-sub a { font-family: Arial, sans-serif; font-weight: 600; font-size: 1.02rem; padding: 10px 8px; }

/* Backdrop */
.cosy-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.28);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease-out;
  z-index: 9999;
}
.cosy-backdrop.visible { opacity: 1; pointer-events: auto; }

/* ====== Mobile (<= 950px) ====== */
@media (max-width: 950px) {
  /* Kompakt & dreispaltig */
  .cosy-header {
    height: 64px;
    padding: 0 12px;
    display: grid;                 /* Mobil: Grid */
    grid-template-columns: 40px 1fr auto; /* links Burger, Mitte Logo, rechts Shop */
    align-items: center; gap: 8px;
  }

  /* Sichtbarkeit */
  .cosy-burger-wrap { display: block; }
  .cosy-nav { display: none; }          /* Desktop-Nav verstecken */
  .cosy-logo { justify-content: center; }
  .cosy-logo img { max-height: 38px; }

  .cosy-shop-btn {
    margin-left: 0; padding: 10px 16px;
    font-size: 0.98rem; border-radius: 22px;
  }

  /* Burger Button */
  .cosy-burger {
    background: transparent; border: none;
    width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  }
  .cosy-burger span { display: block; width: 22px; height: 2px; background: #232323; position: relative; }
  .cosy-burger span::before,
  .cosy-burger span::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #232323;
    transition: transform 0.2s ease;
  }
  .cosy-burger span::before { top: -6px; }
  .cosy-burger span::after  { top:  6px; }

  /* X-Icon wenn aktiv */
  .cosy-burger.active span { background: transparent; }
  .cosy-burger.active span::before { transform: translateY(6px) rotate(45deg); }
  .cosy-burger.active span::after  { transform: translateY(-6px) rotate(-45deg); }
}

/* Scroll sperren, wenn Menü offen */
body.cosy-lock { overflow: hidden; }
html {
  scroll-behavior: smooth;
}
.anchor-target,
h2[id],
h3[id] {
  scroll-margin-top: 110px;
}

/* ===== Cosyworld theme additions ===== */
/* Old header still in Settings → Code injection: hide it until it is removed there */
.cosy-header:not(.cw), .cosy-mobile-menu:not(.cw), .cosy-backdrop:not(.cw) { display: none !important; }

.cw-head-right { display: flex; align-items: center; gap: 22px; }
.cw-head-right .cosy-shop-btn { margin-left: 0; }
.cw-lang-switch { display: flex; align-items: center; gap: 2px; font-family: 'Arial Rounded MT Bold', Arial, sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.cw-lang-switch a { padding: 4px 6px; border-radius: 6px; color: #232323; text-decoration: none; opacity: .55; }
.cw-lang-switch a:hover { opacity: 1; }
.cw-lang-switch a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.cosy-mobile-menu .cw-lang-switch { margin-top: 12px; padding: 14px 6px 0; border-top: 1px solid #f0e3d6; font-size: 1.05rem; }
.cosy-mobile-menu .cw-lang-switch a { display: inline-block; padding: 6px 8px; font-size: 1.05rem; }
@media (max-width: 950px) {
  .cw-head-right .cw-lang-switch { display: none; }
}
