:root{
    --primary-Color: #fa8128;
    --secondary-Color: #a5c953;
    --border-Color: #354b01;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header{
    background-color: var(--primary-Color); 
    color: #ffffff;
    text-align: center;
    padding: -1px;
    position: relative;
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
}



.header-container-left,
.header-container-mid,
.header-container-right {
    flex: 1;
    text-align: center;
}

.header-container-mid{
    min-width: 1000px
}

.header-container-left {
    margin-left: 75px;
    text-align: left;
}

.header-container-right {
    margin-right: 75px;
    text-align: right;
}

/* footer part*/
footer {
    background-color: var(--primary-Color); 
    color: #383838;
    text-align: right;
    padding: 10px;
    position: relative;
}

.rs_skip {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.rs_skip li, .rs_skip p , .rs_skip a{
    display: inline;
    margin: 0 5px;
    color: var(--accent-color); 
    text-decoration: none;
}


.rs_skip a:hover{
    color: #f1f1f1;
}


/* main part*/
main {
    flex: 1;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}

.gallery-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin: 10px;
}

.gallery-container img {
    height: 400px;
    width: auto;
    z-index: 2;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 70%;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border: none;
    background-color: var(--primary-Color);
    user-select: none;
    z-index: 3;
}

.prev {
    left: -100px;
}

.next {
    right: -100px;
}

.prev:hover , .next:hover{
    color: var(--border-Color);
    border: var(--border-Color) 1px solid;
}


.indicator-container {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    z-index: 2;
}

.indicator-circle {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: var(--secondary-Color);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    z-index: 2;
    border: #354b01 2px solid;
}

.indicator-circle.active{
    background-color: var(--primary-Color);
    border: var(--primary-Color) 2px solid;
}
.indicator-circle.hover {
    background-color: var(--primary-Color);
}

.boxes {
    display: flex;
    flex: 1;
	flex-direction: row;
    justify-content: center;
	margin-top: 20px;
    z-index: 2;
    align-items: stretch;
    min-width: 100%;
    max-height: 400px;
}

.box {
	background: var(--secondary-Color);
	padding: 10px;
	margin: 10px;
	border: var(--border-Color) 3px solid;
	align-items: center;
    flex: 200px;
    text-align: center;
}

.box h2 {
	color: #354b01;
    font-weight: bold;
    margin: 2px;
}

.box h3,h4 {
    text-align: left;
    color: #354b01;
    margin: 2px;
}

.box summary{
    color: #354b01;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
    padding-left: 20px;
}

.box .Impressum p{
    font-weight: normal;
    font-size: 12px;
    text-align: left;
    padding-left: 50px;
}


.box p{
    color: #000000;
    margin: 0px;
    text-align: left;
    font-size: small;
    font-weight: bold;
}

#normal{
    color: #000000;
    padding: 5px; 
    margin: 0px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

#normal-gedenken{
    color: #000000;
    font-family: 'Parisienne';
    padding: 2px; 
    margin: 0px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}


.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0, 0, 0, 0.911); 
}
  

/* Modal Content*/
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
  
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}
  
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
  
.close:hover,
.close:focus {
    color: var(--border-Color);
    text-decoration: none;
    cursor: pointer;
}
  


.container{
    display: flex; 
    justify-content: center;
    align-items: center;
}

#circle {
    width: 10px; 
    height: 10px;
    border-radius: 50%;
    background-color: gray;
    color: white;
    font-size: 14px;
}

#openingtime {
    color: #000000;
    margin: 0px;
    font-size: large;
    font-weight: bold;
    padding-left: 5px;
}

.event {
    display: flex;
    font-size: 13px;
    margin-bottom: 2px;
    padding-left: 20px;
}

.year {
    width: 150px;
    text-align: left;
    font-weight: bold;
}

.description {
    text-align: left;
    flex: 1; 
    padding-left: 20px;
    font-weight: bold;
}

.image-container {
    position: relative;
    display: inline-block;
    width: inherit;
}
  

.image-container p::before{
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-Color);
    border-radius: 50%;
    margin-right: 10px;
    border: #354b01 2px solid;;
    vertical-align: middle;
}

.image-container p{
    color: #000000;
    position: relative;
    margin-top: 5px;
    padding-left: 20px; 
    line-height: 1.6;
    text-align: left;
    font-size: 17px;
    font-weight: bold;
    text-indent: -20px;
}


.hover-image {
    opacity: 1;
    padding-top: 15px;
    transition: opacity 0.3s ease;
}

.hover-text {
    opacity: 0;
    position: absolute;
    color: black;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Automatischer Wechsel durch JavaScript */
.image-container.active .hover-image {
    opacity: 0;
}

.image-container.active .hover-text {
    opacity: 1;
}

/* Hover hat immer Vorrang */
.image-container:hover .hover-image {
    opacity: 0 !important;
}

.image-container:hover .hover-text {
    opacity: 1 !important;
}



.fade-container{
    position:relative;
    width: 190px;
    display: inline-block;
    overflow: hidden;
}

.fade-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.fade-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 20px;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 1) 100%
    );
    mix-blend-mode: lighten;
}  




@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-container-mid {
        min-width: unset;
    }

    .header-container-left,
    .header-container-mid,
    .header-container-right {
        margin: 0;
        flex: 1 1 100%;
    }

    .gallery-container {
        flex-direction: column;
        width: 100%;
    }

    .gallery-container img {
        width: 100%;
        height: auto;
    }

    .prev, .next {
        position: static;
        margin: 10px;
    }

    .boxes {
        flex-direction: column;
        align-items: center;
        max-height: unset;
    }

    .box {
        width: 90%;
        max-width: 500px;
    }

    .rs_skip {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer {
        text-align: center;
    }
}