/* Restauration Sophien 11
   Gestaltung nach der Speisekarte des Hauses: Pergament, fette Fraktur für Rubriken und Gerichte,
   klassische Antiqua für Text und Preise, Gold für Linien, Lilien und Ecken, Bordeaux und Rot. */

@font-face {
    font-family: "Unifraktur Cook";
    src: url("../fonts/unifraktur-cook.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Libre Caslon Text";
    src: url("../fonts/libre-caslon-text-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Libre Caslon Text";
    src: url("../fonts/libre-caslon-text-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Libre Caslon Text";
    src: url("../fonts/libre-caslon-text-700.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --pergament: #f6e3b6;
    --pergament-hell: #fbefd2;
    --pergament-rand: #e7c88c;
    --dunkel: #2b170f;      /* Kopf, Fuß, Schild */
    --kreide: #f8ead0;
    --gold: #a8762a;
    --gold-hell: #d6ac5e;
    --bordeaux: #6b1414;    /* Rubriken */
    --rot: #9e1b1b;         /* Preise */
    --tinte: #2a1a12;
    --braun: #5e4636;

    --fraktur: "Unifraktur Cook", "UnifrakturCook", serif;
    --text: "Libre Caslon Text", "Times New Roman", Georgia, serif;
    --breite: 74rem;
    --kopf: 4.8rem;         /* Höhe der Kopfleiste auf breiten Fenstern */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    color: var(--tinte);
    font: 400 1.0625rem/1.75 var(--text);
    /* Pergament mit feiner Papierstruktur, zu den Seiten hin wärmer */
    background-color: var(--pergament);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        linear-gradient(to right, rgb(214 168 92 / .35), transparent 18%, transparent 82%, rgb(214 168 92 / .35));
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bordeaux); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rot); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; }

.container { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--pergament-hell); padding: .5rem 1rem; }
[tabindex="-1"]:focus { outline: none; }

/* „Nach oben“ unten rechts, wird per main.js nach etwas Scrollen eingeblendet */
.to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 20;
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
    border: 1px solid var(--gold-hell); border-radius: 50%;
    outline: 1px solid var(--dunkel); outline-offset: 2px;
    background: var(--dunkel); color: var(--kreide);
    box-shadow: 0 4px 14px rgb(43 23 15 / .35);
    opacity: 0; visibility: hidden; transform: translateY(.6rem);
    transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top--visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--bordeaux); color: var(--kreide); }
.to-top:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

.button {
    display: inline-block;
    padding: .6rem 1.4rem;
    border: 1px solid var(--gold);
    outline: 1px solid var(--bordeaux); outline-offset: 2px;
    background: var(--bordeaux);
    color: var(--kreide);
    text-decoration: none;
}
.button:hover { background: var(--rot); color: var(--kreide); }

/* Goldlinie mit Lilie in der Mitte – wie zwischen den Rubriken der Karte */
.ornament-rule {
    height: 26px; margin: .4rem 0 1.4rem;
    background:
        url("../ornament/lilie.svg") center / 26px no-repeat,
        linear-gradient(to right, transparent, var(--gold) 12%, var(--gold) calc(50% - 22px), transparent calc(50% - 22px),
                        transparent calc(50% + 22px), var(--gold) calc(50% + 22px), var(--gold) 88%, transparent) center / 100% 1px no-repeat;
}

/* Rahmen mit goldenen Ecken – wie um die Speisekarte */
.frame {
    position: relative;
    background: var(--pergament-hell);
    border: 1px solid var(--gold);
    padding: 2.6rem clamp(1.4rem, 4vw, 3.2rem);
    box-shadow: 0 .6rem 1.8rem rgb(90 50 10 / .15);
}
.frame::before {
    content: ""; position: absolute; inset: 6px; pointer-events: none;
    background:
        url("../ornament/ecke-ol.svg") top left / 46px no-repeat,
        url("../ornament/ecke-or.svg") top right / 46px no-repeat,
        url("../ornament/ecke-ul.svg") bottom left / 46px no-repeat,
        url("../ornament/ecke-ur.svg") bottom right / 46px no-repeat;
}

/* Kopfleiste */
.site-header { background: var(--dunkel); color: var(--kreide); border-bottom: 3px double var(--gold-hell); }
.site-header__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem 2rem; padding-block: .55rem;
}
@media (min-width: 1000px) { .site-header__inner { min-height: calc(var(--kopf) - 3px); } }
.site-logo { display: flex; align-items: center; gap: .8rem; color: var(--kreide); text-decoration: none; font: 700 1.9rem/1 var(--fraktur); }
.site-logo img { width: 56px; height: 56px; }
.site-logo:hover { color: var(--gold-hell); }
.site-header :focus-visible { outline-color: var(--kreide); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; margin-left: auto; }
.site-nav a { color: var(--kreide); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--kreide); text-decoration: underline; text-decoration-color: var(--gold-hell); }
.site-nav .site-nav__call { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--gold-hell); padding: .35rem .9rem; white-space: nowrap; }
.site-nav__icon { flex: none; }
/* Sprachumschalter: zeigt die jeweils andere Sprache, führt auf dieselbe Seite */
.site-nav .site-nav__lang { font-size: .85rem; letter-spacing: .08em; color: var(--gold-hell); }
.site-nav .site-nav__lang:hover { color: var(--kreide); }
.site-nav__short { display: none; }
.site-nav__burger { display: none; }
.site-nav__burger, .site-menu__close {
    padding: .3rem; border: 0; background: none; color: var(--kreide); cursor: pointer; line-height: 0;
}
.site-nav__burger:hover, .site-menu__close:hover { color: var(--gold-hell); }

/* Flyout (nur schmale Fenster) */
.site-menu {
    inset: 0 0 0 auto; width: min(20rem, 85vw); height: 100%; max-height: none; margin: 0;
    padding: 1rem 1.5rem 2rem;
    background: var(--dunkel); color: var(--kreide);
    border: 0; border-left: 3px double var(--gold-hell);
}
.site-menu::backdrop { background: rgb(20 10 5 / .55); }
.site-menu__close { display: block; margin-left: auto; }
.site-menu nav { display: flex; flex-direction: column; margin-top: 1rem; }
.site-menu a {
    padding: .7rem 0; border-bottom: 1px solid rgb(214 172 94 / .35);
    color: var(--kreide); text-decoration: none; font: 700 1.6rem/1.2 var(--fraktur);
}
.site-menu a:hover, .site-menu a[aria-current="page"] { color: var(--gold-hell); }
.site-menu :focus-visible { outline-color: var(--kreide); }

/* Schmale Fenster: Logo und Name kleiner, Reservieren + Burger, Seiten im Flyout
   (bis 1080 px, weil die Navigation sonst in die zweite Zeile umbricht) */
@media (max-width: 1080px) {
    .site-header__inner { flex-wrap: nowrap; gap: .75rem; }
    .site-logo { gap: .55rem; font-size: 1.3rem; }
    .site-logo img { width: 40px; height: 40px; }
    .site-nav { flex-wrap: nowrap; gap: .4rem; font-size: .95rem; }
    .site-nav__link { display: none; }
    .site-nav__burger { display: block; }
    .site-nav .site-nav__call { padding: .3rem .6rem; gap: .4rem; }
    .site-nav__long { display: none; }
    .site-nav__short { display: inline; }
}
/* Ganz schmal: nur der Hörer (Name kommt aus aria-label) */
@media (max-width: 480px) {
    .site-nav__short { display: none; }
    .site-nav .site-nav__call { padding: .45rem .6rem; }
}
.site-nav .site-nav__call:hover { background: var(--gold-hell); color: var(--dunkel); text-decoration: none; }

/* Startseite: Fassadenfoto (Hochformat) und Schild.
   Schmal: Foto über die volle Breite, Schild darunter. Breit: Schild links, Foto rechts in Fensterhöhe. */
.hero { background: var(--dunkel); }
.hero__photo {
    width: 100%;
    max-height: calc(100vh - var(--kopf));
    max-height: calc(100svh - var(--kopf));
    object-fit: cover; object-position: 50% 35%; /* Hängeschild bleibt im Bild */
}
.sign {
    padding: 1.5rem 2rem 1.3rem;
    background: var(--dunkel);
    border: 2px solid var(--gold-hell);
    outline: 1px solid var(--gold-hell); outline-offset: -9px;
    color: var(--kreide); text-align: center;
}
.sign h1 { margin: 0; font: 700 clamp(2.4rem, 6.5vw, 4.6rem)/1.05 var(--fraktur); }
.sign p { margin: .6rem 0 0; font-size: clamp(1rem, 2vw, 1.15rem); font-style: italic; }

@media (min-width: 1000px) {
    .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .hero__photo {
        grid-column: 2; grid-row: 1;
        width: auto; height: calc(100vh - var(--kopf)); height: calc(100svh - var(--kopf));
        min-height: 34rem; aspect-ratio: 1086 / 1448;
    }
    .sign {
        grid-column: 1; grid-row: 1; justify-self: center;
        width: min(100% - 5rem, 38rem); padding: 2.4rem 2.5rem 2rem;
        box-shadow: 0 1.2rem 2.5rem rgb(0 0 0 / .35);
    }
    .sign h1 { font-size: clamp(3rem, 4.4vw, 4.6rem); }
}
@media (max-width: 999px) { .sign { border-inline: 0; } }

/* Die wichtigsten Angaben direkt unter dem Foto */
.facts { background: rgb(231 200 140 / .45); border-bottom: 1px solid var(--gold); }
.facts dl {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem 2.5rem; margin: 0 auto; padding-block: 1.3rem;
}
.facts dt { font-size: .95rem; font-style: italic; color: var(--braun); }
.facts dd { margin: 0; font-size: 1.15rem; font-weight: 700; }

.intro { display: grid; gap: 3rem; padding-block: 4rem; align-items: start; }
@media (min-width: 960px) { .intro { grid-template-columns: minmax(0, 1fr) 28rem; gap: 4.5rem; } }
.intro__text h2 { margin: 0; font: 700 clamp(2.2rem, 4vw, 3rem)/1.1 var(--fraktur); color: var(--bordeaux); }
.intro__text p { margin: 0 0 1.1em; }
.intro__signoff { font-style: italic; }

/* Kartenauszug auf der Startseite */
.card { text-align: center; }
.card h2 { margin: 0; font: 700 2.1rem/1.1 var(--fraktur); color: var(--bordeaux); }
.card .menu-list { text-align: left; }
.card__note { color: var(--braun); font-size: .95rem; font-style: italic; }

/* Startseite: Video als Bild im Goldrahmen auf dunklem Band (wie Kopf- und Fußleiste) */
.film { margin-bottom: 4rem; background: var(--dunkel); color: var(--kreide); border-block: 3px double var(--gold-hell); }
.film__inner { display: grid; gap: 2rem 4.5rem; align-items: center; padding-block: 3.5rem; }
@media (min-width: 760px) { .film__inner { grid-template-columns: minmax(0, 1fr) 21rem; } }
.film__text h2 { margin: 0; font: 700 clamp(2.1rem, 4vw, 3rem)/1.1 var(--fraktur); color: var(--kreide); }
.film__text p { margin: 0 0 1rem; }
.film__frame { margin: 0; padding: 1.4rem; justify-self: center; width: min(100%, 21rem); }
.film__frame video { display: block; width: 100%; height: auto; background: var(--dunkel); }
@media (max-width: 759px) { .film__text { text-align: center; } }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; padding-bottom: 4rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--gold); padding: 4px; background: var(--pergament-hell); }
@media (max-width: 760px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery img:last-child { grid-column: span 2; aspect-ratio: 3 / 2; }
}

/* Speisekarte (auch auf der Startseite): Lilie, Name in Fraktur, Preis in Rot, Beschreibung in Klammern */
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { position: relative; padding: .55rem 0 .55rem 2.2rem; break-inside: avoid; }
.menu-item::before {
    content: ""; position: absolute; left: 0; top: .75rem;
    width: 1.5rem; height: 1.5rem; background: url("../ornament/lilie.svg") center / contain no-repeat;
}
.menu-item__head { display: flex; align-items: baseline; gap: .6rem; }
.menu-item__head:has(.menu-item__price)::after { content: ""; order: 1; flex: 1 1 0; min-width: 1rem; border-bottom: 1px dotted var(--gold); transform: translateY(-.3em); }
.menu-item__name { margin: 0; font: 700 1.45rem/1.25 var(--fraktur); color: var(--tinte); }
.menu-item__price { order: 2; font-weight: 700; font-size: 1.1rem; color: var(--rot); white-space: nowrap; }
.menu-item__variants { margin: .05rem 0 0; display: flex; flex-wrap: wrap; gap: .1rem 1.6rem; }
.menu-item__variants strong { color: var(--rot); }
.menu-item__desc { margin: .1rem 0 0; color: var(--braun); }
.menu-item__desc::before { content: "("; }
.menu-item__desc::after { content: ")"; }
.veggie { display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em; }

/* Getränkekarte: kompakte Zeilen, Preis mit Punktlinie am Zeilenende */
.drink-list { list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .drinks .drink-list { columns: 2; column-gap: 4rem; } }
.drink { display: flex; align-items: baseline; gap: .6rem; padding: .25rem 0; break-inside: avoid; }
.drink__name small { font-size: .9em; color: var(--braun); }
.drink::after { content: ""; order: 1; flex: 1 1 1.5rem; border-bottom: 1px dotted var(--gold); transform: translateY(-.3em); }
.drink__price { order: 2; font-weight: 700; color: var(--rot); white-space: nowrap; }
.drink__price--variants { white-space: normal; text-align: right; }
.drink__price--variants span { white-space: nowrap; }
.drink__price--variants span + span::before { content: "· "; }
.drink__additives { margin-left: .15em; font-size: .7em; color: var(--rot); }
.additives { padding-top: 1.5rem; }
.additives h2 { margin: 0 0 .8rem; font: 700 1.5rem/1.2 var(--fraktur); color: var(--bordeaux); text-align: center; }
.additives__list { margin: 0 auto; padding-left: 2rem; max-width: 46rem; color: var(--braun); font-size: .95rem; }
@media (min-width: 700px) { .additives__list { columns: 2; column-gap: 3rem; } }
.menu-section__size { font: italic 400 1.1rem var(--text); color: var(--braun); }

.menu-page { padding-block: 3.5rem 4.5rem; }
.menu-page > header { text-align: center; }
.page-title { margin: 0; font: 700 clamp(3.2rem, 8vw, 5.5rem)/1 var(--fraktur); color: var(--bordeaux); }
.page-lead { margin: .8rem 0 0; font-size: 1.15rem; font-style: italic; }
.menu-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin: 1.6rem 0 0; }
.menu-toc a { text-decoration: none; }
.menu-toc a:hover { text-decoration: underline; }

.menu-sheet { margin-top: 2.5rem; }
.menu-section { padding-top: 1.5rem; scroll-margin-top: 1rem; }
.menu-section h2 { margin: 0; text-align: center; font: 700 clamp(2.4rem, 5vw, 3.2rem)/1.1 var(--fraktur); color: var(--bordeaux); }
@media (min-width: 900px) { .menu-section .menu-list { columns: 2; column-gap: 4rem; } }
.menu-section__note { color: var(--braun); font-style: italic; text-align: center; }
.menu-page__footnote { margin-top: 2rem; color: var(--braun); font-size: .95rem; text-align: center; }

/* Textseiten */
.prose { padding-block: 3.5rem 4.5rem; }
.prose h1 { margin: 0; font: 700 clamp(2.8rem, 7vw, 4.4rem)/1.05 var(--fraktur); color: var(--bordeaux); }
.prose h2 { margin: 2.2rem 0 .5rem; font-size: 1.3rem; color: var(--bordeaux); }
.prose h3 { margin: 1.5rem 0 .4rem; font-size: 1.1rem; }
.prose ul { padding-left: 1.2rem; }

/* Initialen in Fraktur – wie auf der Geschichtstafel, je erster Absatz eines Abschnitts */
.initials :is(h2, .ornament-rule) + p { display: flow-root; }
.initials :is(h2, .ornament-rule) + p::first-letter {
    float: left; margin: .08em .12em 0 0;
    font: 700 3.3em/.8 var(--fraktur); color: var(--bordeaux);
}

/* Fußzeile */
.site-footer { background: var(--dunkel); color: var(--kreide); border-top: 3px double var(--gold-hell); }
.site-footer a { color: var(--kreide); }
.site-footer :focus-visible { outline-color: var(--kreide); }
.site-footer__inner {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem 3rem; padding-block: 3rem 2.5rem; align-items: start;
}
.site-footer__name { margin: 0 0 .6rem; font: 700 2.1rem/1.05 var(--fraktur); }
.site-footer address { font-style: normal; }
.site-footer h2 { margin: 0 0 .6rem; font-size: 1rem; font-style: italic; font-weight: 400; color: var(--gold-hell); }
.site-footer__logo { width: 96px; margin-top: .8rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; margin: 0 0 .8rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.site-footer__legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
    padding-block: 1rem 1.4rem; border-top: 1px solid rgb(214 172 94 / .35); font-size: .95rem;
}
.site-footer__legal nav { display: flex; gap: 1.5rem; }
