@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

:root {
  --sidebar-width: 350px;
  --gap: 12px;
  --font-sans: "Roboto Mono", monospace, Arial, sans-serif;

  --gray-200: #d9d9d9;
  --text: #000;
  --muted: #666;

  --footer-h: 40px;

  --hover-dim: 0.65;
  --lift: -2px;
  --scale-icon: 1.08;
  --scale-card: 1.02;

  --focus-ring: 2px solid #000;
  --focus-offset: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-size: 10px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.4;
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--muted);
  transition:
    opacity 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

a,
button {
  cursor: pointer;
}

.wrapper {
  max-width: 1640px;
  height: 100vh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100%;
  padding: 64px 48px 32px;
}

.content {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 0 var(--gap) var(--gap);
  margin-top: 100px;
}

.brand {
  margin: 0 0 48px;
  font-size: 2.2rem;
}

.brand a {
  color: var(--text);
  opacity: 1;
}

.brand a:hover {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 1;
  color: var(--text);
}

.nav__item:not(.nav__item--active) a {
  opacity: var(--hover-dim);
}

.nav__item:not(.nav__item--active) a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--footer-h) + 24px);
  scrollbar-width: none;

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.55s,
    transform 0.55s;
  pointer-events: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.page--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.page[data-page="contact"],
.page[data-page="about"],
.page[data-page="legal"],
.page[data-page="impressum"] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  text-align: center;
  margin: 0 0 24px;
  font-size: 1.8rem;
  font-weight: 600;
}

.page[data-page="contact"] .section-title {
  margin-bottom: 60px;
}
.page[data-page="about"] .section-title {
  margin-bottom: 55px;
}
.page[data-page="legal"] .section-title,
.page[data-page="impressum"] .section-title {
  margin-bottom: 40px;
}

.section-switch a {
  opacity: 0.5;
}

.section-switch a:hover {
  opacity: 0.8;
}

.section-switch a.section-link--active {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gallery {
  display: grid;
  max-width: 1080px;
  margin-inline: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: calc(var(--footer-h) + 30px);
}

.g-item {
  position: relative;
  overflow: hidden;
  background: var(--gray-200);
  border-radius: 2px;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: transform 0.35s ease;
}

.g-item--hero {
  grid-column: span 1;
}

.g-item:hover {
  transform: scale(var(--scale-card));
}

@media (hover: hover) {
  .g-item:hover .overlay {
    opacity: 1;
  }
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.company-name {
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-align: center;
  padding: 10px 14px;
}

.contact-label {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: var(--muted);
}

.contact-email {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 20px;
}

.contact-email:hover {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page[data-page="contact"] ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page[data-page="contact"] ul img {
  width: 30px;
  height: 30px;
  display: block;
}

.page[data-page="contact"] ul a {
  display: inline-flex;
  opacity: 0.6;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.page[data-page="contact"] ul a:hover {
  opacity: 1;
  transform: translateY(var(--lift)) scale(var(--scale-icon));
}

.about {
  max-width: 740px;
  font-size: 1.6rem;
  line-height: 1.6;
}

.about p {
  margin: 0 0 1.6rem;
}

.about strong {
  font-weight: 600;
}

.hitmeup {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hitmeup:hover {
  opacity: 0.7;
}

.legal-content {
  max-width: 640px;
  font-size: 1.6rem;
  line-height: 1.6;
}

.legal-content h3 {
  margin: 0 0 24px;
  font-size: 1.8rem;
  font-weight: 600;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  opacity: 0.7;
}

.legal {
  display: none;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 2px;
}

.page[data-page="contact"] ul a:focus-visible {
  outline-offset: 6px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .g-item:hover {
    transform: none;
  }

  .cz-monkey,
  .cz-blink {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar-width: 280px;
  }

  .sidebar {
    padding: 48px 28px 24px;
  }

  .content {
    margin-top: 48px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 0;
}

@media (hover: none) {
  .overlay {
    opacity: 0.75;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 18px 20px;
    background: #fff;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    margin: 0;
    font-size: 1.8rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease,
      opacity 0.3s ease;
    opacity: 0;
  }

  .nav-wrapper--open {
    max-height: 200px;
    padding: 16px 20px 20px;
    opacity: 1;
  }

  .nav {
    flex-direction: column;
  }

  .nav__item {
    margin-bottom: 12px;
  }

  .content {
    position: static;
    height: auto;
    overflow: visible;
    margin-top: 64px;
    padding: 20px 20px;
  }

  .page {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
    display: none;
    padding-bottom: 32px;
  }

  .page--active {
    display: block;
  }

  .page[data-page="contact"],
  .page[data-page="about"],
  .page[data-page="legal"],
  .page[data-page="impressum"] {
    display: none;
  }

  .page[data-page="contact"].page--active,
  .page[data-page="about"].page--active,
  .page[data-page="legal"].page--active,
  .page[data-page="impressum"].page--active {
    display: flex;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .g-item--hero {
    grid-column: span 1;
  }
}

@media (max-width: 420px) {
  .page[data-page="contact"] ul {
    gap: 28px;
  }
}

.g-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-backdrop--active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 2px;
  scrollbar-width: none;

  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.modal-backdrop--active .modal {
  transform: translateY(0);
}

.modal::-webkit-scrollbar {
  display: none;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px 0 0;
  background: none;
  border: none;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  color: var(--text);
}

.modal-inner {
  padding: 40px 48px 48px;
}

.modal-meta {
  margin-bottom: 28px;
}

.modal-meta h2 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-sans);
}

.modal-tags {
  margin: 0;
  font-size: 1.3rem;
  color: var(--muted);
  font-family: var(--font-sans);
}

.modal-media {
  margin-bottom: 28px;
}

.modal-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--muted);
  font-family: var(--font-sans);
  border-radius: 2px;
}

.modal-text {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--text);
  font-family: var(--font-sans);
}

.modal-text p {
  margin: 0 0 1.4rem;
}

.modal-text a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-text a:hover {
  opacity: 0.6;
}

@media (max-width: 760px) {
  .modal-inner {
    padding: 28px 24px 36px;
  }

  .modal-meta h2 {
    font-size: 1.8rem;
  }
}

.construction-zone {
  position: relative;
  max-width: 1080px;
  min-height: 380px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
}

.cz-monkey {
  position: absolute;
  width: 160px;
  height: auto;
  border-radius: 8px;
  animation: cz-fly 9s ease-in-out infinite;
}

@keyframes cz-fly {
  0% {
    left: -5%;
    top: 15%;
    transform: rotate(-8deg);
  }
  20% {
    left: 25%;
    top: 65%;
    transform: rotate(6deg);
  }
  40% {
    left: 55%;
    top: 10%;
    transform: rotate(-10deg);
  }
  60% {
    left: 80%;
    top: 60%;
    transform: rotate(8deg);
  }
  80% {
    left: 45%;
    top: 30%;
    transform: rotate(-6deg);
  }
  100% {
    left: -5%;
    top: 15%;
    transform: rotate(-8deg);
  }
}

.cz-blink {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  text-transform: lowercase;
  color: #000;
  animation: cz-blink 1s step-start infinite;
}

@keyframes cz-blink {
  50% {
    opacity: 0.15;
  }
}

@media (max-width: 760px) {
  .construction-zone {
    min-height: 280px;
    padding: 36px 16px;
  }

  .cz-monkey {
    width: 110px;
  }

  .cz-blink {
    font-size: 1.5rem;
  }
}

@media (max-width: 420px) {
  .cz-monkey {
    width: 90px;
  }

  .cz-blink {
    font-size: 1.2rem;
  }
}
