@import url('https://css.gg/css');
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    accent-color: var(--accent);
}

*::selection {
    background-color: var(--accent55);
}

:root {
    /* --accent: #166370; */
    --accent: #2DBAD3;
    /* --accent: #8ABE23; */
    --accent55: #2dbad355;
    --white: white;
    --black: black;
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    /* min-height: 100vh; */
}


/* button */

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: 300ms;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 900;
    font-size: 14px;
    gap: 10px;
    color: var(--black);
    text-transform: uppercase;
    border: none;
}

.button.white {
    background-color: var(--white);
}

.button.accent {
    background-color: var(--accent);
}

.button:hover {
    background-color: var(--black);
    color: var(--white);
}


/* header */

.header {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.header .logo {
    flex: 1;
}

.header .logo img {
    height: 100px;
}

@media screen and (max-width:700px) {
    .header .info {
        display: none;
    }
}

@media screen and (max-width:480px) {
    .header .button p {
        display: none;
    }
}

@media screen and (max-width:350px) {
    .header .button {
        display: none;
    }
}


/* nav */

.nav {
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--black);
    font-size: 20px;
    font-weight: 300;
    transition: 300ms;
}

.nav a:hover {
    color: var(--accent);
}

@media screen and (max-width:500px) {
    .nav a {
        font-size: 16px;
    }
}

@media screen and (max-width:436px) {
    .nav {
        padding: 10px 20px;
        gap: 20px;
    }
}


/* sections */

.section {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section .title {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 28px;
    text-align: center;
    position: relative;
}

.section:not(#rating) .title::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 20px;
    background-color: var(--accent);
    opacity: 0.5;
    bottom: -5px;
    left: calc(50% - 150px);
}

.section .subtitle {
    font-weight: 600;
    font-size: 20px;
    margin-top: 20px;
}

@media screen and (max-width:500px) {
    .section {
        gap: 20px;
    }
    .section .title {
        font-size: 20px;
    }
    .section:not(#rating) .title::after {
        height: 15px;
        width: 100px;
        left: calc(50% - 100px);
    }
    .section .subtitle {
        font-size: 18px;
    }
}


/* schluesseldienst */


/* tresoroeffnung */

#schluesseldienst {
    position: relative;
}

#tresoroeffnung {
    gap: 20px;
}

#schluesseldienst .row,
#tresoroeffnung .row {
    display: flex;
    gap: 40px;
    width: 80%;
    margin-left: 10%;
}

@media screen and (max-width: 800px) {
    #schluesseldienst .row,
    #tresoroeffnung .row {
        width: 100%;
        margin-inline: 5px;
    }
}

#schluesseldienst .row .image img,
#tresoroeffnung .row .image img {
    width: 300px;
    border-radius: 5px;
    box-shadow: 5px 5px 10px 2px #000000aa;
}

#schluesseldienst .row .data p,
#tresoroeffnung .row .data p {
    text-align: justify;
    line-height: 32px;
    margin: 14px;
    margin-left: 0;
}

#schluesseldienst .row .data p:first-child,
#tresoroeffnung .row .data p:first-child {
    margin-top: 0;
}

@media screen and (max-width:580px) {
    #schluesseldienst .row,
    #tresoroeffnung .row {
        flex-direction: column;
        gap: 20px;
    }
    #schluesseldienst .row .image,
    #tresoroeffnung .row .image {
        order: 1;
        display: flex;
        justify-content: center;
    }
    #schluesseldienst .row .image img,
    #tresoroeffnung .row .image img {
        width: 100%;
    }
    #schluesseldienst .row .data,
    #tresoroeffnung .row .data {
        order: 2;
    }
    #schluesseldienst .row .data p:first-child,
    #tresoroeffnung .row .data p:first-child {
        margin-top: 20px;
    }
}

#schluesseldienst::after {
    position: absolute;
    content: '';
    background-color: #ccc;
    height: 1px;
    width: 80%;
    bottom: 0;
    left: 10%;
}


/* kontakt */

#kontakt {
    align-items: center;
}

#kontakt form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 80%;
    max-width: 800px;
    /* margin-left: 10%; */
}

@media screen and (max-width:500px) {
    #kontakt form {
        width: 100%;
        /* margin-left: 0; */
    }
}

#kontakt input[type=text],
#kontakt input[type=email],
#kontakt textarea {
    font-size: 18px;
    font-family: inherit;
    padding: 5px;
    width: 100%;
}


/* impressum */

#impressum {
    gap: 0px;
}

#impressum p {
    margin: 10px;
    text-align: justify;
}

#impressum h5 {
    margin-left: 10px;
}

#impressum h6 {
    margin-left: 20px;
}


/* rating */

#rating {
    background-color: var(--accent);
    display: flex;
    flex-direction: column;
}

#rating .top-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#rating .top-container .button {
    position: absolute;
    right: 20px;
}

@media screen and (max-width:700px) {
    #rating .top-container {
        flex-direction: column;
        gap: 20px;
    }
    #rating .top-container .button {
        position: relative;
        right: 0;
    }
}

#rating .items-container {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    padding: 10px;
    padding-bottom: 30px;
}

#rating .items-container .item {
    background-color: var(--white);
    border-radius: 5px;
    padding: 20px;
    min-width: calc((100% - 3 * 20px) / 4);
    aspect-ratio: 1;
    box-shadow: 0 0 5px 3px #ccc;
    overflow-y: scroll;
}

#rating .items-container .item .name {
    font-weight: 700;
}

#rating .items-container .item .stars {
    font-size: 30px;
    color: orange;
    letter-spacing: 4px;
}

#rating .items-container .item .comment {
    font-size: 14px;
    font-style: italic;
}

@media screen and (max-width:1000px) {
    #rating .items-container .item {
        min-width: calc((100% - 2 * 20px) / 3);
    }
}

@media screen and (max-width:800px) {
    #rating .items-container .item {
        min-width: calc((100% - 1 * 20px) / 2);
    }
}

@media screen and (max-width:600px) {
    #rating .items-container .item {
        min-width: calc((100% - 0 * 20px) / 1);
    }
}


/* footer */

.footer {
    margin-bottom: 82px;
    background-color: #eee;
    display: flex;
    padding: 5px;
    justify-content: center;
    align-items: center;
}

.footer {
    text-align: center;
}

.footer a {
    color: var(--black);
    transition: 300ms;
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent);
}

@media screen and (max-width:544px) {
    .footer {
        margin-bottom: 144px;
    }
}


/* banner */

.banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

@media screen and (max-width:544px) {
    .banner {
        flex-direction: column;
        gap: 10px;
    }
}