/*
Theme Name: Poli
Theme URI: 
Author: MVP Good Games Easy UG (haftungsbeschränkt)
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0
Text Domain: poli
Tags: 
*/

.group-height {
  height: calc(100vh - 113px) !important;
  padding-top: 0px!important;
  display: flex;
}

.group-height-mobile {
  height: calc(100vh - 80px) !important;
  padding-top: 0px!important;
  display: flex;
}

.stretch-video-height {
  height: 100% !important;
  display: flex;
}

.stretch-video-height video {
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}


.opacity-74 {
  opacity: 0.74;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}


button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.wp-block-read-more {
    box-shadow: 4px 4px 8px 0px rgba(18, 181, 165, 0.28);
	padding-top: 12px !important;
	padding-bottom: 8px !important;
}

.max-height {
  max-height: 80vh;
  overflow: hidden; 
  display: inline-block; 
}

@media (orientation: portrait) {
  .max-height {
    float: left !important;
  }
}

@media (orientation: portrait) {
  .font-portrait {
    font-size: 35px !important;
  }
}

@media (orientation: portrait) {
  .min-height-portrait {
    min-height: 400px !important;
  }
}

@media (orientation: portrait) {
  .padding-top-25 {
    margin-top: 25px !important;
  }
}


@media (orientation: portrait) {
  .text-left {
    text-align: left !important;
  }
}


.wp-block-cover.multiply-cover img {
  mix-blend-mode: multiply;
}


.trenn {
  border-width: 0.8px;
}

/* Buttons ohne abgerundete Ecken */
.wp-block-button__link {
  border-radius: 0 !important;
}

.index {
  z-index: 5 !important;
}

.header-menu a {
  text-decoration: none;
  color: #0F7E7F;
  font-weight: 900;
  font-size: 18px;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Helvetica Neue LT Std";
}


.hide-landscape {
  display: none;
}

@media (orientation: portrait) {
  .hide-landscape {
    display: block !important;
	
  }
}

.hide-portrait {
  display: none;
}

@media (orientation: landscape) {
  .hide-portrait {
    display: block !important;
  }
}

@media screen and (orientation: portrait) {
  .wp-block-group.align-left {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .wp-block-group.align-left > * {
    align-items: flex-start !important;
    text-align: left !important;
    margin-left: 10vw !important;
    margin-right: auto !important;
  }
}



.image-bottom-wrapper {
  position: relative;
  width: 100%;
  height: 0;
}

.custom-cover-bottom-right {
  position: relative;
  height: 100vh;
}

.custom-cover-bottom-right > .wp-block-cover__inner-container {
  position: relative; 
  height: 100%; 
}

.custom-cover-bottom-right .bottom-right-image {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  width: auto;
  height: auto;
}



.image-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 244px; 
  pointer-events: none;
}

.wp-block-read-more {
  background-color: #12B5A5;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
  width: auto;
  min-width: 0;
  text-align: left;
}

.wp-block-column {
  max-width: 100%;
  overflow-x: hidden;
}

@media (orientation: portrait) {
  .fullwidth-portrait {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (orientation: portrait) {
  .small-text-portrait {
    font-size: clamp(35px, 6vw, 62px) !important;
  }
}

@media (orientation: portrait) {
  .portrait-two-columns {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .portrait-two-columns > * {
    min-width: 0;
  }

  .portrait-two-columns {
    gap: 5vw !important;
    column-gap: 5vw !important;
    row-gap: 5vw !important;
  }
}

@media (orientation: portrait) {
  .portrait-one-columns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .portrait-one-columns > * {
    min-width: 0;
  }

  .portrait-one-columns {
    gap: 10px !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
  }
}

.break-words {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* LANDSCAPE VERSION */
@media (orientation: landscape) {
  .animated-cover {
    background-color: #0F7E7F !important;
    overflow: hidden;
    position: relative;
  }

  .animated-cover .wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: auto;
    transform: rotate(-2deg);
    animation: swing-landscape 12s ease-in-out infinite;
    transform-origin: top left;
    will-change: transform;
    object-fit: contain;
  }

  @keyframes swing-landscape {
    0%   { transform: rotate(-2deg); }
    50%  { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
  }
}

/* PORTRAIT VERSION */
@media (orientation: portrait) {
  .animated-cover {
    background-color: #0F7E7F !important;
    overflow: hidden;
    position: relative;
  }

  .animated-cover .wp-block-cover__image-background {
    position: absolute;
    top: 10%;
    left: 30%;
    width: 125%;
    height: auto;
    transform: rotate(-2deg);
    animation: swing-portrait 12s ease-in-out infinite;
    transform-origin: top left;
    will-change: transform;
    object-fit: contain;
  }

  @keyframes swing-portrait {
    0%   { transform: rotate(-2deg); }
    50%  { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
  }
}

.wp-block-button.is-style-outline.is-style-outline--2 a {
  border-color: #12b5a5 !important;
}

.wp-block-button.is-style-outline.style-outline--2 a.wp-block-button__link {
  border: 2px solid #12B5A5;
  color: #12B5A5;
  background-color: transparent;
}


.white-bar-80 {
  background-color: white;
  height: 80px;
  min-height: 80px;
  width: 100%;
}

.overlay {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: transparent;
  overflow-y: auto;
  z-index: 10000;
  transition: left 0.5s ease, top 0.5s ease;
  pointer-events: none;
}

.overlay.show {
  pointer-events: auto;
}

/* Landscape: horizontal rein/raus */
@media (orientation: landscape) {
  .overlay {
    top: 0;
    left: 100vw;
  }
  .overlay.show {
    left: 0;
    top: 0;
  }
  .overlay.hide {
    left: 100vw;
  }
}

/* Portrait: vertikal rein/raus */
@media (orientation: portrait) {
  .overlay {
    top: -100vh;
    left: 0;
  }
  .overlay.show {
    top: 0;
    left: 0;
  }
  .overlay.hide {
    top: -100vh;
  }
}

.overlay .overlay-close-btn {
  position: absolute;
  top: 5%;
  right: 10%;
  font-size: 28px;
  font-weight: 900;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
}


.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.equal-post {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.equal-post-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}


.equal-post-excerpt {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex-grow: 1;
}


.equal-post-bottom {
  margin-top: auto;
}

