:root {
  --color-bg: #070707;
  --color-surface: #111111;
  --color-accent: #cbae7b;
  --color-accent-hover: #e2c594;
  --color-text-main: #f9f9f9;
  --color-text-muted: #a1a1aa;
  
  --font-serif: 'Outfit', sans-serif;
  --container-width: 1200px;
  --section-padding: 100px 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  line-height: 1.2;
  color: var(--color-text-main);
}

h1, h2 {
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h3 {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  font-weight: 300;
}

.lead-text {
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 24px;
  font-weight: 400;
}

.accent-text {
  color: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: transparent;
  color: var(--color-accent);
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-accent);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
  box-shadow: 0 4px 20px rgba(203, 174, 123, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #000;
}

/* HEADER / NAV */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(7, 7, 7, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--color-text-main);
}

.nav-links a.btn {
  color: var(--color-accent);
}

.nav-links a.btn:hover {
  color: #000;
}

.nav-links a.active,
.drawer-links a.active {
  color: var(--color-accent);
}

/* HERO */
.hero {
  height: 80vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  background: linear-gradient(0deg, rgba(7,7,7,1) 0%, rgba(0,0,0,0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  padding-top: 140px;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.hero-subtitle {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.875rem;
  margin-bottom: 24px;
  display: block;
  font-family: 'Times New Roman', Times, serif;
}

.hero p {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

/* SECTIONS */
section {
  padding: var(--section-padding);
}

.section-tag {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
  font-family: 'Times New Roman', Times, serif;
}

/* ÜBER MICH (CENTERED WITH FILM STRIP) */
.about-graphic-section {
  position: relative;
  background-color: var(--color-bg);
  padding: 180px 24px;
  text-align: center;
  color: white;
  overflow: hidden; /* Clipped to section boundaries */
  z-index: 5;
}

.film-strip-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.film-strip-img {
  width: 130%;
  height: auto;
  object-fit: cover;
  transform: rotate(-8deg) translateY(50px);
  filter: contrast(1.1) brightness(0.7) blur(1px);
}

.about-centered-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.about-centered-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 24px 0;
}

.about-centered-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #e0e0e0;
  font-weight: 300;
}

/* WARUM WIR (3-4 KACHELN) */
/* WARUM WIR (MODERN CLEAN GRID) */
.why-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.why-item-modern {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  transition: all 0.4s ease;
}

.why-item-modern:hover {
  border-top-color: var(--color-accent);
  transform: translateY(-5px);
}

.why-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.why-item-num {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 2px;
}

.why-item-modern h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-text-main);
}

.why-item-modern p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* LEISTUNGEN GRID (Variable Widths, Same Height per Row) */
.services-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card-modern {
  background-color: var(--color-surface);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-modern:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-icon-wrapper {
  padding: 32px 32px 0 32px;
  display: flex;
  align-items: center;
}

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  transition: transform 0.4s ease, color 0.4s ease;
}

.service-card-modern:hover .service-icon {
  transform: scale(1.1) translateY(-2px);
  color: var(--color-text-main);
}

.service-content {
  padding: 24px 32px 32px 32px;
  flex-grow: 1;
  text-align: left;
}

.service-content h3 {
  color: var(--color-text-main);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.s-grid-w7 { grid-column: span 7; }
.s-grid-w5 { grid-column: span 5; }
.s-grid-w4 { grid-column: span 4; }
.s-grid-w12 { grid-column: span 12; }

/* ARBEITEN / SHOWCASE */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.work-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  aspect-ratio: 16/9;
  background-color: #1a1a1a;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.7) grayscale(0.2);
}

.crop-video-bars img {
  transform: scale(1.15);
}

.crop-video-bars:hover img {
  transform: scale(1.2);
}

.work-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.9) grayscale(0);
}

.work-item-overlay {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 50%);
  pointer-events: none;
}

.work-category {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 4px;
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.4s ease;
}

.work-title {
  margin: 0;
  font-size: 1.5rem;
  transform: translateY(10px);
  opacity: 0.9;
  transition: all 0.3s ease;
  color: var(--color-text-main);
}

.work-item:hover .work-category {
  transform: translateY(0);
  opacity: 1;
}

.work-item:hover .work-title {
  transform: translateY(0);
  opacity: 1;
}

/* ABLAUF */
.process-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 1;
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step:hover {
  transform: translateY(-10px);
}

.step-num {
  width: 64px;
  height: 64px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 auto 24px auto;
  transition: all 0.4s ease;
}

.step:hover .step-num {
  background-color: var(--color-accent);
  color: #000;
  box-shadow: 0 5px 25px rgba(203, 174, 123, 0.5);
  transform: scale(1.1);
}

.step h4 {
  font-size: 1.125rem;
  margin: 0;
  transition: color 0.3s ease;
}

.step:hover h4 {
  color: var(--color-accent);
}

/* REFERENZEN */
.references-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin-top: 40px;
}

.ref-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.ref-logo-link:hover .ref-logo {
  filter: grayscale(0) opacity(1) sepia(1) saturate(0.8) brightness(0.85);
  transform: scale(1.03);
}

.ziganimo-text-logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ziganimo-text-logo {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--color-text-main);
  filter: grayscale(1) opacity(0.7);
  transition: all 0.3s ease;
  line-height: 1;
}

.ziganimo-text-logo-link:hover .ziganimo-text-logo {
  filter: grayscale(0) opacity(1);
  color: var(--color-accent);
  transform: scale(1.05);
}

.ref-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.ref-link:hover,
.ref-link[href]:hover {
  color: var(--color-accent);
}

/* KONTAKT */
.contact-section {
  background-color: var(--color-surface);
  text-align: center;
  padding: 100px 24px;
}

.contact-form {
  max-width: 600px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

input, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--color-text-main);
  padding: 16px 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* BURGER MENU & MOBILE NAV */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  flex-direction: column;
  gap: 6px;
}

.burger-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-text-main);
  transition: all 0.3s ease;
}

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

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

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.drawer-links a {
  font-family: var(--font-main);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--color-text-main);
}

.drawer-links a.btn {
  color: var(--color-accent);
}

.drawer-links a.btn:hover {
  color: #000;
}

body.no-scroll {
  overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  :root {
    --section-padding: 60px 20px;
  }

  header {
    padding: 12px 0;
  }

  .desktop-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
    margin-right: 12px;
  }

  .hero {
    height: auto;
    padding: 160px 24px 80px;
    text-align: center;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .services-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .s-grid-w7, .s-grid-w5, .s-grid-w4 {
    grid-column: span 12;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .why-grid-modern {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps {
    flex-direction: column;
    gap: 48px;
    margin-top: 40px;
  }

  .process-steps::before {
    display: none;
  }

  .about-graphic-section {
    padding: 80px 20px;
  }

  .section-tag {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 0.8rem;
  }

  .about-centered-content h2 {
    font-size: 1.8rem;
  }

  .about-centered-content p {
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .film-strip-img {
    width: 150%;
    transform: rotate(0deg) translateY(0);
    opacity: 0.4;
  }

  .footer-copyright {
    text-align: center;
    font-size: 0.75rem;
  }

  footer .container {
    justify-content: center !important;
    text-align: center !important;
  }

  footer .container > div {
    flex: 1 1 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
  }

  footer .container > div img {
    margin: 0 auto !important;
  }
}

/* CAROUSEL / SLIDER OPTIMIZATION (If added) */

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background-color: var(--color-surface);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.back-to-top:hover {
  background-color: var(--color-accent);
  color: #000;
  transform: translateY(-5px);
}

@media (max-width: 900px) {
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
  }
}
