/* Farben */

:root {
    --primary: #e1d6bc;
    --secondary: #777164;
    --text: #5a5446;
}

/* Standard Schriftart */

* {
    font-family: "EB Garamond", serif;
}

/* Standard-Einstellungen */

h1,
h2,
h3,
h4,
h5,
p,
li,
th {
    color: var(--text);
    overflow-wrap: break-word;
}

p > a {
    text-decoration: underline;
}

em {
    font-weight: bold;
    font-style: normal;
}

p, li {
    font-size: x-large;
    line-height: 150%;
}

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

.navbar-nav,
.list-dotless {
    list-style-type: none;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.rounded {
    /*border-radius: 25px;*/
    border-radius: 0px;
}

.hr-small {
    margin-left: 0;
    width: 4rem;
}

.button-navbar {
    background-color: #ffffff;
    border: none;
}

/* Container */

body {
    margin: 0;
}

.container {
    /*width: 90%;*/
    padding: 1rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */

.navbar-nav .nav-item {
    margin: 10px;
}

.navbar-brand,
.nav-link,
.footer {
    font-family: "Nunito", sans-serif;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-menu ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.navbar-menu li{
        font-size: large;
}

.button-navbar {
    display: none;
}

/* Footer */
footer {
    margin-top: 100px;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer p strong {
    font-size: large;
}

footer a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 10px;
    font-size: large;
}

footer p {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    margin: 10px;
}

.tax-notice {
    font-size: medium;
}

/* Sektionen */

.hero,
.section-colored {
    background-color: #e1d6bc5d;
}

/* Hero */
.hero-img {
    object-fit: cover;
    object-position: center;
}

.hero-relative {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
    max-width: 1000px;
    margin: auto;
}

.hero-relative h1 {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #ffffffd7;
    top: 10%;
    font-size: min(9cqw, 75px);

}

/* Buttons */

.btn {
    border-radius: 5px;
    background-color: var(--secondary);
    color: #ffffff;
    font-weight: bold;
    font-family: "Nunito", sans-serif;
    padding: 10px;
    display: flex;
    justify-content: center;
    font-size: large;
}

button {
    background-color: var(--secondary);
    color: #ffffff;
    font-weight: bold;
    font-family: "Nunito", sans-serif;
    padding: 10px;
    border: none;
    font-size: large;
}


/* Forms */

form {
    font-family: "Nunito", sans-serif;
}

table {
    table-layout: fixed;
}

th {
    width: 20%;
    text-align: left;
}

form label {
    font-family: "Nunito", sans-serif;
    font-size: larger;
}

form input,
form textarea {
    font-family: "Nunito", sans-serif;
    font-size: larger;
    border-radius: 10px;
    border-width: 1px;
    width: min(100%, 500px);
    border-style: solid;
}

form input {
    height: 40px;
}

form button {
    margin-top: 20px;
    width: 50%;
}

input:user-invalid,
textarea:user-invalid {
    background-color: #eb6f6fe0;
    border-color: red;
    border-width: 3px;
}

input:user-valid,
textarea:user-valid {
    border-color: green;
    border-width: 3px;
}

#submitAlert {
    display: none;
}

.agree-checkbox {
    width: 40px;
    margin-right: 20px;
    flex-shrink: 0;
}

div:has(> .agree-checkbox:user-invalid) {
    border-style: solid;
    border-width: 3px;
    border-color: red;
    border-radius: 10px;
    padding: 2px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.input-aligned {
    display: flex;
    align-items: center;
}

.fullwidth {
    width: 100%;
}

.warning {
    padding: 10px;
    border-radius: 10px;
    border-width: 2px;
    border-color: red;
    border-style: solid;
    color: red;
}

.edit-data {
    display: flex;
    flex-direction: row;
    align-content: center;
}

.edit-data > a {
    align-self: center;
    margin-left: 30px;
    text-decoration: underline;
}

@media screen and (max-width: 850px) {

    .navbar-menu ul {
        display: none;
    }

    .navbar-menu ul li {
        display: block;
    }

    .button-navbar {
        display: block;
    }

    #toggleClose {
        display: none;
    }

    #toggleOpen {
        display: block;
    }

}