/*
 * Dein Gipfel – Shop-Header für WordPress
 *
 * Nachbau des Shop-Headers: Dawn 16.1.1 + assets/dg-navigation.css aus dem Repo deingipfel-shopify-theme.
 * Werte in px, weil Dawn mit 1rem = 10px rechnet und WordPress mit 16px.
 * Alles hängt an #dg-sh-bar / #dg-sh-header, damit Astra, Bootstrap und Elementor nicht hineinwirken.
 */

/* ---------- Farben und Maße (Quelle: Shop) ---------- */

#dg-sh-bar,
#dg-sh-header {
  --dg-sh-font: Helvetica, Arial, sans-serif;  /* Theme-Einstellung „Helvetica“ */
  --dg-sh-fg: 18, 18, 18;                       /* Farbschema background-2 */
  --dg-sh-bg: #fff;
  --dg-sh-bar-bg: #003845;                      /* Farbschema der Ankündigungsleiste */
  --dg-sh-menu-bg: 0, 40, 51;                   /* --dg-menu-deep */
  --dg-sh-menu-fg: 241, 241, 241;
  --dg-sh-primary: #2c3e50;                     /* --custom-primary-color */
  --dg-sh-accent: #faaf55;                      /* --custom-accent-color */
  --dg-sh-radius: 8px;                          /* --custom-radius */
  --dg-sh-page: 1400px;                         /* Seitenbreite */

  font-family: var(--dg-sh-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.6px;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

/* ---------- Grundlagen (gegen Theme- und Bootstrap-Stile) ---------- */

#dg-sh-bar *,
#dg-sh-header * {
  box-sizing: border-box;
}

#dg-sh-bar ul,
#dg-sh-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#dg-sh-bar li,
#dg-sh-header li {
  margin: 0;
  padding: 0;
}

/* Die ID schlägt auch a:hover / button:hover aus Astra und Bootstrap. Bewusst ohne :hover/:focus,
   sonst würden diese Regeln die Klassen-Stile unten (z. B. Zurück-Button) überschreiben. */
#dg-sh-bar a,
#dg-sh-header a {
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

#dg-sh-header summary {
  display: flex;
  list-style: none;
  cursor: pointer;
}

#dg-sh-header summary::-webkit-details-marker {
  display: none;
}

#dg-sh-bar button,
#dg-sh-header button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: none;
  cursor: pointer;
}

/* Das Zusätzliche CSS im Customizer setzt die Schrift für button/input mit !important */
#dg-sh-bar button,
#dg-sh-header button,
#dg-sh-header input {
  font-family: var(--dg-sh-font) !important;
}

#dg-sh-header img {
  border: 0;
}

#dg-sh-bar .dg-sh-svg,
#dg-sh-header .dg-sh-svg {
  display: block;
  flex: none;
  fill: none;
}

#dg-sh-bar :focus-visible,
#dg-sh-header :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

#dg-sh-header .dg-sh-sr,
#dg-sh-bar .dg-sh-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Ankündigungsleiste ---------- */

#dg-sh-bar {
  position: relative;
  z-index: 101;
  background: var(--dg-sh-bar-bg);
  color: rgb(var(--dg-sh-menu-fg));
  border-bottom: 1px solid rgba(var(--dg-sh-menu-fg), 0.08);
}

#dg-sh-bar .dg-sh-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  max-width: var(--dg-sh-page);
  margin: 0 auto;
  padding: 0 15px;
}

#dg-sh-bar .dg-sh-bar__start,
#dg-sh-bar .dg-sh-bar__end {
  display: none;
}

#dg-sh-bar .dg-sh-bar__slider {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

#dg-sh-bar .dg-sh-bar__slides {
  flex: 1;
  min-width: 0;
  max-width: 600px;
  text-align: center;
}

#dg-sh-bar .dg-sh-bar__msg {
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
}

#dg-sh-bar .dg-sh-bar__msg[hidden] {
  display: none;
}

#dg-sh-bar .dg-sh-bar__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#dg-sh-bar .dg-sh-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  color: rgba(var(--dg-sh-menu-fg), 0.75);
}

#dg-sh-bar .dg-sh-bar__btn:hover {
  color: rgb(var(--dg-sh-menu-fg));
}

#dg-sh-bar .dg-sh-bar__btn .dg-sh-svg {
  width: 10px;
  height: 6px;
}

#dg-sh-bar .dg-sh-bar__btn--prev .dg-sh-svg {
  transform: rotate(90deg);
}

#dg-sh-bar .dg-sh-bar__btn--next .dg-sh-svg {
  transform: rotate(-90deg);
}

#dg-sh-bar .dg-sh-social--bar .dg-sh-social__link {
  height: 38px;
  padding: 0 8px;
}

@media (min-width: 750px) {
  #dg-sh-bar .dg-sh-bar__inner {
    padding: 0 50px;
  }
}

@media (min-width: 990px) {
  #dg-sh-bar .dg-sh-bar__inner {
    grid-template-columns: 3.9fr 6fr 3.9fr;
  }

  #dg-sh-bar .dg-sh-bar__start,
  #dg-sh-bar .dg-sh-bar__end {
    display: block;
  }

  #dg-sh-bar .dg-sh-social--bar {
    margin-left: -8px;
  }
}

/* ---------- Social-Links ---------- */

#dg-sh-bar .dg-sh-social,
#dg-sh-header .dg-sh-social {
  display: flex;
  flex-wrap: wrap;
}

#dg-sh-bar .dg-sh-social__link,
#dg-sh-header .dg-sh-social__link {
  display: flex;
  align-items: center;
  color: rgba(var(--dg-sh-menu-fg), 0.75);
}

#dg-sh-bar .dg-sh-social__link:hover,
#dg-sh-header .dg-sh-social__link:hover {
  color: rgb(var(--dg-sh-menu-fg));
}

#dg-sh-bar .dg-sh-social .dg-sh-svg,
#dg-sh-header .dg-sh-social .dg-sh-svg {
  width: 18px;
  height: 18px;
  transition: transform 0.1s ease;
}

#dg-sh-bar .dg-sh-social__link:hover .dg-sh-svg,
#dg-sh-header .dg-sh-social__link:hover .dg-sh-svg {
  transform: scale(1.07);
}

/* ---------- Kopfzeile ---------- */

#dg-sh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dg-sh-bg);
  color: rgba(var(--dg-sh-fg), 0.75);
  border-bottom: 1px solid rgba(var(--dg-sh-fg), 0.08);
  transition: transform 0.15s ease-out;
}

#dg-sh-header.is-hidden {
  transform: translateY(-105%);
}

body.admin-bar #dg-sh-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #dg-sh-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar #dg-sh-header {
    top: 0; /* Admin-Leiste scrollt hier mit */
  }
}

#dg-sh-header .dg-sh-header__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  max-width: var(--dg-sh-page);
  margin: 0 auto;
  padding: 0 15px 8px;
}

#dg-sh-header .dg-sh-header__left {
  display: flex;
  align-items: center;
  justify-self: start;
  margin-left: -12px;
}

#dg-sh-header .dg-sh-header__logo {
  justify-self: center;
}

#dg-sh-header .dg-sh-header__icons {
  display: flex;
  align-items: center;
  justify-self: end;
  margin-right: -12px;
}

#dg-sh-header .dg-sh-logo {
  display: block;
  padding: 7.5px;
}

#dg-sh-header .dg-sh-logo__img {
  display: block;
  width: 100px;
  max-width: none;
  height: auto;
}

#dg-sh-header .dg-sh-logo__text {
  font-size: 22px;
  font-weight: 700;
  color: rgb(var(--dg-sh-fg));
}

#dg-sh-header .dg-sh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgb(var(--dg-sh-fg));
}

#dg-sh-header .dg-sh-icon .dg-sh-svg {
  width: 20px;
  height: 20px;
}

#dg-sh-header .dg-sh-icon--cart .dg-sh-svg {
  width: 44px;
  height: 44px;
}

#dg-sh-header .dg-sh-icon:hover .dg-sh-svg {
  transform: scale(1.07);
}

/* Menü- und Suchsymbol: offen = Kreuz */
#dg-sh-header details > summary .dg-sh-svg--close,
#dg-sh-header details[open] > summary .dg-sh-svg--hamburger,
#dg-sh-header .dg-sh-msearch[open] > summary .dg-sh-svg--search {
  display: none;
}

#dg-sh-header details[open] > summary .dg-sh-svg--close {
  display: block;
  width: 18px;
  height: 18px;
}

/* ---------- Suche ---------- */

#dg-sh-header .dg-sh-search {
  display: none;
  align-items: center;
  width: 200px;
  height: 44px;
  margin-right: 4px;
  padding: 0 16px 0 8px;
  border: 1px solid rgb(var(--dg-sh-fg));
  border-radius: 22px;
  background: #fff;
}

#dg-sh-header .dg-sh-search:focus-within {
  outline: 2px solid rgba(var(--dg-sh-fg), 0.5);
  outline-offset: 2px;
}

#dg-sh-header .dg-sh-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgb(var(--dg-sh-fg));
}

#dg-sh-header .dg-sh-search__btn .dg-sh-svg {
  width: 18px;
  height: 18px;
}

#dg-sh-header .dg-sh-search__input,
#dg-sh-header .dg-sh-search__input:focus {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 0 0 6px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: rgb(var(--dg-sh-fg));
  font-size: 16px;
  letter-spacing: 0.4px;
  line-height: normal;
  appearance: none;
}

#dg-sh-header .dg-sh-search__input::placeholder {
  color: rgba(var(--dg-sh-fg), 0.75);
  text-decoration: underline;
  opacity: 1;
}

#dg-sh-header .dg-sh-search__input::-webkit-search-cancel-button {
  appearance: none;
}

/* Handy: Suche als Leiste unter dem Header */
#dg-sh-header .dg-sh-msearch__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px 15px;
  background: var(--dg-sh-bg);
  border-bottom: 1px solid rgba(var(--dg-sh-fg), 0.08);
  box-shadow: 0 8px 16px rgba(var(--dg-sh-fg), 0.08);
}

#dg-sh-header .dg-sh-search--mobile {
  display: flex;
  width: 100%;
  height: 48px;
  margin: 0;
}

/* ---------- Desktop-Menü ---------- */

#dg-sh-header .dg-sh-nav {
  display: none;
}

#dg-sh-header .dg-sh-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

#dg-sh-header .dg-sh-nav__item--dropdown {
  position: relative;
}

#dg-sh-header .dg-sh-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.6px;
  color: rgba(var(--dg-sh-fg), 0.75);
}

#dg-sh-header summary.dg-sh-nav__link {
  padding-right: 27px;
}

#dg-sh-header .dg-sh-nav__link:hover {
  color: rgb(var(--dg-sh-fg));
}

#dg-sh-header .dg-sh-nav__link .dg-sh-svg--caret {
  position: absolute;
  top: calc(50% - 3px);
  right: 8px;
  width: 10px;
  height: 6px;
  transition: transform 0.15s ease;
}

#dg-sh-header .dg-sh-nav__details[open] > summary .dg-sh-svg--caret {
  transform: rotate(180deg);
}

/* Shop: Custom CSS „.header__menu-item span {font-weight: bold;}“ */
#dg-sh-header .dg-sh-nav__label {
  font-weight: 700;
}

/* Hauptkategorien (Aktivitäten, Ausrüstung): Großbuchstaben in Markenblau */
#dg-sh-header .dg-sh-nav__item--primary .dg-sh-nav__label {
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dg-sh-primary);
}

/* Eine Linie für Hover, offenes Menü und aktive Seite: orange unter dem Text */
#dg-sh-header .dg-sh-nav__details[open] > summary > .dg-sh-nav__label,
#dg-sh-header .dg-sh-nav__link:hover > .dg-sh-nav__label,
#dg-sh-header .dg-sh-nav__label.is-active {
  text-decoration: underline;
  text-decoration-color: var(--dg-sh-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Feine Trennlinie zwischen Hauptkategorien und den übrigen Punkten */
#dg-sh-header .dg-sh-nav__item--primary + .dg-sh-nav__item:not(.dg-sh-nav__item--primary) {
  margin-left: 12px;
  padding-left: 12px;
  background: linear-gradient(rgba(var(--dg-sh-fg), 0.2), rgba(var(--dg-sh-fg), 0.2)) left center / 1px 20px no-repeat;
}

/* ---------- Desktop: Panel ---------- */

#dg-sh-header .dg-sh-mega,
#dg-sh-header .dg-sh-dropdown {
  position: absolute;
  top: 100%;
  z-index: 1;
  background: rgb(var(--dg-sh-menu-bg));
  color: rgba(var(--dg-sh-menu-fg), 0.75);
  box-shadow: 0 16px 32px rgba(var(--dg-sh-fg), 0.08);
}

#dg-sh-header .dg-sh-mega {
  left: 0;
  right: 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(var(--dg-sh-menu-fg), 0.08);
}

#dg-sh-header .dg-sh-mega__inner {
  max-width: var(--dg-sh-page);
  margin: 0 auto;
  padding: 32px 50px 24px;
}

#dg-sh-header .dg-sh-mega__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--dg-sh-menu-fg), 0.08);
}

#dg-sh-header .dg-sh-mega__overview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: rgb(var(--dg-sh-menu-fg));
}

#dg-sh-header .dg-sh-mega__overview .dg-sh-svg {
  width: 14px;
  height: 14px;
  transition: transform 0.1s ease;
}

#dg-sh-header .dg-sh-mega__overview:hover {
  text-decoration: underline;
  text-decoration-color: var(--dg-sh-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

#dg-sh-header .dg-sh-mega__overview:hover .dg-sh-svg {
  transform: translateX(3px);
}

/* Kleines Dropdown */
#dg-sh-header .dg-sh-dropdown {
  left: 0;
  min-width: 220px;
  padding: 10px 0;
}

#dg-sh-header .dg-sh-dropdown__link {
  display: block;
  padding: 9px 35px 9px 20px;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(var(--dg-sh-menu-fg), 0.75);
}

#dg-sh-header .dg-sh-dropdown__link:hover,
#dg-sh-header .dg-sh-dropdown__link.is-active {
  color: rgb(var(--dg-sh-menu-fg));
  text-decoration: underline;
  text-decoration-color: var(--dg-sh-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Kacheln (Desktop und Handy) ---------- */

#dg-sh-header .dg-sh-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--dg-sh-radius);
  color: rgb(var(--dg-sh-menu-fg));
}

#dg-sh-header .dg-sh-tile__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--dg-sh-radius);
  background-color: rgba(var(--dg-sh-menu-fg), 0.04);
}

#dg-sh-header .dg-sh-tile__img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  /* Bildausschnitt aus dem Kollektions-Metafeld custom.bild_ausschnitt */
  object-position: var(--dg-focus, 50% 50%);
  transform: scale(var(--dg-zoom, 1));
  transform-origin: var(--dg-focus, 50% 50%);
  transition: transform 0.5s ease;
}

#dg-sh-header .dg-sh-tile:hover .dg-sh-tile__img {
  transform: scale(calc(var(--dg-zoom, 1) * 1.04));
}

/* Produktfotos: verkleinert auf Weiß */
#dg-sh-header .dg-sh-tile__media--product {
  background-color: #fff;
}

#dg-sh-header .dg-sh-tile__media--product .dg-sh-tile__img {
  object-fit: contain;
  padding: 10%;
}

#dg-sh-header .dg-sh-tile__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#dg-sh-header .dg-sh-tile__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  /* Lange Wörter wie „Rucksackwanderung“ trennen statt über die Kachel hinauszuragen */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
}

#dg-sh-header .dg-sh-tile:hover .dg-sh-tile__title,
#dg-sh-header .dg-sh-tile.is-active .dg-sh-tile__title {
  text-decoration: underline;
  text-decoration-color: var(--dg-sh-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

#dg-sh-header .dg-sh-tile__meta {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(var(--dg-sh-menu-fg), 0.7);
}

#dg-sh-header .dg-sh-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
}

/* Nur Produkte (Fertige Sets): 4 Spalten, ab 1300 px 8 – 8 Sets ergeben zwei bzw. eine volle Reihe */
#dg-sh-header .dg-sh-tiles--products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
}

@media (min-width: 1300px) {
  #dg-sh-header .dg-sh-tiles {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  #dg-sh-header .dg-sh-tiles--products {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    max-width: none;
  }
}

/* ---------- Spalten (Ausrüstung) ---------- */

#dg-sh-header .dg-sh-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

#dg-sh-header .dg-sh-col__title {
  display: block;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgb(var(--dg-sh-menu-fg));
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgb(var(--dg-sh-menu-fg));
}

#dg-sh-header a.dg-sh-col__title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

#dg-sh-header .dg-sh-col__link {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(var(--dg-sh-menu-fg), 0.85);
}

#dg-sh-header .dg-sh-col__link:hover,
#dg-sh-header .dg-sh-col__link.is-active {
  color: rgb(var(--dg-sh-menu-fg));
  text-decoration: underline;
  text-decoration-color: var(--dg-sh-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Mobiles Menü ---------- */

#dg-sh-header .dg-sh-drawer__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--dg-sh-drawer-top, 180px));
  height: calc(100dvh - var(--dg-sh-drawer-top, 180px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(var(--dg-sh-menu-bg));
  color: rgba(var(--dg-sh-menu-fg), 0.75);
}

#dg-sh-header .dg-sh-drawer__panel:has(.dg-sh-drawer__sub[open]) {
  overflow-y: hidden;
}

/* Abstand über dem ersten und unter dem letzten Menüpunkt wie im Shop (Dawn: .menu-drawer__navigation { padding: 3rem 0 }) */
#dg-sh-header .dg-sh-drawer__nav {
  padding: 30px 0;
}

#dg-sh-header .dg-sh-drawer__menu > li + li {
  border-top: 1px solid rgba(var(--dg-sh-menu-fg), 0.08);
}

#dg-sh-header .dg-sh-drawer__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 11px 30px;
  font-size: 18px;
  line-height: 1.3;
  color: rgb(var(--dg-sh-menu-fg));
}

#dg-sh-header .dg-sh-drawer__item:hover,
#dg-sh-header .dg-sh-drawer__item.is-active {
  background-color: rgba(var(--dg-sh-menu-fg), 0.04);
}

#dg-sh-header .dg-sh-drawer__item .dg-sh-svg {
  width: 15px;
  height: 15px;
}

/* Hauptkategorien: Großbuchstaben */
#dg-sh-header .dg-sh-drawer__item--primary {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#dg-sh-header .dg-sh-drawer__item--sub {
  min-height: 48px;
  font-size: 16px;
}

/* Untermenü schiebt sich über die erste Ebene */
#dg-sh-header .dg-sh-drawer__subpanel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(var(--dg-sh-menu-bg));
}

#dg-sh-header .dg-sh-drawer__back {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  padding: 12px 30px;
  background-color: rgba(var(--dg-sh-menu-fg), 0.04);
  color: rgb(var(--dg-sh-menu-fg));
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

#dg-sh-header .dg-sh-drawer__back .dg-sh-svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}

#dg-sh-header .dg-sh-drawer__overview {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 4px 0 8px;
  padding: 0 30px;
  font-weight: 600;
  color: rgb(var(--dg-sh-menu-fg));
  text-decoration: underline;
  text-decoration-color: var(--dg-sh-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

#dg-sh-header .dg-sh-drawer__overview .dg-sh-svg {
  width: 14px;
  height: 14px;
}

#dg-sh-header .dg-sh-drawer__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 8px 20px 30px;
}

#dg-sh-header .dg-sh-drawer__tiles .dg-sh-tile {
  gap: 8px;
  min-height: 48px;
}

#dg-sh-header .dg-sh-drawer__groups {
  padding-bottom: 30px;
}

#dg-sh-header .dg-sh-drawer__group + .dg-sh-drawer__group {
  margin-top: 16px;
}

#dg-sh-header .dg-sh-drawer__group-title {
  display: block;
  margin: 0 30px 4px;
  padding: 20px 0 10px;
  border-bottom: 2px solid rgb(var(--dg-sh-menu-fg));
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: rgb(var(--dg-sh-menu-fg));
}

#dg-sh-header .dg-sh-drawer__list {
  padding-bottom: 8px;
}

#dg-sh-header .dg-sh-drawer__utility {
  margin-top: auto;
  padding: 20px 30px;
  background-color: rgba(var(--dg-sh-menu-fg), 0.03);
}

#dg-sh-header .dg-sh-social--drawer {
  margin-left: -11px;
}

#dg-sh-header .dg-sh-social--drawer .dg-sh-social__link {
  padding: 11px;
}

#dg-sh-header .dg-sh-social--drawer .dg-sh-svg {
  width: 20px;
  height: 20px;
}

/* Seite hinter dem offenen Menü nicht scrollen */
html.dg-sh-lock,
html.dg-sh-lock body {
  overflow: hidden;
}

/* ---------- Umschalten Handy / Desktop (wie im Shop bei 990 px) ---------- */

@media (min-width: 990px) {
  #dg-sh-header .dg-sh-header__row {
    padding: 11px 30px 0;
  }

  #dg-sh-header .dg-sh-drawer,
  #dg-sh-header .dg-sh-msearch {
    display: none;
  }

  #dg-sh-header .dg-sh-search {
    display: flex;
  }

  #dg-sh-header .dg-sh-nav {
    display: block;
    max-width: var(--dg-sh-page);
    margin: 0 auto;
    padding: 0 30px 16px;
  }
}

/* ---------- Bisherige Seiten: Platz für den alten, fixierten Astra-Header ausgleichen ---------- */
/* Wert aus den Plugin-Einstellungen (--dg-sh-offset), siehe Einstellungen → Shop-Navigation.
   Seiten mit transparentem Astra-Header ausgenommen: Dort stand der alte Header im Seitenfluss. */

body.dg-sh-astra:not(.ast-theme-transparent-header) #content {
  margin-top: calc(var(--dg-sh-offset, 0px) * -1);
}

/* ---------- Bewegung ---------- */

@keyframes dg-sh-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes dg-sh-slide {
  from {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  #dg-sh-header .dg-sh-nav__details[open] > .dg-sh-mega,
  #dg-sh-header .dg-sh-nav__details[open] > .dg-sh-dropdown,
  #dg-sh-header .dg-sh-drawer[open] > .dg-sh-drawer__panel,
  #dg-sh-header .dg-sh-msearch[open] > .dg-sh-msearch__panel {
    animation: dg-sh-open 0.2s ease;
  }

  #dg-sh-header .dg-sh-drawer__sub[open] > .dg-sh-drawer__subpanel {
    animation: dg-sh-slide 0.25s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dg-sh-header,
  #dg-sh-header * {
    transition: none !important;
  }
}

/* ---------- Druck ---------- */

@media print {
  #dg-sh-bar,
  #dg-sh-header .dg-sh-nav,
  #dg-sh-header .dg-sh-header__left,
  #dg-sh-header .dg-sh-header__icons {
    display: none;
  }

  #dg-sh-header {
    position: static;
    border: 0;
  }
}
