.hm {
    --hm-gold: #c5a059;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--hm-z, 50);
    background: var(--hm-grund, rgba(18, 18, 18, 0.9));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hm.hm-weg { transform: translateY(-100%); }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; margin: 0; }
.hm [x-cloak] { display: none !important; }
.hm a { color: inherit; text-decoration: none; }
.hm a:focus-visible, .hm button:focus-visible { outline: 1px solid var(--hm-gold); outline-offset: 3px; }

.hm-zeile {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.hm-logo { display: inline-flex; flex: none; }
.hm-logo img { display: block; height: 1.5rem; width: auto; }
.hm-nav { display: none; align-items: center; gap: 2.2rem; }
.hm-punkt { position: relative; padding-bottom: 1.35rem; margin-bottom: -1.35rem; z-index: 20; }
.hm-punkt::after { content: ""; position: absolute; left: -1.75rem; right: -1.75rem; top: 42px; height: 2.2rem; }
.hm-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: #fff;
    transition: color 0.25s ease;
}
.hm-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--hm-gold);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hm-link:hover { color: var(--hm-gold); }
.hm-link:hover::after { width: 100%; }
.hm-liste {
    position: absolute;
    top: calc(100% - 1.35rem);
    left: 50%;
    min-width: 230px;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.hm-liste::before { content: ""; position: absolute; left: -1rem; right: -1rem; top: -1.4rem; height: 1.4rem; }
.hm-punkt:hover .hm-liste,
.hm-punkt:focus-within .hm-liste {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.hm-liste a {
    display: block;
    padding: 0.85rem 0.7rem;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.hm-liste a:last-child { border-bottom: 0; }
.hm-liste a:hover { color: var(--hm-gold); padding-left: 1rem; }
.hm-aktionen { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.hm-aktion {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.hm-aktion:hover { color: var(--hm-gold); border-color: var(--hm-gold); }
.hm-korb { position: relative; display: inline-flex; width: 26px; height: 26px; color: #fff; transition: color 0.25s ease; }
.hm-korb:hover { color: var(--hm-gold); }
.hm-korb svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.hm-korb-zahl {
    position: absolute;
    top: -6px;
    right: -9px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--hm-gold);
    color: #121212;
    font-size: 10px;
    font-weight: 400;
    line-height: 17px;
    text-align: center;
}
.hm-sprache { display: flex; align-items: center; gap: 1rem; }
.hm-flagge { display: block; width: 22px; opacity: 0.3; transition: opacity 0.3s, transform 0.3s; }
.hm-flagge:hover { opacity: 0.7; }
.hm-flagge.hm-aktiv { opacity: 1; transform: scale(1.1); }
.hm-flagge svg { display: block; width: 100%; height: auto; }
.hm-burger {
    width: 44px;
    height: 34px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 0 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.hm-burger span { display: block; width: 34px; height: 1px; background: #fff; transition: transform 0.25s ease, opacity 0.25s ease; }
.hm-offen .hm-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hm-offen .hm-burger span:nth-child(2) { opacity: 0; }
.hm-offen .hm-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hm-handy {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.5rem 1.25rem 2rem;
    background: rgba(18, 18, 18, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hm-gruppe { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hm-gruppe > button,
.hm-gruppe-link {
    display: block;
    width: 100%;
    padding: 1.2rem 0;
    background: transparent;
    border: 0;
    color: #fff;
    text-align: left;
    font: inherit;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    cursor: pointer;
}
.hm-gruppe-liste { padding-bottom: 0.8rem; }
.hm-gruppe-liste a {
    display: block;
    padding: 0.8rem 0 0.8rem 1rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.65);
}
.hm-gruppe-liste a:hover { color: var(--hm-gold); }
.hm-abstand { height: 5.25rem; }

@media (min-width: 768px) {
    .hm-zeile { padding-left: 3rem; padding-right: 3rem; }
}
@media (min-width: 1024px) {
    .hm-nav { display: flex; }
    .hm-burger, .hm-handy { display: none !important; }
    .hm-sprache { padding-left: 2rem; margin-left: 0.9rem; border-left: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .hm-nav { gap: 1.4rem; }
    .hm-link { letter-spacing: 0.24em; }
}
@media (max-width: 420px) {
    .hm-aktion { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hm, .hm * { transition: none !important; }
}
