/*
Theme Name: ak_gs
Author: Wolfgang Schellnast
Author URI: https://www.alphakanal.com
Description: Responsive Theme for alphakanal
Version: 1.0
*/

/* Adobe Font Import */
@import url("https://use.typekit.net/azk8rga.css");

* {
  box-sizing: border-box;
}

body {
  opacity: 0;
  transition: opacity 0.7s;

  font-family: "acumin-pro-condensed", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  color: #000;
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  /* font-weight: 700; */
}

p {
  line-height: 1.1;
}

/* HELPERS */

.img-fluid {
  width: 100%;
  height: auto;
}

/* PAGE */

header {
  position: relative;
  height: 100svh;
  width: 100%;

  background-color: grey;
}

header #logo {
  position: absolute;
  width: 100%;
  bottom: 5%;
  display: flex;
  justify-content: center;
  z-index: 10;
  padding: 0 50px;
}

header #logo img {
  width: 100%;
  max-width: fit-content;
}

/* OWL CAROUSEL */
.owl-carousel.slider-home {
  z-index: unset;
}

.owl-carousel.slider-home .item {
  height: 100svh;
  width: auto;
}

.owl-carousel.slider-home .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.owl-carousel.slider-home.owl-theme .owl-nav {
  margin-top: unset;
  position: absolute;
  top: 0;
  height: 100svh;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 50px;
}

.owl-carousel .owl-nav button.owl-next:hover,
.owl-carousel .owl-nav button.owl-prev:hover {
  opacity: 0.7;
  background: none;
}

/* Sections */
section.arbeiten {
  width: 100%;
  height: auto;
  padding: 0px 0 50px 50px;
}

.custom-owl-nav {
  display: flex;
  justify-content: space-between;
  padding: 35px 50px 35px 0;
}

button {
  all: unset;
  cursor: pointer;
  display: flex;
}

button:hover {
  opacity: 0.7;
}

.owl-carousel.slider-arbeiten .item {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

.owl-carousel.slider-arbeiten .item img {
  height: 500px; /* Fixed height TODO */
  width: auto; /* Width adjusts based on image */
  object-fit: contain; /* Crop to fill if needed */
  display: block;
}

.legende {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
}

.small {
  font-size: 16px;
}

.big {
  font-size: 26px;
}

section.info {
  display: flex;
  gap: 40px;
  padding: 50px 50px 0;
}

section.info > div:nth-child(1) {
  flex: 1.25;
  min-width: 0;
  position: relative;
}

section.info > div:nth-child(2) {
  flex: 2;
}

section.info > div:nth-child(2) {
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.slider-portrait .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  /* transform: translate(0, 50%); */
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
}

/* .slider-portait .owl-nav button.owl-prev {
  left: 0;
  top: 50%;
  transform: translate(0, -50%);
}

.slider-portait .owl-nav button.owl-next {
  right: 0;
  top: 50%;
  transform: translate(0, -50%);
} */

/* Single Bilder */
.header-single {
  display: grid;
  grid-template-columns: 1fr 3fr;
  height: 100vh;
}

.text-description {
  padding: 40px 60px 40px 50px;
}

.header-single .title {
  text-transform: uppercase;
  margin: 70px 0;
}

.header-single .description {
  margin: 70px 0;
}

a.button-anfrage {
  display: inline-flex;
  padding: 10px 20px;
  border: 1px solid black;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  transition: all 300ms ease-in-out;
}

a.button-anfrage:hover {
  background-color: #000;
  color: #fff;
}

.layout-right {
  height: 100vh;
  display: flex;
  flex-flow: column;
  align-items: flex-end;
}

.image-container {
  height: 100%;
  position: relative;
}

.image-container img {
  object-fit: contain;
  height: 100%;
  max-height: 100vh;
  width: auto;
}

nav.post-navigation a {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

nav.post-navigation a:hover {
  opacity: 0.7;
}

nav.post-navigation a:nth-child(1) {
  left: 50px;
}

nav.post-navigation a:nth-child(2) {
  right: 50px;
}

/* Impressum */
.page-template-page-impressum .header-single,
.page-template-page-impressum .layout-right {
  height: unset;
}

body.page-template-page-impressum {
  min-height: 100svh;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

.page-template-page-impressum .page-content {
  margin-top: 20vh;
}

@media (max-width: 768px) {
  .page-template-page-impressum .page-content {
    margin-top: 0;
  }
}

/* Footer */
footer {
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

footer .logo,
.text-description .logo,
.mobile-header .logo {
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer > div:nth-child(1) {
  flex: 1.25;
}

footer > div:nth-child(2) {
  display: flex;
  flex: 2;
  justify-content: space-between;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  /* HOME PAGE */
  .owl-carousel.slider-arbeiten .item img {
    height: 260px; /* Fixed height TODO */
  }

  .owl-carousel.slider-home.owl-theme .owl-nav {
    padding: 0 20px;
  }

  .custom-owl-nav {
    padding: 35px 20px 35px 0px;
  }

  .slider-portrait .owl-nav {
    padding: 0 10px;
  }

  section.arbeiten {
    padding: 0 0 20px 20px;
  }

  section.info {
    flex-flow: column;
    padding: 50px 20px 0px 20px;
  }

  footer {
    font-size: 15px;
    padding: 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  footer > div:nth-child(1) {
    flex: 1 0 100%;
    font-size: 16px;
  }

  /* SINGLE PAGES */
  .mobile-header {
    padding: 20px;
  }

  nav.post-navigation a:nth-child(1) {
    left: 20px;
  }

  nav.post-navigation a:nth-child(2) {
    right: 20px;
  }

  .header-single .description {
    margin: 35px 0;
  }
  .header-single .text-description {
    order: 2;
  }
  .header-single .layout-right {
    order: 1;
  }
  .header-single {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    padding: 0px;
  }
  .header-single .title {
    margin: 0;
  }
  .text-description {
    padding: 10px 20px 20px;
  }
  .layout-right {
    height: auto;
    width: auto;
    padding: 0px 20px 0;
  }
  .image-container {
    padding: 0px;
  }
  .image-container img {
    width: 100%;
  }

  .mobile-description {
    justify-content: space-between;
  }

  /* HELPER */
  .mobile-only {
    display: flex;
  }

  .hide-mobile {
    display: none;
  }
}
