/* =========================================================
   Eiscafé-Seite: Farben wie Eissorten
   Pistazie → Kalkstein → Schokolade → Kalkstein → Erdbeere
   ========================================================= */
.page-eis {
  --pista: #d9e8c4;
  --pista-deep: #b9d48c;
  --straw: #f2a7b5;
  --vanilla: #f5ecd2;
  --choc: #2e1b14;
  --choc-2: #4a2c20;
  --waffle: #d9a066;
}

/* ---------- Hero ---------- */
.eis-hero { position: relative; background: var(--pista); margin-top: -5.25rem; padding-top: 5.25rem; }
.page-eis .site-header:not(.is-scrolled) .header-bar { background: transparent; }
.eis-hero-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(1rem, 4vw, 4rem); align-items: center;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  min-height: calc(100svh - 5.25rem);
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.eis-title { color: var(--adriatic); }
.eis-line { display: block; overflow: hidden; padding-bottom: .06em; }
.eis-line > span {
  display: block;
  font-size: clamp(3.4rem, 0.8rem + 8vw, 8.2rem);
  line-height: .95; letter-spacing: -0.035em;
}
.eis-line:nth-child(2) > span { padding-left: clamp(1.5rem, 6vw, 5.5rem); color: var(--red); }
.eis-translate { margin-top: 1.1rem; font-weight: 500; color: var(--adriatic); opacity: .75; }
.eis-lede { margin-top: 1.25rem; max-width: 38ch; font-size: 1.15rem; color: #34452f; }
.eis-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.page-eis .open-status { color: #34452f; }

/* Bühne für die 3D-Waffel */
.cone-stage {
  position: relative; width: 100%; max-width: 560px; justify-self: center;
  aspect-ratio: 4 / 5;
  touch-action: pan-y;
  cursor: grab;
}
.cone-stage:active { cursor: grabbing; }
.cone-halo {
  position: absolute; left: 12%; right: 12%; top: 14%; bottom: 18%;
  background: radial-gradient(circle at 35% 30%, #fbd3db, var(--straw) 55%, #e98aa0);
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  animation: halo-morph 14s ease-in-out infinite alternate;
  filter: saturate(1.05);
}
.cone-halo::after { /* Schachbrett-Siegel auf dem Kreis */
  content: ""; position: absolute; right: 2%; top: 8%; width: 18%; aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--red) 0 25%, var(--paper) 0 50%) 0 0 / 33.4% 33.4%;
  border: 3px solid var(--paper);
  box-shadow: 0 10px 24px -10px rgba(18, 48, 77, .5);
  animation: seal-spin 30s linear infinite;
}
@keyframes halo-morph {
  0% { border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 58% 42% 40% 60% / 45% 58% 42% 55%; transform: rotate(8deg) scale(1.03); }
  100% { border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; transform: rotate(-6deg) scale(.98); }
}
@keyframes seal-spin { to { transform: rotate(360deg); } }
.cone-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cone-fallback { position: absolute; left: 22%; right: 22%; top: 8%; bottom: 6%; width: 56%; height: 86%; display: none; }
.cone-stage.no-webgl .cone-fallback { display: block; }
.cone-stage.no-webgl .cone-canvas, .cone-stage.no-webgl .cone-hint { display: none; }
.cone-hint {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  font-size: var(--step--1); color: var(--adriatic); opacity: .6;
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
}
.cone-hint::before, .cone-hint::after { content: ""; width: 18px; height: 1px; background: currentColor; }

/* Schmelzende Kante zum nächsten Abschnitt */
.drip { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(50px, 8vw, 120px); transform: translateY(99%); z-index: 2; pointer-events: none; }
.drip svg { width: 100%; height: 100%; display: block; }
.drip path { fill: var(--pista); transform-origin: top; }

/* ---------- Eisvitrine ---------- */
.eiskarte { padding: clamp(6rem, 12vw, 9rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.eiskarte-head { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 1rem 3rem; align-items: end; }
.eiskarte-head h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); color: var(--adriatic); }
.eiskarte-head p { max-width: 44ch; color: var(--muted); }

.treats {
  list-style: none; margin: 3rem auto 0; padding: 0;
  max-width: var(--max);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem;
  position: relative;
}
/* Glasscheibe der Vitrine */
.treats::before {
  content: ""; position: absolute; left: -1rem; right: -1rem; top: -1rem; height: 48%;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .15) 45%, rgba(255, 255, 255, 0) 70%);
  border: 1px solid rgba(255, 255, 255, .9);
  border-bottom: 0;
  pointer-events: none; z-index: 2;
  mix-blend-mode: soft-light;
}
.treat {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.25rem 1rem 1.25rem;
  background: var(--paper);
  border-radius: 20px;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s cubic-bezier(.22, 1, .36, 1);
}
.treat:nth-child(1) { background: #fbe9ed; }
.treat:nth-child(2) { background: #fdf6dc; }
.treat:nth-child(3) { background: #fde6e8; }
.treat:nth-child(4) { background: #f4ebdf; }
.treat:nth-child(5) { background: #fbf1df; }
.treat:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(18, 48, 77, .45); }
.treat-art { width: 100%; max-width: 170px; aspect-ratio: 1; margin: 0 auto .5rem; overflow: visible; }
.treat-art .t-glass { fill: rgba(255, 255, 255, .7); stroke: var(--adriatic); stroke-width: 3; }
.treat-art .t-stem { fill: var(--adriatic); }
.treat-art .t-boat { fill: #fff; stroke: var(--adriatic); stroke-width: 3; }
.treat-art [class^="t-s"], .treat-art .t-cherry, .treat-art .t-cream, .treat-art .t-wafer { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.treat:hover .t-s1 { transform: translateY(-5px) rotate(-6deg); }
.treat:hover .t-s2 { transform: translateY(-7px) rotate(6deg); transition-delay: .05s; }
.treat:hover .t-s3 { transform: translateY(-10px) scale(1.05); transition-delay: .1s; }
.treat:hover .t-cherry { transform: translateY(-16px); transition-delay: .15s; }
.treat:hover .t-wafer { transform: rotate(12deg); }
.treat-art .t-steam { stroke-dasharray: 40; stroke-dashoffset: 40; opacity: 0; transition: opacity .3s; }
.treat:hover .t-steam { opacity: 1; animation: steam 1.6s ease-in-out infinite; }
@keyframes steam { 0% { stroke-dashoffset: 40; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -40; } }
.treat-art .t-flame { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s; }
.treat:hover .t-flame { opacity: 1; transform: scale(1); animation: flicker .25s ease-in-out infinite alternate; }
@keyframes flicker { to { transform: scale(1.08, .92) skewX(4deg); } }
.treat-art .t-crack { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset .8s ease .2s; }
.treat:hover .t-crack { stroke-dashoffset: 0; }
.treat-art .t-dust { transform-box: fill-box; transition: transform .6s; }
.treat:hover .t-dust { transform: translateY(-4px); }

.treat-body { flex: 1; }
.treat-no { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.treat h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); color: var(--adriatic); margin-top: .15rem; }
.treat-body p { margin-top: .4rem; font-size: .95rem; color: var(--muted); line-height: 1.4; }
.treat-price {
  align-self: flex-start; margin-top: 1rem;
  font-family: var(--serif); font-size: 1.35rem; color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* ---------- Kaffeebar ---------- */
.kaffeebar { position: relative; background: var(--choc); color: #f2e6dc; overflow: hidden; }
.kaffeebar-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; filter: blur(3px) saturate(.8); transform: scale(1.1); }
.kaffeebar-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.kaffeebar-head { position: sticky; top: 7rem; }
.kaffeebar h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); color: #fff; }
.kaffeebar-head p { margin-top: 1rem; max-width: 34ch; color: #d8c6b8; }
.legend { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .55rem; font-size: var(--step--1); color: #d8c6b8; }
.legend li { display: flex; align-items: center; gap: .6rem; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.c-esp { background: #8a4b2c; }
.c-milk { background: #f3e9df; }
.c-foam { background: repeating-linear-gradient(45deg, #fff 0 3px, #e9ddd1 3px 6px); }
.c-whisky { background: #c98a2c; }
.c-cream { background: #fff8ec; border: 1px solid #e3d3bf; }

.cups { list-style: none; padding: 0; margin: 0; }
.cups li {
  display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.05rem 0; border-bottom: 1px solid rgba(242, 230, 220, .14);
}
.cup-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.cup-price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.bar i { display: block; height: 100%; transform-origin: left; }
.bar i + i { box-shadow: inset 2px 0 0 var(--choc); }
.bar-tea { background: repeating-linear-gradient(90deg, rgba(185, 212, 140, .5) 0 6px, transparent 6px 12px); }

/* ---------- Kalte Getränke ---------- */
.kalt { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 6rem) var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.kalt h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); color: var(--adriatic); }
.kalt-list { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: 3rem; }
.kalt-list li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.kalt-list span { font-weight: 500; }
.kalt-list small { grid-column: 1; color: var(--muted); font-size: .9rem; }
.kalt-list b { grid-column: 2; grid-row: 1; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Besuch ---------- */
.eis-visit { background: var(--straw); position: relative; overflow: hidden; }
.eis-visit::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 2px);
  background-size: 26px 26px;
}
.eis-visit-inner { position: relative; max-width: 46rem; margin: 0 auto; padding: clamp(4.5rem, 10vw, 7.5rem) var(--gutter); text-align: center; }
.eis-visit h2 { font-size: clamp(2.8rem, 1.6rem + 5vw, 5.6rem); color: var(--adriatic); }
.eis-visit p { margin-top: 1rem; font-size: 1.15rem; color: #3a1f27; }
.eis-visit .eis-actions { justify-content: center; }
.eis-visit .btn-ghost { border-color: var(--adriatic); }
.eis-back { margin-top: 1.75rem !important; }
.eis-back .text-link { color: var(--adriatic); }

/* ---------- Startzustand vor der Animation ---------- */
.js-anim .eis-hero-copy > *, .js-anim .cone-halo, .js-anim .cone-hint { visibility: hidden; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .treats { grid-template-columns: repeat(5, 15rem); overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 1rem 1.5rem; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); scrollbar-width: none; }
  .treats::-webkit-scrollbar { display: none; }
  .treats::before { display: none; }
  .treat { scroll-snap-align: center; }
}
@media (max-width: 960px) {
  .eis-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .cone-stage { order: -1; max-width: 380px; aspect-ratio: 1 / 1.05; margin-bottom: 1.5rem; }
  .cone-hint { bottom: -1.5rem; }
  .kaffeebar-inner, .kalt { grid-template-columns: 1fr; }
  .kaffeebar-head { position: static; }
  .legend { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
  .eiskarte-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .eis-hero { margin-top: -4.5rem; padding-top: 4.5rem; }
  .cups li { grid-template-columns: 1fr auto; gap: .5rem 1rem; }
  .cups .bar { grid-column: 1 / -1; grid-row: 2; }
  .eis-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cone-halo, .cone-halo::after { animation: none; }
  .treat, .treat * { transition: none !important; animation: none !important; }
}
