@font-face {
  font-family: 'NeueBlack';
  src: url('../font/TheNeueBlack-1.007/TheNeue-Black.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  src: url('../font/Inter-3.15/Inter.ttf') format('truetype');
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'NeueBlack', sans-serif;
  color: #abc8c2;
  text-align: center;
}

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

a:hover {
  text-decoration: underline;
}

a:not(.no-bg) {
  color: inherit;
  text-decoration: underline;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
}

a:not(.no-bg):hover {
  background: rgba(0, 0, 0, 0.7);
  text-decoration: underline;
}

::selection {
  background: #001aa0;
}

.font_style {
  font-family: 'NeueBlack', sans-serif;
  font-size: 4em;
  letter-spacing: 3px;
  color: #c2d3cd;
}

.font2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.2em;
  line-height: 1.2;
}

.font2 span {
  font-weight: 800;
  font-style: italic;
}

.font2 span:hover {
  text-decoration: underline dashed;
}

h4 {
  font-style: italic;
  margin-top: 20px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #006ca0 url('../rsc/bg-img.webp') center/cover no-repeat;
  z-index: -1;
}

body {
  background: #006ca0 url('../rsc/bg-img.png') no-repeat center center;
  /* fallback older browsers*/
  background: #006ca0 url('../rsc/bg-img.webp') center/cover no-repeat;
  background-size: cover;

  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 100dvh;

  position: relative;
  z-index: 0;
}


header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 5vh;
}

header a,
header p {
  margin: 0;
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

footer {
  width: 100%;
  padding: 20px;
  text-align: center;
}

/* Components */
.accent {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(14, 35, 40, 0.5);
  transition: background 0.3s ease;
}

.accent:hover {
  background: rgba(177, 199, 71, 0.5);
}

.center_box {
  max-width: 600px;
  width: 100%;
  padding: 20px;
}

.img_bar {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.img_bar img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  opacity: 0.9;
  border-radius: 3%;
}

.spacing {
  padding: 20px 0;
}

/* popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.popup:target {
  display: block;
}

.popup-content {
  position: fixed;
  top: 30vh;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.popup-content h2 {
  padding-bottom: 20px;
}

.popup-content,
.font2 {
  line-height: 1.4;
}

.popup-desc {
  display: flex;
  align-items: top;
  justify-content: space-between;
}

.popup-desc img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.close {
  position: absolute;
  top: 5px;
  right: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: black;
}

/* impressumg */
.leading p {
  text-align: left;
  padding-bottom: 20px;
  font-family: Inter;
  font-size: 1.2em;
  font-weight: 400;
  color: #819692;
  line-height: 1.3em;
}

.leading h2 {
  text-align: left;
}

@media screen and (max-width: 500px) {
  body {
    padding: 20px 10px;
    background-color: #025f98;
    gap: 25px;
  }

  .center_box {
    gap: 40px;
  }

  .center_box p {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    /* creates frosted-glass look */
    color: #fff;
    padding: 2vh 1em;
    margin-bottom: 2vh;
    border-radius: 0.5em;
    display: inline-block;
  }

  .font_style {
    font-size: 3em;
  }

  .font2 {
    font-size: 1em;
  }

  .center_box {
    width: 90%;
    padding: 10px;
  }

  .img_bar {
    gap: 15px;
  }

  .img_bar img {
    width: 110px;
    height: 110px;
  }

  .popup-content {
    top: 20vh;
  }

  .popup-desc img {
    width: 80px;
    height: 80px;
  }

  .leading p,
  h2 {
    font-size: 1em;
  }
}

@media screen and (max-width: 300px) {

  html,
  body {
    color: white;
  }

  .popup-content {
    color: #abc8c2;
    top: 10vh;
    width: 95%;
    max-width: 95%;
    padding: 10px;
    border-radius: 6px;
    font-size: 1em;
  }

  .popup-desc {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 10px;
  }

  .popup-desc img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .close {
    font-size: 16px;
    top: 5px;
    right: 5px;
  }

}
