@import url(https://fonts.googleapis.com/css?family=Lato:100,200,300,400,900,400italic);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600);
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/*  Fonts
-----
font-family: 'Lora', serif;
font-family: 'Ubuntu', sans-serif;
*/

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.57;
  overflow-x: hidden;
}

/* Smooth fade-in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.fade-in.visible {
  opacity: 1;
}

img {
  max-width: 100%;
  display: block;
}

/* =================
Typography
================= */

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", serif;
  color: #642f66;
  margin-top: 0;
  transition: color 0.3s ease;
}

h2:hover {
  color: #7a3a7e;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

h4 {
  margin-bottom: -5px;
}

a {
  color: #ead2ec;
}

a:hover,
a:focus {
  color: #642f66;
}

strong {
  font-weight: 700;
}

/* =================
Layout
================= */

.container {
  width: 85%;
  max-width: 1050px;
  margin: 0 auto 0;
}

.footer-container {
  width: 50%;
  margin: 0 auto 1em;
}

.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}
.video {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.container-space {
  padding: 3em 0;
  position: relative;
}

.container-space::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 47, 102, 0.2),
    transparent
  );
}

.container-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container-vert {
  align-items: center;
}

.container-justify {
  text-align: justify;
}

header {
  background: linear-gradient(135deg, #ead2ec 0%, #d4b5d8 100%);
  padding: 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(100, 47, 102, 0.1);
  transition: all 0.3s ease;
}

header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(100, 47, 102, 0.2);
}

@media (max-width: 675px) {
  header.sticky {
    position: relative;
  }

  body {
    padding-top: 0 !important;
  }
}

footer {
  background: linear-gradient(135deg, #642f66 0%, #4a1f4d 100%);
  color: white;
  text-align: center;
  padding: 2em 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.site-title {
  margin: auto;
}

.site-img {
  margin: auto;
  transition: transform 0.3s ease;
}

.site-img:hover {
  transform: scale(1.05) rotate(2deg);
}

.fit {
  width: 50px;
  margin-top: 1em;
}

.impress {
  width: 100%;
  order: 1;
  text-align: left;
}

.bank {
  width: 100%;
  order: 2;
  text-align: left;
}

.haus-image {
  width: 100%;
  order: 1;
  margin-bottom: 2em;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(100, 47, 102, 0.1);
  transition: all 0.3s ease;
}

.haus-image:hover {
  box-shadow: 0 8px 25px rgba(100, 47, 102, 0.2);
  transform: translateY(-3px);
}

.haus-text {
  width: 100%;
  text-align: justify;
  order: 2;
}

.item-25 {
  width: 100%;
  order: 1;
  margin-bottom: 3em;
}

.item-75 {
  width: 100%;
  order: 2;
}

.floatl {
  float: left;
  margin-top: 0.5em;
  margin-right: 0.75em;
}

.floatr {
  float: right;
  margin-top: 0.5em;
  margin-left: 0.75em;
}

#history img {
  border: 2px solid black;
  transition: all 0.4s ease;
  cursor: pointer;
}

#history img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(100, 47, 102, 0.3);
  border-color: #642f66;
}

.geschichte1,
.geschichte4,
.geschichte2,
.geschichte3 {
  width: 100%;
}
@media (min-width: 675px) {
  header {
    text-align: left;
  }

  .container-flex {
    flex-direction: row;
  }

  main {
    width: 70%;
  }

  aside {
    width: 25%;
    min-width: 200px;
    margin-left: 1em;
  }

  .item-25 {
    width: 25%;
    order: 1;
  }

  .item-75 {
    width: 70%;
    order: 2;
  }

  .site-img {
    margin: 0;
  }

  .fit {
    width: 190px;
    padding: 0;
    margin: 1em 0;
  }

  .haus-image {
    padding-top: 2em;
    width: 45%;
    order: 2;
  }

  .haus-text {
    width: 50%;
    padding-right: 2em;
    order: 1;
  }

  .geschichte1 {
    width: 200px;
  }

  .geschichte2 {
    width: 200px;
  }

  .geschichte3 {
    width: 350px;
  }

  .geschichte4 {
    width: 390px;
  }
}

/* navigation */

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav li {
  margin-left: 2em;
}

nav a {
  text-decoration: none;
  color: #707070;
  font-weight: 700;
  padding: 0.5em 1em;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
  display: inline-block;
}

nav a:hover,
nav a:focus {
  color: #642f66;
  background-color: rgba(234, 210, 236, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 675px) {
  nav ul {
    flex-direction: column;
  }

  nav li {
    margin: 0.5em 0;
  }
}

/* BACK TO TOP BUTTON */
.top-button {
  place-self: end;
  position: fixed;
  bottom: 20px;
  right: 20px;
  margin-top: 150vh;
  text-decoration: none;
  color: #642f66;
  font-size: 3rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.top-button.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-button:hover {
  transform: translateY(-5px) scale(1.1);
}
@media (min-width: 850px) {
  .top-button {
    bottom: 25px;
    right: 25px;
  }
}
@media (min-width: 1300px) {
  .top-button {
    bottom: 30px;
    right: 30px;
  }
}

.top-button-text {
  padding: 12px 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ead2ec 0%, #d4b5d8 100%);
  box-shadow: 0 4px 15px rgba(100, 47, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
}

.top-button:hover .top-button-text {
  background: linear-gradient(135deg, #642f66 0%, #7a3a7e 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(100, 47, 102, 0.4);
}

.top-button:visited {
  color: #642f66;
}

/* ==================/
/=== EVENT LIST =====/
/================== */

.event-list {
  font-family: "Lato", sans-serif;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.event-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ead2ec, #642f66, #ead2ec);
  opacity: 0.3;
  border-radius: 2px;
}

.widget-title {
  color: #000000;
  font-family: "Lato", sans-serif;
  font-weight: 300;
}

.event {
  margin: 1.5em 0;
  min-height: 138px;
  border: 2px solid black;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(100, 47, 102, 0.1);
}

.event::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(234, 210, 236, 0.4),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.event::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #642f66, #ead2ec, #642f66);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.event:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(100, 47, 102, 0.25);
  border-color: #642f66;
  background: linear-gradient(135deg, #ffffff 0%, #f5f0f7 100%);
}

.event:hover::before {
  left: 100%;
}

.event:hover::after {
  transform: scaleX(1);
}

.date {
  height: inherit;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  box-sizing: border-box;
  margin-right: -2px;
  transition: border-color 0.4s ease;
}

.event:hover .date {
  border-right-color: #642f66;
  border-bottom-color: #642f66;
}

.info p {
  margin-bottom: 0;
}

.event .date {
  background: linear-gradient(135deg, #ead2ec 0%, #d4b5d8 100%);
  line-height: 1;
  padding: 0 13px 6px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
  box-shadow: inset 0 2px 4px rgba(100, 47, 102, 0.1);
}

.event:hover .date {
  background: linear-gradient(135deg, #642f66 0%, #7a3a7e 100%);
  color: white;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event:hover .date span,
.event:hover .date .month,
.event:hover .date .time {
  color: white;
}

.event .date a {
  color: inherit;
}

.event .date span {
  font-size: 2em;
  font-weight: 300;
  margin-right: 5px;
  transition: all 0.4s ease;
  display: inline-block;
}

.event:hover .date span {
  transform: scale(1.1);
}

.event .date .month {
  font-weight: 900;
  letter-spacing: 1px;
  transition: all 0.4s ease;
}

.event:hover .date .month {
  letter-spacing: 2px;
}

.event .date .time,
.event .date .time {
  line-height: 1.3;
}

.event .info {
  color: #000000;
  padding: 15px 20px;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.event:hover .info {
  padding-left: 25px;
}

.event .info .title {
  color: #000000;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.5em;
  margin-bottom: 0.5em;
  transition: all 0.4s ease;
  position: relative;
  display: inline-block;
}

.event:hover .info .title {
  color: #642f66;
  transform: translateX(5px);
}

.event .info .title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #642f66, #ead2ec);
  transition: width 0.4s ease;
}

.event:hover .info .title::after {
  width: 100%;
}

.event .info .desc {
  color: #333333;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1.6;
  transition: color 0.4s ease;
}

.event:hover .info .desc {
  color: #555555;
}

/* Past events - hidden by default */
.past-event {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.past-event.show-past {
  display: block;
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Toggle button for past events */
.toggle-past-events-btn {
  background-color: #ead2ec;
  color: #642f66;
  border: 2px solid #642f66;
  padding: 0.5em 1.5em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 25px;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toggle-past-events-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #642f66;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.toggle-past-events-btn span {
  position: relative;
  z-index: 1;
}

.toggle-past-events-btn:hover {
  color: white;
  transform: scale(1.05);
}

.toggle-past-events-btn:hover::before {
  width: 300px;
  height: 300px;
}

.toggle-past-events-btn.active {
  background-color: #642f66;
  color: white;
}

@media (min-width: 675px) {
  .event .date {
    float: left;
    height: 136px;
    margin-right: -120px;
    text-align: center;
    width: 120px;
    padding: 0;
    border-radius: 0 0 10px 0;
  }

  .event .date span {
    display: block;
  }

  .event .date .day {
    font-size: 4em;
    font-weight: 300;
    transition: all 0.4s ease;
  }

  .event:hover .date .day {
    transform: scale(1.15);
  }

  .event .date .month {
    font-size: 2.2em;
    transition: all 0.4s ease;
  }

  .event:hover .date .month {
    transform: scale(1.1);
  }

  .event .date .time,
  .event .date .time {
    font-size: 0.9em;
    font-weight: 400;
    transition: all 0.4s ease;
  }

  .event .info {
    margin-left: 120px;
    border-radius: 0 12px 12px 0;
  }

  .event .info .title {
    font-size: 1.75em;
  }
}

/*===========
==Slideshow==
========== */
#slider {
  position: relative;
  overflow: hidden;
  margin: 20px auto 0 auto;
  border-radius: 4px;
  width: 100%;
}

#slider ul {
  position: relative;
  margin: 0;
  padding: 0;
  height: 200px;
  list-style: none;
  width: 100%;
}

#slider ul li {
  position: relative;
  float: left;
  padding: 0;
  width: 83vw;
  max-width: 1050px;
  height: 380px;
  text-align: center;
  line-height: 300px;
}

a.control_prev,
a.control_next {
  position: absolute;
  top: 44%;
  z-index: 999;
  display: block;
  padding: 0.5em 1em;
  width: auto;
  height: auto;
  background: rgba(100, 47, 102, 0.8);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

a.control_prev:hover,
a.control_next:hover {
  opacity: 1;
  background: rgba(100, 47, 102, 1);
  transform: scale(1.1);
}

a.control_prev {
  border-radius: 0 2px 2px 0;
  padding-bottom: 10px;
}

a.control_next {
  right: 0;
  border-radius: 2px 0 0 2px;
  padding-bottom: 10px;
}

.slider_option {
  position: relative;
  margin: -32px auto;
  width: 100px;
  background-color: rgba(193, 193, 193, 0.6);
  border-radius: 5px;
  font-size: 18px;
}

#slide1 {
  background: url("../img/slide5.JPG") center;
  background-size: cover;
}

#slide2 {
  background: url("../img/slide2.JPG") center;
  background-size: cover;
}

#slide3 {
  background: url("../img/slide3.JPG") center;
  background-size: cover;
}

#slide4 {
  background: url("../img/slide4.JPG") center;
  background-size: cover;
}

#slide5 {
  background: url("../img/slide1.JPG") center;
  background-size: cover;
}

/*===============
=====Timeline====
 ==============*/

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
}

.timeline {
  padding: 1rem;
}

.timeline .circle {
  background: #ead2ec;
  border: 0.5rem solid #642f66;
  border-radius: 100%;
  height: 2.25rem;
  width: 2.25rem;
  left: 3.25%;
  vertical-align: middle;
}

.timeline ul {
  margin: 0;
  padding: 0;
}

.timeline em {
  color: #642f66;
  display: block;
  font-weight: bold;
  font-size: 1.2em;
  font-style: unset;
}

.timeline li {
  border: 0 solid #ead2ec;
  font-family: "Open Sans", serif;
  list-style-type: none;
  /*text-transform: uppercase;*/
  padding: 1rem 2rem 3em;
  width: 90%;
  left: 5%;
  border-left-width: 2px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.timeline li:hover {
  background: rgba(234, 210, 236, 0.1);
  transform: translateX(5px);
  border-left-width: 4px;
  border-left-color: #642f66;
}

.timeline li:after {
  background: #ead2ec;
  border-radius: 100%;
  content: "";
  display: inline-block;
  height: 1rem;
  position: absolute;
  right: calc(-0.5rem - 1px);
  width: 1rem;
  left: calc(-0.5rem - 1px);
  top: 30px;
}

.timeline li p {
  text-transform: initial !important;
  font-size: 14px;
}
