/* LYCHEES UI Polish: Header-Menü + einheitliche Button-Typografie */

.btn,
button,
input[type="submit"],
input[type="button"] {
  font-weight: 300 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
}

.btn,
button {
  border-radius: 10px !important;
}

.ly-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 18px 22px !important;
}

.ly-brand {
  min-width: 0;
}

.ly-brand h1 {
  font-weight: 600 !important;
  font-size: 24px !important;
  margin: 0 !important;
}

.ly-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.ly-main-link {
  white-space: nowrap;
}

.ly-user {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ly-menu {
  position: relative;
}

.ly-menu summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  background: #fff;
  color: var(--ly-green, #004c45);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 10px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  box-shadow: 0 6px 14px rgba(0,76,69,.13);
}

.ly-menu summary::-webkit-details-marker {
  display: none;
}

.ly-menu summary::after {
  content: "▾";
  margin-left: 10px;
  font-size: 11px;
}

.ly-menu[open] summary::after {
  content: "▴";
}

.ly-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 250px;
  background: #fffdf8;
  border: 1px solid var(--ly-border, #e7dcc8);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(15,61,57,.18);
  padding: 8px;
  z-index: 50;
}

.ly-menu-panel a {
  display: block;
  text-decoration: none;
  color: var(--ly-green, #004c45);
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 300;
}

.ly-menu-panel a:hover {
  background: var(--ly-gold-soft, #f4ead8);
  color: var(--ly-green-dark, #0f3d39);
}

.topbar-right {
  display: none !important;
}

@media (max-width: 860px) {
  .ly-topbar {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .ly-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .ly-user {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .ly-menu-panel {
    left: 0;
    right: auto;
  }
}
