/* ================= DESIGN SYSTEM ================= */
:root {
  /* Fonts */
  --font-body: "parabolica", sans-serif;     /* Adobe/Typekit */
  --font-serif: "Playfair Display", serif;   /* Google Font */
  --font-logo: "gotham", sans-serif;         /* Adobe/Typekit */
  --font-ui: "gotham", sans-serif;           /* Adobe/Typekit */

  /* Colors */
  --c-text: #111;
  --c-bg: #f7f7f7;
  --c-dark: #111;
  --c-dark-2: #212226;
  --c-white: #fff;
  --c-products-bg: var(--c-white);
  --c-brand: #1f3cff;

  /* Type scale */
  --fs-nav: 1.1rem;
  --fs-body: 1.05rem;
  --fs-h2: clamp(1.1rem, 2.1vw, 1.7rem);
  --fs-h3: clamp(1.1rem, 1.7vw, 1.5rem);
  --fs-hero: clamp(2rem, 2.9vw, 4rem);

  /* Layout */
  --radius: 0px;
  --container-max: 1600px;

  /* Shadows */
  --shadow-soft: 6px 6px 10px rgba(0,0,0,0.20);
  --shadow-strong: 6px 6px 10px rgba(0,0,0,0.18);
  --shadow-around: 0 0 18px rgba(0,0,0,0.10);
}

/* ================= RESET ================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background-color: var(--c-dark);
}

/* Lenis (Smooth Scrolling) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--c-dark);
  font-style: normal;
  font-size: var(--fs-body);
  font-weight: 100;
  line-height: 1.7;
  color: var(--c-text); /* default dunkel, Sektionen überschreiben */
}

/* Basic media */
img, video { max-width: 100%; display: block; }

/* ================= TYPO ================= */
h1 {
  font-family: var(--font-ui);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--c-white);
}

h2 {
  font-family: var(--font-ui);
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--c-white);
}

h3 {
  font-family: var(--font-ui);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--c-text);
}

h4 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--c-text);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ================= LAYOUT HELPERS ================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 15px 20px; /* wichtig: Side padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.00) 100%
  );
  border-bottom: 0px solid rgba(255,255,255,0);

  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

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

.product-detail-page .header {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.00) 100%
  );
}

.header.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.00) 100%
  );
  border-bottom: 0px solid rgba(255,255,255,0.12);
}

.logo {
  font-family: var(--font-logo);
  font-weight: 500;
  font-style: normal;
  font-size: 1.44rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--c-white);
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.logo-break { display: none; }

.logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: 42px;
  height: 42px;
  position: relative;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  outline: none;
  border-radius: 0;
  color: inherit;
  font: inherit;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: none;
}

.nav-toggle:focus,
.nav-toggle:focus-visible,
.nav-toggle:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.nav-toggle::-webkit-focus-inner {
  border: 0;
  padding: 0;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.nav-toggle::before {
  top: 12px;
  box-shadow: 0 7px 0 var(--c-white), 0 14px 0 var(--c-white);
}

.nav-toggle::after {
  top: 19px;
  opacity: 0;
}

.header.nav-open .nav-toggle::before {
  top: 19px;
  box-shadow: none;
  transform: rotate(45deg);
}

.header.nav-open .nav-toggle::after {
  opacity: 1;
  transform: rotate(-45deg);
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--fs-nav);
  letter-spacing: -0.02em;
  color: var(--c-white);
  padding: 0;
  border-radius: 0;
  background: transparent;
  transition: opacity 0.22s ease;
}

.nav a.active {
  color: var(--c-brand);
  text-shadow:
    0 0 10px rgba(31, 60, 255, 0.95),
    0 0 24px rgba(31, 60, 255, 0.85),
    0 0 46px rgba(31, 60, 255, 0.7);
}

.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--c-brand);
  text-shadow:
    0 0 10px rgba(31, 60, 255, 0.95),
    0 0 24px rgba(31, 60, 255, 0.85),
    0 0 46px rgba(31, 60, 255, 0.7);
}

.nav a:focus-visible {
  opacity: 0.85;
  outline: 2px solid rgba(255, 255, 255, 0.22);
  outline-offset: 3px;
}

/* ================= HERO VIDEO ================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 0px 20px;
  color: var(--c-white);
}

.hero-overlay h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: 0.8px;
  line-height: 1.1;
  opacity: 0.7;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  animation: hero-scroll-cue-float 1.8s ease-in-out infinite;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

.hero-scroll-cue-text {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.45;
  animation: hero-scroll-text-glow 1.8s ease-in-out infinite;
}

.hero-scroll-cue-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-bottom-right-radius: 2px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.22));
  transform: scaleX(1.22) rotate(45deg);
  opacity: 0.12;
  animation: hero-scroll-arrow-glow 1.8s ease-in-out infinite;
}

@keyframes hero-scroll-cue-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(3px);
  }
}

@keyframes hero-scroll-arrow-glow {
  0%,
  100% {
    opacity: 0.12;
  }

  50% {
    opacity: 0.58;
  }
}

@keyframes hero-scroll-text-glow {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.9;
  }
}

/* Sections scroll over the fixed hero video */
.products,
.entry-links,
.about,
.footer {
  position: relative;
  z-index: 1;
}

/* ================= ENTRY LINKS ================= */
.entry-links {
  background: var(--c-white);
  padding: 18px 0 110px;
}

.entry-links-container {
  width: 100%;
  max-width: calc(var(--container-max) - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.entry-link {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  padding: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
}

.entry-link-objekt {
  background-color: #ffffff;
  background-image: url("images/Skizze_src.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-around);
  color: var(--c-text);
}

.entry-link-objekt.is-pending-reveal {
  opacity: 0;
  transform: translateX(-72px);
  transition:
    opacity 1.55s ease,
    transform 1.55s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.entry-link-objekt.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.entry-link-media {
  background: #d7d7d9;
  color: var(--c-text);
}

.entry-link-media.is-pending-reveal {
  opacity: 0;
  transform: translateX(-72px);
  transition:
    opacity 1.55s ease,
    transform 1.55s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.entry-link-media.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.entry-link-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.95;
  transition: color 0.35s ease, text-shadow 0.35s ease, opacity 0.35s ease;
}

.entry-link:focus-visible .entry-link-label {
  opacity: 1;
  color: var(--c-brand);
  text-shadow:
    0 0 6px rgba(31, 60, 255, 0.7),
    0 0 14px rgba(31, 60, 255, 0.45);
}

/* ================= ABOUT ================= */
.about {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 140px 0 120px;
}

.about-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(60px, 6vw, 120px);
  align-items: start;
}

.about p {
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--c-white);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.about h2 {
  font-family: var(--font-ui);
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--c-white);
  margin: 0 0 18px;
}

/* Portrait wie Produktbild-Kasten (ohne Schatten) */
.about-image {
  width: 100%;
  max-width: 420px;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-text);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.15);
  transform-origin: center;
}

.skills-card {
  margin-top: 26px;
  padding: 0;
  background: transparent;
  border: 0;
  width: 100%;
}

.skills-card--wide {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 4vw, 70px);
}

.skills-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.skill-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.skill-item:last-child {
  border-bottom: 0;
}

.skill-icon-img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.skill-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--c-white);
  line-height: 1.2;
}

.skill-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 100;
  color: rgba(255,255,255,0.86);
  line-height: 1.55;
  max-width: 70ch;
}

/* ================= PRODUKTE ================= */
.products {
  background: var(--c-white);
  padding: 80px 0 55px;
  color: var(--c-text);
}

.products .container {
  display: block;               /* Produkte nutzen container als Block */
  padding: 0 20px;              /* und nicht Header padding */
}

.products-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}

.products-info {
  background: var(--c-brand);
  border-radius: var(--radius);
  aspect-ratio: 2 / 3;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: start;
  box-shadow: 0 0 18px rgba(0,0,0,0.30);
  color: var(--c-white);
}

.products-info.is-pending-reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.94);
  transition:
    opacity 1.45s ease,
    transform 1.45s cubic-bezier(0.2, 0.9, 0.25, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.products-info.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.products-info p {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
  color: var(--c-white);
}

.products-info a {
  font-family: var(--font-ui);
  color: var(--c-white);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-h3);
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.insta-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.products-grid {
  grid-column: 2 / span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Produktkarten */
.product-card {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-white);
  border: 0;
  text-decoration: none;
  box-shadow: var(--shadow-around);
}

.product-card-wrap {
  position: relative;
}

.product-card-wrap.is-pending-reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.94);
  transition:
    opacity 1.45s ease,
    transform 1.45s cubic-bezier(0.2, 0.9, 0.25, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.product-card-wrap.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-title {
  font-family: var(--font-ui);
  font-weight: 500;
  margin-top: 14px;
  color: var(--c-text);
  font-size: var(--fs-h3);
}

.product-category {
  margin: 0;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--c-text);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transform: scale(var(--base-scale, 1));
  transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .product-card-wrap.is-pending-reveal,
  .product-card-wrap.is-visible,
  .products-info.is-pending-reveal,
  .products-info.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-carousel-card,
  .product-carousel-card img,
  .product-carousel-title {
    transition: none !important;
  }
}

/* Individuelle Bilder */
.product-card img.img-1 {
  object-position: 18% 70%;
  --base-scale: 1.15;
  --hover-scale: 1.16;
}

.product-card img.img-2 {
  object-position: 40% 65%;
  --base-scale: 1.20;
  --hover-scale: 1.21;
}

.product-card img.img-3 {
  object-position: 50% 70%;
  --base-scale: 1.08;
  --hover-scale: 1.09;
}

/* ================= GENERIC SECTION (optional) ================= */
.section {
  background: var(--c-white);
  color: var(--c-text);
  padding: 100px 0;
}

.section .container { display: block; }

/* ================= FOOTER ================= */
.footer {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 80px 0 40px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer-left {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  text-align: left;
}

.footer-right a {
  font-family: var(--font-ui);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: opacity 0.25s ease;
}

.footer-line {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 2px 0;
}

/* ================= LEGAL (Impressum/Datenschutz) ================= */
.legal {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 70px 0 90px;
}

/* Legal nutzt Container, aber nicht flex */
.legal .container {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px;
}

.legal h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 2.2vw, 3rem);
}

.legal h2 {
  margin: 40px 0 14px;
  font-size: 1.25rem;
  color: var(--c-white);
}

.legal p, .legal li, .legal ul { color: var(--c-white); }

.legal p {
  font-family: var(--font-ui);
  margin: 0 0 14px;
  line-height: 1.7;
}

.legal ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal li {
  font-family: var(--font-ui);
  margin: 8px 0;
  line-height: 1.7;
}

.legal a {
  color: var(--c-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
}

@media (min-width: 901px) {
  .nav-toggle { display: none !important; }

  /* Desktop: Produktkarten links, Instagram-Karte rechts (gleiche Kartenhöhe) */
  .products-grid {
    grid-column: 1 / span 3;
    display: contents;
  }

  /* Verhindert kurzes "Durchblitzen" vor JS-Reveal */
  .js .products .product-card-wrap:not(.is-visible),
  .js .products .products-info:not(.is-visible) {
    opacity: 0;
    transform: translateY(36px) scale(0.94);
  }

  .products-info {
    grid-column: 4;
    grid-row: 1;
  }

  .products-grid > .product-card-wrap:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .products-grid > .product-card-wrap:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .products-grid > .product-card-wrap:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .header .container {
    position: relative;
    align-items: center;
    gap: 10px;
    min-height: 64px;
  }

  .logo {
    white-space: normal;
    line-height: 0.95;
    font-size: 1.24rem;
    letter-spacing: 0.2px;
  }

  .logo-break { display: block; }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 50%;
    left: 28px;
    right: 84px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-50%) translateX(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .header.nav-open .logo {
    opacity: 0;
    transform: translateY(-3px);
    filter: blur(1.5px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease, visibility 0s linear 0.22s;
  }

  .header.nav-open .nav {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
  }

  .nav a {
    margin-left: 0;
    white-space: nowrap;
    width: 100%;
  }

  .hero { height: 60vh; }
  .hero-scroll-cue { display: none; }

  .container,
  .about-container,
  .products .container,
  .footer-inner,
  .legal .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .about {
    padding-top: 90px;
    padding-bottom: 100px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .skills-grid {
    flex-direction: column;
  }

  /* Mobile: 2 Karten oben, darunter Karte + Instagram-Block rechts */
  .products-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* Mobile: keine Scroll-Reveal-Animation auf Produktkarten */
  .product-card-wrap.is-pending-reveal,
  .product-card-wrap.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .products-grid {
    display: contents;
  }

  .products-grid > .product-card-wrap:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .products-grid > .product-card-wrap:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .products-grid > .product-card-wrap:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .products-info {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 2 / 3;
    padding: 22px;
  }

  .products-info p { font-size: 1rem; }
  .products-info a { font-size: 1.05rem; }

  .product-title {
    margin-top: 4px;
  }

  .product-title,
  .product-category {
    transition: color 0.22s ease, text-shadow 0.22s ease;
  }

  .home-page .entry-link.is-centered .entry-link-label {
    color: var(--c-brand);
    text-shadow:
      0 0 6px rgba(31, 60, 255, 0.7),
      0 0 14px rgba(31, 60, 255, 0.45);
  }

  .entry-links {
    padding-bottom: 70px;
  }

  .entry-links-container {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
    min-height: 0;
  }

  .entry-link,
  .entry-link-objekt,
  .entry-link-media {
    min-height: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-right { padding-top: 0; }
}





/* ================= PRODUCTS OVERVIEW PAGE ================= */

body.products-overview-page {
  background: var(--c-dark);
  color: var(--c-white);
}

.products-carousel {
  display: none;
  position: relative;
  margin-top: 32px;
}

.products-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 18px;
  padding: 4px 18px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}

.products-carousel-track::-webkit-scrollbar { display: none; }

.product-carousel-card {
  position: relative;
  flex: 0 0 min(62vw, 320px);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-white);
  text-decoration: none;
  box-shadow: var(--shadow-around);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  --carousel-ry: 0deg;
  --carousel-scale: 0.90;
  --carousel-opacity: 0.68;
  transform: perspective(900px) rotateY(var(--carousel-ry)) scale(var(--carousel-scale));
  opacity: var(--carousel-opacity);
  transition: filter 0.35s ease;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.product-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--carousel-img-scale, 1.04));
  transform-origin: center;
}

.product-carousel-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(1.55rem, 5.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 60%);
  opacity: 0.85;
  transition: opacity 0.55s ease, background 0.55s ease;
}

.product-carousel-card.is-centered {
  filter: saturate(1.05) contrast(1.05);
}

.product-carousel-card.is-centered .product-carousel-title {
  opacity: 1;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 64%);
}

.product-carousel-card.is-disabled {
  opacity: 0.92;
}

.products-overview-page .header,
.products-overview-page .header.scrolled {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.00) 100%
  );
  border-bottom-color: rgba(255,255,255,0.08);
}

.products-overview-page .logo,
.products-overview-page .nav a {
  color: var(--c-white);
}

.products-overview-page .nav a.is-active,
.products-overview-page .nav a[aria-current="page"],
.products-overview-page .nav a.active {
  color: var(--c-brand);
  text-shadow:
    0 0 10px rgba(31, 60, 255, 0.95),
    0 0 24px rgba(31, 60, 255, 0.85),
    0 0 46px rgba(31, 60, 255, 0.7);
}

.products-overview-page .nav-toggle::before,
.products-overview-page .nav-toggle::after {
  background: var(--c-white);
}

.products-overview-page .nav-toggle::before {
  box-shadow: 0 7px 0 var(--c-white), 0 14px 0 var(--c-white);
}

.products-overview-main {
  min-height: 100vh;
  padding: calc(140px + env(safe-area-inset-top, 0px)) 0 80px;
  background: var(--c-dark);
  color: var(--c-white);
}

.products-overview-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.products-overview-title {
  margin: 0;
  color: var(--c-white);
}

.products-overview-layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(250px, 28vw);
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}

.products-overview-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.products-overview-list li + li {
  margin-top: 8px;
}

.products-overview-item {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.products-overview-item:focus-visible,
.products-overview-item.is-active {
  color: var(--c-brand);
  text-shadow:
    0 0 6px rgba(31, 60, 255, 0.7),
    0 0 14px rgba(31, 60, 255, 0.45);
}

.products-overview-list a.products-overview-item,
.products-overview-list a.products-overview-item:link,
.products-overview-list a.products-overview-item:visited,
.products-overview-list a.products-overview-item:hover,
.products-overview-list a.products-overview-item:active,
.products-overview-list a.products-overview-item:focus,
.products-overview-list a.products-overview-item:focus-visible {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.media-back-link,
.media-back-link:link,
.media-back-link:visited {
  color: var(--c-white);
}

.media-back-link:focus-visible,
.media-back-link.is-active {
  color: var(--c-brand);
}

/* Hover effects only on devices that actually support hover (prevents "sticky hover" on touch/scroll). */
@media (hover: hover) and (pointer: fine) {
  .logo:hover { opacity: 0.72; }

  .nav a:hover {
    opacity: 0.72;
    background-color: transparent;
  }

  .entry-link:hover .entry-link-label {
    opacity: 1;
    color: var(--c-brand);
    text-shadow:
      0 0 6px rgba(31, 60, 255, 0.7),
      0 0 14px rgba(31, 60, 255, 0.45);
  }

  .insta-link:hover .arrow { transform: translateX(10px); }

  .product-card:hover img {
    transform: scale(var(--hover-scale, 1.05));
  }

  .footer-right a:hover { opacity: 1; }

  .legal a:hover { opacity: 1; }

  .products-overview-item:hover {
    color: var(--c-brand);
    text-shadow:
      0 0 6px rgba(31, 60, 255, 0.7),
      0 0 14px rgba(31, 60, 255, 0.45);
  }

  .media-back-link:hover {
    color: var(--c-brand);
  }
}

/* Touch devices: avoid sticky hover/focus glow while scrolling after a tap. */
@media (pointer: coarse) {
  .logo:hover { opacity: 1; }

  .nav a:hover {
    opacity: 1;
    background-color: transparent;
  }

  .entry-link:hover .entry-link-label,
  .entry-link:focus-visible .entry-link-label {
    opacity: inherit;
    color: inherit;
    text-shadow: none;
  }

  .insta-link:hover .arrow { transform: none; }

  .product-card:hover img {
    transform: scale(var(--base-scale, 1));
  }

  .products-overview-item:hover,
  .products-overview-item:focus,
  .products-overview-item:focus-visible,
  .products-overview-item.is-active {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
  }

  .media-back-link:hover,
  .media-back-link:focus,
  .media-back-link:focus-visible,
  .media-back-link.is-active {
    color: var(--c-white);
  }

  .product-detail-page .media-back-link,
  .product-detail-page .media-back-link:link,
  .product-detail-page .media-back-link:visited,
  .product-detail-page .media-back-link:hover,
  .product-detail-page .media-back-link:focus,
  .product-detail-page .media-back-link:focus-visible,
  .product-detail-page .media-back-link.is-active {
    color: var(--c-brand);
    text-shadow: none;
  }
}

.products-overview-preview {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-dark-2);
  box-shadow: var(--shadow-around);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  justify-self: end;
}

.products-overview-preview.is-visible {
  opacity: 1;
}

.products-overview-preview-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.products-overview-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  background: #000;
}

.products-overview-preview.is-video-preview .products-overview-preview-video {
  display: block;
}

@media (max-width: 900px) {
  .products-overview-main {
    padding-top: calc(110px + env(safe-area-inset-top, 0px));
  }

  .products-overview-layout {
    display: none;
  }

  .products-carousel {
    display: block;
  }
}

/* ================= PRODUCT SUBPAGES (GRID LIKE MOCKUP) ================= */

.product-page{
  background: var(--c-dark);
  color: var(--c-white);
  padding-top: calc(120px + env(safe-area-inset-top, 0px)); /* Platz für fixed Header */
}

.product-detail-page .product-page {
  padding-bottom: 120px;
}

.product-section{
  padding: 90px 0;
}

/* Der Trick: Grid ist breit, aber Kacheln haben Max-Width + Aspect-Ratio */
.product-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 1fr 1fr;              /* 2 Spalten wie Mockup */
  column-gap: clamp(40px, 8vw, 160px);
  row-gap: 40px;
  align-items: start;
}

.product-grid.is-pending-reveal,
.product-media.is-pending-reveal{
  opacity: 0;
  transform: translateY(44px) scale(0.97);
  transition:
    opacity 1.05s ease,
    transform 1.05s cubic-bezier(0.2, 0.9, 0.25, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.product-grid.is-visible,
.product-media.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-media.slide-left-reveal.is-pending-reveal {
  transform: translateX(-72px) scale(0.97);
  transition:
    opacity 1.55s ease,
    transform 1.55s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.product-media.slide-left-reveal.is-visible {
  transform: translateX(0) scale(1);
}

.product-media.slide-right-reveal.is-pending-reveal {
  transform: translateX(72px) scale(0.97);
  transition:
    opacity 1.55s ease,
    transform 1.55s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.product-media.slide-right-reveal.is-visible {
  transform: translateX(0) scale(1);
}

/* Bild-Kachel: NICHT full width, sondern „Poster“ */
.product-media{
  width: min(520px, 100%);                     /* Kachelgröße begrenzen */
  aspect-ratio: 4 / 5;                         /* 4:5 Format */
  border-radius: var(--radius);
  overflow: hidden;
  justify-self: start;                         /* links „kleben“ */
}

/* Bild füllt nur die Kachel, nicht den Screen */
.product-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media img.product-image-trousse-secondary{
  transform: scale(1.34) translateY(-18%);
  transform-origin: center top;
}

/* Textblock hat auch eine Breitenbegrenzung wie im Mockup */
.product-content{
  width: min(460px, 100%);
  justify-self: start;
  padding-top: clamp(70px, 14vh, 200px);
  font-family: var(--font-ui);
  font-weight: 400;
}

.product-content h1{
  margin: 0 0 10px;
  opacity: 1;
}

.product-content h2{
  margin: 0 0 18px;
  font-size: var(--fs-h2);
  font-family: var(--font-ui);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  opacity: 1;
}

.product-content p,
.product-content li{
  font-family: var(--font-ui);
  color: rgba(255,255,255,0.94);
  line-height: 1.75;
  font-size: 0.95rem;
}

.product-content p{ margin: 0 0 14px; }

.product-list{
  margin: 14px 0 0;
  padding-left: 18px;
}

/* Zweite Reihe im Mockup: Text links, Bild rechts */
.product-grid.reverse .product-media{
  justify-self: end;                           /* rechts „kleben“ */
}
.product-grid.reverse .product-content{
  justify-self: start;
}

/* Reihenfolge drehen */
.product-grid.reverse .product-media{ order: 2; }
.product-grid.reverse .product-content{ order: 1; }

/* Mobile: untereinander */
@media (max-width: 900px){
  .product-section{ padding: 55px 0; }

  .product-detail-page .product-page {
    padding-bottom: 80px;
  }

  .product-grid{
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 18px;
  }

  .product-media,
  .product-content{
    width: 100%;
    justify-self: start;
  }

  .product-media{
    aspect-ratio: 4 / 5; /* 4:5 Format auch auf Mobile */
  }

  .product-content{
    padding-top: 40px;
  }

  .product-grid.reverse .product-media,
  .product-grid.reverse .product-content{
    order: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-grid.is-pending-reveal,
  .product-grid.is-visible,
  .product-media.is-pending-reveal,
  .product-media.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

}
