:root {
    --page-bg: rgb(245, 239, 239);
    --text-color: rgb(45, 45, 45);
    --accent-color: rgb(121, 104, 13);
    --page-width: 1100px;
    --page-gutter: clamp(16px, 4vw, 40px);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--page-bg);
    color: var(--text-color);
    font-family: "Times New Roman", serif;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

a {
    color: var(--accent-color);
    font-family: inherit;
}

/* Kopfbereich */

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(80px, 14vw, 120px);
    padding: 16px var(--page-gutter);
}

.header-logo {
    display: block;
    width: min(800px, 80vw);
    height: auto;
}

/* Überschriften */

h1 {
    margin: 20px 0 36px;
    font-size: clamp(2.25rem, 8vw, 6rem);
    text-align: center;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h4 {
    margin: 20px 0 36px;
    font-size: clamp(1rem, 4vw, 1.97rem);
    text-align: left;
}

.headline {
    margin: 20px var(--page-gutter) 36px;
    text-align: center;
}

.headline h3 {
    font-size: clamp(2rem, 6vw, 4rem);
}

/* Eingabekarten */

.input-grid {
    display: grid;
    grid-template-columns: minmax(0, 700px);
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 40px auto;
    padding: 0 var(--page-gutter);
}

.input-card,
.link-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    background: var(--page-bg);
    text-align: center;
}

.input-card {
    padding: 20px 16px;
}

.input-card p {
    margin: 0 0 24px;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.6;
}

.input-card input {
    width: 100%;
    max-width: 550px;
    min-height: 44px;
    margin: 0 0 24px;
    padding: 8px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    background: var(--page-bg);
    color: var(--text-color);
    font: inherit;
}

/* Links und Buttons */

.btn {
    display: inline-block;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    color: var(--accent-color);
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

button.btn {
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1.3;
    cursor: pointer;
}

.input-card .btn,
.link-card .btn {
    font-size: 1.05rem;
    line-height: 1.3;
}

.input-card .btn:hover,
.input-card .btn:focus-visible,
.link-card .btn:hover,
.link-card .btn:focus-visible {
    background: var(--accent-color);
    color: var(--page-bg);
}

/* Linkkarten und Speisekarte */

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 20px);
    width: min(100%, 1400px);
    margin: 40px auto;
    padding: 0 var(--page-gutter);
}

.link-card {
    padding: 22px 16px;
}

.link-card p,
.speise-card p {
    margin: 0 0 24px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.link-card h2 {
    margin: 0 0 24px;
    font-size: 2rem;
    line-height: 1.5;
}

.speise-card {
    padding: 22px 16px;
    text-align: left;
}

.speise-card h4 {
    margin: 0 0 24px;
    font-size: 2rem;
    line-height: 1.5;
}

.welcome-note {
    margin: clamp(32px, 6vw, 60px) var(--page-gutter);
    text-align: center;
}

.welcome-note h2 {
    font-size: clamp(2rem, 6vw, 6rem);
}

.info-box {
    min-width: 0;
}

.info-box h2 {
    margin-top: 0;
}

.info-box p {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
    hyphens: auto;
    overflow-wrap: anywhere;
}

/* Bilder und Fußbereich */

.main-picture {
    display: block;
    width: min(100%, 900px);
    height: auto;
    margin: 12px auto;
    transform: translateX(-10px);
}

.speisekarte-picture {
    display: block;
    width: min(100%, 900px);
    height: auto;
    margin: 12px auto;
    transform: translateX(-130px);
}

.site-plan {
    width: 100%;
    margin-top: auto;
    padding: 24px var(--page-gutter);
}

.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 24px max(var(--page-gutter), calc((100% - var(--page-width)) / 2));
    background: var(--page-bg);
}

.footer-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(20px, 4vw, 48px);
}

.footer-details > .info-box:nth-child(2) {
    grid-column: 2;
    margin-left: auto;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Tablets und kleinere Laptops */

@media (max-width: 900px) {
    .link-grid {
        grid-template-columns: 1fr;
    }

    .link-card,
    .speise-card {
        padding: 18px 14px;
    }

    .footer-details {
        gap: 24px;
    }
}

/* Smartphones */

@media (max-width: 600px) {
    .site-header {
        min-height: 80px;
    }

    .header-logo {
        width: min(100%, 420px);
    }

    h1 {
        margin: 24px 12px;
    }

    .input-grid,
    .link-grid {
        margin: 24px auto;
        padding-right: 12px;
        padding-left: 12px;
    }

    .input-card,
    .link-card {
        padding: 16px 12px;
    }

    .input-card p,
    .link-card p {
        font-size: 1rem;
    }

    .footer-details {
        grid-template-columns: 1fr;
    }

    .footer-details > .info-box:nth-child(2) {
        grid-column: 1;
        margin-left: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        font-size: 0.9rem;
    }

    .footer-bottom nav {
        gap: 8px 14px;
    }
}

/* Sehr schmale Smartphones */

@media (max-width: 360px) {
    .input-card .btn,
    .link-card .btn {
        width: 100%;
    }

    .footer-bottom nav {
        flex-direction: column;
    }
}
