
:root {
  --bg: #0b0f16;
  --panel: #111620;
  --text: #d8e1ff;
  --accent: #1a73e8;
}

.light {
  --bg: #f3f6ff;
  --panel: #ffffff;
  --text: #1a1a1a;
  --accent: #0059d4;
}



body {
  margin: 0;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, Arial;
  display: flex;
  justify-content: center;
  transition: background 0.5s;
}

.container {
  max-width: 900px;
  background: var(--panel);
  padding: 20px;
  border-radius: 10px;
  transition: background 0.5s;
}



.logo {
  display: block;
  margin: 0 auto 20px auto;
  width: 120px;
  height: auto;
  transition: width 0.4s ease, transform 0.4s ease;
}

.logo.small {
  width: 70px;
  transform: translateY(-5px);
}



.topbar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.nav-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  transition: color .2s;
}

.nav-item a:hover {
  color: var(--accent);
}



.acc-title {
  cursor: pointer;
  background: var(--accent);
  color: white;
  padding: 10px;
  border-radius: 8px;
  margin-top: 20px;
  transition: 0.3s;
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
  background: rgba(255,255,255,0.05);
  padding: 0 10px;
  border-radius: 8px;
}



.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.page-transition.active {
  opacity: 1;
}



.theme-toggle {
  position: fixed;
  right: 15px;
  bottom: 15px;
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}



#splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}

#splash img {
  width: 300px;
  height: auto;
  animation: splashZoom 2.2s ease forwards;
}

@keyframes splashZoom {
  0% { transform: scale(0.5); opacity: 0; }
  30% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 600px) {

  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
    border-radius: 8px;
  }

 
  .logo {
    width: 90px;
  }

  .logo.small {
    width: 55px;
  }

  
  .topbar {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px 20px;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 10px;
  }

  .nav-item a {
    font-size: 16px;
    display: block;
    padding: 8px 0;
  }

  
  .acc-title {
    font-size: 16px;
    padding: 12px;
  }

  
  .acc-content {
    font-size: 15px;
    padding: 0 8px;
  }


  .theme-toggle {
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 18px;
  }

  
  #splash img {
    width: 200px;
  }
}
.project-button {
  display: inline-block;
  padding: 12px 20px;
  background: var(--accent);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
  transition: 0.25s ease;
  margin: 10px 0;
}

.project-button:hover {
  background: white;
  color: var(--accent) !important;
  transform: scale(1.05);
}
.center-img {
  display: block;
  margin: 0 auto;        
  width: 250px;          
  height: auto;
  border-radius: 10px;   
}
.nav-toggle {
  display: none;
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  z-index: 2000;
}


@media (max-width: 600px) {
  
  .topbar {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    text-align: center;
  }

  .topbar.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  
  .logo {
    margin-top: 50px;
  }
}
.nav-toggle {
  display: none;
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 18px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  z-index: 2000;
}


@media (max-width: 600px) {

  .topbar {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    text-align: center;
  }

  .topbar.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  
  .logo {
    margin-top: 60px;
  }
}

#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  padding: 20px;
}


#lightbox-img {
  max-width: 90%;
  max-height: 70%;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}


.event-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
}

.event-btn:hover {
  opacity: 0.85;
}


.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 35px;
  cursor: pointer;
  color: white;
}
#lightbox {
  position: fixed;
  inset: 0;
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}


.lightbox-content {
  position: relative;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 92%;
  max-height: 92%;
  padding: 12px;
  box-sizing: border-box;
}


#lightbox-img {
  max-width: 100%;
  max-height: calc(80vh);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: block;
}


.event-btn {
  padding: 10px 18px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}


.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10001;
  backdrop-filter: blur(3px);
}


@media (max-width: 600px) {
  .lightbox-close { top: 6px; right: 6px; font-size: 20px; padding: 8px 10px; }
  #lightbox-img { max-height: calc(70vh); }
}

.nav-toggle {
  display: none;
  background: #333;
  color: white;
  font-size: 18px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  margin: 10px auto;
  cursor: pointer;
}


#navMenu {
  display: flex;
  gap: 15px;
}


@media (max-width: 800px) {
  .nav-toggle {
    display: block; 
  }

  #navMenu {
    display: none; 
    flex-direction: column;
    background: var(--bg, #111);
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
  }

  #navMenu.open {
    display: flex; 
  }
}
.theme-switch {
  width: 55px;
  height: 28px;
  border-radius: 30px;
  background: #444;
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  transition: background 0.3s ease;
  z-index: 2000;
}

.theme-switch .switch-circle {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Lightmode */
body.light .theme-switch {
  background: #ddd;
}

body.light .theme-switch .switch-circle {
  transform: translateX(27px);
}
/* Weiterleitungspopup */
.redir-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.redir-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.redir-buttons button {
  background: #c00;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.redir-buttons button:hover {
  background: #a00;
}
header {
  position: relative;
  height: 400px; /* Höhe anpassen */
  overflow: hidden;
}

/* Hintergrundbilder */
.background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* ganz hinten */
}

.background-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.background-slider .slide.active {
  opacity: 1;
}

/* Inhalt über dem Hintergrund */
.header-content {
  position: relative;
  z-index: 1; /* über den Bildern */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white; /* Textfarbe sichtbar auf Bildern */
  text-align: center;
}
