/* =========================================================
   Erinnerungskristall.com – UPDATE-STYLES
   Wird NACH der bestehenden style.css geladen.
   Überschreibt Tokens (Schriftart) und ergänzt Galerie + Lightbox.
   ========================================================= */

/* --------- NEUES SCHRIFTSYSTEM --------- */
/* Cinzel (Brand / Hero Headlines) – Roman Capitalis
   Cormorant Garamond (H2/H3) – bleibt für Sub-Heads
   EB Garamond (Body) – literarisch, sehr lesbar */

:root {
  --f-brand:   'Cinzel', 'Trajan Pro', serif;
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body:    'EB Garamond', Georgia, 'Lora', serif;  /* Lora-Fallback falls EB nicht lädt */
}

body {
  font-family: var(--f-body);
  font-size: 18px;       /* leicht größer für bessere Lesbarkeit von EB Garamond */
  line-height: 1.72;
}

/* Brand-Texte (Buttons, Eyebrows, Footer-Headlines) auf Cinzel */
.eyebrow,
.kicker,
.btn,
.footer-col h4,
.header-b2b-login,
.gallery-caption {
  font-family: var(--f-brand);
}

/* Hero-Title bekommt etwas mehr Atem */
.hero-title,
.page-title {
  font-family: var(--f-display);
  letter-spacing: -0.005em;
}

/* --------- LOGO IM HEADER ---------
   Logos haben schwarzen Hintergrund (PNG ohne Alpha) — wir sorgen
   per CSS dafür, dass sie auf einer rein schwarzen Fläche sitzen,
   damit keine Kanten zum übrigen Site-Hintergrund entstehen.
   `mix-blend-mode: screen` macht alles Schwarze unsichtbar und lässt
   nur das goldene Logo durch — funktioniert auf jedem dunklen BG. */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  mix-blend-mode: screen;
  transition: opacity 0.3s var(--ease, ease);
}
.brand:hover .brand-logo { opacity: 0.85; }
.brand-logo-mobile { display: none; }

/* Im Drawer ein etwas größeres Logo */
.nav-brand {
  display: block;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-line);
}
.nav-brand img {
  display: block;
  width: 180px;
  height: auto;
  mix-blend-mode: screen;
}

/* Footer-Logo */
.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 1.2rem;
  mix-blend-mode: screen;
}

/* --------- GALLERIE-SEITE --------- */
.gallery-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-2);
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-cta {
  background: var(--c-bg-2);
  text-align: center;
  border-top: 1px solid var(--c-line);
}

/* Feature-Reihe: großes Bild neben Text */
.gallery-feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.gallery-feature-reverse {
  grid-template-columns: 1fr 1.5fr;
}
.gallery-feature-reverse .gallery-feature-img {
  order: 2;
}
.gallery-feature-img {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-feature-img a {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-feature-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease, ease);
}
.gallery-feature-img:hover img {
  transform: scale(1.03);
}
.gallery-feature-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.gallery-feature-text p {
  color: var(--c-text-mute);
  font-size: 1.05rem;
}

/* Masonry-Style-Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 220px;
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  background: var(--c-bg-3);
  transition: transform 0.3s var(--ease, ease);
  display: block;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease, ease),
              filter 0.4s var(--ease, ease);
  filter: brightness(0.92);
}
.gallery-tile:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}
.gallery-tile-wide { grid-column: span 2; }
.gallery-tile-tall { grid-row: span 2; }

.gallery-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-2);
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
  border: 1px solid var(--c-line-2);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s var(--ease, ease);
}
.gallery-tile:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* --------- LIGHTBOX --------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 8, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease, ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-figure {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  margin: 0;
  text-align: center;
  position: relative;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-figure figcaption {
  color: var(--c-text-mute);
  font-size: 0.95rem;
  margin-top: 1rem;
  font-style: italic;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(20, 17, 15, 0.85);
  color: var(--c-gold-2);
  border: 1px solid var(--c-line-2);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease, ease);
  z-index: 201;
}
.lightbox:not(.is-open) .lightbox-close,
.lightbox:not(.is-open) .lightbox-prev,
.lightbox:not(.is-open) .lightbox-next {
  display: none;
}
.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
}
.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
}

/* --------- HERO-OVERRIDE: SVG-Placeholder durch echtes Foto ersetzen ---------
   Auf der Startseite wurde bisher ein animierter SVG-Kristall gezeigt.
   Diese Regeln blenden den SVG aus und legen ein echtes Studio-Foto
   als Hintergrund unter den Hero-Bereich. Kein View-Eingriff nötig.
*/
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
}
.hero-orb,
.hero .crystal-svg,
.hero-svg-crystal {
  /* Nur den SVG-Placeholder im HERO ausblenden – das SVG in
     anderen Sektionen darf bleiben (oder wird durch ein Foto ersetzt). */
  display: none !important;
}

/* Foto / Video in der „Ein Fenster zur Seele"-Sektion (ersetzt das alte SVG) */
.visual-art {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 169, 97, 0.08) inset;
}
.visual-art .visual-photo,
.visual-art .visual-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  transition: transform 0.8s var(--ease, ease);
}
/* Das Video-Motiv ist quer; Box bekommt das echte
   Seitenverhältnis des Videos (550x366 ≈ 3:2). */
.visual-art .visual-video {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
}
.visual-art .visual-photo {
  height: auto;
  object-fit: cover;
}
.visual-art:hover .visual-photo,
.visual-art:hover .visual-video {
  transform: scale(1.02);
}
/* Bei „weniger Bewegung"-Einstellung des Nutzers die Hover-
   Skalierung weglassen. */
@media (prefers-reduced-motion: reduce) {
  .visual-art:hover .visual-photo,
  .visual-art:hover .visual-video {
    transform: none;
  }
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/product/kristall-3-box-open.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 9, 8, 0.55) 60%, rgba(10, 9, 8, 0.96) 100%),
    linear-gradient(to bottom, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0.4) 50%, var(--c-bg) 100%);
}
.hero-inner,
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* --------- BESTATTER-MAP: "Alle haben Musterkristall" --------- */
/* Da jetzt ALLE Partner einen Musterkristall haben, ist der Filter-Toggle
   und der pro-Karte-Badge überflüssig geworden. Wenn Du sie behalten willst,
   ist das OK – aber dann zeigt der Filter halt immer 365/365.
   Diese Regeln (a) verstecken den Filter-Toggle, (b) ersetzen den
   pro-Karte-Badge durch eine globale Aussage oben auf der Seite.
   Wenn Du das nicht willst, kommentier den nächsten Block aus. */

.bestatter-filter-mk,
[data-filter="musterkristall"] {
  display: none;
}

/* Globaler Hinweis (wird durch eine zusätzliche Aussage im View-File
   eingeblendet – siehe README). Bleibt unsichtbar, wenn nicht im HTML. */
.bestatter-mk-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  margin: 0 0 2rem;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line-2);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  color: var(--c-text-mute);
}
.bestatter-mk-banner strong {
  color: var(--c-gold-2);
  font-weight: 500;
}
.bestatter-mk-banner-icon {
  color: var(--c-gold);
  font-size: 1.1rem;
}

/* --------- INLINE-CTA in Artikeln (für die neuen Ratgeber) --------- */
.cta-inline {
  margin: 2.5rem 0;
  padding: 1.8rem 2rem;
  background: var(--c-bg-2);
  border-left: 3px solid var(--c-gold);
  border-radius: 0 4px 4px 0;
}
.cta-inline p { margin-bottom: 1rem; }
.cta-inline p:last-of-type { margin-bottom: 0; }
.cta-inline .btn { margin-top: 0.5rem; }

/* --------- RESPONSIVE --------- */
/* =========================================================
   SPLIT-CARDS (Hinterbliebene / Bestatter) — Hover-Effekt
   ========================================================= */
.split-card {
  transition: transform 0.35s var(--ease, ease),
              border-color 0.35s var(--ease, ease),
              box-shadow 0.35s var(--ease, ease);
  will-change: transform;
}
.split-card::before {
  transition: opacity 0.5s var(--ease, ease);
}
.split-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold-3, #8a6f33);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 169, 97, 0.15) inset;
}
.split-card:hover::before {
  opacity: 1;
}
/* B2B-Card hat schon goldenen Rand im Ruhezustand —
   Hover hebt sie noch eine Spur heller hervor */
.split-card-b2b:hover {
  border-color: var(--c-gold, #c9a961);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(201, 169, 97, 0.12),
    0 0 0 1px rgba(232, 212, 160, 0.2) inset;
}

@media (max-width: 960px) {
  .gallery-feature,
  .gallery-feature-reverse {
    grid-template-columns: 1fr;
  }
  .gallery-feature-reverse .gallery-feature-img {
    order: 0;
  }
}
@media (max-width: 640px) {
  .brand-logo-desktop { display: none; }
  .brand-logo-mobile {
    display: block;
    height: 38px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery-tile-wide,
  .gallery-tile-tall {
    grid-column: span 2;
    grid-row: span 1;
  }
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
}
