﻿:root {
    --brand: #E60000; /* SBB-Rot für Akzente/Buttons */
    --text: #111;
    --muted: #8a8a8a;
    --border: #e8e8ea;
    --bar-h: 86px; /* Leistenhöhe (ohne Safe Area) */
    --corner: 28px; /* starke Rundung */
    --center-btn: 62px; /* Durchmesser aktiver Kreis */
    --shadow-a: 0 6px 28px rgba(0,0,0,.18);
}


.bottom-nav .card {
    background: #fafafb;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06)
}

/* ---- Bottom Nav (SBB Style) ---- */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    display: flex;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom)
}

    .bottom-nav .bottom-nav__shell {
        width: min(850px,100%);
        position: relative
    }

    .bottom-nav .bottom-nav__bar {
        background: #142536;
        height: 60px;
        /*        border-top: 1px solid var(--border);*/
        border-top-left-radius: var(--corner);
        border-top-right-radius: var(--corner);
        box-shadow: 0 -10px 30px rgba(0,0,0,.08);
        position: relative
    }
    /* mittiger „Bump“ */
    .bottom-nav .bottom-nav__bump {
        position: absolute;
        left: 50%;
        top: -22px;
        transform: translateX(-50%);
        width: 120px;
        height: 44px;
        background: #142536;
        border-top-left-radius: 999px;
        border-top-right-radius: 999px;
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        box-shadow: 0 -10px 26px rgba(0,0,0,.06)
    }

    .bottom-nav .nav {
        position: absolute;
        inset: 0;
        display: grid;
        grid-template-columns: repeat(5,1fr);
        align-items: center;
        gap: 4px;
        padding: 10px 0;
        height: 0px;
        padding-top: 4px;
    }

    .bottom-nav .nav__item {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 133%;
        text-decoration: none;
        color: var(--muted);
        user-select: none;
        outline: 0
    }

        .bottom-nav .nav__item:focus-visible .icon-wrap {
            outline: 2px solid #8ecae6;
            outline-offset: 3px;
            border-radius: 12px
        }

    .bottom-nav .icon-wrap {
        display: grid;
        place-items: center;
        line-height: 0;
        transition: transform .18s ease, background .18s ease, box-shadow .18s ease
    }

    .bottom-nav .icon {
        width: 26px;
        height: 26px;
        display: block;
        color: currentColor;
        opacity: .95
    }

    .bottom-nav .label {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 8px;
        font-size: 12px;
        line-height: 1;
        font-weight: 600;
        color: white;
        white-space: nowrap;
        display: none;
    }

    /* Active State */
    .bottom-nav .nav__item.is-active {
        z-index: 2;
        color: #fff
    }

        .bottom-nav .nav__item.is-active .icon-wrap {
            width: 50px;
            height: 50px;
            background: #000;
            border-radius: 999px;
            box-shadow: var(--shadow-a);
            transform: translateY(-18px)
        }

        .bottom-nav .nav__item.is-active .icon {
            color: #fff
        }

        .bottom-nav .nav__item.is-active .label {
            display: block
        }

    /* leichte Erhöhung des mittleren Tabs */
    /*   .bottom-nav .nav__item--center .icon-wrap {
        transform: translateY(-6px)
    }
*/
    .bottom-nav .nav__item--center.is-active .icon-wrap {
        transform: translateY(-16px)
    }

    .bottom-nav .nav__item:active .icon-wrap {
        transform: translateY(-2px) scale(.98)
    }

    .bottom-nav .icon-wrap img, .icon-wrap svg {
        width: 26px;
    }

.bottom-nav__bump {
    display: none;
}

div#right-panel {
    padding-bottom: 100px !important;
}


/* V2 Changes */

.bottom-nav .icon-wrap img, .icon-wrap svg {
    width: 20px;
}


/*.bottom-nav .is-active .icon-wrap img, .is-active .icon-wrap svg {
    width: 23px;
}*/


/* Dark Mode */
@media (prefers-color-scheme:dark) {
    /* :root {
        --bg: #101113;
        --text: #f3f3f3;
        --muted: #a7a7a7;
        --border: #25262a
    }

    body {
        background: linear-gradient(180deg,#0f2027 0%,#203a43 35%,#2c5364 100%) fixed
    }*/

    .bottom-nav .bottom-nav__bar {
        box-shadow: 0 -12px 28px rgba(0,0,0,.44)
    }

    .bottom-nav .bottom-nav__bump {
        box-shadow: 0 -10px 22px rgba(0,0,0,.4)
    }
}

@media screen and (min-width:768px) {
    .bottom-nav {
        display: none;
    }
}
