/* ========================== GLOBAL VARIABLES ========================== */
:root {
  --bg-color: #170229;
  --bg-color1: #fff;
  --text-color: #eceeff;
  --accent-color: #c889f0;
  --accent-color1: #972df0;
  --accent-color2: #57abff;
  --bg-black: #000;
  font-size: 12px;
}

/* ========================== FONTS ========================== */
.bricolage-grotesque {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* Platzhalter <weight> ersetzt */
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.roboto-flex {
  font-family: "Roboto Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* Platzhalter <weight> ersetzt */
  font-style: normal;
}

body {
  margin: 0;
  background-color: var(--bg-color);
}

/* Use border-box globally to prevent padding from causing overflow */
*, *::before, *::after {
  box-sizing: border-box;
}

body,
a,
button {
  cursor: none;
}

h1,
h2,
h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 400;
  color: var(--text-color);
}


/* ========================== CUSTOM CURSOR ========================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, border 0.25s ease, opacity 0.25s ease;
}

.custom-cursor.outline {
  width: 45px;
  height: 45px;
  background-color: transparent;
  border: 2px solid var(--accent-color);
}

/* ========================== HEADER ========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background-color: var(--bg-color);
  transition: all 0.4s ease;
}

.header-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 4rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.logo img {
  padding-left: 1.5rem;
  width: 170px;
  transition: width 0.4s ease;
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  padding-right: 2.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-family: "Roboto Flex", sans-serif;
  font-optical-sizing: auto;
  font-size: 13px;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-weight: 600;
  font-style: normal;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.4s ease;
}

nav a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

header.shrink .header-inner {
  padding: 0.5rem 0.5rem;
}

header.shrink .logo img {
  width: 125px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 24px;
  cursor: pointer;
  z-index: 110;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-social {
    gap: 1rem;
  }
  nav ul {
    display: none;
    flex-direction: column;
    background: var(--bg-color);
    position: fixed;
    inset: 0;
    top: 60px;
    right: 0;
    left: 0;
    padding: 3rem 2rem 8rem 2rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 100;
    gap: 3rem;
    align-items: center;
    justify-content: center;
  }
  nav ul.active {
    display: flex;
  }
  nav a {
    font-size: 24px;
  }
  .burger {
    display: flex;
    background: none;
  }
  .social-icons {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 1.5rem;
    z-index: 110;
  }
  nav ul.active ~ .social-icons {
    display: flex;
  }
  .icon {
    width: 32px;
    height: 32px;
  }
}

/* ========================== HERO ========================== */
.click-counter {
  position: absolute;
  top: 100%;
  left: 68%;
  transform: translateX(-50%) translateY(-40px);
  font-family: "Roboto Flex", sans-serif;
  font-optical-sizing: auto;
  font-size: 13px;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  font-weight: 600;
  font-style: normal;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 3;
}

.hidden {
  opacity: 0;
}

.heart-icon {
  width: 20px;
  height: 20px;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.heart-icon.pump {
  transform: scale(1.3);
}

.count-bump {
  animation: bump 0.3s ease;
}

@keyframes bump {
  0% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.hero {
  padding: 16rem 4rem;
  display: flex;
  /* ÄNDERUNG: Von space-between auf flex-start, damit sie links zusammenkleben */
  justify-content: flex-start; 
  align-items: center;
  max-width: 1250px;
  margin: 0 auto;
  min-height: 500px;
  position: relative;
  overflow: visible;
  /* OPTIONAL: Ein Gap hinzufügen, falls doch ein winziger Abstand gewünscht ist */
  gap:0rem;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero.loaded {
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-left {
  width: 38%;
  /* ÄNDERUNG: Breite auf 'fit-content' oder festen Wert, damit sie nicht unnötig Platz einnimmt */
  flex: 0 0 auto; 
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 2;
  /* background-color: #0E225C; */ /* Nur zum Testen anlassen */
}

#riveCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  touch-action: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero-right {
  /* ÄNDERUNG: Nimmt jetzt nur den Rest ein, ohne erzwungene 65% */
  flex: 1; 
  max-width: 600px;
  text-align: left;
  position: relative;
  z-index: 2;
  /* background-color: #8b5cf6; */
}

.hero-right h1 {
  font-size: 3rem;
  line-height: 1.1;
}

.highlight {
  transition: color 0.5s ease-in-out;
  font-weight: 600;
  text-decoration: underline;
  color: var(--accent-color);
  position: relative;
  z-index: 25;
}

/* ========================== SHOWREEL ========================== */
.video-wrapper {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 4rem;
}

#showreelVideo {
  border-radius: 15px;
  width: 100%;
  display: block;
  cursor: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#showreelVideo.loaded {
  opacity: 1;
}

/* ========================== WORK GRID ========================== */
.work-section {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  text-align: center;
  padding: 8rem 4rem 0 4rem;
}

.work-section h2 {
  font-size: 2rem;
  margin-bottom: 4rem;
  text-align: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.work-item {
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: block;
}

.work-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.work-item:hover video {
  transform: scale(1.1);
  filter: blur(4px);
}

.work-item:hover img {
  transform: scale(1.1);
  filter: blur(4px);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 400;
}

.work-item:hover .overlay {
  opacity: 1;
}

.fade-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-item:nth-child(1) { transition-delay: 0.1s; }
.fade-item:nth-child(2) { transition-delay: 0.2s; }
.fade-item:nth-child(3) { transition-delay: 0.3s; }
.fade-item:nth-child(4) { transition-delay: 0.4s; }
.fade-item:nth-child(5) { transition-delay: 0.5s; }
.fade-item:nth-child(6) { transition-delay: 0.6s; }

@media (max-width: 900px) {
  .hero { padding: 16rem 2rem; }
  .video-wrapper { padding: 0 2rem; }
  .work-section { padding: 8rem 2rem 0 2rem; }
  .services { padding: 0 2rem; }
  .about { padding: 0 2rem; }
  .contact { padding: 10rem 2rem; }
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================== INSTAGRAM BUTTON ========================== */
.insta-btn {
  display: inline-block;
  margin-top: 4rem;
  padding: 1.5rem 2.2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transition: transform 0.3s ease;
}

.insta-btn:hover {
  transform: scale(1.03);
}

.insta-btn span {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: 0.5px;
}

/* ========================== CLIENT LOGOS ========================== */
.clients {
  text-align: center;
}

.clients h2 {
  font-size: 2rem;
  margin-top: 10rem;
  margin-bottom: 2rem;
  text-align: center;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  overflow: hidden;
  perspective: 1000px;
  /* background-color: #bc1888; */
}

.logo-card {
  width: 100%;
  max-width: 100%;
  height: 200px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(20px) scale(1);
}

.logo-card.visible {
  animation: fadeUp 0.6s cubic-bezier(.2, .9, .3, 1) forwards;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.logo-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-front {
  background: var(--bg-color);
}

.card-front img {
  width: 100%;
  max-width: 150px;
  object-fit: contain;
}

.card-back {
  color: #fff;
  text-align: center;
  transform: rotateY(180deg);
  border-radius: 15px;
  flex-direction: column;
}

.card-back h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-back p {
  font-family: "Roboto Flex", sans-serif;
  font-optical-sizing: auto;
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.3;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.logos-grid img:nth-child(1).visible { animation-delay: 0.06s; }
.logos-grid img:nth-child(2).visible { animation-delay: 0.12s; }
.logos-grid img:nth-child(3).visible { animation-delay: 0.18s; }
.logos-grid img:nth-child(4).visible { animation-delay: 0.24s; }
.logos-grid img:nth-child(5).visible { animation-delay: 0.30s; }
.logos-grid img:nth-child(6).visible { animation-delay: 0.36s; }
.logos-grid img:nth-child(7).visible { animation-delay: 0.42s; }
.logos-grid img:nth-child(8).visible { animation-delay: 0.48s; }
.logos-grid img:nth-child(9).visible { animation-delay: 0.54s; }

@media (max-width: 900px) {
  .logos-grid { grid-template-columns: repeat(3, 1fr); padding: 0 2rem; }
}



/* ========================== SERVICES ========================== */
.services {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 200px auto;
  padding: 0 4rem;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 6rem;
  margin-top: 10rem;
}

.services-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-card {
  flex: 1 1 calc(33.333% - 2rem);
  border-radius: 15px;
  background: transparent;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}


.service-card.visible {
  animation: fadeUp 0.6s cubic-bezier(.2, .9, .3, 1) forwards;
}


.service-card canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.service-card h3 {
  font-size: 3rem;
  margin-top: 4rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 100;
  color: var(--text-color);
  font-size: 1.5rem;
  line-height: 1.8;
}

@media (max-width: 800px) {
  .service-card { flex: 1 1 100%; }
}

@media (max-width: 600px) {
  .hero { padding: 16rem 1.5rem; }
  .video-wrapper { padding: 0 1.5rem; }
  .work-section { padding: 8rem 1.5rem 0 1.5rem; }
  .services { padding: 0 1.5rem; }
  .about { padding: 0 1.5rem; }
  .contact { padding: 10rem 1.5rem; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem; }
}

/* ========================== ABOUT ========================== */
.about {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5%;
}

.about-left {
  flex: 0 0 40%;
}

.about-right {
  padding: 2rem;
  margin: 0 auto;
  flex: 0 0 50%;
  max-width: 678px;
  /* background-color: #0E225C; */
}

.about-right h2 {
  font-size: 2rem;
  margin-bottom: 5rem;
  text-align: center;
}

.about-right p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.about p {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100; /* korrigiert von 10 auf validen Wert */
  font-style: normal;
  font-size: 1.5rem;
}

.about-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.about-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.25s cubic-bezier(.2, .9, .3, 1);
  display: block;
}

.about-img-wrapper:hover img {
  transform: scale(1.03);
}


/* Wrapper to handle centering */
.vita-wrapper {
  display: flex;
  justify-content: center; /* Centers horizontally */
  width: 100%;
  margin-top: 3rem; /* Space between text and icon */
}

.vita-icon {
  width: 90px; /* Slightly larger for a centered look */
  height: auto;
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
}


/* Hover Effect */
.vita-link:hover .vita-icon {
  transform: scale(1.15) rotate(5deg); /* Added a slight tilt for character */
}

@media (max-width: 600px) {
  .about { flex-direction: column; text-align: center; }
  .about-left, .about-right { flex: 1 1 100%; }
  .about-left img { max-width: 300px; margin: 0 auto 2rem; }
}

/* ========================== CONTACT ========================== */
.contact {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 10rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-inner {
  width: 100%;
  max-width: 1250px;
  text-align: center;
}

.contact h1 {
  font-size: 2.5rem;
  margin-bottom: 75px;
}

/* Container for both email and phone buttons */
.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Container für Icon + Link + Copy-Btn */
.email-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  cursor: pointer;
  position: relative; /* Wichtig für das Tooltip */
}

.email-icon {
  width: 90px;
  height: auto;
  position: absolute; /* Raus aus dem Textfluss */
  left: 6px;        /* Schiebt es nach links über den Rand */
  top: -17%;
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
}

#email-text {
  position: relative; /* Anker für das absolute Icon */
  background-color: var(--accent-color1);
  border-radius: 15px;
  margin-top: 18px;
  font-size: 1.8rem;
  padding: 2rem 2rem 2rem 8.5rem; 
  text-decoration: underline;
  color: var(--text-color);
  font-family: "Bricolage Grotesque", sans-serif;
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
}

/* Hover-Effekt (wie beim Vita-Button) */
.email-container:hover .email-icon {
  transform: translateY(-3px) scale(1.1) rotate(-5deg);
}

/* Tooltip Styling */
.tooltip {
  position: absolute;
  top: -7px; /* Erscheint über der Mail */
  left: 52%;
  color: var(--text-color);
  font-family: "Bricolage Grotesque", sans-serif;
  transform: translateX(-50%) scale(0.9);
  background: var(--accent-color, #8b5cf6);
  color: white;
  font-size: 1.25rem;
  padding: 1rem;
  border-radius: 15px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(.18, .89, .32, 1.28);
}

.email-container.copied .tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1) rotate(5deg);
}

/* Phone Container (same as email but blue) */
.phone-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  cursor: pointer;
  position: relative;
}

.phone-icon {
  width: 80px;
  height: auto;
  position: absolute;
  left: 6px;
  top: -5%;
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
}

#phone-text {
  position: relative;
  background-color: var(--accent-color2);
  border-radius: 15px;
  margin-top: 18px;
  font-size: 1.8rem;
  padding: 2rem 2rem 2rem 7.35rem;
  text-decoration: none;
  color: var(--text-color);
  font-family: "Bricolage Grotesque", sans-serif;
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
}

.phone-container:hover .phone-icon {
  transform: translateY(-3px) scale(1.1) rotate(-5deg);
}

#phoneCopyTooltip {
  position: absolute;
  top: -7px;
  left: 52%;
  color: var(--text-color);
  font-family: "Bricolage Grotesque", sans-serif;
  transform: translateX(-50%) scale(0.9);
  background: var(--accent-color, #c889f0);
  color: white;
  font-size: 1.25rem;
  padding: 1rem;
  border-radius: 15px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(.18, .89, .32, 1.28);
}

.phone-container.copied #phoneCopyTooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1) rotate(5deg);
}

/* ========================== HERO CONTACT BUTTON (matches footer email style) ========================== */
.hero-email-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  cursor: pointer;
  position: relative;
  margin-top: -1rem;
}

#hero-email-text {
  position: relative;
  background-color: var(--accent-color1);
  border-radius: 15px;
  /* Slightly smaller than footer for hero balance */
  font-size: 1.4rem;
  text-decoration: none;
  padding: 1.2rem 2rem 1.2rem 2rem;
  color: var(--text-color);
  font-family: "Bricolage Grotesque", sans-serif;
  display: inline-flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
}

.hero-email-container .hero-email-icon:hover {
  transform: translateY(-3px) scale(1.08) rotate(-5deg);
}

#hero-email-text:hover {
  transform: translateY(-3px) rotate(5deg)scale(1.1);
}

@media (max-width: 900px) {
  .hero-email-container { justify-content: center; margin-top: 2rem;}
}

/* Hero Showreel button (beside Contact) */
.hero-showreel-btn {
  display: inline-block;
  margin-left: 0rem;
  padding: 1.2rem 2rem;
  border-radius: 15px;
  font-size: 1.4rem;
  color: var(--text-color);
  text-decoration: none;
  background: var(--accent-color2);
  font-family: "Bricolage Grotesque", sans-serif;
  transition: all 0.25s ease;
}

.hero-showreel-btn:hover {
  transform: translateY(-3px) rotate(5deg)scale(1.1);
}

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: white;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

.scroll-top .arrow {
  display: block;
  width: 12px;
  height: 12px;
  text-align: center;
  border-left: 1px solid #0E225C;
  border-bottom: 1px solid #0E225C;
  transform: rotate(135deg) translateY(-2px) translateX(2px);
}

/* ========================== Footer ========================== */

footer {
  width: 100%;
  display: flex;
  justify-content: center; /* Zentriert den footer-content horizontal */
}

.footer-content {
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--text-color);
  background-color: color-mix(in srgb, var(--accent-color1), transparent 92%);
  padding: 4rem; /* Etwas mehr Padding wirkt professioneller */
  font-size: 1.2rem;
  width: 100%;
  max-width: 1250px;
  border-radius: 15px;
  
  /* DIE ENTSCHEIDENDEN ZEILEN: */
  margin: 0 auto;       /* Zentriert den Block selbst */
  text-align: center;   /* Zentriert den Textinhalt (das <p> Tag) */
  
  display: flex;
  flex-direction: column;
  align-items: center;  /* Zentriert die Nav-Elemente */
  gap: 1rem;
}

.footer-content p {
  margin: 0; /* Entfernt Standard-Abstände vom Paragraph */
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.footer-nav a {
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: 0.5s ease;
}

.footer-nav a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.separator {
  opacity: 0.4;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .separator {
    display: none;
  }
}


/* ========================== PROJECT PAGES ========================== */
.project-intro {
  width: 100%;
  padding-top: 12rem;
  padding-bottom: 6rem;
}

.project-intro-content {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 4rem;
}

.project-intro h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  font-weight: 400;
  text-align: center;
}

.project-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  border-radius: 15px;
  background-color: var(--accent-color1);
  color: var(--text-color);
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 2rem 0;
  transition: all 0.25s ease;
}

.project-home-btn:hover {
  transform: translateY(-3px) rotate(5deg) scale(1.1);
}

.project-description {
  max-width: 800px;
}

.project-description p {
  font-family: "Roboto Flex", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0 0 1.5rem 0;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-home-link {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 4rem 4rem 4rem;
  text-align: center;
}

/* Project Video Section */
.project-video {
  width: 100%;
  padding: 0 4rem 6rem 4rem;
}

.youtube-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  background: #000;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

/* Side-by-side video layout */
.project-videos-row {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 4rem 6rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-video-half {
  width: 100%;
}

.project-video-half .youtube-wrapper {
  max-width: 100%;
}

@media (max-width: 900px) {
  .project-videos-row {
    padding: 0 2rem 4rem 2rem;
  }
}

@media (max-width: 600px) {
  .project-videos-row {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 3rem 1.5rem;
  }
}

/* ========================== PROJECT / GALLERY ========================== */
.project-gallery {
  width: 100%;
  padding: 6rem 4rem;
}

.gallery-container {
  max-width: 1250px;
  margin: 0 auto;
}

/* Two-column project layout: left images, right text */
.project-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center; /* vertically center both columns */
}

/* Reverse: left text, right images (using flex-direction) */
.project-columns-reverse {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center; /* vertically center all children */
}

.project-columns-reverse > * {
  flex: 1;
}

.project-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-right {
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center;
}

/* For .project-columns-reverse, right column holds images, so make it flex-column */
.project-columns-reverse > .project-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  justify-content: flex-start;
}

.gallery-item.gallery-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.project-right,
.gallery-text {
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-text h3 {
  font-size: 3rem;
  margin: 0 0 1rem 0;
  font-weight: 400;
  text-align: center;
}

.gallery-text p {
  font-family: "Roboto Flex", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

.gallery-item:not(.gallery-main) {
  border-radius: 12px;
  overflow: hidden;
}

/* small images: 2x2 grid inside the left column so each small image equals 25% of page */
.small-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns inside left column */
  gap: 1rem;
  margin: 0;
}

.small-grid .gallery-item {
  width: 100%;
}

/* ========================== PROJECT DESCRIPTION SECTION ========================== */
.project-description-section {
  width: 100%;
  padding: 6rem 4rem;
}

/* Reuse project-columns layout from .project-gallery */
/* (same two-column layout: left images, right text) */

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ========================== MORE PROJECTS (WORK GRID STYLE) ========================== */
.more-projects.work-section {
  padding: 0rem 4rem 4rem 4rem;
}

.more-projects.work-section .work-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .more-projects.work-section { padding: 4rem 2rem; }
  .more-projects.work-section .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .more-projects.work-section { padding: 3rem 1.5rem; }
  .more-projects.work-section .work-grid { grid-template-columns: 1fr; }
}

/* ========================== PROJECT RESPONSIVE ========================== */
@media (max-width: 900px) {
  .project-description-section { padding: 4rem 2rem; }
  .project-columns { grid-template-columns: 1fr; }
  .project-columns-reverse { flex-direction: column; }
  .small-grid { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { padding: 4rem 2rem; }
  .project-home-link { padding: 0 2rem 3rem 2rem; }
  
  .project-intro {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .project-intro-content {
    padding: 0 2rem;
  }

  .project-intro h1 {
    font-size: 6rem;
    margin-bottom: 1.5rem;
  }

  .project-description p {
    font-size: 1rem;
  }

  .project-video {
    padding: 0 2rem 4rem 2rem;
  }
}

@media (max-width: 600px) {
  .project-description-section { padding: 3rem 1.5rem; }
  .small-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .project-gallery { padding: 3rem 1.5rem; }
  .project-home-link { padding: 0 1.5rem 2.5rem 1.5rem; }
  
  .project-intro {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .project-intro-content {
    padding: 0 1.5rem;
  }

  .project-intro h1 {
    font-size: 2rem;
  }

  .project-description p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .project-video {
    padding: 0 1.5rem 3rem 1.5rem;
  }
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 8rem 0 0.5rem; min-height: auto; }
  .hero-left { width: 100%; justify-content: center; margin-bottom: 0.4rem; }
  .hero-right h1 { font-size: 2.3rem; }
  .hero-right { padding: 0rem 4rem 10rem; }
  .hero-left { margin-bottom: 0rem; }
  .header-inner { padding: 0.75rem; }
  .click-counter { left: 50%; }
}

@media (max-width: 600px) {
  #riveCanvas { touch-action: auto; -webkit-touch-callout: none; }
  .click-counter { left: 50%; top: 100%; }
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-color);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner-circle {
  stroke-dasharray: 125.6;
  stroke-dashoffset: 94.2;
  transform-origin: 50% 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ========================== LIGHTBOX ========================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 3rem;
  cursor: none;
  transition: color 0.2s ease;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: var(--accent-color);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent-color1);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0 1rem;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1001;
  user-select: none;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-nav:hover {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.2);
}

.lightbox-nav svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: inherit;
}
