/*
Theme Name: LSR Sachsen
Description: Child Theme des LandesSchülerRat Sachsen
Author: Domenico Decker
Author URI: gudd-it.de
Template: bam-pro
Version: 2.5
Tags:
*/

.mobile-header-img {
	display: none;
}

.desktop-header-img {
	display: block;
}

@media screen and (max-width: 766px){
	.desktop-header-img {
		display: none;
	}

	.mobile-header-img {
		display: block;
		margin-left: auto;
		margin-right: auto;
		width: 70%;
		margin-top: 5px;
	}

	.footer-widget-area{
		text-align: center;
	}
}


/* Accordion */
.lsr-tabs input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

/* Accordion styles */
.lsr-tabs {
  overflow: hidden;
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
}

.lsr-tab {
  overflow: hidden;
}
.lsr-tab-label {
  display: flex;
  color: #fafafa;
  justify-content: space-between;
  padding: 1em;
  background: #4188ca;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin: 0;
  /* Icon */
}
.lsr-tab-label:hover {
  background: #5aa1e3;
}
.lsr-tab-label::after {
  content: "❯";
  width: 1em;
  height: 1em;
  text-align: center;
  transition: all 0.35s;
}
.lsr-tab-content {
  max-height: 0;
  padding: 0 1em;
  background: #fafafa;
  transition: all 0.35s;
}
.lsr-tab-close {
  display: flex;
  justify-content: flex-end;
  padding: 1em;
  font-size: 0.75em;
  color: #fafafa;
  background: #4188ca;
  cursor: pointer;
  width: 100%;
  margin: 0;
}
.lsr-tab-close:hover {
  background: #5aa1e3;
}

.lsr-tab input:checked + .lsr-tab-label {
  background: #5aa1e3;
}
.lsr-tab input:checked + .lsr-tab-label::after {
  transform: rotate(90deg);
}
.lsr-tab input:checked ~ .lsr-tab-content {
  max-height: 100vh;
  padding: 1em;
}

a[href^="http://"]:not([href*="lsr-sachsen.de"]):not([href*="s3.gudd-it.de"]):after,
a[href^="https://"]:not([href*="lsr-sachsen.de"]):not([href*="s3.gudd-it.de"]):after {
    background-image: url(external-link.svg);
    background-size: 10px 10px;
    display: inline-block;
    width: 10px;
    height: 20px;
    content: "";
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-left: 3px;
}


/* LaVo-Gallery */

.lavo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  justify-content: center;
}

.lavoitem {
  padding: 10px;
  width: 900px;
  margin-bottom: 10px;
  height: 180px;
  position: relative;
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
  background-color: #cdcdcd;
  align-items: center;
}

.lavoitem:nth-child(odd) {
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
}

img.lavo {
  width: 200px;
  height: 200px;
  cursor: pointer;
  float: left; 
  margin: -10px 10px -10px -10px;
}

.lavoitem:nth-child(even) img.lavo {
  float: right;
  margin: -10px -10px -10px 10px;
}

.description {
    color: black;
    overflow: scroll;
    max-height: 180px;
    padding-right: 10px;
}

.lavoitem h2 {
    color: white !important;
    font-size: 1.1em;
text-decoration: none;
transition: visibility 0s, opacity 0.5s linear;
position: absolute;
top: 140px;
max-width: 100%;
padding-top: 10px;
background-color: #ffa828;
width: 200px;
text-align: center;
margin: 0;
padding-bottom: 5px;
line-height: 1.4em;
}

.lavoitem:nth-child(odd) h2 {
  left: 0;
}

.lavoitem:nth-child(even) h2 {
  right: 0;
  background-color: #5aa1e5;
}

.lavoitem h2 span{
    color: inherit;
    font-family: inherit;
    display: block;
    font-size: 0.8em;
    font-weight: normal;
}


@media screen and (max-width: 600px) {
      .lavo-gallery {
        padding: 0;
      }

      .lavoitem h2 {
        top: 230px;
        width: 300px;
        padding-bottom: 15px;
        font-size: 1.2em;
        line-height: 1.2em;
      }

      .lavoitem {
        width: 300px;
        height: 300px;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center; /* Optional: Zentrierung horizontal */
      }

      .lavoitem:nth-child(odd) img.lavo, .lavoitem:nth-child(even) img.lavo {
        width: 300px;
        height: auto;
        padding: 0;
        margin: -10px;
      }

      .description {
        display: none;
        min-height: 580px;
        padding: 20px;
        width: 260px;
    }
      
      /* CSS-Regeln für die Anzeige der Description, wenn "show" aktiv ist */
      .lavoitem.show {
        height: 900px;
        clip-path: polygon(0 1.66%, 100% 0, 100% 100%, 0 98.33%);
    }
    .lavoitem.show .description{
        display: block;
    }

.lavoitem.show:nth-child(odd) {
    clip-path: polygon(0 0, 100% 1.66%, 100% 98.33%, 0 100%);
}
}