/*
Theme Name: Kaiser Palast Wiesbaden
Theme URI: https://www.kaiserpalastwiesbaden.de/
Author: Custom Theme
Description: Elegantes, responsives WordPress-Theme für das Restaurant Kaiser Palast in Wiesbaden.
Version: 1.7.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: kaiser-palast
*/

:root {
  --kp-bg: #f7f3ec;
  --kp-surface: #fffdf8;
  --kp-text: #201d19;
  --kp-muted: #6f675f;
  --kp-red: #7a1f1f;
  --kp-red-dark: #5a1414;
  --kp-gold: #b18b4f;
  --kp-border: rgba(32, 29, 25, .14);
  --kp-shadow: 0 18px 50px rgba(32, 29, 25, .10);
  --kp-radius: 3px;
  --kp-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kp-bg);
  color: var(--kp-text);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--kp-red); }

h1, h2, h3, h4, h5, h6,
.site-title, .hero-kicker, .nav-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(3.1rem, 8vw, 7.6rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(2.35rem, 5vw, 4.5rem); margin: 0 0 1.2rem; }
h3 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin: 0 0 .8rem; }
p { margin: 0 0 1.15rem; }

.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.kp-container { width: min(calc(100% - 40px), var(--kp-max)); margin-inline: auto; }
.kp-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kp-border);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand-link { text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.nav-brand { font-size: 2rem; color: var(--kp-red-dark); }
.brand-city { font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--kp-muted); }
.custom-logo { max-height: 60px; width: auto; }

.primary-nav ul,
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 28px; }
.primary-nav a { text-decoration: none; font-size: .92rem; }
.primary-nav .current-menu-item > a,
.primary-nav a:hover { color: var(--kp-red); }
.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--kp-border);
  background: transparent;
  font: inherit;
  padding: 9px 12px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--kp-border);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(177,139,79,.28);
  pointer-events: none;
}
.hero::before { width: 620px; height: 620px; right: -210px; top: -110px; }
.hero::after { width: 430px; height: 430px; left: -220px; bottom: -180px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 70px;
  align-items: center;
  padding: 100px 0;
}
.hero-kicker {
  color: var(--kp-red);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 18px;
}
.hero h1 span { display: block; color: var(--kp-red-dark); }
.hero-lead { max-width: 660px; font-size: 1.13rem; color: var(--kp-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid var(--kp-red);
  text-decoration: none;
  transition: .2s ease;
  font-size: .92rem;
  cursor: pointer;
}
.btn-primary { background: var(--kp-red); color: #fff; }
.btn-primary:hover { background: var(--kp-red-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--kp-red-dark); }
.btn-secondary:hover { background: rgba(122,31,31,.06); }
.hero-card {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  padding: 36px;
  box-shadow: var(--kp-shadow);
}
.hero-card h3 { color: var(--kp-red-dark); }
.hero-card .eyebrow { color: var(--kp-gold); }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-white { background: var(--kp-surface); }
.section-dark { background: #231e19; color: #fffaf2; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--kp-red);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
}
.lead { font-size: 1.15rem; color: var(--kp-muted); max-width: 760px; }
.section-dark .lead { color: rgba(255,250,242,.72); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  padding: 32px;
  min-height: 250px;
}
.feature-card .number { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.8rem; color: var(--kp-gold); }
.feature-card p { color: var(--kp-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.info-list { border-top: 1px solid var(--kp-border); }
.info-row { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--kp-border); }
.info-label { color: var(--kp-muted); font-size: .85rem; }

/* Page */
.page-hero { padding: 90px 0 58px; border-bottom: 1px solid var(--kp-border); }
.page-hero h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); }
.page-content { padding: 70px 0 105px; }
.page-content > *:first-child { margin-top: 0; }
.page-content ul, .page-content ol { padding-left: 1.2rem; }

/* Menu */
.menu-intro { margin-bottom: 48px; }
.menu-category { margin: 56px 0; }
.menu-category h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); padding-bottom: 12px; border-bottom: 1px solid var(--kp-border); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--kp-border); }
.menu-item h3 { font-family: "Inter", Arial, sans-serif; font-size: 1rem; line-height: 1.4; margin: 0 0 4px; }
.menu-item p { color: var(--kp-muted); font-size: .92rem; margin: 0; }
.menu-price { white-space: nowrap; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; }
.menu-notice { margin-top: 44px; padding: 22px; border: 1px solid var(--kp-border); background: var(--kp-surface); color: var(--kp-muted); }

/* Forms */
.kp-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kp-form label { display: grid; gap: 7px; font-size: .86rem; }
.kp-form input,
.kp-form textarea,
.kp-form select {
  width: 100%;
  border: 1px solid var(--kp-border);
  background: var(--kp-surface);
  color: var(--kp-text);
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 0;
  font: inherit;
  font-weight: 400;
}
.kp-form textarea { min-height: 140px; resize: vertical; }
.kp-form input:focus,
.kp-form textarea:focus,
.kp-form select:focus { outline: 2px solid rgba(122,31,31,.22); border-color: var(--kp-red); }
.checkbox-label { display: flex !important; grid-template-columns: none; gap: 9px !important; align-items: flex-start; }
.checkbox-label input { width: auto; min-height: 0; margin-top: 6px; }
.form-message { padding: 14px 16px; border: 1px solid var(--kp-border); margin-bottom: 24px; }
.form-message.success { border-color: #6f8d68; background: #f1f6ef; }
.form-message.error { border-color: #a85b5b; background: #fbf0f0; }
.hp-field { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--kp-border); background: #efe8dc; }
.footer-main { padding: 58px 0 42px; display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 48px; }
.footer-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; color: var(--kp-red-dark); margin-bottom: 12px; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { text-decoration: none; }
.footer-meta { border-top: 1px solid var(--kp-border); padding: 18px 0; color: var(--kp-muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--kp-bg); border-bottom: 1px solid var(--kp-border); padding: 20px; }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { display: grid; gap: 14px; }
  .hero { min-height: 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding: 74px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 620px) {
  .kp-container, .kp-narrow { width: min(calc(100% - 28px), var(--kp-max)); }
  .header-inner { min-height: 74px; }
  .brand-city { display: none; }
  .nav-brand { font-size: 1.65rem; }
  .section { padding: 68px 0; }
  .page-hero { padding: 65px 0 40px; }
  .page-content { padding: 48px 0 72px; }
  .form-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-meta { flex-direction: column; }
}

/* === Version 1.1: Bildwelt & Logo === */
.site-branding { flex: 0 0 auto; }
.brand-link-image { display: block; line-height: 0; text-decoration: none; }
.brand-logo,
.custom-logo { width: 76px; height: 76px; max-height: none; object-fit: cover; border-radius: 50%; }
.header-inner { min-height: 96px; }

.hero-with-media { min-height: 0; }
.hero-grid-media {
  grid-template-columns: .85fr 1.15fr;
  gap: 58px;
  padding: 72px 0 82px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-media {
  position: relative;
  margin: 0;
  min-height: 620px;
  box-shadow: var(--kp-shadow);
  overflow: hidden;
  background: #2b1712;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  pointer-events: none;
}
.hero-media img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.hero-media figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(39,25,20,.88);
  color: #fffaf2;
  padding: 15px 18px 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.05;
  backdrop-filter: blur(8px);
}
.hero-media figcaption span {
  display: block;
  margin-bottom: 4px;
  color: #e3bd77;
  font-family: "Inter", Arial, sans-serif;
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 32px;
  margin-top: 36px;
  border-top: 1px solid var(--kp-border);
  color: var(--kp-muted);
  font-size: .86rem;
  line-height: 1.55;
}
.hero-meta-label {
  display: block;
  margin-bottom: 7px;
  color: var(--kp-red-dark);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
}
.signature-image { margin: 0; overflow: hidden; box-shadow: var(--kp-shadow); }
.signature-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.signature-copy { max-width: 510px; }
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--kp-red-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(122,31,31,.35);
  padding-bottom: 4px;
}

.food-gallery {
  display: grid;
  grid-template-columns: 1.25fr .9fr .75fr;
  gap: 18px;
  align-items: stretch;
}
.food-card { position: relative; margin: 0; min-height: 430px; overflow: hidden; background: #261914; }
.food-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.food-card:hover img { transform: scale(1.025); }
.food-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 22px 18px;
  color: #fff;
  background: linear-gradient(transparent, rgba(28,18,14,.82));
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
}
.food-card-portrait img { object-position: center 42%; }

.reservation-band { position: relative; overflow: hidden; }
.reservation-band::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -170px;
  top: -160px;
  border: 1px solid rgba(216,178,116,.2);
  border-radius: 50%;
}
.reservation-band .eyebrow { color: #d8b274; }
.btn-gold { border-color: #d8b274; background: #d8b274; color: #241a15; }
.btn-gold:hover { background: #e5c994; border-color: #e5c994; color: #241a15; }

.page-hero-split { padding: 58px 0; }
.page-hero-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 60px;
}
.page-hero-image {
  margin: 0;
  height: 420px;
  overflow: hidden;
  box-shadow: var(--kp-shadow);
  background: #2b1712;
}
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-image-portrait img { object-position: center 45%; }

.menu-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 52px 0;
}
.menu-photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.reservation-aside {
  padding: 34px;
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
  align-self: start;
}
.contact-phone { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; }

.footer-brand-block { max-width: 360px; }
.footer-logo { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; margin-bottom: 20px; }

@media (max-width: 1000px) {
  .hero-grid-media,
  .signature-grid,
  .page-hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 500px; }
  .hero-media img { min-height: 500px; }
  .signature-copy { max-width: none; }
  .food-gallery { grid-template-columns: 1fr 1fr; }
  .food-card-portrait { grid-column: 1 / -1; min-height: 520px; }
  .food-card-portrait img { object-position: center 48%; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 86px; }
  .brand-logo,
  .custom-logo { width: 66px; height: 66px; }
  .hero-grid-media { padding: 54px 0 66px; }
  .page-hero-grid { gap: 34px; }
}

@media (max-width: 620px) {
  .brand-logo,
  .custom-logo { width: 58px; height: 58px; }
  .header-inner { min-height: 74px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-media { min-height: 360px; }
  .hero-media img { min-height: 360px; }
  .hero-media figcaption { left: 14px; bottom: 14px; font-size: 1.35rem; }
  .signature-grid { gap: 34px; }
  .food-gallery { grid-template-columns: 1fr; }
  .food-card, .food-card-portrait { grid-column: auto; min-height: 360px; }
  .food-card-portrait { min-height: 480px; }
  .page-hero-split { padding: 42px 0; }
  .page-hero-image { height: 290px; }
  .menu-photo-row { grid-template-columns: 1fr; }
  .reservation-aside { padding: 24px; }
  .footer-logo { width: 96px; height: 96px; }
}


/* === Version 1.2: Logo-Fix & Farbwelt === */
:root {
  --kp-bg: #f5ede0;
  --kp-surface: #fffaf2;
  --kp-text: #261913;
  --kp-muted: #705d4d;
  --kp-red: #922323;
  --kp-red-dark: #6e1717;
  --kp-gold: #c89a43;
  --kp-gold-soft: #edd39a;
  --kp-border: rgba(62, 37, 26, .12);
  --kp-shadow: 0 20px 50px rgba(49, 28, 20, .12);
}

body {
  background:
    radial-gradient(circle at top left, rgba(237,211,154,.22), transparent 38%),
    linear-gradient(180deg, #f8f1e6 0%, #f4ebde 100%);
}

.site-header {
  background: rgba(250, 244, 235, .94);
  border-bottom: 1px solid rgba(111, 23, 23, .08);
  box-shadow: 0 8px 22px rgba(40, 24, 18, .04);
}

.page-hero,
.section-white {
  background: linear-gradient(180deg, rgba(255,250,242, .98) 0%, rgba(250,244,235, .96) 100%);
}

.eyebrow,
.hero-kicker {
  color: var(--kp-gold);
}

.hero h1,
.page-hero h1,
.nav-brand,
.footer-title,
.hero-meta-label {
  color: var(--kp-red-dark);
}

.primary-nav a {
  color: #4d352a;
}

.primary-nav .current-menu-item > a,
.primary-nav a:hover,
.footer-nav a:hover,
.text-link:hover {
  color: var(--kp-red);
}

.btn {
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(180deg, #a62a2a 0%, #7d1f1f 100%);
  border-color: #8b2323;
  box-shadow: 0 14px 28px rgba(125,31,31,.16);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #b83131 0%, #8a2222 100%);
}

.btn-secondary {
  border-color: rgba(111, 23, 23, .18);
  background: rgba(255,250,242,.72);
}

.btn-secondary:hover {
  background: rgba(200,154,67,.12);
}

.brand-link-image,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f2d684 0%, #ddb053 100%);
  border: 1px solid rgba(143, 93, 16, .18);
  box-shadow: 0 12px 28px rgba(86, 49, 17, .18);
  overflow: hidden;
}

.brand-logo,
.custom-logo {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: transparent;
}

.header-inner {
  min-height: 104px;
}

.hero-media,
.signature-image,
.food-card,
.page-hero-image,
.reservation-aside,
.hero-card,
.feature-card,
.menu-notice {
  border-radius: 26px;
}

.hero-media::after,
.food-card::after,
.signature-image::after,
.page-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,250,242,.20);
}

.signature-image,
.page-hero-image {
  position: relative;
}

.food-card figcaption,
.hero-media figcaption {
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.section-dark {
  background: linear-gradient(135deg, #3b1714 0%, #6a1717 100%);
}

.reservation-band .eyebrow,
.section-dark .eyebrow {
  color: var(--kp-gold-soft);
}

.btn-gold {
  border-color: var(--kp-gold-soft);
  background: linear-gradient(180deg, #f0d69d 0%, #d6ab58 100%);
  color: #2b1b14;
  box-shadow: 0 14px 28px rgba(20,10,5,.18);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #f4dfb1 0%, #e0ba72 100%);
  border-color: #f4dfb1;
  color: #2b1b14;
}

.site-footer {
  background: linear-gradient(135deg, #561313 0%, #2e1713 100%);
  color: #fff6ea;
  border-top: 1px solid rgba(237,211,154,.18);
}

.site-footer p,
.site-footer a,
.site-footer .footer-meta,
.site-footer .eyebrow {
  color: rgba(255, 246, 234, .9);
}

.site-footer .eyebrow {
  color: var(--kp-gold-soft);
}

.footer-title {
  color: #fff1d7;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(180deg, #f2d684 0%, #ddb053 100%);
  box-shadow: 0 14px 28px rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  margin-bottom: 0;
}

.footer-nav a {
  color: rgba(255,246,234,.86);
}

.footer-meta {
  border-top-color: rgba(237,211,154,.18);
  color: rgba(255,246,234,.72);
}

@media (max-width: 900px) {
  .header-inner { min-height: 92px; }
  .brand-link-image,
  .custom-logo-link {
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }
}

@media (max-width: 620px) {
  .header-inner { min-height: 80px; }
  .brand-link-image,
  .custom-logo-link {
    width: 64px;
    height: 64px;
    padding: 6px;
    border-radius: 18px;
  }
  .footer-logo-link {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }
}


/* === Version 1.3: Animierter Mobile-Menü-Burger === */
.menu-toggle {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(110, 23, 23, .14);
  border-radius: 16px;
  background: rgba(255, 250, 242, .82);
  color: var(--kp-red-dark);
  box-shadow: 0 8px 22px rgba(62, 37, 26, .06);
  align-items: center;
  justify-content: center;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
  background: rgba(200, 154, 67, .13);
  border-color: rgba(146, 35, 35, .24);
  box-shadow: 0 10px 24px rgba(62, 37, 26, .09);
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(146, 35, 35, .42);
  outline-offset: 3px;
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 18px;
}

.menu-toggle-line {
  position: absolute;
  left: 0;
  width: 23px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: center;
  transition: top .25s ease .18s, transform .28s cubic-bezier(.68,-.55,.27,1.55), opacity .18s ease, width .25s ease;
}

.menu-toggle-line:nth-child(1) { top: 0; }
.menu-toggle-line:nth-child(2) { top: 8px; width: 17px; right: 0; left: auto; }
.menu-toggle-line:nth-child(3) { top: 16px; }

.menu-toggle.is-active {
  background: var(--kp-red-dark);
  border-color: var(--kp-red-dark);
  color: #fff8ec;
  transform: rotate(90deg);
  box-shadow: 0 10px 26px rgba(110, 23, 23, .20);
}

.menu-toggle.is-active .menu-toggle-line {
  transition: top .2s ease, transform .28s cubic-bezier(.68,-.55,.27,1.55) .12s, opacity .15s ease, width .2s ease;
}

.menu-toggle.is-active .menu-toggle-line:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-line:nth-child(2) {
  top: 8px;
  width: 0;
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle-line:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .primary-nav {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: rgba(250, 244, 235, .985);
    border-bottom: 1px solid var(--kp-border);
    box-shadow: 0 18px 35px rgba(45, 25, 18, .10);
    transition: opacity .25s ease, transform .28s ease, max-height .35s ease, padding .28s ease, visibility 0s linear .35s;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    max-height: 520px;
    padding: 22px 20px 26px;
    transition: opacity .25s ease, transform .28s ease, max-height .4s ease, padding .28s ease, visibility 0s linear 0s;
  }

  .primary-nav > ul {
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid rgba(62, 37, 26, .08);
  }

  .primary-nav li:last-child {
    border-bottom: 0;
  }

  .primary-nav a {
    display: block;
    padding: 13px 2px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
  }
}

@media (max-width: 620px) {
  .menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle,
  .menu-toggle-line,
  .primary-nav {
    transition: none !important;
  }
}


/* === Version 1.4: Vollständig responsive Layouts === */

/* Robuste Basis für alle Viewports */
html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

main,
section,
article,
header,
footer,
nav,
div,
figure {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

iframe,
video {
  width: 100%;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

p,
li,
a,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

.kp-container {
  width: min(calc(100% - clamp(32px, 6vw, 72px)), var(--kp-max));
}

.kp-narrow {
  width: min(calc(100% - clamp(32px, 6vw, 72px)), 820px);
}

/* WordPress-Inhalte dürfen den Viewport nie sprengen */
.page-content > *,
.wp-site-blocks > * {
  max-width: 100%;
}

.page-content figure,
.page-content img,
.page-content .wp-block-image,
.page-content .wp-block-gallery,
.page-content .wp-block-cover,
.page-content .wp-block-media-text {
  max-width: 100%;
}

.page-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-embed,
.wp-block-video,
.wp-block-audio {
  max-width: 100%;
}

/* Header: Navigation wechselt früher in den mobilen Modus */
@media (max-width: 1024px) {
  .admin-bar .site-header { top: 32px; }

  .header-inner {
    position: relative;
    min-height: 90px;
    gap: 18px;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .primary-nav {
    position: absolute;
    z-index: 60;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
    padding: 0 clamp(20px, 4vw, 36px);
    background: rgba(250, 244, 235, .99);
    border-bottom: 1px solid var(--kp-border);
    box-shadow: 0 20px 38px rgba(45, 25, 18, .13);
    transition: opacity .25s ease, transform .28s ease, max-height .35s ease, padding .28s ease, visibility 0s linear .35s;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    max-height: min(70vh, 620px);
    overflow-y: auto;
    padding: 18px clamp(20px, 4vw, 36px) 24px;
    transition: opacity .25s ease, transform .28s ease, max-height .4s ease, padding .28s ease, visibility 0s linear 0s;
  }

  .primary-nav > ul {
    display: grid;
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid rgba(62, 37, 26, .08);
  }

  .primary-nav li:last-child {
    border-bottom: 0;
  }

  .primary-nav a {
    display: block;
    padding: 13px 2px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.2;
  }

  .hero-grid-media,
  .signature-grid,
  .page-hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-grid-media {
    gap: 42px;
    padding: 56px 0 66px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hero-media img {
    min-height: 0;
    height: 100%;
  }

  .signature-grid,
  .page-hero-grid,
  .split {
    gap: 42px;
  }

  .signature-copy {
    max-width: 720px;
  }

  .page-hero-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .food-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .food-card,
  .food-card-portrait {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .food-card-portrait {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 8;
  }

  .footer-main {
    grid-template-columns: 1.2fr 1fr;
    gap: 34px 48px;
  }

  .footer-main > :last-child {
    grid-column: 1 / -1;
  }
}

/* Tablets */
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }

  h1 {
    font-size: clamp(3rem, 11vw, 5rem);
  }

  h2 {
    font-size: clamp(2.3rem, 8vw, 3.7rem);
  }

  h3 {
    font-size: clamp(1.55rem, 5vw, 2.2rem);
  }

  .page-hero h1 {
    font-size: clamp(3rem, 11vw, 5rem);
  }

  .section {
    padding: 72px 0;
  }

  .section-tight {
    padding: 52px 0;
  }

  .page-hero,
  .page-hero-split {
    padding: 52px 0 44px;
  }

  .page-content {
    padding: 52px 0 78px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .hero-meta {
    gap: 16px;
  }

  .menu-photo-row {
    margin: 38px 0;
  }

  .reservation-aside {
    width: 100%;
  }
}

/* Smartphones */
@media (max-width: 640px) {
  :root {
    --kp-shadow: 0 14px 34px rgba(49, 28, 20, .10);
  }

  .kp-container,
  .kp-narrow {
    width: calc(100% - 28px);
  }

  body {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-link-image,
  .custom-logo-link {
    width: 62px;
    height: 62px;
    padding: 6px;
    border-radius: 18px;
  }

  .brand-logo,
  .custom-logo {
    border-radius: 13px;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .primary-nav a {
    padding: 12px 2px;
    font-size: 1.3rem;
  }

  .hero-grid-media {
    padding: 42px 0 52px;
    gap: 34px;
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 1.2rem;
  }

  .hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .hero-lead,
  .lead {
    font-size: 1.03rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .btn,
  .kp-form .btn,
  .reservation-band .btn {
    width: 100%;
  }

  .btn {
    min-height: 50px;
    padding: 0 18px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding-top: 24px;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .hero-media figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 12px 14px;
    font-size: 1.3rem;
  }

  .section {
    padding: 58px 0;
  }

  .section-tight {
    padding: 44px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .signature-grid,
  .page-hero-grid,
  .split {
    gap: 30px;
  }

  .signature-image {
    border-radius: 20px;
  }

  .signature-image img {
    aspect-ratio: 4 / 3;
  }

  .food-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .food-card,
  .food-card-portrait {
    grid-column: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
    border-radius: 20px;
  }

  .food-card-portrait {
    aspect-ratio: 3 / 4;
    max-height: 560px;
  }

  .food-card figcaption {
    padding: 42px 16px 15px;
    font-size: 1.4rem;
  }

  .page-hero,
  .page-hero-split {
    padding: 42px 0 34px;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 4.25rem);
    margin-bottom: .8rem;
  }

  .page-hero-image {
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 20px;
  }

  .page-content {
    padding: 42px 0 64px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .kp-form {
    gap: 14px;
  }

  .kp-form input,
  .kp-form textarea,
  .kp-form select {
    min-height: 50px;
    font-size: 16px; /* verhindert iOS-Autozoom */
  }

  .checkbox-label {
    line-height: 1.5;
  }

  .reservation-aside {
    padding: 22px;
    border-radius: 20px;
  }

  .contact-phone {
    font-size: clamp(1.7rem, 9vw, 2.15rem);
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .menu-category {
    margin: 42px 0;
  }

  .menu-category h2 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .menu-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .menu-price {
    white-space: normal;
    font-size: 1.4rem;
  }

  .menu-photo-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 32px 0;
  }

  .menu-photo-row img {
    border-radius: 18px;
    aspect-ratio: 4 / 3;
  }

  .menu-notice {
    padding: 18px;
    border-radius: 18px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 0 34px;
  }

  .footer-main > :last-child {
    grid-column: auto;
  }

  .footer-brand-block {
    max-width: none;
  }

  .footer-logo-link {
    width: 94px;
    height: 94px;
    border-radius: 23px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 5px;
    padding: 16px 0 20px;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 380px) {
  .kp-container,
  .kp-narrow {
    width: calc(100% - 22px);
  }

  .brand-link-image,
  .custom-logo-link {
    width: 56px;
    height: 56px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .page-hero h1 {
    font-size: 2.9rem;
  }

  .hero-media figcaption {
    font-size: 1.18rem;
  }

  .section,
  .page-content {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Touch-Geräte: Hover-Effekte nicht unnötig auslösen */
@media (hover: none) {
  .food-card:hover img {
    transform: none;
  }
}

/* === Speisekarte: Webdarstellung der bereitgestellten Karten === */
.menu-web {
  width: min(calc(100% - 40px), var(--kp-max));
}

.menu-jump {
  position: sticky;
  top: 116px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 54px;
  padding: 12px;
  border: 1px solid var(--kp-border);
  border-radius: 22px;
  background: rgba(255, 250, 242, .94);
  box-shadow: 0 12px 34px rgba(49, 28, 20, .08);
  backdrop-filter: blur(12px);
}

.menu-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--kp-red-dark);
  text-decoration: none;
  font-size: .88rem;
  border: 1px solid rgba(111, 23, 23, .12);
  background: rgba(255,255,255,.55);
}

.menu-jump a:hover,
.menu-jump a:focus-visible {
  color: #fff;
  background: var(--kp-red);
  border-color: var(--kp-red);
}

.menu-feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: stretch;
  margin: 0 0 82px;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #5d1717 0%, #351914 100%);
  color: #fff7ec;
  box-shadow: var(--kp-shadow);
}

.menu-feature .eyebrow { color: var(--kp-gold-soft); }
.menu-feature .lead { color: rgba(255,247,236,.82); }
.menu-feature h2 { color: #fff7ec; }
.menu-feature h3 { margin-top: 28px; color: #f2d9ad; }

.menu-feature-price {
  display: inline-block;
  margin-top: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #f2d39a;
}

.menu-side-list {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 1.15rem;
}

.menu-side-list li {
  break-inside: avoid;
  margin: 0 0 7px;
  color: rgba(255,247,236,.9);
}

.menu-feature-image {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
}

.menu-feature-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.menu-category {
  scroll-margin-top: 150px;
}

.menu-category > .eyebrow {
  margin-bottom: 5px;
}

.menu-item-copy h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.menu-number {
  color: var(--kp-red-dark);
  font-weight: 600;
}

.menu-codes {
  color: var(--kp-gold);
  font-size: .72rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.menu-takeaway {
  scroll-margin-top: 150px;
  margin-top: 94px;
  padding-top: 74px;
  border-top: 1px solid var(--kp-border);
}

.menu-takeaway-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.menu-takeaway-head h2 {
  margin-bottom: 0;
}

.menu-subcategory {
  padding: 28px 34px 6px;
  margin: 28px 0;
  border: 1px solid var(--kp-border);
  border-radius: 24px;
  background: rgba(255, 250, 242, .68);
}

.menu-subcategory h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.menu-subline {
  margin-top: -4px;
  color: var(--kp-muted);
  font-size: .92rem;
}

.menu-duck-togo {
  padding-bottom: 30px;
  background: linear-gradient(135deg, rgba(146,35,35,.08), rgba(200,154,67,.08));
}

.menu-togo-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 18px;
}

.menu-togo-prices > div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: var(--kp-surface);
  border: 1px solid var(--kp-border);
}

.menu-togo-prices span {
  color: var(--kp-muted);
  font-size: .84rem;
}

.menu-togo-prices strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--kp-red-dark);
}

@media (max-width: 1024px) {
  .menu-jump { top: 102px; }
  .menu-feature { grid-template-columns: 1fr; }
  .menu-feature-image img { min-height: 420px; }
}

@media (max-width: 700px) {
  .menu-web { width: min(calc(100% - 28px), var(--kp-max)); }
  .menu-jump {
    top: 86px;
    margin-bottom: 38px;
    border-radius: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .menu-jump a { white-space: nowrap; }
  .menu-feature {
    gap: 26px;
    padding: 24px;
    margin-bottom: 56px;
    border-radius: 22px;
  }
  .menu-feature-image img { min-height: 320px; }
  .menu-side-list { columns: 1; }
  .menu-subcategory {
    padding: 22px 20px 4px;
    border-radius: 20px;
  }
  .menu-togo-prices { grid-template-columns: 1fr; }
  .menu-item-copy h3 { display: block; }
  .menu-number,
  .menu-codes { display: inline; }
  .menu-codes { margin-left: 5px; }
}
