/* Photo-led menu books. All selectors are scoped so existing site navigation stays untouched. */
.menu-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  align-items: start;
  gap: 24px;
  width: 100%;
  margin-top: clamp(34px, 5vw, 66px);
}

.menu-shelf > .menu-book {
  width: min(100%, 390px);
  justify-self: center;
}

.menu-book {
  --book-accent: #b66e5a;
  --book-accent-rgb: 182, 110, 90;
  --book-deep: #201918;
  --book-progress: 0;
  min-width: 0;
  color: #f8f8f5;
}

.menu-book.theme-gold {
  --book-accent: #92a178;
  --book-accent-rgb: 146, 161, 120;
  --book-deep: #1b2118;
}

.menu-book.theme-blue {
  --book-accent: #6f9dad;
  --book-accent-rgb: 111, 157, 173;
  --book-deep: #172025;
}

.book-flip-stage {
  position: relative;
  width: 100%;
  perspective: 1600px;
}

.book-inner {
  position: relative;
  display: grid;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 850ms cubic-bezier(.2, .78, .2, 1);
  will-change: transform;
}

.menu-book.is-open .book-inner { transform: rotateY(180deg); }

.book-cover,
.book-sheet {
  grid-area: 1 / 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.book-cover {
  position: absolute;
  z-index: 2;
  inset: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  background: var(--book-deep);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .25);
  transform: translateZ(1px);
}

.book-cover-media,
.book-cover-media::after {
  position: absolute;
  inset: 0;
}

.book-cover-media { z-index: -2; background: #202123; }

.book-cover-media::after {
  content: '';
  background: linear-gradient(180deg, rgba(8, 10, 10, .13) 0%, rgba(8, 10, 10, .13) 32%, rgba(8, 10, 10, .86) 100%);
}

.book-cover-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  filter: saturate(.84) contrast(1.08);
}

.book-cover-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(124deg, rgba(var(--book-accent-rgb), .55), transparent 40%), linear-gradient(0deg, rgba(4, 5, 6, .62), transparent 52%);
}

.book-cover-content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(23px, 5vw, 34px);
}

.book-cover-index,
.book-sheet-heading > span,
.book-sheet-label,
.book-footer-label {
  display: block;
  color: var(--book-accent);
  font: 700 10px/1.35 var(--sans, Arial, sans-serif);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.book-cover h3 {
  max-width: 310px;
  margin: 10px 0 10px;
  color: #fff;
  font: 800 clamp(34px, 5vw, 48px)/.93 var(--sans, Arial, sans-serif);
  letter-spacing: -.055em;
}

.book-cover-content p {
  max-width: 290px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font: 600 12px/1.45 var(--sans, Arial, sans-serif);
}

.book-cover-brand {
  position: absolute;
  top: 22px;
  left: 23px;
  width: min(126px, 37%);
}

.book-cover-brand img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .98;
}

.book-sheet {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 5vw, 34px);
  color: #f2f2ee;
  background: linear-gradient(145deg, #292c2e, #17191b 86%);
  box-shadow: inset 4px 0 0 rgba(var(--book-accent-rgb), .76), 0 20px 44px rgba(0, 0, 0, .25);
  transform: rotateY(180deg);
}

.book-sheet::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  pointer-events: none;
}

.book-sheet-heading,
.book-sheet-menu,
.book-sheet-note {
  position: relative;
  z-index: 1;
}

.book-sheet-heading {
  padding: 0 0 19px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.book-sheet-heading h3 {
  margin: 9px 0 8px;
  color: #fff;
  font: 800 clamp(32px, 4.5vw, 38px)/.98 var(--sans, Arial, sans-serif);
  letter-spacing: -.05em;
}

.book-sheet-heading p {
  margin: 0;
  color: rgba(255, 255, 255, .64);
  font-size: 11px;
  line-height: 1.45;
}

.book-sheet-menu { padding-top: 21px; }
.book-sheet-label { color: rgba(255, 255, 255, .64); }

.book-menu-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .21);
}

.book-menu-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.book-menu-row > span {
  padding-top: 2px;
  color: var(--book-accent);
  font: 700 10px/1.2 var(--sans, Arial, sans-serif);
  letter-spacing: .08em;
}

.book-menu-row strong {
  color: rgba(255, 255, 255, .93);
  font: 600 15px/1.28 var(--sans, Arial, sans-serif);
}

.book-sheet-note {
  margin: auto 0 0;
  padding: 17px 0 0;
  color: rgba(255, 255, 255, .63);
  font-size: 11px;
  line-height: 1.45;
}

.menu-book-toggle {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  padding: 12px 15px;
  border: 1px solid rgba(var(--book-accent-rgb), .8);
  border-radius: 0;
  color: #f8f8f5;
  background: #1d1f21;
  font: 700 11px/1.2 var(--sans, Arial, sans-serif);
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.menu-book-toggle:hover,
.menu-book-toggle:focus-visible {
  border-color: var(--book-accent);
  color: #111214;
  background: var(--book-accent);
}

.book-toggle-symbol {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  transition: transform 300ms ease;
}

.menu-book.is-open .book-toggle-symbol { transform: rotate(90deg); }

.book-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.book-actions a {
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .9);
  background: #222426;
  font: 700 10px/1.25 var(--sans, Arial, sans-serif);
  letter-spacing: .045em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.book-actions a span { flex: 0 0 auto; color: var(--book-accent); font-size: 15px; }
.book-actions a:hover,
.book-actions a:focus-visible { border-color: var(--book-accent); color: #fff; background: #303336; }

.book-footer-label {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .5);
  font-size: 9px;
  letter-spacing: .09em;
}

/* The float belongs only to a visible, closed cover. It is not a reveal gate. */
@keyframes menu-book-cover-float {
  0%, 100% { transform: translateZ(1px) translateY(0); }
  50% { transform: translateZ(1px) translateY(-5px); }
}

@keyframes menu-book-row-in {
  from { opacity: .28; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

body.motion-enabled .menu-book.book-in-view:not(.is-open):not(.book-motion-off) .book-cover {
  animation: menu-book-cover-float 5.5s ease-in-out infinite;
}

body.motion-enabled .menu-book.is-open:not(.book-motion-off) .book-menu-row {
  animation: menu-book-row-in 420ms calc(170ms + (var(--book-row) * 65ms)) both;
}

/* Home replacement: dark, direct and modern — no paper strip or gold marquee language. */
#konzepte.concept-experience {
  padding-top: var(--section-space, clamp(76px, 10vw, 148px));
  padding-bottom: var(--section-space, clamp(76px, 10vw, 148px));
  color: #fbfbf8;
  background: #111214;
}

#konzepte .experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  align-items: end;
  gap: clamp(26px, 6vw, 82px);
}

#konzepte .experience-heading .section-intro h2 {
  margin-bottom: 0;
  color: #fff;
  font-family: var(--sans, Arial, sans-serif);
  font-size: clamp(38px, 5.2vw, 68px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .98;
}

#konzepte .experience-heading .section-intro h2 em {
  color: var(--book-accent, #b66e5a);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

#konzepte .experience-heading .eyebrow { color: #b9bab5; }
#konzepte .experience-caption { max-width: 310px; margin: 0; color: rgba(255, 255, 255, .63); font-size: 14px; line-height: 1.65; }
#konzepte .menu-shelf { margin-top: clamp(35px, 5vw, 64px); }

/* Detail pages place one book beside the introduction without duplicating its actions. */
.menu-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 390px);
  align-items: start;
  gap: clamp(38px, 9vw, 132px);
}

.menu-detail-layout > .menu-book {
  width: min(100%, 390px);
  justify-self: end;
}

/* Pause/reduced modes preserve whichever side is currently open, but stop all extra motion. */
body.motion-paused .menu-book,
.motion-reduced .menu-book,
.menu-book.book-motion-off {
  transition-duration: 0ms !important;
}

body.motion-paused .menu-book *,
.motion-reduced .menu-book *,
.menu-book.book-motion-off * {
  animation: none !important;
  transition-duration: 0ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .menu-book,
  .menu-book * {
    animation: none !important;
    transition-duration: 0ms !important;
  }
}

@media (max-width: 1180px) {
  .menu-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .menu-shelf { grid-template-columns: minmax(0, 1fr); }
  .menu-shelf > .menu-book { width: min(100%, 390px); }
  #konzepte .experience-heading,
  .menu-detail-layout { grid-template-columns: 1fr; }
  #konzepte .experience-caption { max-width: 550px; }
  .menu-detail-layout > .menu-book { justify-self: center; }
}

@media (max-width: 460px) {
  .book-sheet { min-height: 620px; padding: 23px; }
  .book-cover-content { padding: 24px; }
  .book-cover h3 { font-size: 38px; }
  .book-sheet-heading h3 { font-size: 34px; }
  .book-actions { grid-template-columns: 1fr; }
  .book-actions a { min-height: 44px; }
}
