/* Handy-Menü und "Nach oben"-Knopf. Wird von mobile-nav.js aufgebaut. */
.kh-burger {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
}
.kh-burger span,
.kh-burger span::before,
.kh-burger span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    position: relative;
    content: "";
}
.kh-burger span::before { position: absolute; top: -6px; }
.kh-burger span::after { position: absolute; top: 6px; }
.kh-nav .kh-burger { border-color: rgba(255, 255, 255, 0.35); }
.kh-nav.is-scrolled .kh-burger,
.kh-sub-nav .kh-burger { border-color: rgba(20, 32, 26, 0.2); }

/* Startseite: Menü bis 1024 px, Unterseiten: bis 768 px (danach gibt es die normale Leiste) */
@media (min-width: 1024px) { .kh-nav .kh-burger { display: none; } }
@media (min-width: 768px) { .kh-sub-nav .kh-burger { display: none; } }
.kh-sub-nav .kh-nav-cta { margin-left: auto; }

.kh-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: var(--ink, #0b1712);
    color: #fff;
    padding: calc(14px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.kh-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.kh-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin-bottom: 12px;
}
.kh-menu-head .kh-logo { color: #fff; }
.kh-menu-close {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.kh-menu-group { margin: 14px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.kh-menu ul { list-style: none; margin: 0; padding: 0; }
.kh-menu li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-family: var(--serif, Georgia, serif);
    font-size: 21px;
}
.kh-menu li a[aria-current="page"] { color: var(--accent, #10b981); }
.kh-menu-orte { display: flex; flex-wrap: wrap; gap: 8px; }
.kh-menu-orte li a {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-family: var(--sans, system-ui, sans-serif);
    font-size: 15px;
}
.kh-menu-actions { display: grid; gap: 10px; margin-top: 24px; }
.kh-menu-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}
.kh-menu-actions .is-primary { background: var(--accent, #10b981); color: var(--ink, #0b1712); }
.kh-menu-actions .is-ghost { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
html.kh-menu-lock, html.kh-menu-lock body { overflow: hidden; }

/* Nach oben */
.kh-top {
    position: fixed;
    right: 20px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--ink, #0b1712);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.kh-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.kh-top svg { width: 22px; height: 22px; }
/* Unterseiten: WhatsApp sitzt unten rechts, der Knopf kommt darüber */
body.kh-sub .kh-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; }

@media (prefers-reduced-motion: reduce) {
    .kh-menu, .kh-menu.is-open, .kh-top, .kh-top.is-visible { transition: none; }
}
