/* ============================================================
   Fülscher Fleischwaren — base.css
   Design Tokens · Reset · Abstract Stripes · Utilities
   Geladen: GLOBAL (alle Seiten)
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --primary: #008CC2;
  --accent-1: #FCD3C3;
  --accent-2: #FFCDC7;
  --bg-offwhite: #FAFAFA;
  --bg-light: #F3F4F6;
  --bg-white: #FFFFFF;
  --text-dark: #111827;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  --glass-blur: blur(16px);

  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 100px;

  --transition-nav: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  font-family: var(--font-primary);
  background-color: transparent;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  margin: 0 0 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Vertical Craft Stripes Background ──────────────────────── */
.bg-stripes-system {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-stripe {
  position: absolute;
  top: -100%;
  bottom: -100%;
  height: 300%;
  will-change: transform;
}

.bg-stripe__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,10 Q30,50 10,90 T10,170' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  mask-size: 100% 200px;
  background: currentColor;
  opacity: 0.1;
}

/* ── Grain Overlay ──────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9997;
  animation: grain 0.4s steps(1) infinite;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-3%, -3%);
  }

  20% {
    transform: translate(2%, 4%);
  }

  30% {
    transform: translate(-4%, 1%);
  }

  40% {
    transform: translate(3%, -2%);
  }

  50% {
    transform: translate(-1%, 3%);
  }

  60% {
    transform: translate(4%, -1%);
  }

  70% {
    transform: translate(-2%, 2%);
  }

  80% {
    transform: translate(1%, -3%);
  }

  90% {
    transform: translate(-3%, 4%);
  }

  100% {
    transform: translate(2%, 1%);
  }
}

@media (max-width: 768px) {
  body::after {
    display: none;
  }

  .bg-stripe {
    will-change: auto;
  }
}

/* ── Utilities ─────────────────────────────────────────────── */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.btn-pill {
  display: inline-block;
  padding: 12px 32px;
  background: var(--bg-white);
  color: var(--text-dark);
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-pill:hover,
.btn-pill.is-active {
  background: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Shared Section Headers ──────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-header__intro {
  font-size: 1.125rem;
  color: rgba(17, 24, 39, 0.6);
  line-height: 1.6;
}

/* ── Shared Section Footer ─────────────────────────────────── */
.section-footer {
  text-align: center;
  margin-top: 60px;
}

/* ── Empty State (shared) ──────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(0, 140, 194, 0.2);
}

.empty-state__icon {
  color: rgba(0, 140, 194, 0.3);
  margin-bottom: 24px;
}

.empty-state__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.empty-state__text {
  font-size: 1rem;
  color: rgba(17, 24, 39, 0.5);
  max-width: 400px;
  margin: 0 auto;
}

/* ── Mobile Base Overrides (< 768px) ───────────────────────── */
@media (max-width: 768px) {

  /* Fix 40px whitespace loss on mobile */
  .container {
    padding: 0 20px;
  }

  /* Tighter section headers */
  .section-header {
    margin-bottom: 40px;
  }

  .section-header__title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin-bottom: 12px;
  }

  .section-header__intro {
    font-size: 1rem;
  }

  .section-footer {
    margin-top: 40px;
  }
}

/* ── Accessibility: prefers-reduced-motion ───────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable showcase card flip */
  .showcase-card__front,
  .showcase-card__back {
    transition: none;
  }

  .showcase-card:hover .showcase-card__front,
  .showcase-card.is-open .showcase-card__front {
    transform: none;
    opacity: 0;
  }

  .showcase-card:hover .showcase-card__back,
  .showcase-card.is-open .showcase-card__back {
    transform: rotateY(0deg);
    opacity: 1;
  }

  html {
    scroll-behavior: auto;
  }
}