/* ---------- Poppins (self-hosted, subset woff2) ---------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins/poppins-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins/poppins-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins/poppins-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins/poppins-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins/poppins-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins/poppins-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins/poppins-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins/poppins-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #1b1b1b;
  --bg-alt: #202020;
  --fg: #ffffff;
  --fg-muted: #d9d9d9;
  --line: #ffffff;
  --radius-pill: 999px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --content-max: 1320px;
  --transition-fast: 0.25s;
  --transition-slide: 0.85s;

  /* Reserved height of the fixed top nav; the top-left cloud starts below this,
     so the header itself no longer needs a left cloud gutter. */
  --nav-h: 128px;

  /* Fixed corner clouds. --cloud-len = on-screen vertical span, capped so the two
     left-edge clouds always stack without colliding; thickness follows the 2.483:1 art. */
  --cloud-len: clamp(120px, 30vh, 280px);
  --cloud-w: calc(var(--cloud-len) / 2.483);
  /* all corner clouds sit flush at the viewport edge, fully visible (no clipping) */
  --cloud-inset: calc(var(--cloud-w) * -0.5 - 2px);
  --cloud-inset-out: calc(var(--cloud-w) * -0.75 - 3px);
  --cloud-inset-right: -16px;
  /* Minimum left/right gutter every content block keeps clear of the clouds */
  --cloud-safe: calc(var(--cloud-w) * 0.88 + clamp(16px, 3vw, 40px));
  --cloud-safe-mobile: calc(var(--cloud-w) * 0.98 + clamp(16px, 3vw, 40px));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; 
  overflow-x: hidden;}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { font-weight: 700; margin: 0 0 1rem; }

.site-main { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
/* Home hero: center within the viewport space below the fixed-height nav, not the full 100vh box */
.site-main--home { min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h)); }

/* ---------- Corner cloud decoration ---------- */
/* cloud.svg intrinsic aspect ratio (w:h) ~= 2.483:1; rotated 90deg to hug the vertical screen edges.
   Fixed to the viewport so the frame stays put while the page scrolls vertically.
   z-index 2 puts them above the main content (e.g. the homepage logo) but still below
   the header nav; every content block reserves a --cloud-safe gutter so text never
   reaches the cloud zone at any width. */
.cloud-corner {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  color: #ffffff;
  opacity: 0;
  width: var(--cloud-w);
  height: var(--cloud-len);
  overflow: visible;
}
.cloud-corner svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cloud-len);
  height: var(--cloud-w);
  transform: translate(-50%, -50%) rotate(90deg);
}

.cloud-corner--tl {
  /* starts below the fixed nav, so nav pills never meet it */
  top: var(--nav-h);
  left: var(--cloud-inset);
}

.cloud-corner--bl {
  bottom: clamp(10px, 5vh, 130px);
  left: var(--cloud-inset-out);
}
/* relative sizing: right cloud biggest, top-left medium, bottom-left smallest */
.cloud-corner--tl svg {
  scale: 0.7;
}
.cloud-corner--bl svg {
  scale: 0.55;
}

.cloud-corner--br {
  /* vertically centred without a transform (GSAP animates transform on this node) */
  top: calc(50% - var(--cloud-len) / 2);
  right: var(--cloud-inset-right);
}
.cloud-corner--br svg {
  scale: 1;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* Tablet/small laptop: scale down a bit from desktop, still stacks without colliding */
@media (max-width: 1200px) {
  :root { --cloud-len: clamp(150px, 28vh, 240px); }
}
/* Very narrow phones: keep clouds prominent, scaled to viewport height like desktop */
@media (max-width: 600px) {
  :root { --cloud-len: clamp(160px, 30vh, 260px); }
}
/* Landscape phones: genuinely no vertical room for the second left cloud */
@media (max-height: 540px) {
  .cloud-corner--bl { display: none; }
}

/* ---------- Pill buttons ---------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.8em;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.pill-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast) ease-out;
  z-index: -1;
}
.pill-btn.hover-from-right::before { transform-origin: right; }
.pill-btn:hover::before,
.pill-btn:focus-visible::before { transform: scaleX(1); }
.pill-btn:hover,
.pill-btn:focus-visible {
  color: #000000;
  transition: color var(--transition-fast) ease-out;
}
.pill-btn.pill-btn--cta {
  text-transform: none;
  font-size: 1.2rem;
  padding: 1.1em 2.2em;
}

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* full-bleed: the top-left cloud is anchored below --nav-h, so no left gutter needed */
  padding: 2.5rem 3rem 1rem;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 3;
}
.main-nav { flex: 1; width: 100%; }
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}
.pill-nav .pill-btn { font-size: 1rem; }
.pill-nav .pill-btn.is-current { background: #ffffff; color: #000000; }

@media (max-width: 900px) {
  /* column layout: pills can wrap to two rows, so reserve more nav height */
  :root { --nav-h: 148px; }
  .site-header { padding: 1.8rem 1rem 0.5rem; flex-direction: column; align-items: center; }
  .pill-nav { gap: 0.5rem; justify-content: center; }
  .pill-nav .pill-btn { font-size: 1rem; padding: 0.65em 1.1em; }
}

@media (max-width: 620px) {
  .pill-nav .pill-btn { font-size: 0.8rem; padding: 0.65em 1.1em; }
}

@media (max-width: 500px) {
  .pill-nav .pill-btn { font-size: 0.65rem; padding: 0.65em 1.1em; }
}

/* ---------- Hero (home) ---------- */
.hero {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem max(3rem, var(--cloud-safe)) 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-brand { display: flex; flex-direction: column; align-items: flex-start; background: var(--bg); isolation: isolate; }
.hero-brand img { width: 100%; max-width: 480px; mix-blend-mode: screen; position: relative; top: -10px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.hero-order-wrap { display: flex; align-items: center; gap: 1rem; }
.hero-discount { font-size: 1.05rem; line-height: 1.6; }
.hero-discount .more-offers {
  display: inline-block;
  margin-top: 0.4rem;
  font-style: italic;
  text-decoration: underline;
  font-weight: 500;
}
.hero-contact { font-size: 1.1rem; line-height: 1.7; }

@media (max-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    /* cloud-safe is far too wide on phones and pushed the hero past the viewport */
    padding: 1.5rem max(1.25rem, calc(var(--cloud-w) - 40px)) 2rem;
    text-align: center;
  }
  .hero-brand, .hero-actions { align-items: center;  }
  .hero-actions {margin-top: -4rem;}
  .hero-brand img { max-width: 320px; max-height: 320px; margin: 0 auto; }
  .hero-discount { text-align: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--content-max);
  margin: 2rem auto 0;
  padding: 2rem max(3rem, var(--cloud-safe)) 3rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}
.footer-payments { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.footer-payment-icon { width: 40px; height: 25px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,0.15); }
.footer-instagram { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.footer-bottom { 
  flex-direction: column; 
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 1rem;
  margin-top: 1.25rem;
}
.footer-legal { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.footer-legal a { text-decoration: none; opacity: 0.85; }
.footer-copy { margin: 0; font-size: 0.75rem; opacity: 0.5; }

@media (max-width: 900px) {
  .site-footer { padding: 1.5rem max(1.25rem, var(--cloud-safe)) 2rem; text-align: left; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ---------- Öffnungszeiten ---------- */
.page-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem max(6rem, var(--cloud-safe)) 4rem;
}
.hours-title { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 2rem; }
.hours-column { max-width: 520px; }
.hours-table { display: table; border-spacing: 0 0.6rem; }
.hours-row { display: table-row; font-size: 1.15rem; }
.hours-day { display: table-cell; padding-right: 3rem; color: var(--fg); }
.hours-time { display: table-cell; color: var(--fg-muted); }
.hours-note { margin-top: 2.5rem; font-weight: 600; font-size: 0.95rem; }

@media (max-width: 900px) {
  .page-wrap { padding: 2.5rem max(1.5rem, var(--cloud-safe-mobile)) 3rem; }
  .hours-row { font-size: 1rem; }
  .hours-day { padding-right: 1.5rem; }

}

/* ---------- Über uns ---------- */
.about-title { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; text-align: center; margin-bottom: 2.5rem; }
.about-body { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.75rem; }
.about-body p { margin: 0; font-size: 1.05rem; line-height: 1.7; }
.about-body p:nth-of-type(even) { text-align: right; }

@media (max-width: 900px) {
  .about-title { text-align: left; }
  .about-body p, .about-body p:nth-of-type(even) { text-align: left; }
}

/* ---------- Aktionen ---------- */
.promo-title { font-size: 1.6rem; text-transform: none; text-align: left; margin-bottom: 2.5rem; }
.promo-list { margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.promo-item h3 {
  font-size: 1.05rem;
  font-style: italic;
  text-decoration: underline;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.promo-item p { margin: 0; font-size: 1rem; }
.promo-note { margin-top: 1rem; font-size: 0.95rem; color: var(--fg-muted); }

/* ---------- Generic content page ---------- */
.content-title { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 1.5rem; }
.content-body { max-width: 760px; line-height: 1.7; }
.content-body h2 { font-size: 1.2rem; margin-top: 2rem; }

/* ---------- Page-level order CTA ---------- */
.page-cta { margin-top: 2.5rem; }
.page-cta--center { text-align: center; }

/* ---------- Closed-day note from the opening-hours feed ---------- */
.is-closed { color: #ff6b6b; font-weight: 600; }

/* ---------- Phone button (every page) ---------- */
.phone-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  padding: 0.8em 1.4em;
  background: var(--bg);
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}
.phone-fab svg { width: 1.15em; height: 1.15em; flex: none; }
.site-footer { padding-bottom: 6rem; }

/* Stacked (vertical) layout: the button sits statically below the content. */
@media (max-width: 920px) {
  .phone-fab {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-width: 1.5px;
    margin: 1.25rem auto 0;
    box-shadow: none;
  }
  /* the 100dvh centring box would push the button a full screen down */
  .site-main, .site-main--home { min-height: auto; }
  /* the cloud-safe gutter was far wider than the phone and pushed content right */
  .page-wrap { max-width: 100%; padding-inline: var(--cloud-gutter); }
  .site-footer { padding-inline: var(--cloud-gutter); }
  /* centre every block on the screen, on the same axis as the nav and the call button */
  .hours-title, .promo-title, .about-title, .content-title { text-align: center; }
  .hours-column { width: fit-content; margin-inline: auto; }
  .hours-note, .promo-note, .promo-item, .page-cta { text-align: center; }
  .promo-list { align-items: center; }
  .content-body { margin-inline: auto; }
  .phone-fab span { display: none; }
  .phone-fab svg { width: 1.3rem; height: 1.3rem; }
  .site-footer { padding-bottom: 2rem; }
}

/* Stacked/mobile layout: right cloud 5% smaller */
@media (max-width: 920px) {
  .cloud-corner--br svg { scale: 0.95; }
  :root { --cloud-inset-right: -14px; }
  /* smaller clouds overall (len drives width and height of all three) */
  :root {
    --cloud-len: clamp(130px, 21vh, 190px);
    /* side gutter every block keeps so nothing runs under a corner cloud */
    --cloud-gutter: calc(var(--cloud-w) * 0.85 + 6px);
  }
  .hero { padding-inline: var(--cloud-gutter); }
}

/* Narrow phones: keep the four nav pills on one row */
@media (max-width: 500px) {
  .site-header { padding-inline: 0.5rem; }
  .pill-nav { gap: 0.35rem; flex-wrap: nowrap; }
  .pill-nav .pill-btn { font-size: 0.62rem; padding: 0.6em 0.9em; }
}
