/* ============================================================
   BACIO — Eiscafé Vaihingen an der Enz
   Geteilt von index / impressum / datenschutz.
   Richtung: warm & lebendig, Gelato-Farben tragen die Persönlichkeit,
   ein Band läuft mittig durch und legt sich um den Text.
   Schriften: System-Stacks (keine externen Aufrufe -> DSGVO-sicher).
   ============================================================ */

:root {
  /* Basis */
  --cream:    #F7F1E5;   /* warmer Grundton */
  --cream-2:  #F1E8D6;   /* leicht tiefer */
  --paper:    #FFFDF8;   /* Karten */
  --ink:      #221C16;   /* warmes Fast-Schwarz */
  --ash:      #6E6256;   /* gedämpfter Text */
  --line:     #E5DAC6;   /* Haarlinien */

  /* ===== DESIGN-TOKENS — hier umfärben, um die Seite neu zu skinnen =====
     --primary      = Markenfarbe (Header-Button, Akzente, Wortmarke)
     --primary-deep = dunkle Variante (Kontrast-Sektion "Besuch")
     Cremeton + Gelato-Farben sind Standard; einzeln anpassbar.            */
  --primary:      #2C6E8A;   /* Mosaik-Tresen-Blau */
  --primary-deep: #1A4A60;   /* dunkle Kontrast-Sektion */
  --primary-soft: #7FB0C4;   /* helle Variante */

  --pistazie: #7FA15A;
  --amarena:  #B14A63;
  --karamell: #CC8A4A;
  --vaniglia: #E9D49A;
  --zitrone:  #DDBE45;
  --cioccolato:#6B4A33;

  --rail-pad: clamp(16px, 2.5vw, 36px);
  --maxw: 1340px;
  --read: 720px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t: 0.5s cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--rail-pad); }
.read { max-width: var(--read); margin-inline: auto; }

/* ---------- Demo-Hinweis ---------- */
.demo-bar {
  background: var(--ink); color: #F1ECE2;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; padding: 7px 16px;
}
.demo-bar span { opacity: 0.65; }

/* ============================================================
   Mittiges Gelato-Band (Signatur)
   ============================================================ */
#page { position: relative; }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ribbon path { fill: none; stroke-linecap: round; }
.ribbon .glow   { stroke: var(--vaniglia); stroke-width: 24; opacity: 0.22; filter: blur(7px); }
.ribbon .core   { stroke: url(#flow); stroke-width: 8; }
.ribbon .dollop { fill: #fff; stroke-width: 0; }
.ribbon .drip   { fill: url(#flow); opacity: 0.9; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--t);
}
header.site.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mark { width: 27px; height: 27px; display: block; }
.brand .word { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: 0; font-size: 1.42rem; text-transform: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); position: relative; padding: 6px 0; transition: color var(--t); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--primary); transition: width var(--t); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links .call { color: #fff; background: var(--primary); border-radius: 40px; padding: 9px 20px; letter-spacing: 0.06em; }
.nav-links .call::after { display: none; }
.nav-links .call:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

main { position: relative; z-index: 1; }

/* ---------- gemeinsame Bausteine ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ash); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--accent, var(--pistazie)); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.btn { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 0.86rem; letter-spacing: 0.05em; padding: 14px 26px; border-radius: 40px; border: 1.5px solid var(--ink); transition: background var(--t), color var(--t), transform var(--t); }
.btn.solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.solid:hover { transform: translateY(-2px); background: var(--primary); border-color: var(--primary); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 70px); display: flex; align-items: center; padding-block: 60px; text-align: center; overflow: hidden; }
.hero .wrap { width: 100%; position: relative; z-index: 2; }
.hero .badge { display: inline-flex; align-items: center; gap: 9px; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ash); background: var(--paper); border: 1px solid var(--line); border-radius: 40px; padding: 7px 16px; margin-bottom: 30px; }
.hero .badge .stars { color: var(--karamell); letter-spacing: 0.08em; }
.hero .bigmark { width: clamp(72px, 11vw, 104px); height: auto; margin: 0 auto 26px; display: block; }
.hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(2.7rem, 8.5vw, 5.6rem); line-height: 0.97; letter-spacing: -0.025em; margin: 0; }
.hero h1 .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; background: linear-gradient(95deg, var(--pistazie), var(--karamell) 45%, var(--amarena)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 26px auto 0; max-width: 40ch; font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--ash); }
.hero .meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hero .where { font-size: 0.86rem; color: var(--ash); width: 100%; margin-top: 4px; }
.hero .where b { color: var(--ink); }
/* schwebende Streusel */
.sprinkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sprinkle { position: absolute; width: 12px; height: 12px; border-radius: 50%; opacity: 0.85; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

/* ---------- Sektion-Grundabstand ---------- */
.sec { padding-block: clamp(78px, 11vw, 140px); position: relative; }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 20px; }
.about p { color: var(--ash); margin: 0 0 18px; }
.about p strong { color: var(--ink); font-weight: 600; }
.cone { width: 100%; max-width: 340px; margin-inline: auto; height: auto; display: block; }

/* ---------- Sorten (Farb-Showcase) ---------- */
.flavors { border-block: 1px solid var(--line); }
.flavors .head { text-align: center; margin-bottom: 54px; }
.flavors h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; }
.flavors .head .eyebrow { justify-content: center; }
.flavors .head .note, .becher-sec .head .note { color: var(--ash); font-size: 0.9rem; max-width: 48ch; margin-inline: auto; }

/* Sortenliste statt Farbkreise */
.sorten-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; max-width: 820px; margin-inline: auto; }
.sorten-list .s { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.sorten-list .s b { width: 4px; height: 16px; border-radius: 2px; background: var(--c); flex: none; }
.sorten-list .s .nm { font-size: 1rem; }
.sorten-list .s .ds { margin-left: auto; color: var(--ash); font-size: 0.84rem; text-align: right; }

/* Eisbecher */
.becher-sec .head { text-align: center; margin-bottom: 44px; }
.becher-sec .head .eyebrow { justify-content: center; }
.becher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.becher { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 26px 30px; transition: transform var(--t), box-shadow var(--t); }
.becher::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background: var(--c); }
.becher:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--c) 70%, transparent); }
.becher h3 { margin: 0 0 10px; font-size: 1.18rem; }
.becher p { margin: 0 0 16px; color: var(--ash); font-size: 0.9rem; line-height: 1.55; }
.becher .pr { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ash); font-style: italic; }

/* ---------- Speisekarte ---------- */
.menu .head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 50px; }
.menu h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.menu .note { font-size: 0.82rem; color: var(--ash); max-width: 34ch; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.cat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.cat h3 { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 4px; color: var(--accent, var(--ink)); }
.cat .csub { font-size: 0.82rem; color: var(--ash); margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.item { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; align-items: baseline; }
.item .d { font-size: 0.96rem; }
.item .d small { display: block; color: var(--ash); font-size: 0.8rem; }
.item .p { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.92rem; }
.item .p.ex { color: var(--ash); font-style: italic; }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { font-size: 0.78rem; padding: 6px 13px; border: 1px solid var(--line); border-radius: 40px; color: var(--ash); background: var(--cream); }
.chips .chip.veg { border-color: color-mix(in srgb, var(--pistazie) 55%, var(--line)); color: var(--pistazie); }

/* ---------- Galerie ---------- */
.gallery .head { margin-bottom: 42px; }
.gallery h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 12px; }
.gallery .note { font-size: 0.82rem; color: var(--ash); max-width: 48ch; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 16px; }
.tile { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, var(--paper)), color-mix(in srgb, var(--c) 6%, var(--cream-2))); }
.tile.tall { grid-row: span 2; } .tile.wide { grid-column: span 2; }
.tile::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--c); }
.tile .t-label { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink); position: relative; z-index: 2; font-weight: 500; }
.tile .t-tag { position: absolute; top: 14px; left: 14px; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); border-radius: 40px; padding: 4px 10px; font-weight: 600; }
.tile .ic { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.45; }
.tile .ic svg { width: 40px; height: 40px; stroke: var(--c); }

/* ---------- Besuch (dunkler Kontrast) ---------- */
.visit { background: var(--primary-deep); color: #EAF0F2; }
.visit .eyebrow { color: #A79A88; }
.visit .eyebrow::before { background: var(--karamell); }
.visit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 84px); }
.visit h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 28px; line-height: 1.06; }
.visit h2 .it { font-style: italic; color: var(--vaniglia); }
.vrow { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.vrow:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.vrow .k { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #A79A88; padding-top: 3px; }
.vrow .v { color: #F2ECE0; }
.vrow .v a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; }
.vrow .v a:hover { border-color: var(--karamell); }
.vrow .v .muted { color: #A79A88; font-size: 0.86rem; }
.hours-now { display: inline-flex; align-items: center; gap: 8px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--pistazie); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pistazie) 35%, transparent); }
.dot-live.closed { background: var(--amarena); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amarena) 35%, transparent); }
.socials { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; border: 1px solid rgba(255,255,255,0.22); border-radius: 40px; padding: 11px 20px; font-size: 0.82rem; color: #F2ECE0; transition: background var(--t), border-color var(--t); }
.socials a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.socials svg { width: 17px; height: 17px; }
.map-card { border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 22px; background: rgba(255,255,255,0.03); }
.map-card .addr { font-size: 1.12rem; margin: 0 0 4px; }
.map-card .sub { color: #A79A88; font-size: 0.9rem; margin: 0 0 18px; }
.map-frame { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }
.map-consent p { margin: 0; font-size: 0.84rem; color: #C9C0B2; max-width: 32ch; }
.map-consent button { cursor: pointer; background: var(--karamell); color: var(--ink); border: 0; border-radius: 40px; padding: 11px 20px; font-size: 0.84rem; font-weight: 600; }

/* ---------- Footer ---------- */
footer.site { background: var(--cream); padding-block: 50px; border-top: 1px solid var(--line); }
footer.site .inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
footer.site .word { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 1.3rem; }
footer.site .legal { font-size: 0.78rem; color: var(--ash); max-width: 52ch; line-height: 1.7; margin-top: 12px; }
footer.site .flinks { display: flex; gap: 18px; font-size: 0.82rem; }
footer.site .flinks a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
footer.site .flinks a:hover { border-color: var(--amarena); }

/* ---------- Cookie-Banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-inline: auto; background: var(--ink); color: #EFE9DD; border-radius: 16px; padding: 22px 24px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5); transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cookie.show { transform: none; }
.cookie h4 { margin: 0 0 8px; font-size: 1rem; }
.cookie p { margin: 0 0 16px; font-size: 0.85rem; color: #C9C0B2; line-height: 1.6; }
.cookie p a { color: var(--vaniglia); }
.cookie .row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie button { cursor: pointer; border-radius: 40px; padding: 10px 20px; font-size: 0.82rem; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #EFE9DD; transition: background var(--t); }
.cookie button:hover { background: rgba(255,255,255,0.08); }
.cookie button.accept { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.cookie button.accept:hover { background: #1A4A60; }

/* ---------- Rechtsseiten ---------- */
.legal-page { padding-block: clamp(56px, 9vw, 100px); }
.legal-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; }
.legal-page .back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ash); text-decoration: none; margin-bottom: 32px; }
.legal-page .back:hover { color: var(--ink); }
.legal-page h2 { font-size: 1.2rem; margin: 38px 0 10px; }
.legal-page p, .legal-page li { color: var(--ink); font-size: 0.98rem; margin-bottom: 12px; }
.legal-page .muted { color: var(--ash); }
.legal-page ul { padding-left: 20px; }
.legal-page .ph { background: color-mix(in srgb, var(--karamell) 16%, var(--paper)); border: 1px solid color-mix(in srgb, var(--karamell) 40%, var(--line)); border-radius: 8px; padding: 2px 8px; font-size: 0.9em; }
.note-box { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--karamell); border-radius: 8px; padding: 18px 20px; font-size: 0.9rem; color: var(--ash); margin: 0 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .becher-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 14px var(--rail-pad) 22px;
  }
  .nav-links.open a { padding: 10px 0; width: 100%; }
  .nav-links.open .call { width: auto; margin-top: 6px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .sorten-list { grid-template-columns: 1fr; }
  .vrow { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sprinkle { animation: none; }
  .ribbon .drop { display: none; }
}

a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--amarena); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   Vivaldi-Ergänzungen
   ============================================================ */
.hero-eyebrow { font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ash); margin: 0 0 8px; }
.hero-word { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(3.6rem, 13vw, 7.2rem); line-height: 0.92; color: var(--primary); margin: 0 0 16px; }
.hero h1.sub { font-family: var(--sans); font-weight: 600; font-size: clamp(1.35rem, 3.4vw, 2.1rem); letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.brand .word { color: var(--primary); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 1px solid var(--line); margin-top: 26px; }
.stat { padding: 20px 0; border-bottom: 1px solid var(--line); }
.stat .n { font-family: var(--serif); font-style: italic; font-size: 1.85rem; color: var(--primary); line-height: 1; }
.stat .l { font-size: 0.85rem; color: var(--ash); margin-top: 5px; }

/* Spaghetti-/Listen-Karte mit Preisen */
.price-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; max-width: 860px; margin-inline: auto; }
.price-list .s { display: flex; align-items: baseline; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.price-list .s .nm { font-size: 1rem; }
.price-list .s .pr { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 0.95rem; }
.becher-sec .head + .price-list, .menu .head + .price-list { margin-top: 8px; }

.google-link { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; border: 1px solid rgba(255,255,255,0.22); border-radius: 40px; padding: 11px 20px; font-size: 0.82rem; color: #EAF0F2; transition: background var(--t), border-color var(--t); margin-top: 30px; }
.google-link:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

@media (max-width: 600px) { .price-list, .stats { grid-template-columns: 1fr; } }

/* ============================================================
   Lebendigkeit: Marquee, Sorten-Showcase, Features, Micro-FX
   ============================================================ */

/* feine Punkt-Textur auf dem Grundton (Waffel-Anmutung) */
body {
  background-image: radial-gradient(color-mix(in srgb, var(--karamell) 9%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 14px;
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: -8px 8px;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--ink);
}
.marquee-track i { font-style: normal; color: var(--primary); font-size: 0.8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features { padding-block: clamp(50px, 7vw, 90px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c, var(--primary)); opacity: 0; transition: opacity var(--t); }
.feature:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -28px rgba(0,0,0,0.35); }
.feature:hover::before { opacity: 1; }
.f-ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--c, var(--primary)) 14%, var(--paper));
  color: var(--c, var(--primary));
}
.f-ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--ash); font-size: 0.88rem; line-height: 1.6; }

/* ---------- Speisekarte: lebendigere Zeilen ---------- */
.item { border-bottom: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); transition: padding-left var(--t); }
.item:last-of-type { border-bottom: none; }
.item:hover { padding-left: 6px; }
.item:hover .p { color: var(--accent, var(--primary)); font-weight: 600; }
.cat { transition: transform var(--t), box-shadow var(--t); }
.cat:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -30px color-mix(in srgb, var(--accent, var(--primary)) 70%, #000 20%); }
.price-list .s { transition: padding-left var(--t); }
.price-list .s:hover { padding-left: 8px; }
.price-list .s:hover .pr { color: var(--primary); font-weight: 600; }

/* ---------- Besuch: Mosaik-Ecke ---------- */
.visit { overflow: hidden; }
.visit::before {
  content: ""; position: absolute; top: -30px; right: -30px;
  width: 240px; height: 240px; opacity: 0.16; pointer-events: none;
  background:
    conic-gradient(from 90deg at 50% 50%, #7FB0C4 25%, transparent 0) 0 0 / 40px 40px,
    conic-gradient(from 90deg at 50% 50%, #E9D49A 25%, transparent 0) 20px 20px / 40px 40px;
  transform: rotate(45deg);
}
.visit .wrap { position: relative; z-index: 1; }

/* ---------- Responsive für neue Bausteine ---------- */
@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .marquee-track span { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .feature:hover, .cat:hover, .spec-card:hover { transform: none; }
}

/* ============================================================
   Spezialitäten, Mosaik-Bänder, Side Rails, Ambient & Splash
   ============================================================ */

/* ---------- reicherer Hintergrund ---------- */


/* ---------- Mosaik-Tresen-Bänder ---------- */
.mosaic-band {
  position: relative; z-index: 2;
  height: 28px;
  overflow: hidden;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.mosaic-tiles {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, #1A4A60 25%, transparent 25%),
    linear-gradient(-45deg, #2C6E8A 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #7FB0C4 75%),
    linear-gradient(-45deg, transparent 75%, #E9D49A 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  opacity: 0.85;
}

/* ---------- Spezialitäten ---------- */
.specialties {
  position: relative;
  background: transparent;
}
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.spec-card {
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 0 0 26px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.spec-card:hover {
  transform: translateY(-8px) rotate(-0.3deg);
  box-shadow: 0 32px 60px -32px rgba(26, 74, 96, 0.4);
}
.spec-illu {
  --bg: #FFF8EA;
  background: var(--bg);
  padding: 20px;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.spec-illu::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.5), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(26,74,96,0.06), transparent 50%);
  pointer-events: none;
}
.spec-illu svg { width: 100%; max-width: 180px; height: auto; position: relative; z-index: 1; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.spec-card:hover .spec-illu svg { transform: scale(1.06) rotate(-2deg); }
.spec-card h3 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 1.25rem; margin: 22px 24px 8px;
  color: var(--ink);
}
.spec-card p {
  margin: 0 24px 14px;
  font-size: 0.88rem; line-height: 1.55;
  color: var(--ash);
  flex: 1;
}
.spec-price {
  margin: 0 24px;
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 500;
}
.spec-price::before {
  content: "—"; color: var(--line); margin-right: 8px;
}

/* ---------- Ambient Italian motifs (Hintergrund-Deko) ---------- */
.ambient {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  filter: blur(0.4px);
  width: 130px; height: 130px;
}
.ambient-lemon    { top: 60px;  right: 70px;  transform: rotate(18deg);  animation: floatA 14s ease-in-out infinite; }
.ambient-cherry   { bottom: 80px; left: 60px;  transform: rotate(-8deg);  animation: floatA 17s ease-in-out infinite reverse; width: 110px; height: 110px; }
.ambient-espresso { top: 100px; left: 50px;   transform: rotate(-12deg); animation: floatA 18s ease-in-out infinite reverse; width: 120px; height: 120px; }
.ambient-bowl     { top: 80px; right: 60px;   transform: rotate(8deg);   animation: floatA 16s ease-in-out infinite; width: 130px; height: 130px; }
@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-18px) rotate(var(--r, 0deg)); }
}
/* Sektionen, die ambient hosten, brauchen relative + clip */
.specialties, .menu#karte, .gallery { position: relative; overflow: hidden; }
.specialties .wrap, .menu .wrap, .gallery .wrap { position: relative; z-index: 1; }

/* ---------- Splash-Effekte am Band ---------- */
.splash-ring {
  fill: none;
  stroke: #E9D49A;
  stroke-width: 2;
  opacity: 0.8;
  animation: splashRing 1.1s ease-out forwards;
}
@keyframes splashRing {
  0%   { r: 8;  opacity: 0.9; stroke-width: 2.5; }
  100% { r: 32; opacity: 0;   stroke-width: 0.5; }
}
.splash-bit {
  opacity: 0.9;
  animation: splashBit 0.9s ease-out forwards;
}
@keyframes splashBit {
  0%   { transform: translate(0, 0);             opacity: 0.9; }
  100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}

/* ---------- Drop-Aura ---------- */
.drop-aura {
  transition: opacity 0.4s ease;
}

/* ---------- Shadow-Linie (parallel zur Hauptlinie) ---------- */
.shadow-line {
  fill: none;
  stroke: url(#flow);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.35;
  filter: blur(2px);
  transform: translateX(8px);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .ambient { display: none; }
  .mosaic-band { height: 22px; }
  .mosaic-tiles { background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0; }
}
@media (max-width: 520px) {
  .spec-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .spec-card:hover { transform: none; }
  .spec-card:hover .spec-illu svg { transform: none; }
  .ambient { animation: none; }
  .splash-ring, .splash-bit { animation: none; opacity: 0; }
}

/* ============================================================
   Weave-Band (Front-Ebene), Karten-Abschlüsse, Layout-Feinschliff
   ============================================================ */

/* dezente Punkt-Textur (eine reicht) */
body {
  background-color: var(--cream);
  background-image: radial-gradient(color-mix(in srgb, var(--karamell) 8%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ---------- Front-Ebene des Bandes ---------- */
.ribbon-front { z-index: 3; }
.ribbon-front .core-front {
  fill: none;
  stroke: url(#flow);
  stroke-width: 8;
  stroke-linecap: round;
}
.ribbon-front .core-front-glow {
  /* Cremefarbener Halo: trennt die Front-Linie sichtbar vom Inhalt darunter */
  fill: none;
  stroke: var(--cream);
  stroke-width: 16;
  stroke-linecap: round;
  opacity: 0.92;
}

/* ---------- Karten-Abschluss statt Leerraum ---------- */
.cat-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.84rem;
  color: var(--ash);
  text-align: center;
}
.cat-foot::before { content: "❧ "; color: var(--primary); font-style: normal; }

/* ---------- Engeres, volleres Layout ---------- */
.sec { padding-block: clamp(48px, 6vw, 84px); }
.menu .head { margin-bottom: 34px; }

/* Spaghetti-Liste: zweispaltig auf breiterem Raum */
.price-list { max-width: 900px; margin-inline: auto; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .ribbon .core, .ribbon-front .core-front { stroke-width: 6; }
  .ribbon-front .core-front-glow { stroke-width: 12; }
  .ribbon .glow { stroke-width: 16; }
  .drop-aura { r: 18; }
}

/* ============================================================
   Hero V2: zweispaltig + animiert · Wickel-Medaillon · Scroll-Cue
   ============================================================ */

/* ---------- Hero-Layout ---------- */
.hero { text-align: left; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero-copy .lede { margin-inline: 0; }
.hero-copy .meta { justify-content: flex-start; }
.hero-copy .where { width: auto; }

/* ---------- Hero-Art ---------- */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.hero-sundae {
  width: min(100%, 380px);
  height: auto;
  animation: sundaeBob 6s ease-in-out infinite;
}
@keyframes sundaeBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-1deg); }
}
/* Kirsche wippt eigenständig */
.sundae-cherry { transform-origin: 160px 60px; animation: cherryWiggle 5s ease-in-out infinite; }
@keyframes cherryWiggle {
  0%, 100% { transform: rotate(0deg); }
  30%      { transform: rotate(2.5deg); }
  65%      { transform: rotate(-2deg); }
}
/* Soße "fließt": Strich wandert */
.sundae-drip {
  stroke-dasharray: 12 10;
  animation: dripFlow 2.6s linear infinite;
}
@keyframes dripFlow { to { stroke-dashoffset: -44; } }
/* Funkeln blinken versetzt */
.sundae-sparkles path { opacity: 0; animation: sparkle 4s ease-in-out infinite; transform-origin: center; }
.sundae-sparkles .sp2 { animation-delay: 1.3s; }
.sundae-sparkles .sp3 { animation-delay: 2.6s; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  12%      { opacity: 1; transform: scale(1); }
  24%      { opacity: 0; transform: scale(0.7); }
}
/* Waffel zittert ganz leicht beim Bob mit */
.sundae-wafer { transform-origin: 230px 95px; animation: waferTilt 6s ease-in-out infinite; }
@keyframes waferTilt {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(1.6deg); }
}

/* ---------- rotierendes Siegel ---------- */
.hero-seal {
  position: absolute;
  top: 4%; right: 2%;
  width: clamp(84px, 9vw, 118px);
  height: auto;
  animation: sealSpin 26s linear infinite;
  filter: drop-shadow(0 6px 18px rgba(26,74,96,0.14));
}
@keyframes sealSpin { to { transform: rotate(360deg); } }

/* ---------- schwebende Chips ---------- */
.hero-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; letter-spacing: 0.03em;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 40px;
  padding: 9px 16px;
  box-shadow: 0 10px 28px -16px rgba(26,74,96,0.35);
  animation: chipFloat 7s ease-in-out infinite;
}
.hero-chip .hc-ic { color: var(--primary); font-size: 0.95rem; }
.chip-a { left: -4%; bottom: 22%; animation-delay: 0.8s; }
.chip-b { right: -2%; bottom: 6%;  animation-delay: 2s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- Scroll-Cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--primary);
  background: var(--paper);
  z-index: 2;
  animation: cueBounce 2.4s ease-in-out infinite;
  transition: border-color var(--t), transform var(--t);
}
.scroll-cue svg { width: 18px; height: 18px; }
.scroll-cue:hover { border-color: var(--primary); }
@keyframes cueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ---------- Wickel-Medaillon ---------- */
.weave-divider {
  position: relative;
  height: 190px;
  z-index: 2; /* über Back-Band (0), unter Front-Band (3) */
}
.medallion {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(130px, 14vw, 168px);
  filter: drop-shadow(0 10px 26px rgba(26,74,96,0.18));
  animation: medSpin 32s linear infinite;
}
.medallion svg { width: 100%; height: auto; display: block; }
@keyframes medSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero { text-align: center; padding-block: 40px 70px; }
  .hero-copy .meta { justify-content: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-art { min-height: 0; margin-top: 12px; }
  .hero-sundae { width: min(72vw, 290px); }
  .hero-seal { top: -2%; right: 4%; width: 76px; }
  .chip-a { left: 0; bottom: 14%; }
  .chip-b { right: 0; bottom: -2%; }
  .weave-divider { height: 150px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sundae, .sundae-cherry, .sundae-drip, .sundae-sparkles path,
  .sundae-wafer, .hero-seal, .hero-chip, .scroll-cue, .medallion {
    animation: none;
  }
  .sundae-sparkles path { opacity: 0.7; transform: none; }
}
