/* =====================================================================
   GlicheKom Public-Site · Werks-Galerie Desktop-Upgrade
   v20260524-gallery-desktop-1
   ---------------------------------------------------------------------
   Hebt die bestehende .gk-gallery auf Desktop-Viewports auf eine
   premium-feel-Stufe (auch ohne Bildwechsel):
     - Groessere Hero-Items (1. + 4. doppelt so gross)
     - Sanftes 3D-Tilt-on-Hover via CSS-only
     - Glow-Layer hinter dem Item
     - Lightbox-Effekt: Klick auf Item -> opacity-Modal mit Vollbild
     - Caption-Overlay mit Gradient-Backdrop + Slide-In
   ===================================================================== */

/* Desktop-Layout: sauberes alternierendes 12-Spalten-Grid.
   Reihe 1: groß links (7) + klein rechts (5)
   Reihe 2: klein links (5) + groß rechts (7)
   Reihe 3: groß links (7) + klein rechts (5)
   Alle Items haben gleiche Höhe pro Reihe — symmetrisch, ruhig, premium. */
@media (min-width: 1200px) {
  .gk-gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 280px;
    gap: 18px;
  }
  .gk-gallery__item { grid-column: span 6; } /* Fallback */
  .gk-gallery__item:nth-child(1) { grid-column: span 7; }
  .gk-gallery__item:nth-child(2) { grid-column: span 5; }
  .gk-gallery__item:nth-child(3) { grid-column: span 5; }
  .gk-gallery__item:nth-child(4) { grid-column: span 7; }
  .gk-gallery__item:nth-child(5) { grid-column: span 7; }
  .gk-gallery__item:nth-child(6) { grid-column: span 5; }
}

/* Tablet-Layout: simpleres 2x3-Grid */
@media (min-width: 720px) and (max-width: 1199px) {
  .gk-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 240px;
    gap: 16px;
  }
  .gk-gallery__item { grid-column: span 1; }
}

/* Mobile: 1-Spaltig */
@media (max-width: 719px) {
  .gk-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 14px;
  }
}

/* WICHTIG: aspect-ratio aus site.css ueberschreiben damit die Items die
   grid-auto-rows-Hoehe einnehmen koennen. Bilder fuellen das Item vollflaechig. */
@media (min-width: 720px) {
  .gk-gallery__item {
    aspect-ratio: auto !important;
    height: 100%;
    width: 100%;
  }
  .gk-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (min-width: 1200px) {
  .gk-gallery__item {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  }
  .gk-gallery__item::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(60% 60% at 30% 0%, rgba(255,122,0,0.20) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
    filter: blur(20px);
  }
  .gk-gallery__item:hover {
    transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 30px 70px rgba(0,0,0,0.40), 0 14px 30px rgba(255,122,0,0.10);
  }
  .gk-gallery__item:hover::before {
    opacity: 1;
  }
  .gk-gallery__item img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    filter: saturate(0.95) brightness(0.95);
  }
  .gk-gallery__item:hover img {
    transform: scale(1.08);
    filter: saturate(1.05) brightness(1.0);
  }
}

/* Lightbox-Modal */
.gk-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 32px;
  cursor: zoom-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.30s ease;
}
.gk-lightbox.is-open {
  display: flex;
  opacity: 1;
}
.gk-lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.60);
}
.gk-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gk-lightbox-close:hover {
  background: rgba(255,154,61,0.30);
  transform: scale(1.06);
}
.gk-lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ffe8c4;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =====================================================================
   Karriere-CTA-Block direkt unter der Galerie
   "Bock auf echtes Handwerk? — Werde Teil des GlicheKom-Teams."
   ===================================================================== */
.gk-accent--soft {
  color: var(--gk-orange);
  font-weight: 700;
  display: inline-block;
}

.gk-career-cta {
  margin-top: clamp(32px, 4vw, 60px);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 22px;
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(255, 122, 0, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 122, 0, 0.22);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.gk-career-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.55), transparent 40%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.4;
  filter: blur(18px);
  pointer-events: none;
}

.gk-career-cta__main .gk-eyebrow {
  margin-bottom: 8px;
}
.gk-career-cta__main h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  margin: 6px 0 14px;
  line-height: 1.18;
  letter-spacing: -0.005em;
}
.gk-career-cta__lead {
  color: var(--gk-muted, #aab1c2);
  margin-bottom: 20px;
  max-width: 60ch;
}

.gk-career-cta__perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
  margin: 0 0 24px;
  padding: 0;
}
.gk-career-cta__perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.92rem;
  color: #e7e9ee;
}
.gk-career-cta__perks li > span {
  color: var(--gk-orange);
  font-weight: 800;
  font-size: 0.9rem;
}

.gk-career-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gk-career-cta__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gk-career-cta__stats > div {
  text-align: center;
  padding: 22px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.gk-career-cta__stats strong {
  display: block;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  background: linear-gradient(135deg, var(--gk-orange, #ff7a00), #ffb070);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.gk-career-cta__stats span {
  display: block;
  font-size: 0.78rem;
  color: var(--gk-muted, #98a0b3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

@media (max-width: 860px) {
  .gk-career-cta {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 18px;
  }
  .gk-career-cta__stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================================
   Bewegt-Bild zwischen Section-Head und Galerie
   ===================================================================== */
.gk-video-frame {
  position: relative;
  margin: clamp(20px, 2vw, 32px) 0 clamp(22px, 2.4vw, 36px);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  border: 1px solid rgba(255, 122, 0, 0.18);
}
.gk-video-frame__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0c10;
}
.gk-video-frame__cap {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10,12,16,0.72), rgba(10,12,16,0.46));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1f3f7;
  z-index: 2;
  pointer-events: none;
}
.gk-video-frame__cap strong {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: -0.005em;
}
.gk-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
@media (max-width: 720px) {
  .gk-video-frame { border-radius: 14px; }
  .gk-video-frame__cap { padding: 10px 14px; left: 12px; bottom: 12px; }
}
