/*
Theme Name: Ratskeller Münster
Description: Theme für den Ratskeller Münster „Zum Goldenen Hahn“ – Startseite mit Titelbild, gruppierter Speisekarte und OpenTable-Reservierung.
Version: 1.2.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: ratskeller
*/

/* ---------- Schriften (lokal, ohne Google-Verbindung) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-latin-600-normal.woff2") format("woff2"); }

/* ---------- Grundlagen ---------- */
:root {
	--rk-bg: #FBF8F3;
	--rk-sand: #F1EADF;
	--rk-line: #E8E1D5;
	--rk-ink: #23201B;
	--rk-text: #4E483F;
	--rk-muted: #6A6358;
	--rk-accent: #A8322A;
	--rk-accent-dark: #7E241E;
	--rk-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--rk-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--rk-serif: "Cormorant", Georgia, "Times New Roman", serif;
	--rk-wrap: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--rk-bg); color: var(--rk-ink); font-family: var(--rk-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rk-accent); }
a:hover { color: var(--rk-accent-dark); }
:focus-visible { outline: 3px solid var(--rk-accent); outline-offset: 3px; }
.rk-wrap { max-width: var(--rk-wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }

/* ---------- Buttons ---------- */
.rk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.rk-btn--primary { background: var(--rk-accent); color: #fff; }
.rk-btn--primary:hover { background: var(--rk-accent-dark); color: #fff; }
.rk-btn--ghost { color: var(--rk-ink); border-color: #CFC5B5; }
.rk-btn--ghost:hover { color: var(--rk-ink); border-color: var(--rk-ink); }
.rk-btn--dark { background: var(--rk-ink); color: #fff; }
.rk-btn--dark:hover { background: #000; color: #fff; }

/* ---------- Header ---------- */
.rk-header { border-bottom: 1px solid var(--rk-line); background: var(--rk-bg); }
.rk-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 18px; padding-bottom: 18px; }
.rk-logo { text-decoration: none; color: var(--rk-ink); display: flex; flex-direction: column; line-height: 1.1; }
.rk-logo:hover { color: var(--rk-ink); }
.rk-logo__name { font-family: var(--rk-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.rk-logo__sub { font-size: 13px; color: var(--rk-muted); }
.rk-logo img { max-height: 56px; width: auto; }
.rk-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.rk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.rk-nav a:not(.rk-btn) { color: var(--rk-ink); text-decoration: none; font-weight: 500; }
.rk-nav a:not(.rk-btn):hover { color: var(--rk-accent); }

/* ---------- Hero ---------- */
.rk-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.rk-hero__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 24px; }
.rk-pill { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--rk-muted); background: var(--rk-sand); padding: 6px 14px; border-radius: 999px; }
.rk-hero h1 { margin: 0; font-family: var(--rk-display); font-weight: 800; font-size: clamp(48px, 6.2vw, 88px); line-height: 0.95; letter-spacing: -0.035em; }
.rk-hero h1 span { color: var(--rk-accent); }
.rk-hero p { margin: 0; font-size: 20px; max-width: 470px; color: var(--rk-text); }
.rk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rk-hero__image { flex: 1 1 520px; height: 640px; border-radius: 28px; overflow: hidden; background: #1A1714; }
.rk-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 700px) { .rk-hero__image { height: 460px; } }

/* ---------- Statement ---------- */
.rk-statement { background: var(--rk-sand); }
.rk-statement .rk-wrap { padding-top: 80px; padding-bottom: 72px; }
.rk-statement__lead { margin: 0; max-width: 980px; font-family: var(--rk-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; }
.rk-statement__lead span { color: #8F8676; }
.rk-facts { margin-top: 44px; padding-top: 28px; border-top: 1px solid #DCD2C2; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.rk-facts strong { display: block; font-weight: 600; }
.rk-facts span { color: var(--rk-muted); font-size: 15px; }

/* ---------- Karten-Einträge (Startseite & Unterseiten) ---------- */
.rk-dish { font-size: 18px; font-weight: 600; }
.rk-price { font-weight: 500; color: var(--rk-accent); margin-left: 12px; white-space: nowrap; }
.rk-desc { display: block; font-size: 15px; color: var(--rk-muted); }

/* ---------- Highlights auf der Startseite ---------- */
.rk-highlights { padding-top: 96px; padding-bottom: 88px; }
.rk-highlights__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.rk-highlights__head h2 { margin: 0; font-family: var(--rk-serif); font-weight: 600; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
.rk-highlights__head p { margin: 10px 0 0; color: var(--rk-muted); }
.rk-highlights__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 56px; text-align: center; }
.rk-highlights__list li { padding: 18px 0; border-top: 1px solid var(--rk-line); }
.rk-highlights__links { justify-content: center; margin-top: 40px; }

/* ---------- Unterseiten: Kopf ---------- */
.rk-sub { padding-bottom: 96px; }
.rk-pagehead { padding-top: 64px; padding-bottom: 40px; text-align: center; }
.rk-pagehead h1 { margin: 0; font-family: var(--rk-serif); font-weight: 600; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; }
.rk-pagehead p { margin: 12px auto 0; max-width: 640px; color: var(--rk-muted); font-size: 18px; }

/* ---------- Unterseiten: vollständige Karte mit Sprungmarken ---------- */
.rk-jump { position: sticky; top: 0; z-index: 10; background: var(--rk-bg); border-top: 1px solid var(--rk-line); border-bottom: 1px solid var(--rk-line); margin-bottom: 48px; }
.rk-jump__inner { display: flex; gap: 8px 28px; overflow-x: auto; justify-content: center; padding: 14px 4px; scrollbar-width: none; }
.rk-jump__inner::-webkit-scrollbar { display: none; }
.rk-jump a { flex: 0 0 auto; font-family: var(--rk-serif); font-size: 24px; font-weight: 600; color: var(--rk-ink); text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
.rk-jump a:hover { border-bottom-color: var(--rk-accent); color: var(--rk-ink); }
@media (max-width: 700px) { .rk-jump__inner { justify-content: flex-start; } .rk-jump a { font-size: 20px; } }
.rk-menu { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.rk-menu__section { background: #fff; padding: 40px 44px 36px; text-align: center; scroll-margin-top: 90px; }
.rk-menu__section h2 { margin: 0; font-family: var(--rk-serif); font-weight: 600; font-size: 38px; line-height: 1.1; }
.rk-menu__note { margin: 6px 0 16px; font-size: 15px; color: var(--rk-muted); }
.rk-menu__section ul { list-style: none; margin: 0; padding: 0; }
.rk-menu__section li { padding: 14px 0; border-top: 1px solid #EFE9DF; }
.rk-menu__foot { max-width: 820px; margin: 40px auto 0; text-align: center; color: var(--rk-muted); }
.rk-menu__foot .rk-actions { justify-content: center; margin-top: 24px; }
@media (max-width: 520px) { .rk-menu__section { padding: 28px 20px; } }

/* ---------- Unterseiten: Bausteine ---------- */
.rk-prose { color: var(--rk-text); }
.rk-prose h2 { font-family: var(--rk-display); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--rk-ink); margin: 40px 0 10px; }
.rk-prose h2:first-child { margin-top: 0; }
.rk-split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.rk-split__main { flex: 999 1 520px; min-width: 0; }
.rk-split__side { flex: 1 1 300px; background: var(--rk-sand); border-radius: 24px; padding: 32px; }
.rk-split h2 { font-family: var(--rk-display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.rk-split__side .rk-actions { margin-top: 20px; }
.rk-feature { border-radius: 28px; overflow: hidden; margin-bottom: 56px; background: #1A1714; }
.rk-feature__img { width: 100%; height: clamp(280px, 48vw, 560px); object-fit: cover; }
.rk-occasions { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.rk-occasions > div { border-top: 2px solid var(--rk-ink); padding-top: 14px; }
.rk-occasions h3 { margin: 0 0 4px; font-family: var(--rk-serif); font-size: 26px; font-weight: 600; }
.rk-occasions p { margin: 0; font-size: 15px; color: var(--rk-muted); }
.rk-facts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: var(--rk-text); }
.rk-gallery { margin-top: 80px; }
.rk-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rk-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--rk-sand); }
.rk-gallery img { width: 100%; height: 100%; object-fit: cover; }
.rk-story { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.rk-story__img { flex: 1 1 340px; border-radius: 28px; overflow: hidden; position: sticky; top: 24px; }
.rk-story__img img { width: 100%; height: auto; }
.rk-story__text { flex: 999 1 480px; min-width: 0; max-width: 680px; font-size: 18px; }
@media (max-width: 860px) { .rk-story__img { position: static; max-height: 460px; } .rk-story__img img { height: 460px; object-fit: cover; } }
.rk-source { font-size: 14px; color: var(--rk-muted); margin-top: 32px; }
.rk-contact p { margin: 0 0 16px; color: var(--rk-text); }
.rk-form input, .rk-form textarea, .rk-form select { font: inherit; }
.rk-admin-note { background: #FFF6D8; border: 1px dashed #C9A646; padding: 16px; border-radius: 12px; }

/* ---------- Reservierung ---------- */
.rk-reserve-band { background: var(--rk-sand); }
.rk-reserve { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.rk-reserve__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.rk-reserve h2 { margin: 0; font-family: var(--rk-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.rk-reserve p { margin: 0; color: var(--rk-text); max-width: 420px; }
.rk-reserve__widget { flex: 1 1 520px; min-height: 320px; background: #fff; border: 1px solid var(--rk-line); border-radius: 24px; padding: 32px; display: flex; justify-content: center; align-items: center; overflow-x: auto; }

/* ---------- Haus & Feiern ---------- */
.rk-cards { background: var(--rk-bg); }
.rk-cards .rk-wrap { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.rk-card { background: var(--rk-sand); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.rk-card h2 { margin: 0; font-family: var(--rk-display); font-weight: 800; font-size: 38px; line-height: 1.05; letter-spacing: -0.02em; }
.rk-card p { margin: 0; color: var(--rk-text); }
.rk-card a:not(.rk-btn) { font-weight: 600; }
@media (max-width: 520px) { .rk-card { padding: 28px; } .rk-cards .rk-wrap { grid-template-columns: 1fr; } }

/* ---------- Unterseiten ---------- */
.rk-page { max-width: 760px; margin: 0 auto; padding: 72px 28px 96px; }
.rk-page h1 { font-family: var(--rk-display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 32px; }
.rk-page h2, .rk-page h3 { font-family: var(--rk-display); font-weight: 700; }

/* ---------- Footer ---------- */
.rk-footer .rk-wrap { padding-top: 72px; padding-bottom: 32px; }
.rk-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.rk-footer__grid > div { display: flex; flex-direction: column; gap: 6px; color: var(--rk-text); }
.rk-footer__name { font-family: var(--rk-display); font-weight: 800; font-size: 24px; color: var(--rk-ink); }
.rk-footer__label { font-weight: 600; color: var(--rk-ink); }
.rk-footer__bottom { margin-top: 48px; border-top: 1px solid var(--rk-line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--rk-muted); }
.rk-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }


/* ---------- Mobile Navigation (Burger-Menü) ---------- */
.rk-burger { display: none; }
@media (max-width: 960px) {
	.rk-header { position: relative; z-index: 50; }
	.rk-header__inner { flex-wrap: nowrap; }
	.rk-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; flex: 0 0 auto; width: 48px; height: 48px; padding: 0 13px; background: transparent; border: 1px solid #CFC5B5; border-radius: 999px; cursor: pointer; }
	.rk-burger span { display: block; height: 2px; background: var(--rk-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
	.rk-nav-open .rk-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.rk-nav-open .rk-burger span:nth-child(2) { opacity: 0; }
	.rk-nav-open .rk-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.rk-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 28px 28px; background: var(--rk-bg); border-bottom: 1px solid var(--rk-line); box-shadow: 0 16px 32px rgba(0, 0, 0, .08); }
	.rk-nav-open .rk-nav { display: flex; }
	.rk-nav ul { flex-direction: column; gap: 0; }
	.rk-nav li a:not(.rk-btn) { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--rk-line); }
	.rk-nav > .rk-btn { margin-top: 20px; align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .rk-burger span { transition: none; } }
