:root {
    --dark: #2B2B2B;
    --cream: #FFFDF8;
    --gold: #C9A227;
    --olive: #6D8A04;
    --red: #8B1E1E;
    --text: #333333;
}

/* Grundlayout */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--cream);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    padding: 30px;
    flex: 1;
}

.alles {
    width: 100%;
    margin: auto;
    padding: 15px;
    overflow: clip;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.center-content {
    text-align: center;
}

a {
    color: var(--red);
}

a:hover {
    color: var(--olive);
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(rgba(43, 43, 43, 0.95), rgba(43, 43, 43, 0.95));
    color: #FFFFFF;
    padding: 0;
    margin: 0;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header .header-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-height: 260px;
}

header img.header-imageleft {
    width: 320px;
    height: auto;
    object-fit: contain;
    padding: 25px;
}

header img.header-imageright {
    width: 320px;
    height: auto;
    object-fit: cover;
    display: block;
}

header .text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 25px;
}

header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3.6vw, 3.4rem);
    line-height: 1.1;
    margin: 0;
    color: #F8E6A0;
}

header p {
    font-style: italic;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    margin-top: 10px;
    color: #F5F5F5;
}

/* Allgemeine Abschnitte */
section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #FFFDF8;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

section h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--red);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    margin-bottom: 5px;
}

section p {
    font-size: clamp(1.08rem, 1.25vw, 1.28rem);
    color: #4A4A4A;
}

/* Über uns */
#about {
    margin-top: 30px;
    padding: 50px 15px;
    text-align: center;
    position: relative;
    background-image: url("haupttuer.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-box {
    margin: 0 auto;
    padding: 25px 18px;
    background-color: rgba(255, 248, 238, 0.25);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.50);
}

.about-box h2 {
    color: var(--red);
    margin-top: 15px;
}

.about-box p {
    color: #000000;
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    font-weight: 700;
}

/* Buttons */
.reserve-button,
.menu-button,
.map-button {
    display: inline-block;
    background-color: var(--red);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.95rem, 1vw, 1.08rem);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.reserve-button {
    margin-top: 20px;
    padding: 12px 25px;
}

.menu-button {
    margin: 20px 0 30px;
    padding: 14px 28px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.map-button {
    margin-top: 20px;
    padding: 14px 28px;
}

.reserve-button:hover,
.menu-button:hover,
.map-button:hover {
    background-color: var(--olive);
    color: #FFFFFF;
    text-decoration: none;
}

.menu-button:hover {
    transform: translateY(-2px);
}

/* Bilder-Slider */
#bilderwechsel {
    background-color: #FFFDF8;
    text-align: center;
    padding: 40px 20px 60px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

#bilderwechsel h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--red);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    margin-bottom: 25px;
}

.slider {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slides {
    display: flex;
    align-items: center;
    width: 600%;
    animation: slideShow6 20s infinite;
}

.slides img {
    width: 16.6667%;
    height: 420px;
    object-fit: cover;
}

@keyframes slideShow6 {
    0%, 12% {
        transform: translateX(0);
    }

    16%, 28% {
        transform: translateX(-16.6667%);
    }

    32%, 44% {
        transform: translateX(-33.3334%);
    }

    48%, 60% {
        transform: translateX(-50%);
    }

    64%, 76% {
        transform: translateX(-66.6668%);
    }

    80%, 92% {
        transform: translateX(-83.3335%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Speisekarten-Startbereich */
#speisekarte {
    background-color: var(--cream);
    text-align: center;
    padding: 40px 20px 60px;
}

/* Speisekarten-Kacheln auf der Startseite */
.speisekarte-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.speisekarte-item {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.speisekarte-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: none;
    display: block;
    transition: filter 0.3s ease;
}

.speisekarte-item p {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    min-height: 40px;
    transform: translate(-50%, -50%);
    background-color: rgba(43, 43, 43, 0.75);
    color: #F8E6A0;
    padding: 10px 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    text-align: center;
}

.speisekarte-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.speisekarte-item:hover img {
    filter: brightness(0.75);
}

.speisekarte-item:hover p {
    background-color: var(--red);
    color: #FFFFFF;
}

/* Vollständige Speisekarte */
.menu {
    padding-top: 30px;
}

.menu-section {
    scroll-margin-top: 120px;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #FFFDF8;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.menu-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--red);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    margin-bottom: 20px;
    text-align: center;
}

.menu-note {
    text-align: center;
    font-style: italic;
    margin-bottom: 25px;
    color: #555555;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px dotted var(--gold);
}

.item-name,
.item-price {
    font-size: clamp(0.95rem, 1.05vw, 1.08rem);
}

.item-name {
    font-weight: 600;
    color: #333333;
}

.item-name small {
    display: block;
    font-weight: 400;
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    color: #666666;
    margin-top: 4px;
}

.item-price {
    font-weight: bold;
    color: var(--red);
    white-space: nowrap;
}

/* Standort */
#standort {
    background-color: var(--cream);
    text-align: center;
    padding: 40px 20px 60px;
}

#standort iframe {
    max-width: 100%;
}

/* Öffnungszeiten, Kontakt und Social Media */
#oeffnungszeiten,
#kontakt,
#social-media {
    background-color: var(--cream);
    text-align: center;
    padding: 40px 20px 60px;
}

#kontakt,
#social-media {
    padding-top: 20px;
}

#social-media h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--red);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    margin-bottom: 15px;
}

.Facebook,
.instagram {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.social-icon a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
}

.social-icon a:hover {
    text-decoration: none;
}

/* Footer */
footer {
    width: 100%;
    margin: 0 auto;
    background-color: var(--dark);
    color: #FFFFFF;
    text-align: center;
    padding: 14px 10px;
    font-size: clamp(0.82rem, 0.9vw, 0.92rem);
}

footer a,
.footer-links a {
    color: #F8E6A0;
    text-decoration: none;
    margin: 0 8px;
}

footer a:hover,
.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Rechtliche Seiten: Impressum und Datenschutz */
.legal-page {
    padding: 30px;
}

.legal-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 35px;
    background-color: #FFFDF8;
    text-align: left;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.legal-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--red);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    text-align: center;
    margin-bottom: 30px;
}

.legal-section h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--dark);
    font-size: clamp(1.1rem, 1.5vw, 1.28rem);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
    font-size: clamp(1.08rem, 1.25vw, 1.28rem);
    color: #333333;
    line-height: 1.8;
}

.legal-section a {
    color: var(--red);
    font-weight: 600;
}

.legal-section ul {
    padding-left: 25px;
}

/* Telefonbutton unten rechts */
.phone-float {
    display: none;
}

@media (max-width: 768px) {
    .phone-float {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 3000;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 58px;
        height: 58px;
        background-color: var(--red);
        color: #FFFFFF;
        border-radius: 50%;
        text-decoration: none;
        font-size: 28px;
        font-weight: bold;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    }

    .phone-float:hover {
        background-color: var(--olive);
        color: #FFFFFF;
        text-decoration: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .alles {
        width: 100%;
        padding: 0;
    }

    header .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: auto;
    }

    header img.header-imageleft {
        width: 24%;
        max-width: 120px;
        height: auto;
        padding: 8px;
        object-fit: contain;
    }

    header img.header-imageright {
        width: 26%;
        max-width: 250px;
        height: auto;
        align-self: stretch;
        object-fit: cover;
        padding: 0;
        margin: 0;
    }

    header .text-content {
        flex: 1;
        padding: 8px 4px;
    }

    header h1 {
        font-size: clamp(1.25rem, 4.6vw, 2.2rem);
        line-height: 1.1;
    }

    header p {
        font-size: clamp(0.8rem, 2vw, 1rem);
        line-height: 1.3;
        margin-top: 6px;
    }

section {
        padding: 22px 16px;
    }

    .slides img {
        height: 260px;
    }

    .speisekarte-gallery {
        grid-template-columns: 1fr;
    }

    .legal-page {
        padding: 10px;
    }

    .legal-section {
        padding: 22px 16px;
        margin: 25px auto;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 600px) {
    .menu-button {
        width: 90%;
        max-width: 320px;
        text-align: center;
        padding: 14px 18px;
    }

    .menu-section {
        padding: 20px 15px;
    }

    .menu-item {
        flex-direction: column;
        gap: 4px;
    }

    .item-price {
        align-self: flex-end;
    }
}

/* Finale Schriftgrößen erzwingen */
header h1 {
    font-size: clamp(1.6rem, 3.6vw, 3.4rem) !important;
    line-height: 1.1 !important;
}

header p {
    font-size: clamp(0.95rem, 1.25vw, 1.15rem) !important;
}

section h2,
#bilderwechsel h2,
#social-media h2,
.menu-section h2,
.legal-section h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
}

.legal-section h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.28rem) !important;
}

section p,
.legal-section p,
.legal-section li {
    font-size: clamp(1.08rem, 1.25vw, 1.28rem) !important;
}

.about-box p {
    font-size: clamp(1.1rem, 1.3vw, 1.3rem) !important;
}

.reserve-button,
.menu-button,
.map-button {
    font-size: clamp(0.95rem, 1vw, 1.08rem) !important;
}

.item-name,
.item-price {
    font-size: clamp(0.95rem, 1.05vw, 1.08rem) !important;
}

.item-name small {
    font-size: clamp(0.85rem, 0.95vw, 0.95rem) !important;
}

footer {
    font-size: clamp(0.82rem, 0.9vw, 0.92rem) !important;
}

@media (max-width: 768px) {
    header h1 {
        font-size: clamp(1.25rem, 4.6vw, 2.2rem) !important;
    }

    header p {
        font-size: clamp(0.8rem, 2vw, 1rem) !important;
    }

}

/* P-Texte größer */
section p,
.legal-section p,
.legal-section li {
    font-size: clamp(1.08rem, 1.25vw, 1.28rem) !important;
    line-height: 1.8 !important;
}

.about-box p {
    font-size: clamp(1.1rem, 1.3vw, 1.3rem) !important;
    line-height: 1.8 !important;
}

.menu-note {
    font-size: clamp(1rem, 1.15vw, 1.18rem) !important;
}

/* Footer soll das echte Seitenende sein */
html,
body {
    min-height: 100% !important;
}

body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0 !important;
}

main {
    flex: 1 0 auto !important;
}

footer {
    width: 100% !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
    padding: 14px 10px !important;
}


/* Google Maps: nur nach ausdrücklicher Einwilligung laden */
.map-consent-placeholder {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
}
.map-consent-placeholder button {
    border: 0;
    cursor: pointer;
}
.map-consent-frame iframe {
    display: block;
    width: 100%;
    height: 300px;
}
/* Identisches Erscheinungsbild für beide Kartenbuttons */
.map-consent .map-consent-control {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid var(--red);
    border-radius: 0;
    color: var(--red);
    background: transparent;
    font: 400 1rem/normal Georgia, "Times New Roman", serif;
    cursor: pointer;
}
.map-consent .map-consent-control:hover {
    background: var(--red);
    color: #fff;
}
.map-consent .map-consent-control:focus-visible {
    outline: 3px solid #b79a5b;
    outline-offset: 3px;
}
.map-consent [hidden] {
    display: none !important;
}

/* Eigenständige, lokal gespeicherte Standortvorschau ohne Google-Anfragen */
.map-preview-image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    margin: 0 auto;
    border: 1px solid rgba(43, 43, 43, 0.2);
}



/* Schwebender Button: zurueck zum Seitenanfang */
.back-to-top {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 2999;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid #b79a5b;
    border-radius: 50%;
    background: #8b1e1e;
    color: #fff;
    font: 700 27px/1 Georgia, "Times New Roman", serif;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.back-to-top[hidden] {
    display: none !important;
}
.back-to-top:hover {
    background: #6d8a04;
    transform: translateY(-2px);
}
.back-to-top:focus-visible {
    outline: 3px solid #b79a5b;
    outline-offset: 3px;
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 18px;
        width: 50px;
        height: 50px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}


/* Goldene Hauptnavigation: rechts ausgerichtet mit Icons */
.primary-nav {
    --nav-control-height: 54px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 35px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    background-color: var(--gold);
}
.primary-nav ul {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 10px clamp(12px, 2.5vw, 28px);
    background-color: var(--gold);
}
.primary-nav li {
    flex: 0 0 auto;
    margin: 0;
    text-align: center;
}
.primary-nav a {
    display: flex;
    height: var(--nav-control-height);
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 148px;
    color: #2B2B2B;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    padding: 10px 16px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}
.primary-nav li:last-child a {
    min-width: 190px;
}
.primary-nav .nav-icon {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
    background-color: var(--olive);
    color: #FFFFFF;
    text-decoration: none;
}
.primary-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--red);
}
@media (max-width: 600px) {
    .primary-nav {
        --nav-control-height: 42px;
        margin-bottom: 20px;
    }
    .primary-nav ul {
        padding: 6px 8px;
    }
    .primary-nav a,
    .primary-nav li:last-child a {
        min-width: 0;
        padding: 9px 11px;
        gap: 6px;
        font-size: 0.9rem;
    }
    .primary-nav .nav-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
}

/* Sprachauswahl links in der Navigation, ohne externen Dienst */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.language-picker {
    flex: 0 0 auto;
    padding-left: clamp(10px, 2vw, 24px);
}
.language-switch {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 76px;
    height: var(--nav-control-height);
    border: 1px solid #B79A5B;
    border-radius: 18px;
    background: var(--dark);
    color: #F3EEE4;
    transition: background-color .2s ease, border-color .2s ease;
}
.language-switch-code {
    font: 700 1.3rem/1 Georgia, "Times New Roman", serif;
    pointer-events: none;
}
.language-switch:hover {
    background: var(--dark);
    border-color: #F3EEE4;
}
.language-switch:focus-within {
    outline: 3px solid #B79A5B;
    outline-offset: 2px;
}
.language-switch select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}
@media (max-width: 600px) {
    .language-picker {
        padding-left: 6px;
    }
    .language-switch {
        width: 62px;
        height: var(--nav-control-height);
        border-radius: 14px;
    }
    .language-switch-code {
        font-size: 1.05rem;
    }
    .primary-nav ul {
        padding: 6px 4px;
    }
    .primary-nav a,
    .primary-nav li:last-child a {
        padding: 9px 5px;
        gap: 4px;
        font-size: 0.78rem;
    }
    .primary-nav .nav-icon {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }
}
