@import url('font.css');

:root {
    --green: #C1E092;
    --purple: #B94F8E;
    --yellow: #FCE37D; /*Color of old check marks*/
    --yellow-dark: #FCE381;
    --yellow-app: #fcca27;

    --accent: var(--yellow);
    --accent-dark: #e3cb6d;
    --accent-dark: var(--yellow-app);
    --yellow-background: #fcf5e2;
    --background: white;

    --border: rgb(245, 245, 245);
    
    --text: #303030;
    --text-light: #464646;
    --text-hover: rgb(105, 105, 105);

    --nav-color: white;

    --width: 810px;

    /*Notification colors*/
    --succes: #91e789;
    --success-border: rgb(101, 194, 88);
    --success-icon: rgb(76, 149, 66);

    --error: #e99191;
    --error-border: #b95c5c;
    --error-icon: #964848;
}

* {
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);

    color: var(--text);
}

nav {
    position: fixed;
    width: 100%;

    z-index: 100;
}

nav .center {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    top: 1rem;

    border-radius: 0.25rem;
    border: rgba(0,0,0,0.0) 1px solid;

    background-color: var(--nav-color);
    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.15);
}

.nav-small .center {
    top: 1rem;
    width: calc(var(--width) - 2rem);
}

.nav-top {
    top: 0;
    background-color: white;
    box-shadow: 0px 7px 15px 2px rgba(0,0,0,0.1);
}

.nav-top .center {
    top: 0;

    border-radius: none;
    box-shadow: none;
}

nav ul .appointment-button {
    display: none;
    margin-right: 0;
}

nav ul {
    display: flex;
    flex-direction: row;
}

nav ul li {
    list-style: none;
    margin: 1rem;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;

    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent);
}

nav img {
    height: 40px;

    padding: 0.5rem;
    margin-left: 0.5rem;
}

nav .button {
    margin-right: 0.5rem;
    color: var(--text) !important;
}

.nav-top img, .nav-top .button {
    margin: 0;
}

#landing {
    position: relative;
    display: flex;
    justify-content: center;

    width: 100%;
    height: 90vh;
    max-height: calc(100vh - 5rem);
}

/*Center*/
#landing .text, #landing-small .text {
    position: absolute;

    text-align: center;

    top: 40%;
    left: 50%;

    transform: translateX(-50%);

    color: white;
    color: var(--accent);
}

/*Links eingerückt*/
#landing .text {
    text-align: left;
    left: calc((100% - var(--width)) / 2 + 3rem);
    transform: unset;
}

/*Eine Zeile zentriert*/
#landing .text, #landing-small .text {
    text-align: center;
    transform: unset;
    left: unset;
}

#landing h1 {
    font-weight: 700;
    font-size: 3rem;
}

#landing h2 {
    color: white;
}

#landing-small h2 {
    font-size: 1.35rem;
}

#landing-image {
    position: relative;

    width: 100%;
    height: 100%;

    background-image: url("../img/landing-back.jpg");
    background-size: cover;
    background-position: calc(30%);

    filter: brightness(0.75) saturate(0.9);

    -webkit-transition: background-image 0.5s ease-in-out;
    transition: background-image 0.5s ease-in-out;
}

#landing-small {
    position: relative;
    display: flex;
    justify-content: center;

    width: var(--width);
    height: 60vh;

    margin: 1rem auto;
    margin-top: 1rem;
    margin-top: 6rem; /*With nav-top*/
}

.quadratic-landing {
    height: 80vh !important;
}

#landing-small #landing-image {
    border-radius: 0.5rem;
    background-position: calc(35%);
}

.quadratic-landing #landing-image {
    border-radius: 0.5rem !important;
}

#landing-small h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

#landing-small h2 {
    color: white;
}

main {
    margin-top: 0rem;
}

main h1 {
    margin: 1rem 0;
    text-align: center;
}

p {
    text-align: justify;
}

.center {
    position: relative;
    width: var(--width);

    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 1rem;
    padding-bottom: 3rem;

    scroll-margin-top: calc(4.5rem + 2px);
}

#landing-section {
    padding-bottom: 0;
}

section .heading {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

section .heading h1 {
    margin-bottom: 0.5rem;
}

section .heading p {
    margin-top: 0;
    text-align: center;
}

section .body {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    gap: 5rem;
}

section .col-body {
    display: flex;
    flex-direction: column;

    justify-content: space-between;

    gap: 3rem;
}

.section-row {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    width: 100%;

    gap: 3rem;
}

section .left p, section .left h1 {
    text-align: left !important;
}

.left {
    justify-content: start !important;
}

section h1 {
    font-weight: 400;
}

section .body > img {
    width: 300px;
    height: 300px;

    border-radius: 0.5rem;
}

.cards {
    display: flex;
    flex-direction: row;

    flex-wrap: wrap;

    gap: 2rem;
}

.card {
    width: calc(50% - 3rem);
    padding: 1rem;

    border-radius: 0.5rem;
    background-color: var(--yellow-background);
}

.card .header {
    display: flex;
    flex-direction: row;

    align-items: center;

    gap: 1rem;
}

.card .header img {
    width: 40px;

    padding: 0.5rem;
    
    border-radius: 0.25rem;

    background-color: var(--accent);
}

.card .body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;

    padding: 1rem 0;
}

.card .body ul {
    position: relative;
    list-style: none;
}

.card .body ul img {
    position: absolute;
    left: 0;
}

.card .body ul li {
    margin: 0.5rem 0;
    margin-left: 1.75rem;
}

.card .body .link {
    display: flex;
    flex-direction: row;

    justify-content: end;

    gap: 0.25rem;

    width: 100%;

    margin-right: 2rem;

    transition: 0.3s;
}

.card .body .link a {
    text-decoration: none;
    
    color: #f9cb15;

    transition: 0.3s;
}

.card .body .link img {
    height: 20px;
    transition: 0.3s;
}

.card .body .link:hover {
    margin-right: 1rem;
}

.card .body .link:hover a {
    color: #ddb517;
}

.card .body .link:hover img {
    filter: brightness(0.9);
}

.row {
    display: flex;
    flex-direction: row;

    gap: 2rem;
}

.holiday-row {
    width: calc(100% - 1rem);
    width: 100%;
    justify-content: space-between;
}

.holidays, .data-list {
    display: flex;
    flex-direction: column;

    gap: 1rem;

    width: 100%;
}

.holiday, .data-item {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    width: 100%;
}

.holidays form, .data-list form {
    width: auto;
}

.holiday a {
    color: var(--text);
    transition: color 0.3s;
}

.holiday a:hover {
    color: var(--text-hover);
}

.spacing {
    margin: 0 0.1rem;
}

footer {
    width: calc(100% - 2rem);

    padding: 1rem;

    background-color: var(--accent);
    color: white;
    color: var(--text);
}

footer .center {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    justify-content: space-between;

    gap: 1rem;
}

footer p {
    text-align: center;
}

.footer-row {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 100%;

    padding: 0.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;

    gap: 0.5rem;
}

.footer-col h3 {
    color: var(--text-light);
}

.footer-header {
    display: flex;

    justify-content: center;
    align-items: center;

    width: 100%;

    gap: 0.5rem;

    padding: 0.5rem;
}

.footer-header h2 {
    color: var(--text-light);
}

.footer-header h3 {
    color: var(--accent-dark);
    color: white;
}

footer ul {
    display: flex;
    flex-direction: column;

    list-style: none;

    gap: 0.5rem;
}

footer a {
    text-decoration: none;
    color: var(--text);

    transition: 0.3s;
}

footer a:hover {
    color: var(--text-hover);
    color: white;
}

footer > img {
    position: absolute;
    height: 70%;

    top: 50%;
    left: 1rem;

    transform: translateY(-50%);
}

footer .img-right {
    left: calc(100% - 1rem);

    transform: translate(-100%, -50%);
}

footer ul img {
    position: relative;
    left: 0;

    padding: 0.5rem;

    border-radius: 0.25rem;
    border-radius: 100%;

    background-color: var(--accent-dark);
}

.footer-logo {
    width: 48px;
}

.icon-indicator {
    display: flex;
    flex-direction: row;

    align-items: center;
}

.icon {
    margin-right: 0.5rem;

    padding: 0.5rem;
    border-radius: 0.25rem;

    background-color: var(--accent-dark);
}

.separator {
    width: 100%;
    height: 1px;

    border-radius: 0.5rem;

    background-color: var(--accent-dark);
}

.separator-vertical {
    position: relative;
    width: 1px;
    height: 100px;

    top: calc(50% - 50px);

    border-radius: 0.5rem;

    background-color: var(--accent-dark);
}

.button {
    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 0 0.5rem;

    padding: 0.5rem;

    border-radius: 0.25rem;

    color: var(--text);
    text-decoration: none;

    background-color: var(--accent);
    cursor: pointer;

    transition: 0.3s ease;
}

.button:hover {
    background-color: var(--accent-dark);
}

.button img {

}

.big-button {
    width: 200px;

    padding: 1rem;
    font-size: 1rem;
}

.centered {
    justify-content: center;
}

.accent-back {
    background-color: var(--accent);
}

.accent-color {
    color: var(--accent);
}

.accent-dark-color {
    color: var(--accent-dark);
}

.yellow-back {
    background-color: var(--yellow-background);
}

.center-line {
    display: none;
    position: fixed;

    height: 100vh;
    width: 1px;

    top: 0;
    left: calc(50%);

    background-color: #B94F8E;

    z-index: 1000;
}

form {
    width: 100%;

    display: flex;
    flex-direction: column;
}

form input, form textarea, form button {
    padding: 0.5rem;

    border: 1px solid var(--text);
    border-radius: 0.25rem;

    margin-bottom: 1rem;

    font-family: 'Plus Jakarta Sans', sans-serif;
}

form input:focus, form textarea:focus {
    background-color: var(--yellow-background);
}

form textarea {
    resize: vertical;
}

form label {
    margin-bottom: 0.5rem;
}

form a {
    margin-left: 0.25rem;
    text-decoration: none;
}

form button {
    margin-top: 0.5rem;
    border: none;
    
    font-size: 1rem;

    cursor: pointer;

    background-color: var(--accent);

    transition: 0.3s;
}

form button:hover {
    background-color: var(--accent-dark);
}

.notification {
    position: fixed;

    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;

    bottom: 1rem;
    right: 1rem;

    font-size: 0.9rem;
    
    padding: 0.5rem;

    background-color: white;

    border: none;
    border-radius: 0 0.25rem 0.25rem 0;
    border-left: 2px solid;

    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.15);

    z-index: 100;

    transition: 0.3s ease-out;
}

.notification .icon {
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: cover;

    background-color: unset;

    height: 12px;
    width: 12px;
}

.success {
    border-color: var(--success-border);
}

.success .icon {
    -webkit-mask-image: url("../img/check_circle.svg");
    mask-image: url("../img/check_circle.svg");
    background-color: var(--success-icon);
}

.error {
    border-color: var(--error-border);
}

.error .icon {
    -webkit-mask-image: url("../img/error.svg");
    mask-image: url("../img/error.svg");
    background-color: var(--error-icon);
}

.popup {
    position: fixed;
    display: flex;

    flex-direction: column;
    align-items: center;

    padding: 1rem;
    
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background-color: white;

    border-radius: 0.5rem;
    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.15);

    z-index: 101;

    transition: opacity 0.3s ease-out;
}

.popup h2 {
    margin-bottom: 0.25rem;
}

.popup h3 {
    margin: 0.25rem 0;
}

.appointment-popup p {
    margin-bottom: 1rem;
}

.popup .row {
    width: 100%;
}

.popup .button {
    width: calc(50% - 2rem);
}

.popup .close {
    position: absolute;

    left: 100%;
    transform: translate(calc(-100% - 0.5rem), -0.5rem);

    width: 1.5rem;
    height: 1.5rem;

    cursor: pointer;

    transition: 0.2s;

    filter: invert(0.6);
}

.popup .close:hover {
    filter: invert(0);
}

#popup-back {
    opacity: 1;

    position: fixed;
    width: 100vw;
    height: 100vh;

    top: 0;
    left: 0;

    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);

    z-index: 100;

    transition: opacity 0.3s ease-out;
}

.no-scrolling {
  height: 100%;
  overflow: hidden;
}

.popup .error-text {
    color: var(--error);
}

.mobile {
    display: none;
}

#mobile-menu {
    cursor: pointer;
    transition: 0.3s ease-out;
}

#mobile-menu[shown="true"] {
    transform: rotate(180deg);
}

#mobile-menu:hover {
    filter: invert(0.5);
}

#mobile-menu::selection {
    background-color: none;
}

.mobile::selection {
    background-color: none;
    user-select: none;
}

#mobile-nav-header {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    color: var(--accent-dark);
    color: var(--text-light);
}

@media (max-width: 992px) {
	:root {
        --width: 740px;
    }

    nav {
        font-size: 0.9rem;
    }

    /*#times-holidays {
        flex-direction: column;
        align-items: self-start;
    }*/
}

@media (max-width: 768px) {
	:root {
        --width: 540px;
    }

    html {
        font-size: 1rem;
    }

    #landing h1 {
        font-size: 2rem;
    }

    #landing-image {
        /*background-position: center;*/
        background-size: cover;
    }

    #landing .text {
        text-align: center;
    }

    .mobile {
        display: block;
    }

    nav {
        font-size: 1rem;
        background-color: var(--nav-color);

        box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.1);
        box-shadow: unset;

        -webkit-tap-highlight-color: transparent;
    }

    nav .center {
        width: 100%;
        top: 0;

        border-radius: 0 0;

        gap: 1rem;
    }

    nav .center img {
        margin-left: 0;
    }

    nav ul {
        position: absolute;
        flex-direction: column;
        align-items: center;

        width: calc(100% + 2px);

        top: 100%;
        height: 0px;
        left: -1px;

        interpolate-size: allow-keywords;

        overflow: hidden;

        background-color: var(--nav-color);

        border-radius: 0 0 0.35rem 0.35rem;
        box-shadow: unset;
        box-shadow: 0 4px 2px -2px rgba(0,0,0,0.1);

        text-align: center;
    }

    nav ul[shown="true"] {
        height: auto;
        transition: height 0.3s ease-out;
    }

    nav ul[shown="false"] {
        transition: height 0.3s ease-out;
    }

    nav .appointment-button {
        display: none;
        margin-right: 0;
    }

    nav ul .appointment-button {
        display: block;
    }

    section .body > img {
        width: 200px;
        height: 200px;
    }

    #times-holidays {
        flex-direction: column;
        align-items: center;
    }

    #times-holidays .row {
        width: 100%;
        justify-content: space-between;
    }

    .cards {
        flex-direction: column;
    }

    .card {
        width: calc(100% - 2rem);
    }

    .holiday-card {
        width: inherit !important;
    }

    .holiday-card .holidays {
        display: grid;
        grid-template-columns: auto auto;
        align-items: start;
    }

    .holiday-card .holiday {
        width: unset;
    }

    .visit-note {
        max-width: unset !important;
        text-align: center;
    }

    .footer-col ul {
        flex-direction: row;
    }

    footer .center {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
	:root {
        --width: calc(100% - 2rem);
    }

    section .body {
        flex-direction: column;
    }

    #landing-section h1 {
        margin-bottom: 1rem;
    }

    #landing-section .body {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    section .body > img {
        width: 20%;
        height: 20%;
    }

    .section-row {
        flex-direction: column;
        align-items: center;
    }

    .spacing {
        margin: 0;
    }

    .footer-row {
        padding: 0;
    }

    .quick-infos {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 380px) {
    .card .header {
        gap: 0.5rem;
    }

    .card .header h2 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }

    .card .header img {
        width: 32px;
    }

    .card .body {
        flex-wrap: wrap;
    }
}