html {
    --color-bg: #afbba3ff;
    --color-text: black;
    --color-accent: #6d8677ff;
    --color-items: #e7e4db;
}


/*Anführungszeichen nach Sprache*/

html[lang="de-CH"] q {
    quotes: '«' '»' '‹' '›';
}

html[lang="de"] q {
    quotes: '„' '‟' '‚' '‛';
}

html[lang="fr"] q {
    quotes: '»' '«' '›' '‹';
}

body {
    background-color: var(--color-bg);
    text-align: center;
    font-family: "Roboto", sans-serif;
}

/*alle Teile vom header*/
header {
    background-color: var(--color-accent);
    border-radius: 20px;
    position: sticky;
    padding-bottom: 20px;
    top: 0;
    display: flex;
    max-height: 100px;
    z-index: 100;
    color: var(--color-items);
}

.hauptnavigation nav ul {
    display: flex;
}

nav ul li a {
    padding: 6px 6px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

nav ul li a:hover {
    background-color: var(--color-items);
    color: var(--color-accent);
}

section#logo {
    width: 120px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
}

/*header fertig*/

main {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    text-align: center;
    background: var(--color-accent);
    padding: 10px;
    margin-top: 40px;
    color: var(--color-items);
}

img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


h1 {
    color: var(--color-items);
}


.button {
    background: var(--color-accent);
    border-radius: 10px;
    padding: 10px 20px;
    color: var(--color-text);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

a {
    color: inherit;
    text-decoration: none;
}

/*Impressum*/
main#impressum {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: var(--color-items);
    border-radius: 18px;
}

/*alle Teile von kontakte.html*/
main#kontakte {
    display: flex;
    flex-direction: row;
}

#kontakt-info {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.3em;
    max-width: 75%;
    margin-left: 2%;
}

#kontakt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    justify-items: center;
    margin-bottom: 40px;
    margin-right: 3%;
}

.kontakt-person img {
    width: 220px;
    height: auto;
    border-radius: 10px;
    background: var(--color-items);
    display: block;
    margin-bottom: 10px;
}

.kontakt-person p {
    text-align: center;
    font-size: 1.1em;
    margin: 0;
}

main#kontakte {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

section#kontakt-info {
    display: flex;
    flex-direction: column;
}

/*alle Teile von index.html*/
#home-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#home-img-container {
    position: relative;
    max-width: 75%;
    margin: 30px auto 0 auto;
}

#home-img-container img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

#home-jetzt-reservieren {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--color-items);
    border-radius: 10px;
    padding: 1% 3%;
    text-decoration: none;
    font-size: 100%;
}

#home-jetzt-reservieren:hover {
    color: var(--color-accent);
}

.zoom-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 160px;
    text-align: center;
}

.zoom-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#home-text-card {
    position: absolute;
    top: 90px;
    left: 30px;
    background: var(--color-items);
    border-radius: 20px;
    padding: 2% 3%;
}

.kunst-schrift {
    font-family: 'Licorice', cursive;
    font-size: 2.5em;
    margin: 0;
    text-align: left;
}

#home-öffnungszeiten {
    margin-top: 1px;
    max-width: 70%;
    text-align: center;
    font-size: 1.15em;
    background-color: var(--color-items);
    border-radius: 20px;
    margin-top: 15px;
    padding: 0 20px;
}

/*alle Teile über-uns.html*/
.über-uns-item {
    background: var(--color-items, #f5f0eb);
    border-radius: 16px;
    padding: 20px 18px;
    max-width: 90%;
    min-width: 50%;
    line-height: 1.6;
}

main#über-uns-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

section#über-uns-img,
section#über-uns-img2 {
    width: 45%;
    max-width: 50%;
}

section#über-uns-img img,
section#über-uns-img2 img {
    max-width:
        100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

section#über-uns-text,
section#über-uns-text-oben {
    width: 45%;
    font-size: 18px;
    color: #333;
}

/*alle Teile von speisekarte.html*/
main#speisekarte-layout {
    margin: 40px auto;
    max-width: 900px;
    background: var(--color-bg);
    border-radius: 20px;
    padding: 5px;
    text-align: center;
    line-height: 35px;
}

#speisekarte-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 90px;
    justify-items: center;
}

.speise-item {
    background: var(--color-items);
    border-radius: 16px;
    padding: 20px 18px;
    width: 100%;
    max-width: 320px;
    text-align: left;
}

.speise-item h3 {
    color: var(--color-accent);
}

.impressum-main {
    background: var(--color-items);
}


/* === RESPONSIVE DESIGN === */

/*über-uns.html*/
@media (max-width: 1116px) {
    main#about-us-layout {
        flex-direction: column;
    }

    section#über-uns-img,
    section#über-uns-img2,
    section#über-uns-text,
    section#über-uns-text-oben {
        width: 90%;
        max-width: 700px;
        text-align: center;
    }

    .über-uns-item {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    section#über-uns-img img,
    section#über-uns-img2 img {
        border-radius: 10px;
    }

    .über-uns-item {
        font-size: 16px;
        padding: 16px;
    }

    main#über-uns-layout {
        gap: 20px;
        margin: 20px auto;
    }

    footer h2 {
        font-size: 1.2rem;
    }
}



/*kontakte.html*/
@media screen and (max-width: 915px) {
    main#kontakte {
        flex-direction: column;
        align-items: center;
    }

    #kontakt-info {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
        order: -1;
    }

    #kontakt-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/*speisekarte.html*/
@media screen and (max-width: 800px) {
    #speisekarte-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    main#speisekarte-layout {
        padding: 15px 5px;
    }
}

/*index.html*/
@media screen and (max-width: 600px) {
    #home-text-card {
        width: 40px;
        padding: 6px 4px;
    }

    .kunst-schrift {
        font-size: 1.2em;
    }
}

/**
* #MARK: Hamburger Menu
*/

#hamburger {
    display: none;
}

@media screen and (max-width: 800px) {
    #hamburger {
        text-align: center;
    }

    label[for="hamburger"] {
        display: block;
        padding: var(--padding);
        width: 30px;
        height: 22px;
        cursor: pointer;
    }

    label[for="hamburger"]>span {
        background-color: var(--color-items);
        display: block;
        margin: 6px 0;
        height: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    #hamburger:checked~label[for]>span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #hamburger:checked~label[for]>span:nth-child(2) {
        opacity: 0;
    }

    #hamburger:checked~label[for]>span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    #hamburger~nav {
        display: none;
        position: absolute;
        padding: var(--padding);
        z-index: 100;
        font-size: 1.2em;
        left: 50%;
        transform: translateX(-50%);
    }

    #hamburger~nav ul {
        flex-direction: column;
        gap: 0;
        border-radius: 8px;
        background-color: var(--color-accent);
        margin: 0;
    }

    #hamburger~nav ul li:not(:last-child) {
        border-bottom: 1px solid var(--color-bg);
    }

    #hamburger:checked~nav {
        display: block;
    }
}