:root {
  --bg: #171717;
  --surface: #222222;
  --line: #3a3a3a;
  --text: #f3f3f3;
  --muted: #c5cace;
  --primary: #00ccff;
  --nav-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  background: var(--bg);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("gallery/d1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.48;
  animation: hero-bg-cycle 72s infinite;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.75));
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  max-width: none;
  margin: 0;
  padding: 1.2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #111111;
  backdrop-filter: blur(6px);
  transition: transform 0.24s ease;
  will-change: transform;
}

.nav.is-hidden {
  transform: translateY(calc(-100% - 2px));
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: clamp(170px, 22vw, 245px);
  height: auto;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--primary);
}

.hero-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(-28px);
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.84rem;
  color: var(--primary);
}

#kontakt .kicker {
  font-size: 1.16rem;
}

h1 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2.35rem, 5.7vw, 4.5rem);
  line-height: 1.05;
  max-width: 940px;
}

h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3.2vw, 2.8rem);
  max-width: 860px;
}

.hero-content > p {
  max-width: 760px;
  color: #d2d8dc;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--primary);
  color: #032a33;
  font-weight: 800;
  padding: 0.8rem 1.2rem;
  border-radius: 2px;
}

.btn-outline {
  background: transparent;
  color: #f1f1f1;
  border: 1px solid #676767;
}

.btn-outline:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4.8rem 1rem;
}

.about-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.3fr 1fr;
}

.about-grid p {
  margin: 0;
  color: #d5dbde;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stats-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: 1.6rem;
  color: #fff;
}

.stats-grid span {
  color: #c9d0d4;
  font-size: 0.92rem;
}

.service-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  padding: 1rem;
}

.service-grid h3 {
  margin-top: 0;
}

.service-grid p {
  margin-bottom: 0;
  color: #d2d8dc;
}

.project-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-grid img {
  height: 230px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.project-slider {
  margin-top: 2rem;
  position: relative;
  height: clamp(320px, 54vw, 560px);
  border: 1px solid var(--line);
  overflow: hidden;
}

.project-slider .project-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.project-slider .project-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.55);
  color: #f1f1f1;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.slider-nav.prev {
  left: 14px;
}

.slider-nav.next {
  right: 14px;
}

.slider-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #0f1112;
}

.project-thumbs {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.thumb {
  width: 60px;
  padding: 0;
  border: 1px solid #4b4b4b;
  background: #121212;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.thumb:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.thumb.is-active {
  border-color: var(--primary);
}

.thumb.is-active img {
  opacity: 1;
}

.trust-marquee,
.gear-marquee,
.band-marquee {
  margin-top: 2rem;
  overflow: hidden;
  padding: 0.35rem 0;
}

.trust-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: trust-right 90s linear infinite;
  align-items: center;
}

.gear-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: trust-right 90s linear infinite;
  align-items: center;
}

.band-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: trust-right 90s linear infinite;
  align-items: center;
}

.trust-track span,
.gear-track span,
.band-track span {
  text-align: center;
  min-width: 180px;
  padding: 0.4rem 0.2rem;
  font-weight: 700;
  font-style: italic;
  font-family: "Montserrat", sans-serif;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.gear-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  text-decoration: none;
  font-weight: 700;
  font-style: italic;
  font-family: "Montserrat", sans-serif;
  color: var(--primary);
  letter-spacing: 0.04em;
  padding: 0.4rem 0.2rem;
}

.gear-link:hover {
  color: #ffffff;
}

.gear-marquee:hover .gear-track {
  animation-play-state: paused;
}

.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}

.band-marquee:hover .band-track {
  animation-play-state: paused;
}

.reference-subtitle {
  margin: 2.1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9e0e4;
}

.reference-note {
  margin: 1rem 0 0;
  color: #bfc7cc;
}

.facebook-feed {
  margin-top: 1.8rem;
  max-width: 560px;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  color: #e6ecef;
  text-decoration: none;
  font-weight: 700;
}

.facebook-link svg {
  width: 22px;
  height: 22px;
}

.facebook-link .fb-bg {
  fill: #1877f2;
}

.facebook-link .fb-f {
  fill: #ffffff;
}

.facebook-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.facebook-link:hover svg {
  transform: scale(1.04);
}

.contact-wrap {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-mailto {
  align-content: start;
}

.contact-mailto .btn {
  width: fit-content;
}

label {
  color: #dbe1e4;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  background: #121212;
  border: 1px solid #595959;
  color: #f2f2f2;
  padding: 0.74rem;
}

button {
  margin-top: 0.5rem;
  border: none;
  background: var(--primary);
  color: #032a33;
  font-weight: 800;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

button:hover {
  background: #39d7ff;
}

.small {
  color: #bac3c8;
}

.footer {
  border-top: 1px solid #2b2b2b;
  background: #111111;
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  justify-items: stretch;
  align-items: start;
}

.footer-grid > div:first-child {
  text-align: left;
}

.footer-grid > div:last-child {
  text-align: center;
}

.footer h3 {
  margin: 0 0 0.5rem;
}

.footer p {
  margin: 0.25rem 0;
  color: #c7ced2;
}

.footer-logo {
  width: clamp(170px, 22vw, 240px);
  margin-bottom: 0.6rem;
}

.footer a {
  color: #c7ced2;
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary);
}

.copyright {
  width: 100%;
  margin: 1.2rem 0 0;
  border-top: 1px solid #262626;
  padding-top: 0.8rem;
  color: #aeb7bd;
  font-size: 0.92rem;
  text-align: center;
}

@keyframes trust-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes hero-bg-cycle {
  0%, 11.1% { background-image: url("gallery/d1.jpg"); }
  11.2%, 22.2% { background-image: url("gallery/d2.jpg"); }
  22.3%, 33.3% { background-image: url("gallery/d3.jpg"); }
  33.4%, 44.4% { background-image: url("gallery/d5.jpg"); }
  44.5%, 55.5% { background-image: url("gallery/d6.jpg"); }
  55.6%, 66.6% { background-image: url("gallery/d7.jpg"); }
  66.7%, 77.7% { background-image: url("gallery/d8.jpg"); }
  77.8%, 88.8% { background-image: url("gallery/d9.jpg"); }
  88.9%, 100% { background-image: url("gallery/d10.jpg"); }
}

@media (max-width: 1040px) {
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .nav ul {
    flex-wrap: wrap;
  }

  .hero-content {
    margin-top: 3.5rem;
  }

  .section {
    padding: 3.6rem 1rem;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .project-thumbs {
    gap: 0.45rem;
  }

  .thumb {
    width: 52px;
  }

  .service-grid,
  .contact-wrap,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    text-align: center;
  }

  .trust-track {
    animation-duration: 110s;
  }

  .gear-track {
    animation-duration: 110s;
  }

  .band-track {
    animation-duration: 110s;
  }
}
