/*
 * style.css – Hauptstylesheet SG Bad Segeberg Merch
 *
 * Mobile-first, minimalistisch, modern
 * Basisfarbe: Weiß | Akzent: #B22222 (Rot)
 * Schrift: Inter (lokal) mit System-Fallback
 */

/* ═══════════════════════════════════════════
   Font Face – Inter (lokal gehostet)
   Lade Inter-Dateien in /public/fonts/
   ═══════════════════════════════════════════ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter'),
       url('/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Inter SemiBold'),
       url('/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Inter Bold'),
       url('/fonts/Inter-Bold.woff2') format('woff2');
}

/* ═══════════════════════════════════════════
   CSS Custom Properties
   ═══════════════════════════════════════════ */
:root {
  /* Farben */
  --color-primary: #B22222;
  --color-primary-dark: #8B1A1A;
  --color-primary-light: #D44444;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-alt: #f5f5f5;
  --color-border: #eaeaea;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;

  /* Typografie */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

  /* Abstände */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --transition: 200ms ease;
}

/* ═══════════════════════════════════════════
   Reset & Basis
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(246, 248, 252, 0.92) 48%, rgba(241, 245, 249, 0.9) 100%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ═══════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.main-content {
  flex: 1;
}

.section {
  padding: var(--space-2xl) 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════
   Navigation (Sticky)
   ═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.nav-logo:hover {
  color: var(--color-primary);
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav-center-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-width: 0;
}

.nav-center-card {
  width: 86px;
  height: 46px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav-center-card--light {
  background: rgba(255, 255, 255, 0.9);
}

.nav-center-card--large {
  width: 110px;
  height: 58px;
}

.nav-center-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -14px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-center-media {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    font-size: var(--font-size-lg);
    padding: var(--space-sm) 0;
  }
}

/* ═══════════════════════════════════════════
   Banner
   ═══════════════════════════════════════════ */
.banner {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.banner--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-bottom: 1px solid #fde68a;
}

/* ═══════════════════════════════════════════
   Landing Hero + Foto-Bereiche
   ═══════════════════════════════════════════ */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4rem) 0;
  background:
    radial-gradient(1100px 560px at 12% -22%, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 252, 0.9) 42%, rgba(232, 238, 247, 0.72) 100%),
    linear-gradient(132deg, #f9fbfd 0%, #e9eff6 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: auto -120px -220px auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 116, 139, 0.16) 0%, rgba(100, 116, 139, 0) 72%);
  pointer-events: none;
}

.landing-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.landing-copy {
  max-width: 620px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: var(--space-md);
}

.landing-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin-bottom: var(--space-md);
}

.landing-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: #475569;
  max-width: 54ch;
  margin-bottom: var(--space-xl);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero-closed {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  font-style: italic;
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.hero-photo {
  margin: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--glass-shadow);
  padding: var(--space-lg);
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
}

.hero-photo--main {
  grid-column: 1 / -1;
}

.photo-wall-section {
  padding-top: var(--space-3xl);
}

.photo-wall-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 62ch;
  margin: 0 auto var(--space-xl);
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.photo-tile {
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--glass-shadow);
  min-height: 170px;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-tile--wide {
  grid-column: span 2;
}

.featured-section {
  padding-top: var(--space-lg);
}

.featured-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 22px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.section-title--left {
  text-align: left;
  margin-bottom: var(--space-md);
}

.featured-copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 60ch;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--color-primary);
}

.featured-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.featured-mini {
  margin: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  min-height: 150px;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 900px) {
  .landing-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-2xl);
  }

  .hero-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .hero-photo--main {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 360px;
  }

  .hero-photo--side,
  .hero-photo--accent {
    min-height: 170px;
  }

  .photo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .photo-tile--wide {
    grid-column: span 2;
  }

  .photo-tile--tall {
    grid-row: span 2;
    min-height: 360px;
  }

  .featured-split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* ═══════════════════════════════════════════
   Steps / Info Section
   ═══════════════════════════════════════════ */
.section-title {
  text-align: center;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.step-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-xl);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.step-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.step-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════════════════════════════════
   Page Title
   ═══════════════════════════════════════════ */
.page-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(180deg, #d53b3b 0%, #b22222 100%);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(178, 34, 34, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #c13232 0%, #9d1f1f 100%);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--glass-bg-strong);
  color: var(--color-text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
}

.btn-secondary:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.btn-success {
  background: var(--color-success);
  color: var(--color-white);
}

.btn-success:hover {
  background: #15803d;
  color: var(--color-white);
}

.btn-warning {
  background: var(--color-warning);
  color: var(--color-white);
}

.btn-warning:hover {
  background: #b45309;
  color: var(--color-white);
}

.btn-text {
  background: none;
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-sm);
}

.btn-text:hover {
  color: var(--color-error);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: var(--font-size-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-remove {
  font-size: var(--font-size-sm);
}

/* ═══════════════════════════════════════════
   Products Grid
   ═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border-color: rgba(178, 34, 34, 0.28);
  transform: translateY(-3px);
}

.product-image {
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 251, 0.82) 58%, rgba(226, 232, 240, 0.75) 100%);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.product-image img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(178, 34, 34, 0.13);
  border: 1px solid rgba(178, 34, 34, 0.25);
  color: var(--color-primary-dark);
}

.product-info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
}

.product-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.product-name {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  margin: 0;
}

.product-description {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin: 0;
}

.product-price {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  margin: 0;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.product-meta-item {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.product-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-form-inline {
  margin-top: var(--space-xs);
}

.form-group-size {
  margin-bottom: var(--space-xs);
}

.product-order-row {
  display: grid;
  grid-template-columns: minmax(88px, 110px) 1fr;
  gap: var(--space-md);
  align-items: end;
}

.product-link-wrap {
  display: block;
}

.product-title-link {
  color: inherit;
}

.product-title-link:hover {
  color: var(--color-primary);
}

.product-detail-btn {
  margin: 0;
}

/* ═══════════════════════════════════════════
   Product Detail Page
   ═══════════════════════════════════════════ */
.product-detail-section {
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.product-detail-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: clamp(1rem, 3vw, 2rem);
}

.product-detail-layout-fokus {
  border-top: 4px solid rgba(178, 34, 34, 0.42);
}

.product-detail-layout-magazin {
  border-left: 6px solid rgba(178, 34, 34, 0.36);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.84) 0%, rgba(247, 250, 255, 0.7) 100%);
}

.product-detail-layout-clean {
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.92);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.product-detail-visuals {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-detail-image-wrap {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.product-detail-image {
  width: 100%;
  max-width: 360px;
  max-height: 360px;
  object-fit: contain;
}

.detail-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.detail-thumb {
  margin: 0;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-height: 110px;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  max-height: 96px;
  object-fit: contain;
}

.product-detail-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(178, 34, 34, 0.12);
  border: 1px solid rgba(178, 34, 34, 0.24);
}

.product-detail-title {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.product-detail-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.product-detail-description {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.detail-highlights {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.detail-highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.detail-highlights li span:first-child {
  color: var(--color-primary);
  font-weight: 700;
}

.product-detail-meta h2 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-sm);
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-form-detail {
  max-width: 320px;
}

.detail-order-box {
  padding: var(--space-md);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--glass-border);
}

.detail-panels {
  padding-top: var(--space-xl);
}

.detail-panels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.detail-panel {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: var(--space-lg);
}

.detail-panel h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.detail-panel p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.related-products {
  padding-bottom: 0;
}

.related-card {
  display: block;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--color-text);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

.related-image-wrap {
  background: rgba(255, 255, 255, 0.72);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--glass-border);
}

.related-image-wrap img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.related-content {
  padding: var(--space-lg);
}

.related-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.related-content p {
  color: var(--color-primary);
  font-weight: 700;
}

@media (min-width: 900px) {
  .product-detail-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
    align-items: center;
  }

  .detail-thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-panels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

.form-input--qty {
  width: 80px;
  text-align: center;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-check-label {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  cursor: pointer;
}

.form-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  text-align: center;
}

/* ═══════════════════════════════════════════
   Alerts
   ═══════════════════════════════════════════ */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-sm);
}

.alert ul {
  margin-top: var(--space-sm);
  padding-left: var(--space-lg);
  list-style: disc;
}

.alert--error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid #fecaca;
}

.alert--success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #bbf7d0;
}

/* ═══════════════════════════════════════════
   Cart
   ═══════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--color-text-muted);
}

.empty-state p {
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-lg);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-item-image img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.cart-item-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.cart-item-size {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.cart-item-price {
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-xs);
}

.cart-item-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-qty-form {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-item-subtotal {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
}

.subtotal-value {
  font-weight: 600;
}

@media (min-width: 480px) {
  .cart-item {
    grid-template-columns: 80px 1fr auto;
  }

  .cart-item-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
  }

  .cart-item-subtotal {
    grid-column: 1 / -1;
  }
}

.cart-summary {
  background: var(--color-bg-alt);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.cart-total strong {
  color: var(--color-primary);
}

.cart-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .cart-actions {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ═══════════════════════════════════════════
   Checkout
   ═══════════════════════════════════════════ */
.checkout-summary {
  background: var(--color-bg-alt);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.checkout-subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.checkout-item--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.checkout-item-note {
  margin: 0;
  width: 100%;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  font-size: var(--font-size-lg);
}

.checkout-total strong {
  color: var(--color-primary);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.checkout-action-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .checkout-action-row {
    flex-direction: row;
  }
}

/* ═══════════════════════════════════════════
   Confirmation
   ═══════════════════════════════════════════ */
.confirmation-box {
  padding: var(--space-2xl) 0;
}

.confirmation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 2.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-xl);
  border: 3px solid var(--color-success);
}

.confirmation-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.confirmation-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.detail-value {
  font-weight: 600;
}

.detail-value--highlight {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
}

.confirmation-info {
  text-align: left;
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.confirmation-info h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.confirmation-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.payment-card {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
}

.payment-card p {
  margin: 0.2rem 0;
}

.js-auto-pdf-download {
  display: none;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .confirmation-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════
   Error Page
   ═══════════════════════════════════════════ */
.error-box {
  padding: var(--space-3xl) 0;
}

.error-message {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2xl);
}

/* ═══════════════════════════════════════════
   Admin
   ═══════════════════════════════════════════ */
.admin-login-box {
  max-width: 400px;
  margin: var(--space-3xl) auto;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: left;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.admin-header-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--color-bg-alt);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.ordering-status {
  font-size: var(--font-size-sm);
}

.text-success {
  color: var(--color-success);
}

.text-danger {
  color: var(--color-error);
}

.inline-form {
  display: inline;
}

.admin-product-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  padding: 0.3rem;
}

.admin-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.admin-product-form,
.admin-account-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.admin-panel-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 980px) {
  .admin-panel-grid {
    grid-template-columns: 360px 1fr;
    align-items: start;
  }
}

/* Admin Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.admin-table th,
.admin-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  white-space: nowrap;
}

.admin-table .row-delivered {
  opacity: 0.6;
}

.cell-items {
  max-width: 200px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cell-notes {
  max-width: 240px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.note-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 100%;
}

.note-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.note-open-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

.note-open-btn:hover,
.note-open-btn:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.note-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.55);
}

.note-modal.is-open {
  display: flex;
}

.note-modal__panel {
  width: min(640px, 100%);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.note-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.note-modal__header h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

.note-modal__close {
  border: none;
  border-radius: 8px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
}

.note-modal__close:hover,
.note-modal__close:focus-visible {
  background: #ececec;
}

.note-modal__body {
  padding: 1rem;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  color: var(--color-text);
}

body.modal-open {
  overflow: hidden;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge--pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.status-meta {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Responsive Admin Table (Mobile) */
@media (max-width: 768px) {
  .admin-table thead {
    display: none;
  }

  .admin-table tbody tr {
    display: block;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
  }

  .admin-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: none;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: var(--space-md);
    flex-shrink: 0;
  }

  .cell-items {
    max-width: none;
  }

  .cell-notes {
    max-width: none;
  }

  .cell-notes .note-preview-wrap {
    max-width: 65%;
    margin-left: auto;
    text-align: right;
    align-items: flex-end;
  }
}

/* ═══════════════════════════════════════════
   Legal Pages
   ═══════════════════════════════════════════ */
.legal-page h2 {
  font-size: var(--font-size-lg);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.legal-page p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.legal-page ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  list-style: disc;
}

.legal-page li {
  margin-bottom: var(--space-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.legal-page a {
  color: var(--color-primary);
}

.legal-page strong {
  color: var(--color-text);
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.site-footer {
  background: rgba(255, 255, 255, 0.64);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0;
  margin-top: auto;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-md);
  line-height: 1.6;
}

.footer-copy {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   ANIMATIONEN – Scroll Reveal & Parallax
   ═══════════════════════════════════════════ */

/* Scroll Reveal – Elemente von unten */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal von Links */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal von Rechts */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal mit Zoom */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Items */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Animation */
.floating {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.floating:nth-child(2) { animation-delay: -2s; }
.floating:nth-child(3) { animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

/* Header Scroll Effects */
.site-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.header-scrolled .nav-container {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.header-hidden {
  transform: translateY(-100%);
}

/* Gradient Animation */
.gradient-animated {
  background: linear-gradient(-45deg, #B22222, #D44444, #8B1A1A, #ff6b6b);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Decorative Shapes – Floating Background Elements */
.decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.decoration-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.05;
}

.decoration-blob {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  opacity: 0.03;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blobMorph 15s ease-in-out infinite;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Glow Effect */
.glow {
  box-shadow: 0 0 40px rgba(178, 34, 34, 0.3);
}

.glow-hover:hover {
  box-shadow: 0 0 50px rgba(178, 34, 34, 0.4);
  transition: box-shadow 0.3s ease;
}

/* Line Drawing Animation */
.line-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: lineDraw 2s ease forwards;
}

@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

/* Blur In Animation */
.blur-in {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.blur-in.revealed {
  opacity: 1;
  filter: blur(0);
}

/* Typewriter Effect (CSS only, for short text) */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--color-primary);
  white-space: nowrap;
  animation: typing 3s steps(30, end), blink 0.75s step-end infinite;
  width: fit-content;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--color-primary); }
}

/* Ripple Effect on Click */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::before {
  width: 300px;
  height: 300px;
}

/* Smooth Image Hover */
.img-hover {
  overflow: hidden;
}

.img-hover img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-hover:hover img {
  transform: scale(1.08);
}

/* Badge Bounce */
.badge-bounce {
  animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Underline Animation on Hover */
.underline-hover {
  position: relative;
}

.underline-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.underline-hover:hover::after {
  width: 100%;
}

/* Number Counter Styling */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Reduced Motion – Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom,
  .stagger-item,
  .blur-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
