@charset "UTF-8";

@font-face {
  font-family: "Bradford";
  src: url("../fonts/Bradford/BradfordLL-Book.otf");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* VARIABLES */

:root {
  /* Color values */
  --color-background: rgba(0, 40, 0, 1);
  --color-background-transparent: rgba(0, 40, 0, 0);
  --color-text: rgb(255, 255, 255);
  --color-text-link: rgba(0, 0, 255, 0.8);
  --color-text-link-hover: rgba(0, 0, 255, 0.4);
  /* Font values */
  --font-family: "Bradford", "Georgia", "Times New Roman", "Times", serif;
 --font-size: clamp(18px, 2.5vw, 24px);
  --font-size-small: clamp(13px, 1.8vw, 18px);
  --font-size-title: clamp(90px, 12vw, 220px); 
  --margin: clamp(20px, 3vw, 32px);
    --line-height: 1.22;
}

/* GENERAL STYLES */

html {
  box-sizing: border-box;
}

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

html {
  font-size: var(--font-size);
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--color-background);
  font-size: var(--font-size);
  font-family: var(--font-family);
  line-height: var(--line-height);
  color: var(--color-text);
  width: 100%;
  height: auto;
  overflow-y: auto;
}

h1 {
  font-size: var(--font-size-title);
  margin: 0;
  /* margin-left: 1.2vw; */
  margin-bottom: 4vh;
  opacity: 1;
  transition: 0.1s;
  font-weight: normal;
  transition: 1s;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--color-text);
}

a:hover {
  opacity: 0.6;
}

button,
[type="button"],
[type="submit"],
[type="reset"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  line-height: inherit;
  letter-spacing: inherit;

  display: inline;
  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;

  overflow: visible;
}

button:focus-visible,
[type="button"]:focus-visible,
[type="submit"]:focus-visible,
[type="reset"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

button:focus:not(:focus-visible) {
  outline: none;
}

.small-caps {
  font-variant: small-caps;
  text-transform: lowercase;
}

.tighter {
  margin-right: -0.5vw;
}

/* PAGE STYLES */

/* page structure */

div.page-wrapper {
  padding: var(--margin);
  width: 100%;
  background-color: var(--color-background);
  height: 100dvh;
  overflow: hidden;
}

header {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* #fpbvideo {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  transition: opacity 2.5s;
  opacity: 1;
} */
/* 
#fpbvideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 2.5s;
  opacity: 1;
} */

#fpbvideo {
  position: absolute;
  top: env(safe-area-inset-top);
  left: env(safe-area-inset-left);
  right: env(safe-area-inset-right);
  bottom: env(safe-area-inset-bottom);
  width: calc(100% + env(safe-area-inset-left) + env(safe-area-inset-right));
  height: calc(100% + env(safe-area-inset-top) + env(safe-area-inset-bottom));
  object-fit: cover;
  z-index: 1;
  transition: opacity 2.5s;
  opacity: 1;
}

footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: var(--margin);
  display: flex;
  justify-content: space-between;
  transition: 1s;
  opacity: 1;
}

.impressum {
  position: absolute;
  padding: var(--margin);
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--color-background-transparent);
  visibility: hidden;
  transition: background-color 0.4s ease, opacity 0.4s ease;
  transition-delay: 0;
  opacity: 0;
  overflow: hidden;
}

.impressum-link {
  transform-origin: center;
  transition: 0.3s;
  cursor: pointer;
}

.impressum-back-link-container {
pointer-events: none;  position: fixed;
  width: 100%;
  text-align: end;
  top: 0;
  left: 0;
  padding: var(--margin);
}

.impressum-back-link {
  transform-origin: center;
  /* transition: 0.3s; */
  cursor: pointer;
  pointer-events: all;
}

.impressum-content {
  margin-right: 50%;
  font-size: var(--font-size-small);
  opacity: 0;
}

.impressum-link:hover {
  opacity: 0.6;
}

.show .impressum-back-link:hover {
  opacity: 0.6;
}

.show {
  visibility: visible;
  opacity: 1;
  overflow-y: auto;
  min-height: 100vh;
  background-color: var(--color-background);
}

.impressum-content,
.impressum-back-link-container {
  opacity: 0;
  transition: opacity 0.6s linear;
  transition-delay: 0s;
}

.show .impressum-content,
.show .impressum-back-link-container {
  opacity: 1;
  transition-delay: 0.4s;
}

.hiding .impressum {
  transition-delay: 0.6s;
}

.hiding .impressum-content,
.hiding .impressum-back-link-container {
  opacity: 0;
  transition-delay: 0s;
}

.hiding {
  opacity: 0;
  background-color: var(--color-background-transparent);
  transition-delay: 0.6s;
}

.mobile-only {
  display: none;
}
@media (max-width: 779px) {
  footer {
    flex-direction: column;
    gap: var(--font-size);
  }

  .mobile-only {
    display: block;
  }
}

@media (max-width: 779px) and (orientation: landscape) {
  footer {
    flex-direction: row;
    gap: var(--font-size);
  }

  .mobile-only {
    display: none;
  }

  h1 {
      margin-bottom: 6vh;
  }
}

@media (max-width: 1024px) {
  .impressum-content {
    margin-right: 0;
  }
}
