/* Bitter Ernst – Fassung 2. Baut auf style.css auf (Schrift, Farben, Buttons, Shops, Kontakt, Footer). */

/* ---------- Kopfzeile + Vollbild-Menü ---------- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--black);
  color: var(--cream);
  transition: background-color .25s, color .25s;
}
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top__logo { flex: none; }
.top__logo img { height: 50px; width: auto; transition: opacity .25s; }
.top__actions { display: flex; align-items: center; gap: 10px; }
.top__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 16px;
  background: transparent; color: inherit;
  border: 2px solid currentColor; border-radius: 0;
  font: inherit; font-size: 0.8125rem; font-weight: 800; font-stretch: 112%;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.top__btn--fill { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.top__btn i { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }

/* Solange die Szene läuft, liegt die Kopfzeile frei über dem Bild */
.scene-live .top { background: transparent; }
.scene-live .top.is-stuck { background: var(--black); box-shadow: 0 1px 0 var(--line); }
body[data-tone="spass"] .top { color: var(--black); }
body[data-tone="spass"] .top__logo img { opacity: 0; }
body[data-tone="spass"] .top__btn--fill { background: var(--black); border-color: var(--black); color: var(--yellow); }

.menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--yellow); color: var(--black);
  display: flex; flex-direction: column; justify-content: center;
  padding: 88px var(--gutter) 40px;
  overflow-y: auto;
  visibility: hidden;
  clip-path: circle(0 at calc(100% - 60px) 36px);
  transition: clip-path .55s cubic-bezier(.7,0,.2,1), visibility 0s .55s;
}
.menu.is-open { visibility: visible; clip-path: circle(150vmax at calc(100% - 60px) 36px); transition-delay: 0s; }
.menu__close { position: absolute; top: 14px; right: var(--gutter); }
.menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu li { counter-increment: m; border-bottom: 2px solid var(--black); }
.menu li:first-child { border-top: 2px solid var(--black); }
.menu a {
  display: flex; align-items: baseline; gap: .5em;
  padding: .16em 0;
  font-size: clamp(2.2rem, 8.6vw, 6.4rem); font-weight: 900; font-stretch: 125%;
  line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; text-decoration: none;
  transition: padding-left .25s, font-style .25s;
}
.menu a::before { content: "0" counter(m); font-size: .22em; font-stretch: 100%; letter-spacing: .1em; }
.menu a:hover, .menu a:focus-visible { padding-left: .35em; font-style: italic; }
.menu p { margin: 24px 0 0; font-size: .875rem; letter-spacing: .08em; }
body.menu-open { overflow: hidden; }

/* ---------- Szene: aus Spaß wird Ernst ---------- */

.scene { --p: 1; position: relative; }
.layer { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.layer--spass { background: var(--yellow); color: var(--black); justify-content: center; text-align: center; }
.layer--ernst { background: var(--black); padding: calc(var(--header-h) + 8px) 0 32px; }

.scene-live .scene { height: 260vh; }
.scene-live .scene__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene-live .layer { position: absolute; inset: 0; min-height: 0; }
.scene-live .layer--ernst { clip-path: circle(calc(var(--p) * 165vmax) at 50% 100%); }
.scene-live .ernst__in {
  opacity: clamp(0, calc((var(--p) - 0.45) * 2.6), 1);
  transform: translateY(calc((1 - var(--p)) * 60px));
}
.scene-live .spass__in { transform: scale(calc(1 + var(--p) * 0.5)) rotate(calc(-4deg - var(--p) * 6deg)); }

.spass__in { transform: rotate(-4deg); will-change: transform; padding-inline: var(--gutter); }
.spass__pre { display: block; font-size: clamp(1.3rem, 3.6vw, 3rem); font-weight: 600; font-style: italic; }
.spass__word {
  display: block;
  font-size: clamp(5rem, 21vw, 22rem); font-weight: 900; font-stretch: 125%;
  line-height: .86; letter-spacing: -.04em; text-transform: uppercase;
}
.spass__hint {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  opacity: calc(1 - var(--p) * 6);
}
.scene-live .spass__hint { display: flex; }
.spass__hint svg { width: 22px; height: 22px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(7px); } }

.ernst__in {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(16px, 3vw, 48px);
}
.ernst__visual { position: relative; justify-self: center; width: min(100%, 560px); }
.ernst__visual::before {
  content: ""; position: absolute; inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(217,138,43,.38), rgba(217,138,43,0)); filter: blur(30px);
}
.ernst__visual img {
  position: relative; width: 100%; max-height: 74svh; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 62%, transparent 100%);
}
.ernst__sub { max-width: 34em; margin: clamp(16px, 2.4vw, 30px) 0 0; }
.ernst__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 860px) {
  .ernst__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ernst__visual { order: -1; width: auto; }
  .ernst__visual img { width: auto; max-width: 100%; max-height: 30svh; margin-inline: auto; }
  .layer--ernst .facts { display: none; }
  .layer--ernst .hero__mark b { font-size: clamp(3.4rem, 18.5vw, 8rem); }
  .ernst__sub { font-size: 1rem; }
  .ernst__cta { margin-top: 18px; }
  .ernst__cta .btn { min-height: 48px; padding: 10px 18px; font-size: .8125rem; }
}

/* ---------- Formel ---------- */

.formula {
  font-size: clamp(2rem, 7.4vw, 7rem); font-weight: 900; font-stretch: 125%;
  line-height: .98; letter-spacing: -.03em; text-transform: uppercase;
  margin: 0 0 clamp(36px, 6vw, 80px);
}
.formula span { display: inline-block; white-space: nowrap; }
.formula .op { color: var(--yellow); font-stretch: 100%; font-weight: 400; margin-inline: .12em; }
.formula .res { display: block; white-space: normal; color: var(--yellow); font-style: italic; margin-top: .06em; }
.formula .res .op { font-style: normal; margin-left: 0; }

.essay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.essay__img { position: relative; margin-right: calc(-1 * var(--gutter)); }
.essay__img img { width: 100%; aspect-ratio: 736 / 617; object-fit: cover; }
.essay__text .btn { margin-top: 12px; }
@media (max-width: 860px) {
  .essay { grid-template-columns: minmax(0, 1fr); }
  .essay__img { order: -1; margin-inline: calc(-1 * var(--gutter)); }
}

/* ---------- Die Bar ---------- */

.bar__tabs { display: none; flex-wrap: wrap; gap: .1em 1.1em; margin: 0 0 clamp(28px, 4vw, 56px); padding: 0; }
.bar--live .bar__tabs { display: flex; }
.bar__tab {
  display: inline-flex; align-items: flex-start; gap: .3em; text-align: left;
  padding: .12em 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: clamp(1.7rem, 4.6vw, 4rem); font-weight: 900; font-stretch: 125%;
  line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244, 239, 225, .55);
  transition: color .2s, -webkit-text-stroke-color .2s;
}
.bar__tab sup { font-size: .24em; font-stretch: 100%; letter-spacing: .1em; -webkit-text-stroke: 0; color: var(--muted); margin-top: .5em; }
.bar__tab:hover { -webkit-text-stroke-color: var(--yellow); }
.bar__tab[aria-selected="true"] { color: var(--yellow); -webkit-text-stroke-color: var(--yellow); font-style: italic; }
.bar__tab[aria-selected="true"] sup { color: var(--yellow); }

.mix {
  display: grid; gap: clamp(20px, 3vw, 48px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "img head" "img list";
  grid-template-rows: auto 1fr;
  padding: clamp(28px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.bar--live .mix { border-top: 0; padding: 0; grid-template-columns: minmax(0, 1.1fr) 150px minmax(0, 1fr); grid-template-areas: "img glass head" "img glass list"; }
.bar--live .mix[hidden] { display: none; }
.mix__img { grid-area: img; }
.mix__img img { width: 100%; aspect-ratio: 871 / 797; object-fit: cover; }
.mix__head { grid-area: head; align-self: end; }
.mix__head h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 900; font-stretch: 118%; line-height: 1.05; text-transform: uppercase; margin-bottom: 14px; overflow-wrap: break-word; hyphens: manual; }
.mix__head p { color: var(--muted); margin: 0; max-width: 34em; }
.mix__list { grid-area: list; }
.mix__list h4 { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.mix__list li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.mix__list li::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--c, transparent); border: 1px solid rgba(244,239,225,.35); transform: translateY(1px); }
.mix__list .extras li::before { border-style: dashed; }
.mix__list .extras { margin-top: 0; color: var(--muted); }

/* Zutatenfarben */
[data-c="ernst"]   { --c: #f2a922; }
[data-c="wermut"]  { --c: #8f2a1c; }
[data-c="whiskey"] { --c: #c06a17; }
[data-c="clear"]   { --c: #cfd8d6; }
[data-c="lemon"]   { --c: #f1e283; }
[data-c="sugar"]   { --c: #e8d9b8; }
[data-c="juice"]   { --c: #a01d34; }
[data-c="coffee"]  { --c: #4b2b19; }
[data-c="likoer"]  { --c: #7a4424; }
[data-c="vanilla"] { --c: #e3c079; }

.glass { grid-area: glass; align-self: center; text-align: center; }
.glass__body {
  position: relative; width: 120px; height: clamp(240px, 30vw, 360px); margin: 0 auto;
  border: 3px solid var(--cream); border-top: 0; border-radius: 0 0 14px 14px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
}
.glass__liquid { display: flex; flex-direction: column-reverse; height: 0; transition: height 1.1s cubic-bezier(.3,.8,.2,1); }
.mix.is-poured .glass__liquid { height: 86%; }
.glass__seg { background: var(--c); min-height: 6px; }
.glass__seg + .glass__seg { box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.glass__seg[data-fill] { background: repeating-linear-gradient(135deg, var(--c) 0 7px, color-mix(in srgb, var(--c) 62%, #000) 7px 14px); }
.glass figcaption { margin-top: 12px; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) {
  .mix, .bar--live .mix { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "head" "list"; grid-template-rows: auto; }
  .bar--live .mix { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "img img" "head head" "glass list"; }
  .glass { align-self: start; padding-top: 30px; }
  .glass__body { width: 72px; height: 200px; border-radius: 0 0 10px 10px; }
  .glass figcaption { display: none; }
}

/* ---------- Erfinder ---------- */

.lead-photo { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.lead-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 30%; }
.lead-photo::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to bottom, transparent, var(--black)); }
.lead-photo + .section__head { position: relative; margin-top: clamp(-150px, -9vw, -40px); }

.roster { border-bottom: 1px solid var(--line); margin-top: clamp(36px, 5vw, 72px); }
.roster article {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(12px, 4vw, 64px);
  align-items: start; padding: clamp(24px, 3.4vw, 48px) 0; border-top: 1px solid var(--line);
}
.roster h3 { font-size: clamp(1.9rem, 4.3vw, 3.7rem); font-weight: 900; font-stretch: 122%; line-height: .98; letter-spacing: -.02em; text-transform: uppercase; }
.roster .role { margin: 0 0 12px; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.roster p { margin: 0; color: var(--muted); }
.roster article:hover h3 { color: var(--yellow); font-style: italic; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin-top: clamp(28px, 4vw, 56px); }
.duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .roster article { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Manifest ---------- */

.manifest { background: var(--yellow); color: var(--black); padding: clamp(64px, 9vw, 128px) 0; }
.manifest .eyebrow { color: var(--black); }
.manifest ol { list-style: none; margin: 0; padding: 0; counter-reset: k; border-bottom: 3px solid var(--black); }
.manifest li {
  counter-increment: k; display: flex; align-items: baseline; gap: .5em;
  padding: .2em 0; border-top: 3px solid var(--black);
  font-size: clamp(1.5rem, 6.2vw, 5.6rem); font-weight: 900; font-stretch: 125%;
  line-height: 1.04; letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: break-word; hyphens: manual;
}
.manifest li::before { content: "§" counter(k); flex: none; font-size: .26em; font-stretch: 100%; letter-spacing: .08em; }
.manifest__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); margin-top: clamp(32px, 5vw, 64px); align-items: start; }
.manifest__foot p { margin: 0 0 1em; }
.manifest blockquote { margin: 0; font-size: clamp(1.3rem, 2.6vw, 2.1rem); font-weight: 800; font-style: italic; line-height: 1.2; text-wrap: balance; }
@media (max-width: 860px) { .manifest__foot { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .menu { transition: none; }
  .glass__liquid { transition: none; }
  .spass__hint svg { animation: none; }
}

@media (max-width: 520px) {
  .top__logo img { height: 42px; }
  .top__btn { min-height: 40px; padding: 6px 12px; font-size: .75rem; letter-spacing: .08em; }
  .manifest li > span { min-width: 0; }
}
