/* ------------------------------------------------------------------ *
 * LakeLand-Event · Mietmaterial-Katalog
 * Eigenes Design-System, deckungsgleich mit lakeland-event.ch.
 * Kein Bootstrap, kein CDN: alles lokal, ein Request.
 * ------------------------------------------------------------------ */

/* Fonts (selbst gehostet, Variable-wght-Achse, latin + latin-ext) ------- */
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design-Tokens ---------------------------------------------------------- */
:root {
  --ink-950: #10141c;
  --ink-900: #191e29;
  --ink-850: #1f2531;
  --ink-800: #272e3d;
  --ink-700: #333b4c;
  --ink-600: #414a5d;
  --line: #333c4d;

  --fog-50: #f5f7fb;
  --fog-100: #e8ebf2;
  --fog-200: #d6dae6;
  --fog-300: #b6bccc;
  --fog-400: #98a0b5;
  --fog-500: #737b91;

  --pine-400: #2fd171;
  --pine-500: #16a34a;
  --lake-400: #4fd0ff;
  --lake-500: #1ba0e2;

  --font-display: 'Space Grotesk Variable', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;
  --wrap: 82rem;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  background: var(--ink-950);
  color: var(--fog-200);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--lake-400); text-decoration: none; }
a:hover { color: var(--fog-50); }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fog-50);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

::selection { background: var(--pine-400); color: #0b0b0b; }

:focus-visible {
  outline: 2px solid var(--lake-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--fog-50); color: var(--ink-950);
  padding: 0.5rem 1rem; border-radius: 999px;
  font-weight: 600;
}

/* Layout-Helfer ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .wrap { padding-inline: 2rem; } }

.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: 0.01em; }
.text-gradient {
  background: linear-gradient(100deg, var(--pine-400), var(--lake-400) 55%, var(--lake-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fog-300);
}
.eyebrow::before {
  content: '';
  width: 2rem; height: 1px;
  background: var(--pine-400);
}

/* Aurora ----------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  /* z-index öffnet hier einen eigenen Stacking-Context: die Dither-Schicht
   * unten blendet also gegen DIESE Fläche. Ohne deckenden Grund würde sie
   * gegen Transparenz blenden und als grauer Schleier sichtbar. */
  background-color: inherit;
}
/* Weicher, mehrstufiger Verlauf statt harter Kreis + starker Blur: das
 * erzeugt deutlich weniger Quantisierungsstufen (sichtbare Ringe). */
.aurora span {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
}
.aurora .glow-pine {
  background: radial-gradient(closest-side,
    rgb(47 209 113 / 0.30),
    rgb(47 209 113 / 0.20) 32%,
    rgb(47 209 113 / 0.10) 55%,
    rgb(47 209 113 / 0.035) 74%,
    rgb(47 209 113 / 0) 100%);
  width: 40rem; height: 40rem;
  left: -14rem; top: -9rem;
  animation: float-glow 15s ease-in-out infinite;
}
.aurora .glow-lake {
  background: radial-gradient(closest-side,
    rgb(79 208 255 / 0.26),
    rgb(79 208 255 / 0.17) 32%,
    rgb(79 208 255 / 0.085) 55%,
    rgb(79 208 255 / 0.03) 74%,
    rgb(79 208 255 / 0) 100%);
  width: 36rem; height: 36rem;
  right: -12rem; top: -1rem;
  animation: float-glow 19s ease-in-out infinite reverse;
}

/* Dithering: eine feine, entsättigte Rauschtextur bricht die verbleibenden
 * 8-Bit-Stufen auf, so wirkt der Verlauf stufenlos ("HD"). */
.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes float-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(2%, -3%, 0) scale(1.08); opacity: 0.85; }
}

/* Reveal (nur mit JS) ---------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 1.05em; height: 1.05em; }

.btn--primary {
  background: var(--fog-50);
  color: var(--ink-950);
}
.btn--primary:hover { background: #fff; color: var(--ink-950); transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--fog-100);
  background: rgb(25 30 41 / 0.6);
}
.btn--ghost:hover { background: var(--ink-800); border-color: var(--ink-600); color: var(--fog-50); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.83rem; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgb(16 20 28 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--fog-50);
}
.brand:hover { color: var(--fog-50); }
.brand img { width: 2rem; height: 2rem; object-fit: contain; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lake-400);
}
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Kopf-Navigation: die einzige Menü-Ebene neben der Kategorieleiste. */
.site-nav { display: none; gap: 0.25rem; }
@media (min-width: 860px) { .site-nav { display: flex; } }
.site-nav__link {
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fog-400);
  transition: color 0.2s, background-color 0.2s;
}
.site-nav__link:hover { color: var(--fog-50); background: var(--ink-850); }
.site-nav__link.is-active { color: var(--fog-50); background: var(--ink-800); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  /* Muss deckend sein: sonst blendet die Dither-Schicht (mix-blend-mode)
   * gegen einen leeren Stacking-Context und wird zum grauen Schleier. */
  background-color: var(--ink-950);
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 2rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 2.5rem; }
}
.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 6.5vw, 4rem);
  max-width: 18ch;
}
.hero__lead {
  margin-top: 1.15rem;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--fog-300);
}
.hero__lead strong { color: var(--fog-50); font-weight: 600; }

/* Kompakter Kopf auf Kategorie-, Listen- und Suchseiten. */
.hero--compact { padding-bottom: 1.25rem; }
.hero--compact h1 { margin-top: 0.65rem; font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.hero--compact .hero__lead { margin-top: 0.5rem; font-size: 0.95rem; }
.hero--compact .searchbar { margin-top: 1.5rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fog-500);
}
.crumbs a { color: var(--fog-400); }
.crumbs a:hover { color: var(--lake-400); }
.crumbs span[aria-hidden] { color: var(--ink-600); }

/* Suche ------------------------------------------------------------------ */
.searchbar {
  position: relative;
  margin-top: 2rem;
  max-width: 40rem;
}
.searchbar input {
  width: 100%;
  background: rgb(25 30 41 / 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fog-50);
  padding: 0.9rem 6.6rem 0.9rem 3rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  backdrop-filter: blur(8px);
}
.searchbar input::placeholder { color: var(--fog-500); }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar input:focus {
  outline: none;
  border-color: var(--lake-400);
  box-shadow: 0 0 0 4px rgb(79 208 255 / 0.14);
  background: var(--ink-900);
}
.searchbar__icon {
  position: absolute;
  left: 1.15rem; top: 50%;
  transform: translateY(-50%);
  width: 1.25rem; height: 1.25rem;
  color: var(--fog-500);
  pointer-events: none;
}
.searchbar__submit {
  position: absolute;
  right: 0.35rem; top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.9rem;
  min-height: 2.9rem;
  background: var(--fog-50);
  color: var(--ink-950);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s;
}
.searchbar__submit:hover { background: #fff; }
.searchbar__submit .label { display: none; }
.searchbar__submit svg { width: 1.15rem; height: 1.15rem; }
@media (min-width: 560px) {
  .searchbar__submit { padding: 0.6rem 1.3rem; }
  .searchbar__submit .label { display: inline; }
  .searchbar__submit svg { display: none; }
}
.searchbar__clear {
  position: absolute;
  right: 4rem; top: 50%;
  transform: translateY(-50%);
  width: 1.75rem; height: 1.75rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--fog-400);
}
.searchbar__clear:hover { background: var(--ink-800); color: var(--fog-50); }
.searchbar.has-value .searchbar__clear { display: flex; }

/* Kennzahlen ------------------------------------------------------------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}
.stats div { line-height: 1.2; }
.stats dt {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fog-50);
}
.stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fog-500);
}

/* Kategorie-Chips -------------------------------------------------------- */
.chipbar {
  /* Der Header ist fixiert, die Leiste klebt also darunter (auch mobil). */
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(16 20 28 / 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.chipbar .wrap {
  /* Chips dürfen bis an den Rand scrollen, der Fade zeigt "es geht weiter". */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent);
}
.chipbar__scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.75rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chipbar__scroll::-webkit-scrollbar { display: none; }
.chipbar__scroll--sub {
  padding-top: 0;
  padding-bottom: 0.75rem;
}
/* Ab Tablet ist Platz für alle Kategorien: umbrechen statt seitlich
 * wegschneiden. Der Fade wird dort gegenstandslos und stört nur. */
@media (min-width: 1000px) {
  .chipbar .wrap { -webkit-mask-image: none; mask-image: none; }
  .chipbar__scroll { flex-wrap: wrap; overflow-x: visible; row-gap: 0.45rem; }
  .chipbar__scroll--sub { padding-top: 0.15rem; }
  /* Umgebrochen wird die Leiste bis zu vier Zeilen hoch, das würde beim
   * Scrollen zu viel Viewport fressen. Sticky bleibt sie nur mobil. */
  .chipbar { position: static; }
}
.chip svg { width: 0.95rem; height: 0.95rem; }
.chip--sub {
  border-color: transparent;
  background: var(--ink-850);
  font-size: 0.82rem;
  padding-block: 0.4rem;
}
.chip--sub.is-active { background: rgb(79 208 255 / 0.12); border-color: rgb(79 208 255 / 0.35); color: var(--fog-50); }
.chip--sub.is-active .chip__count { color: var(--lake-400); }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fog-300);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { background: var(--ink-800); color: var(--fog-50); border-color: var(--ink-600); }
.chip__count {
  font-size: 0.72rem;
  color: var(--fog-500);
  font-variant-numeric: tabular-nums;
}
.chip.is-active {
  background: var(--fog-50);
  border-color: var(--fog-50);
  color: var(--ink-950);
  font-weight: 600;
}
.chip.is-active .chip__count { color: rgb(16 20 28 / 0.6); }

/* Hauptlayout: volle Breite, keine Sidebar ------------------------------- */
.catalog { padding-block: 1rem 4rem; }
.section { padding-top: 2.5rem; scroll-margin-top: calc(var(--header-h) + 4rem); }
.section__head { margin-bottom: 1.5rem; }
.section__head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.section__head p { margin-top: 0.4rem; color: var(--fog-400); font-size: 0.95rem; }

/* Kategorie-Kacheln ------------------------------------------------------ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tile-grid--sm { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; } }

.ctile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-900);
  overflow: hidden;
  color: var(--fog-200);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
}
.ctile:hover {
  transform: translateY(-4px);
  border-color: rgb(79 208 255 / 0.35);
  box-shadow: 0 24px 45px -28px rgb(0 0 0 / 0.9);
  color: var(--fog-200);
}
.ctile__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #ffffff, #e9edf4);
  overflow: hidden;
}
.ctile__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.6s var(--ease);
}
.ctile:hover .ctile__media img { transform: scale(1.06); }
.ctile__body { padding: 0.95rem 1.1rem 1.15rem; }
.ctile__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fog-50);
}
.ctile__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--fog-500);
}
.tile-grid--sm .ctile__name { font-size: 0.95rem; }

/* Toolbar ---------------------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.toolbar__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fog-50);
}
.toolbar__meta {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--fog-400);
}
.toolbar__meta strong { color: var(--fog-100); font-weight: 600; }
.toolbar__actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--ink-900);
  color: var(--fog-200);
  border-radius: 999px;
  padding: 0.55rem 2.4rem 0.55rem 1.1rem;
  font-size: 0.88rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a0b5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.select:hover { border-color: var(--ink-600); }
.select:focus { outline: none; border-color: var(--lake-400); box-shadow: 0 0 0 3px rgb(79 208 255 / 0.15); }

/* Aktiver Filter --------------------------------------------------------- */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgb(79 208 255 / 0.3);
  background: rgb(79 208 255 / 0.08);
  color: var(--fog-100);
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.9rem;
  font-size: 0.83rem;
}
.filter-pill:hover { color: var(--fog-50); background: rgb(79 208 255 / 0.14); }
.filter-pill svg { width: 0.85rem; height: 0.85rem; }

/* Produkt-Grid ----------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-900);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: rgb(79 208 255 / 0.35);
  box-shadow: 0 24px 45px -28px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(79 208 255 / 0.06);
}
.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #ffffff, #e9edf4);
  overflow: hidden;
}
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.6s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__badge {
  position: absolute;
  left: 0.7rem; top: 0.7rem;
  max-width: calc(100% - 1.4rem);
  border-radius: 999px;
  background: rgb(16 20 28 / 0.78);
  color: var(--fog-100);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(6px);
  padding: 0.28rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard__zoom {
  position: absolute;
  right: 0.7rem; bottom: 0.7rem;
  width: 2.1rem; height: 2.1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgb(16 20 28 / 0.82);
  color: var(--fog-50);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.pcard__zoom svg { width: 1rem; height: 1rem; }
.pcard:hover .pcard__zoom, .pcard:focus-visible .pcard__zoom { opacity: 1; transform: none; }

.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  padding: 1rem 1.15rem 1.15rem;
}
.pcard__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fog-50);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__sku { font-size: 0.8rem; color: var(--fog-500); }
.pcard__sku span { color: var(--fog-300); }
.pcard__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.pcard__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pine-400);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pcard__price small { font-size: 0.68rem; font-weight: 500; color: var(--fog-500); margin-left: 0.2rem; }
/* Der Detail-Dialog braucht JS, also die Affordanz auch nur mit JS zeigen. */
.pcard { cursor: default; }
.pcard__more, .pcard__zoom { display: none; }
html.js .pcard { cursor: pointer; }
/* Auf schmalen Karten würde "Details" den Preis umbrechen, dort tippt man
 * die Karte ohnehin direkt an. */
@media (min-width: 700px) {
  html.js .pcard__more { display: block; font-size: 0.78rem; color: var(--fog-500); }
}
html.js .pcard__zoom { display: flex; }
.pcard:hover .pcard__more { color: var(--lake-400); }

/* Leerzustand ------------------------------------------------------------ */
.empty {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: rgb(25 30 41 / 0.4);
}
.empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: var(--ink-800);
  color: var(--lake-400);
  margin-bottom: 1rem;
}
.empty h3 { font-size: 1.15rem; }
.empty p { margin-top: 0.5rem; color: var(--fog-400); }
.empty .btn { margin-top: 1.5rem; }

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid #f5a623;
  border-radius: 16px;
  background: var(--ink-900);
  padding: 1.25rem 1.5rem;
  color: var(--fog-200);
}

/* Pagination ------------------------------------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}
.pager a, .pager span {
  min-width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink-900);
  color: var(--fog-300);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pager a:hover { background: var(--ink-800); color: var(--fog-50); border-color: var(--ink-600); }
.pager .is-current {
  background: var(--fog-50);
  border-color: var(--fog-50);
  color: var(--ink-950);
  font-weight: 700;
}
.pager .is-disabled, .pager .gap {
  background: transparent;
  border-color: transparent;
  color: var(--fog-500);
}
.pager svg { width: 1rem; height: 1rem; }
.pager__info {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--fog-500);
}
.pager__hide-sm { display: none; }
@media (min-width: 560px) { .pager__hide-sm { display: inline-flex; } }

.loadmore { display: flex; justify-content: center; margin-top: 2.5rem; }

/* Modal (Produktdetail) -------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
}
.modal.is-open { visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(6 8 12 / 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(58rem, 100%);
  max-height: min(46rem, 92svh);
  overflow-y: auto;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.9);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  right: 0.85rem; top: 0.85rem;
  z-index: 2;
  width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgb(16 20 28 / 0.75);
  color: var(--fog-100);
  border: 1px solid var(--line);
}
.modal__close:hover { background: var(--ink-800); color: var(--fog-50); }
.modal__close svg { width: 1.1rem; height: 1.1rem; }
.modal__body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .modal__body { grid-template-columns: 1.05fr 1fr; }
}
.modal__media {
  background: linear-gradient(180deg, #ffffff, #e9edf4);
  aspect-ratio: 4 / 3;
}
@media (min-width: 768px) { .modal__media { aspect-ratio: auto; height: 100%; min-height: 22rem; } }
.modal__media img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.modal__info { padding: 1.5rem 1.5rem 1.75rem; }
@media (min-width: 768px) { .modal__info { padding: 2.25rem; } }
.modal__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lake-400);
}
.modal__info h2 { margin-top: 0.7rem; font-size: clamp(1.35rem, 3.5vw, 1.9rem); }
.modal__specs {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.modal__specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.modal__specs dt { color: var(--fog-400); }
.modal__specs dd { margin: 0; color: var(--fog-100); text-align: right; }
.modal__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pine-400);
  font-variant-numeric: tabular-nums;
}
.modal__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.75rem; }
.modal__hint { margin-top: 1rem; font-size: 0.8rem; color: var(--fog-500); }

/* CTA-Band --------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--ink-900);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 4rem;
}
@media (min-width: 768px) { .cta { padding: 4rem 3rem; } }
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta p { margin: 0.9rem auto 0; max-width: 42ch; color: var(--fog-300); }
.cta .btn { margin-top: 1.75rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  background: var(--ink-900);
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; } }
.site-footer h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fog-500);
  margin-bottom: 1rem;
}
.site-footer li + li { margin-top: 0.65rem; }
.site-footer a { color: var(--fog-300); font-size: 0.9rem; }
.site-footer a:hover { color: var(--lake-400); }
.site-footer__about { font-size: 0.9rem; color: var(--fog-400); max-width: 30ch; margin-top: 1.25rem; }
.site-footer address { font-style: normal; font-size: 0.9rem; color: var(--fog-400); }
.site-footer address strong { display: block; color: var(--fog-200); font-weight: 500; }
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  font-size: 0.78rem;
  color: var(--fog-500);
}
@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__links a { font-size: 0.78rem; color: var(--fog-500); }
.site-footer__links a:hover { color: var(--fog-200); }

body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
