@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0 5px 0 5px;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    /*height: 100vh;*/
    width: 100%;
    /*display: flex;*/
    position: relative;
    justify-content: center;
    align-items: center;
    background: #fff;
    text-align: center;
}

nav {
    width: 1000px;
    height: 60px;
    border-radius: 5px;
    display: flex;
    text-align: center;
    position: relative;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

nav label {
    width: 100%;
    height: 100%;
    line-height: 60px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 5px;
    margin: 0 5px;
    color: #005ea8;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav label:hover {
    background: rgba(207, 207, 207, 0.3);
}

nav label i {
    margin-right: 4px;
}

nav .slider {
    position: absolute;
    height: 100%;
    width: 24%;
    background: #005ea8;
    left: 0;
    top: 0;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

#pauschal:checked~nav label.pauschal,
#car:checked~nav label.car,
#haus:checked~nav label.haus,
#hausdk:checked~nav label.hausdk {
    color: #fff;
}

#car:checked~nav .slider {
    left: 25%;
}

#haus:checked~nav .slider {
    left: 50%;
}

#hausdk:checked~nav .slider {
    left: 75%;
}


input[type=radio] {
    display: none;
}