:root {
  --zgreen: rgba(63, 159, 102, 1);
  --zblue: rgba(63, 120, 159, 1);
  --zwhite: rgba(255, 255, 255, 1);
}
/* MAIN BASE */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Fira Sans', sans-serif;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-size: 16px;
  color: #111827;              /* dark gray instead of pure black */
  background-color: #000;      /* you already have the wave bg on .zhero */
}


/* BACKGROUND PAGE FLEX */
.zhero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
  background-image: url("/img/wave.jpg");
  background-size: cover;
  background-position: center;
  padding-bottom: 70px;
  box-sizing: border-box;
}

/* TOP BAR */
.ztopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2vh 5vw 0 5vw;
}

.zlogo img {
  width: 18vw;
  max-width: 260px;
  height: auto;
  cursor: pointer;
}

#zlang {
  display: flex;
  gap: 0.5rem;
}

#zlang .zlang-btn {
  /*
  color: white;
  background-color: black;
  border: 1px solid white;
  border-radius: .75rem;
  */
  padding: 0.4rem 0.8rem;
  margin: 0;
  text-shadow: none;
  font-size: 1rem;
}

#zlang .zlang-btn:hover {
  color: black;
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid black;
}

/* ZCONTENT */
.zcontent {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  padding: 2vh 5vw;
  min-height: 0;
}

.zleft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.zright {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* slogan */
/*
.zneon {
  color: white;
  font-size: 2.5vw;
  font-style: italic;
  line-height: 1;
  text-shadow: 1px 1px 2px black;
  margin: 0;
  background-color: rgba(63, 159, 102, 0.75);
  background-color: rgba(29, 97, 158, 0.75);
  background-color: rgba(63, 120, 159, 0.75);
  padding: 1rem 2rem;
  border-radius: 1rem;
  opacity: 0;
  transform: translateX(30px);
  animation: zneon-slide 0.9s ease-out 0.2s forwards;
}
*/
/* slogan box (desktop) */
.zneon-box {
  color: white;
  font-size: 3vw;
  line-height: 1;
  text-shadow: 1px 1px 2px black;
  margin: 0;
  background-color: rgba(63, 159, 102, 0.75);

  background-color: rgba(37, 99, 235, 0.5);
  background-color: rgba(63, 120, 159, 0.75);
  padding: 1rem 1.5rem;
  border-radius: 1rem;

  display: flex;
  flex-direction: row;
  gap: 0.6rem;

  opacity: 0;
  transform: translateX(30px);
  animation: zneon-slide 0.9s ease-out 0.2s forwards;
}

.zneon-text {
  margin: 0;
  font-size: 2.2vw;
  font-style: italic;
}

/* slogan image inside the box */
.zneon-img {
  width: 180px;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  align-self: flex-end;
}

@keyframes zneon-slide {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Quote under the slogan box */
.zquote {
  margin: 1rem 0 0 0;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  color: #e5e7eb; /* light gray */
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.zquote-text {
  margin: 0;
  font-style: italic;
}

.zquote-author {
  margin: 0.35rem 0 0 0;
  text-align: right;
  font-size: 0.75rem;
  opacity: 0.9;
}


/* buttons row */
.zsectors {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  margin: 0 0 0 5vw;
}

/* info box */
/* main info card */
.zinfo {
  width: 50vw;
  max-width: 50vw;
  padding: 1.6rem 2rem;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 1.25rem;
  max-height: 55vh;
  overflow-y: auto;
  margin: 5rem 5rem 0 0;
  margin: 0;

  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  line-height: 1.6;
}

/* top “section title” (Zuegg Solutions…) */
.zinfo h1 {
  font-size: clamp(1.4rem, 1.1rem + 0.5vw, 1.7rem);
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

/* green line “Wir realisieren für Sie Ihre Vision!” */
.zinfo h2 {
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem);
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: #16a34a; /* tailwind-ish emerald-600 */
}

/* small sub-headings (Präsentationssysteme…, TV-Anlagen, etc.) */
.zinfo h3 {
  font-size: clamp(1rem, 0.9rem + 0.2vw, 1.1rem);
  margin: .5rem 0 0.4rem 0;
  font-weight: 600;
  color: #0f766e; /* teal-ish accent */
}

/* paragraphs + list items */
.zinfo p {
  font-size: 1em;
  line-height: 1.4;
  margin: 0.2rem 0;
}

.zinfo li {
  font-size: 1em;
  line-height: 1.2;
  margin: 0.2rem 0;
}
/* lists */
.zinfo ul {
  padding-left: 1.2em;
  margin: 0.4rem 0 0.6rem 0;
}

/* emphasize important lines without shouting */
.zinfo p strong {
  font-weight: 700;
  color: #111827;
}


.zinfo-fade {
  animation: zinfo-fadein 220ms ease-out;
}

@keyframes zinfo-fadein {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* more info */
.zmore-wrapper {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  z-index: 100;
}

/* Gallery thumb styling */
.zgallery-thumb {
  position: relative;
  display: inline-block;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zgallery-thumb img {
  display: block;
  width: 180px;
  height: auto;
}

/* Label overlay */
.zgallery-label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;       /* clicks go to the link */
}

/* hover effect */
.zgallery-thumb:hover,
.zgallery-thumb:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* button */
.zbutton {
  color: white;
  background-color: rgba(63, 159, 102, 0.75);
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(63, 159, 102, 0.75);
  text-decoration: none;
  text-shadow: 1px 1px 2px black;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: all 300ms;
  border-radius: 1rem;
  cursor: pointer;
}
/*
.zbutton:hover {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid white;
  color: white;
}
*/
/* Animated gradient background for AUDIO / VIDEO / ANTENNEN */
.zsectors .zbutton {
  position: relative;
  overflow: hidden;

  /* override base bg/border for these three only */
  background-image: linear-gradient(
    120deg,
    #3f9f66,
    #76d8a8,
    #3f9f66
  );
  background-size: 200% 200%;
  background-position: 0% 50%;

  border-color: transparent;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 600;

  animation: zsector-gradient 6s ease-in-out infinite;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* hover: a bit brighter and “lifted” */
.zsectors .zbutton:hover,
.zsectors .zbutton:focus-visible {
  animation-duration: 3s;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* simple animated gradient like the CodePen */
@keyframes zsector-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* optional: hide the little dot completely */
/*
.zpulse-dot {
  display: none;
}
*/

/* pulsing dot */
.zsectors .zbutton {
  padding-right: 2.3rem;
}

.zpulse-dot {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.9;
  animation: zdot-pulse 2.4s ease-in-out infinite;
}

@keyframes zdot-pulse {
  0% {
    transform: translateY(-50%) scale(0.9);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-50%) scale(1.4);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(0.9);
    opacity: 0.4;
  }
}

.zindiv {
  font-weight: bold;
}


/* SPECIAL STYLE: "MEHR INFOS" button */

.zmore-wrapper .zbutton {
  position: relative;
  overflow: hidden;

  /* override global button colors */
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(63, 159, 102, 0.95);
  color: rgba(63, 159, 102, 1);
  text-shadow: none;

  padding: 0.7rem 2.2rem;
  border-radius: 999px;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  font-weight: 600;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* gradient “wipe” background */
.zmore-wrapper .zbutton::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    120deg,
    #3f9f66,
    #76d8a8,
    #3f9f66
  );
  background-size: 200% 200%;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;          /* stay behind the text */
}

/* hover / focus: fill with gradient and lift */
.zmore-wrapper .zbutton:hover,
.zmore-wrapper .zbutton:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* animate the gradient swipe in */
.zmore-wrapper .zbutton:hover::before,
.zmore-wrapper .zbutton:focus-visible::before {
  transform: translateX(0);
}


/* BOTTOM BAR */
.zbottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: 0.4rem 5vw 0.6rem 5vw;
  display: flex;
  justify-content: flex-end;
  z-index: 50;
  box-sizing: border-box;
  background: transparent;
}
.zcontact-trigger {
  display: none;
}
/*
.zcontact-trigger {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(0, 0, 0, 0.85);
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  animation: zcontact-blink 2.8s ease-in-out infinite;
}
*/
.zcontact-trigger:hover {
  animation-play-state: paused;
}
@keyframes zcontact-blink {
  0% {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    background-color: rgba(0, 0, 0, 1);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
  }
  100% {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

.zcontact {
  display: flex;
  align-items: center;
  border-radius: 1rem;
  background: rgba(0, 0, 0, .5);
  padding: 0.8rem 1rem;
  margin-left: auto;
  color: white;
  gap: 1rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.zcontact:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.zcontact p {
  color: white;
  margin: 0;
  padding: 0 1rem 0 0;
  line-height: 1.25;
  text-align: right;
  font-size: 0.9rem;
}
.zcontact a {
  color: white;
  text-decoration: none;
}
.zcontact a:hover {
  color: rgba(63, 159, 102, 0.75);
  text-decoration: none;
}

.zcontact-main {
  max-height: none;
  opacity: 1;
  overflow: visible;
  transform: none;
}
.zcontact-main p {
  margin: 0;
  padding: 0;
  line-height: 1.25;
  text-align: right;
  font-size: 0.9rem;
}
.zcontact1 {
  display: block;
  margin-top: 0.5rem;
}
.zcontact2 {
  display: block;
  margin-top: 0.5rem;
  color: rgba(63, 159, 102, 1);
}
/* bar at the bottom of the card on desktop */
.zcontact-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.zcontact-label {
  background: rgba(63, 159, 102, 1);
  color: white;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.zmap iframe {
  width: 180px;
  height: 180px;
  border-radius: 1rem;
}

/***************************************************************************/

/* POPUP OVERLAY */
.zoverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* :target makes it visible when #zmoreinfo is in the URL */
.zoverlay:target {
  visibility: visible;
  opacity: 1;
}

/* full-screen clickable area behind the popup */
.zoverlay-bg {
  position: absolute;
  inset: 0;
  display: block;
}

/* POPUP BOX */
.zpopup {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  background-image: url("/img/wave.jpg");
  background-size: cover;
  background-position: center;

  border-radius: 1rem;
  padding: 1.5rem 2rem;
  width: min(800px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1; /* above .zoverlay-bg */
}

.zpopup-body {
  background: rgba(255, 255, 255, .75); /* bg popup */
  border-radius: 1rem;
  padding: 1rem;
}

.zpopup h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  background: rgba(63, 159, 102, 0.85);
  color: white;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
}

.zpopup p,
.zpopup li {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* close X */
.zpopup .zclose {
  position: absolute;
  top: 0.3em;
  right: 0.7em;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
  line-height: 1;
}
.zpopup .zclose:hover {
  color: rgba(63, 159, 102, 1);
}


/* CONTACT POPUP layout */
.zpopup-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.zpopup-body .ztext {
  flex: 1 1 220px;
}

.zpopup-map iframe {
  width: 260px;
  height: 200px;
  border-radius: 0.75rem;
}


/* FULLSCREEN RIPPLE BACKGROUND (transparent) */
.zripple-bg {
  position: fixed;
  inset: 0;                     /* top:0; right:0; bottom:0; left:0 */
  pointer-events: none;         /* don't block clicks on the page */
  background: transparent;      /* no extra background, only circles */
  overflow: hidden;
  z-index: 0;                   /* behind most content, above page background */
}

/* single circle */
.zripple {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .75);
  transform: translate(-50%, -50%);
  animation: zripple-wave 9s linear infinite;
}

/* stagger the waves */
.zripple:nth-child(2) {
  animation-delay: 3.3s;
}
.zripple:nth-child(3) {
  animation-delay: 6.6s;
}

/* grow from center to beyond screen */
@keyframes zripple-wave {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  100% {
    width: 200vmax;
    height: 200vmax;
    opacity: 0;
  }
}

/* FULLSCREEN HORIZONTAL DRIFT – like the wave sliding left */
.zdrift-bg {
  position: fixed;
  inset: 0;                           /* top:0; right:0; bottom:0; left:0 */
  pointer-events: none;               /* don't block clicks */
  z-index: 0;                         /* behind content, with ripples */

  /* transparent overlay: light band + soft shadow band */
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(0, 0, 0, 0.6)       60%,
    rgba(0, 0, 0, 0.0)        100%
  );
  background-size: 200% 100%;
  background-position: 100% 50%;      /* start from the right */

  mix-blend-mode: soft-light;         /* blend with your wave.jpg */
  opacity: 0.6;                       /* keep it subtle */

  animation: zdrift-move 20s linear infinite;
}

/* Very slow drift to the left */
@keyframes zdrift-move {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
  100% { background-position: -100% 50%; }
}
/*
.zdrift-bg { z-index: -1; }
.zripple-bg { z-index: 0; }
*/

/****************************************************************************** GALLERY */
.alex {
  margin-top: 1rem;
}
.alex:hover {
  opacity: 75%;
}
.alex img {
  border: 1px solid white;
  width: 99px;
  height: auto;
  border-radius: 1rem;
}

/***************************************************************************/
/***************************************************************************/

/* LARGE SCREENS */
@media screen and (min-width: 1980px) {
  .zneon { font-size: 2.5vw; }
}

/* MOBILE & SMALL SCREENS */
@media screen and (max-width: 900px) {

  .zlogo img {
    width: 35vw;
    max-width: 150px;
  }

  .zhero {
    /*
    min-height: 100vh;
    height: 100vh;
    */
    padding-bottom: 70px;
    box-sizing: border-box;
  }

  /* hide full contact box on mobile */
  .zcontact {
    display: none;
  }

  /* show KONTAKT button instead */
  .zcontact-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 0, 0, 0.85);
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    animation: zcontact-blink 2.8s ease-in-out infinite;
  }

  .zcontact-trigger:hover {
    animation-play-state: paused;
  }

  .zcontent {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 0;
    padding: 2vh 4vw;
  }

  .zright {
    order: 1;
    align-items: center;
    width: 100%;
  }
  .zleft {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .zneon {
    display: none;
  }
  .zneon-box {
    display: none;
  }

  .zquote {
    display: none;
    margin-top: 0.75rem;
    max-width: 90vw;
    text-align: center;
  }

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

  .alex {
    margin-top: 0;
  }

  .zsectors {
    justify-content: center;
    margin: 0 auto;
  }
  .zbutton {
    font-size: .9rem;
  }

  .zinfo {
    width: 90vw;
    max-width: 90vw;
    max-height: 45vh;
    overflow-y: auto;
    padding: 0;
    margin: 0;
  }
  .zinfo p {
    /* font-size: 1rem; */
    text-align: left;
    padding: 0.5rem 1rem;
    text-align: justify;
    hyphens: auto;
  }
  .zinfo ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
  }

  .zmore-wrapper {
    justify-content: center;
    flex-direction: row;
    width: 100%;
  }
  .zgallery-thumb img {
    height: 64px;
  }
  .zgallery-label {
    font-size: 0.7rem;
  }

  /* bottom bar */
  .zbottom {
    padding: 0 4vw 0.6rem 4vw;
    justify-content: center;
    text-align: center;
  }

  .zcontact {
    padding: 0.4rem 0.5rem;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  /* EXPAND CONTACT */
  /* collapsed by default */
  .zcontact-main {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(4px);
    transition: max-height 220ms ease, opacity 220ms ease, transform 220ms ease;
  }

  .zcontact-main p {
    font-size: 0.75rem;
    text-align: left;
    padding: 0 0.25rem 0.25rem 0.25rem;
  }

  .zcontact-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .zcontact-label {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }

  .zmap iframe {
    width: 110px;
    height: 90px;
    border-radius: 0.75rem;
  }

  /* open on hover (desktop emulation) AND on focus (tap) */
  .zcontact:hover .zcontact-main,
  .zcontact:focus-within .zcontact-main {
    max-height: 260px;   /* enough for full address + phones */
    opacity: 1;
    transform: translateY(0);
  }

  

  /* popup: stack map below text on narrow screens */
  .zpopup-body {
    flex-direction: column;
  }

  .zpopup-map iframe {
    width: 100%;
    height: 220px;
  }

  @keyframes zcontact-blink {
    0% {
      background-color: rgba(0, 0, 0, 0.85);
      box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
      background-color: rgba(0, 0, 0, 1);
      box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
    }
    100% {
      background-color: rgba(0, 0, 0, 0.85);
      box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
  }

}

/* VERY SMALL */
/*
@media screen and (max-height: 650px) {
  html, body {
    overflow-y: auto;
  }

  .zhero {
    height: auto;
    min-height: 100vh;
  }

  .zbottom {
    position: static;
  }

  .zpopup-body {
    flex-direction: column;
  }

  .zpopup-map iframe {
    width: 100%;
    height: 220px;
  }
}
*/

@media (prefers-reduced-motion: reduce) {
  .zsectors .zbutton,
  .zpulse-dot,
  .zneon,
  .zcontact,
  .zinfo,
  .zinfo-fade,
  .zcontact-trigger {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
  }
}

