* {
    box-sizing: border-box;
}

*::selection {
    background: #444;
    color: #fff;
}

*::-moz-selection {
    background: #444;
    color: #fff;
}

body {
    padding: 0;
    margin: 0;
    background: radial-gradient(1100px 700px at 20% 15%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(900px 700px at 80% 20%, rgba(45, 227, 166, .22), transparent 55%), radial-gradient(900px 700px at 60% 95%, rgba(255, 92, 122, .16), transparent 55%), linear-gradient(180deg, #060812, #05070E 60%, #04050B);
}

h1 {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 0;
    font-family: "Maven Pro";
    letter-spacing: 0.5px;
    line-height: 1.1;
}

h2 {
    font-size: 12px;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 0;
    font-family: "Maven Pro";
    letter-spacing: 0.5px;
    line-height: 1.1;
}

p {
    font-size: 10px;
    font-weight: 400;
    color: #ccc;
    margin: 0;
    padding: 0;
    font-family: "Nunito";
}

#view {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#header {
    width: 100%;
    z-index: 1;
    padding: 8px;
}

#headerContainer {
    padding: 18px 22px;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    backdrop-filter: blur(14px);
}

#content {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: row;
}

#sidebar {
    width: 390px;
    padding: 8px;
}

#sidebarContainer {
    overflow: hidden;
}

#sidebarHeader {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 8px 16px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#summary {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.itemContainer {
    padding: 12px;
    border-radius: 18px;
}

.summaryNumber {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 0;
    font-family: "Maven Pro";
}

#sidebarContent {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 16px;
    gap: 10px;
}

#positionItemFilters {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.positionItemFiltersTab {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
}

.positionItemFilter {
    font-family: "Nunito";
    font-size: 11px;
    background-color: rgba(0,0,0,0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 9px;
    border-radius: 18px;
    color: #ccc;
    transition-duration: 200ms;
    cursor: pointer;

    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}

.positionItemFilter:hover {
    background-color: rgba(0,0,0,0.36);
}

.active {
    background-color: rgba(0, 78, 17, 0.36);
    color: #eee;
}

.active:hover {
    background-color: rgba(0, 78, 17, 0.18);
}

.positionItem {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    cursor: pointer;
    background-color: rgba(0,0,0,0.12);
    transition-duration: 200ms;
    margin-bottom: 8px;
}

.positionItem:hover {
    background-color: rgba(0,0,0,0.36);
}

.itemHeader {
    margin-bottom: 4px;
}

.itemType {
    top: 10px;
    right: 10px;
    font-family: "Nunito";
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 9px;
    border-radius: 18px;
    color: #ccc;
    position: absolute;
    top: 10px;
    right: 10px;
}

.typeTaufe {
    background-color: rgba(45, 227, 166, .10);
    border-color: rgba(45, 227, 166, .28);
}

.typeWiedereintritt {
    background-color: rgba(255, 211, 110, .12);
    border-color: rgba(255, 211, 110, .34);
}

.typeFirmung {
    background-color: rgba(124, 92, 255, .12);
    border-color: rgba(124, 92, 255, .30);
}

.typeGespraech {
    background-color: rgba(92, 200, 255, .12);
    border-color: rgba(92, 200, 255, .34);
}

.typeAndere {
    background-color: rgba(255, 92, 122, .12);
    border-color: rgba(255, 92, 122, .32);
}

#positionItemListGradientTop {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,1));
}

#positionItemListGradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1));
}

#map {
    overflow: hidden;
    flex: 1;
    padding: 8px;
    z-index: 1;
    position: relative;
}

#mapContainer {
    overflow: hidden;
    position: relative;
}

@media screen and (max-width:992px) {
    #content {
        flex-direction: column;

    }

    #map {
        order: 1;
        flex: none;
        height: calc(100vh - 300px) !important;
    }

    #sidebar {
        order: 2;
        flex: none;
        width: 100%;
        height: calc(100vh - 300px);
    }

    #overlayBackground {
        width: 95% !important;
        height: 70% !important;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 22px;
    }

    .itemType {
        font-size: 20px;
    }

    .positionItemFilter {
        font-size: 20px;
    }

    .summaryNumber {
        font-size: 28px;
    }
}