/* Fonts */

@font-face {
  font-family: "Owners";
  font-weight: 900;
  src: url("../fonts/Owners_XBlack.otf") format("opentype");
}

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/InterTight-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: italic;
  src: url("../fonts/InterTight-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  src: url("../fonts/InterTight-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: italic;
  src: url("../fonts/InterTight-BoldItalic.ttf") format("truetype");
}

/* General */

* {
  box-sizing: border-box;
}

html {
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Inter", sans-serif;
  font-size: var(--font-size-medium);
  color: rgba(var(--grey), 1);
  background-color: var(--background);
  margin: 0;
  transition: 0.2s background-color;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  line-height: inherit;
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

header h1 {
  margin: 0;
  font-size: inherit;
  font-family: "Owners", sans-serif;
  text-transform: uppercase;
}

.external {
  display: inline-block;
  text-decoration: none;
  font-size: var(--font-size-extrasmall);
  color: rgba(var(--grey), 1);
  padding: 0.5rem 1rem 0.5rem 1rem;
  background-color: rgba(var(--light-grey), 1);
  border-radius: 2rem;
  -webkit-box-shadow: inset 0 0 0.5em rgba(var(--grey), 1);
  -moz-box-shadow: inset 0 0 0.5em rgba(var(--grey), 1);
  box-shadow: inset 0 0 0.5em rgba(var(--grey), 1);
  transition: box-shadow 0.2s;
}

.external:hover {
  -webkit-box-shadow: inset 0 0 0.5em rgba(var(--grey), 0.5);
  -moz-box-shadow: inset 0 0 0.5em rgba(var(--grey), 0.5);
  box-shadow: inset 0 0 0.5em rgba(var(--grey), 0.5);
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.grid-overlay .column:first-child {
  margin-right: -5%;
  z-index: 8;
  mix-blend-mode: multiply;
}

.grid-overlay .column:last-child {
  margin-left: -5%;
}

.column {
  grid-column: span var(--span);
  /* margin-bottom: var(--font-size-large); */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.column img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.column img,
.feature img {
  border-radius: 1.5rem !important;
}

/* Text */

.text {
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* Text alignment */

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

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

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

/* Text sizes */

.text-size-extrasmall {
  font-size: var(--font-size-extrasmall);
  line-height: 1em;
}

.text-size-small {
  font-size: var(--font-size-small);
  line-height: 1em;
}

.text-size-medium {
  font-size: var(--font-size-medium);
  line-height: 1em;
}

.text-size-mediumlarge {
  font-size: var(--font-size-mediumlarge);
  line-height: 1em;
}

.text-size-large {
  font-size: var(--font-size-large);
  line-height: 1em;
}

.text-size-huge {
  font-family: "Owners", sans-serif;
  font-size: var(--font-size-huge);
  line-height: 0.9em;
}

/* Button */

.button {
  font-size: var(--font-size-medium);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.button a,
.button button {
  --glass-inset:
    inset 0 1px 1px rgba(255,255,255,0.95),
    inset 0 2px 7px rgba(255,255,255,0.50),
    inset 0 -1px 2px rgba(255,255,255,0.55),
    inset 0 0 3px rgba(0,0,0,0.05);
  display: inline-block;
  text-decoration: none;
  font-family: "Owners";
  font-size: var(--font-size-small);
  color: rgba(var(--grey), 1);
  padding: 0.5rem 1rem 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.38);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(0,0,0,0.06), rgba(255,255,255,0.12));
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 4rem;
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  backdrop-filter: blur(9px) saturate(150%);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.12),
    0 0 6px rgba(255,255,255,0.55),
    var(--glass-inset);
  transition: box-shadow 0.2s;
}

.button a:hover,
.button button:hover {
  box-shadow:
    0 6px 14px rgba(0,0,0,0.16),
    0 0 6px rgba(255,255,255,0.70),
    var(--glass-inset);
}

.button-font-regular a,
.button-font-regular button {
  font-family: "Inter", sans-serif !important;
}

.button-font-bold a,
.button-font-regular button {
  font-family: "Owners" !important;
}

.try-audio-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
}

.button-size-large a {
  font-size: var(--font-size-mediumlarge) !important;
  padding: 1rem 4rem 1rem 4rem !important;
}

.button-align-left {
  display: flex;
  justify-content: start;
}

.button-align-center {
  display: flex;
  justify-content: center;
}

.button-align-right {
  display: flex;
  justify-content: end;
}

/* Features */

.features {
  margin-top: 4rem;
}

.feature {
  margin-left: 1rem;
  margin-right: 1rem;
}

.feature:nth-child(odd) {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.feature:nth-child(even) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature .feature-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.feature:nth-child(odd) .feature-content {
  flex-direction: row;
  gap: 1rem;
}

.feature:nth-child(even) .feature-content {
  flex-direction: row-reverse;
  gap: 1rem;
}

.feature .feature-text {
  position: relative;
  z-index: 1;
}

.feature .feature-text .feature-title {
  color: var(--foreground);
}

.feature:nth-child(odd) .feature-text .feature-title {
  margin-right: -3rem;
}

.feature:nth-child(even) .feature-text .feature-title {
  margin-left: -3rem;
}

.feature-title {
  font-family: "Owners", sans-serif;
  font-size: var(--font-size-large);
  line-height: 0.9em;
}

.feature img {
  width: 30%;
  border-radius: 16px;
}

/* Instructions */

.feature {
  position: relative;
}

.feature .number {
  font-size: var(--font-size-large);
  font-family: "Owners", sans-serif;
  color: #fff;
  text-shadow: 0px 0px 24px #000;
  position: absolute;
  top: 0;
}

.feature:nth-child(odd) .number {
  right: 1rem;
}

.feature:nth-child(even) .number {
  left: 1rem;
}

/* Animate on scroll */

.animate-on-scroll {
  opacity: 0;
  transition: 1s opacity 0.2s;
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* Cover */

.cover {
  height: 80svh;
  position: relative;
}

.cover-video {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
}

.cover-video.video-visible {
  opacity: 1;
  transition: opacity 0.2s;
}

.cover-videos video {
  border: 0;
  width: 100%;
  height: 100%;
  padding: 0 15vw;
}

.cover img {
  max-width: 128px;
  width: 100%;
}

.cover-image-position img {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.cover-image-position img.visible-image {
  opacity: 1;
}

.images-position-1 img {
  top: 10%;
  left: 8%;
}

.images-position-2 img {
  top: 5%;
  right: 20%;
}

.images-position-3 img {
  top: 20%;
  right: 5%;
}

.images-position-4 img {
  top: 70%;
  right: 15%;
}

.images-position-5 img {
  top: 68%;
  left: 15%;
}

.cover-locations {
  position: absolute;
  bottom: 10%;
  left: 0%;
  width: 92%;
  text-align: center;
}

.cover-locations .location {
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  white-space: nowrap;
}

.cover-locations .location.visible-location {
  opacity: 1;
}

/* Home page */

.section-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.section-selector-end {
  margin-top: 4rem;
}

.section-selector-form {
  background-color: rgba(var(--light-grey), 1);
  border: 1px solid rgba(var(--grey), 0.1);
  border-radius: 0.75rem;
  padding: 0.25rem;
}

.section-selector-form button {
  padding: 0.25 8rem;
  line-height: 2.25em;
  font-size: var(--font-size-small);
  border-radius: 0.5rem;
}

.section-selector-form button.button-section-active {
  background-color: rgba(var(--grey), 0.1);
  box-shadow: 0 0 2px 2px rgba(var(--grey), 0.1);
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.section:not(.section-visible) {
  display: none;
}

.section.section-visible {
  animation: fade-in 0.8s;
}

/* Layout */

.layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Contact */

.contact-introduction {
  text-align: center;
  margin-top: 6rem;
}

.contact-introduction h2 {
  font-size: var(--font-size-mediumlarge);
  font-family: "Owners", sans-serif;
  color: var(--foreground);
}

.contact-introduction .languages {
  font-size: var(--font-size-mediumlarge);
}

.impressum {
  color: var(--foreground);
}

.impressum h3 {
  font-family: "Owners", sans-serif;
  font-size: var(--font-size-mediumlarge);
}

.address {
  margin-top: 6rem;
  margin-bottom: 2rem;
  border-left: 1px solid var(--foreground);
  padding-left: 1rem;
  line-height: 1.75em;
  font-weight: 700;
  color: var(--foreground);
}

.time {
  color: rgba(var(--grey), 1);
}

/* Team */

.team {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.profile-picture {
  width: 80%;
}

.profile-picture img {
  border-radius: 16px;
}

.profile-position {
  font-family: "Owners", sans-serif;
  color: var(--foreground);
}

.profile-contact {
  white-space: nowrap;
}

/* languages */

.languages {
  position: relative;
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language {
  position: absolute;
  opacity: 0;
  animation: fadeInOut calc(var(--total) * 3s) infinite;
  text-align: center;
}

/* Legal page */

.legal-text {
  margin-top: 6rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.legal-text p {
  max-width: 900px;
  margin: 0 auto;
}

/* Audio page */

.audio-cover {
  position: relative;
  font-size: var(--font-size-mediumlarge);
}

.audio-cover img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
}

.audio-cover-title {
  text-align: center;
  position: absolute;
  top: 20%;
  width: 100%;
}

.audio-cover-caption {
  text-align: center;
  position: absolute;
  bottom: 20%;
  width: 100%;
}

.audio-layout .grid {
  margin: 0 1rem;
}

.audio-layout img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.audio-layout h4,
.audio-layout h3 {
  font-family: "Owners", sans-serif;
  margin: 0;
}

.audio-layout .button,
.audio-layout .text,
.audio-layout h3,
.audio-layout h4 {
  transition: opacity 0.5s;
}

.audio-test-qr {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: none;
  gap: 1rem;
  color: rgba(var(--grey), 1);
  padding: 1rem 2rem 1rem 1rem;
  background-color: rgba(var(--light-grey), 1);
  border-radius: 1rem;
  -webkit-box-shadow: inset 0 0 0.5em rgba(var(--grey), 1);
  -moz-box-shadow: inset 0 0 0.5em rgba(var(--grey), 1);
  box-shadow: inset 0 0 0.5em rgba(var(--grey), 1);
}

.audio-test-qr img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.audio-test-on .audio-layout .button,
.audio-test-on .audio-layout .text,
.audio-test-on .audio-layout h3,
.audio-test-on .audio-layout h4 {
  opacity: 0.05 !important;
}

.audio-off {
  display: none;
}
.audio-on {
  display: block;
}

body.audio-test-on .audio-on {
  display: none;
}
body.audio-test-on .audio-off {
  display: block;
}
body.audio-test-on .audio-test-qr {
  display: flex;
}

/* Footer */

footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--foreground);
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer h4 {
  font-size: inherit;
  margin: 0;
}

footer .column {
  justify-content: flex-start;
  gap: 0.25rem;
}

/* the three footer links sit in one row; gap ~= half the previous 2-column spacing */
footer .footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;   /* flush the privacy→tiktok menu to the right edge,
                                  mirroring the left text's margin (footer padding 1rem) */
  gap: 4rem;
}

@media (max-width: 600px) {
  .section-selector-form button {
    padding: 0.25 2rem;
  }

  .cover img {
    width: 20%;
  }

  .images-position-2 img {
    right: 30%;
  }

  footer .column {
    grid-column: span 12;
    margin-bottom: 1rem;
  }

  /* Footer links: the desktop right-aligned 4rem row scatters and wraps on a phone
     ("instagram" hangs off to the right). Stack them into a tidy left-aligned column,
     aligned with the address text above. */
  footer .footer-links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
  }
}
