/* Base colors based on logo inspiration */
:root {
  --neon-green: #39ff14;
  --black: #000000;
  --white: #ffffff;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

h1, h2 { font-family: "Chewy", cursive; }



body {
  background-color: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
   
}

a {
  text-decoration: none;
}
ul {
  list-style: none;
}

img {
  max-width: 100%;
}

header h1 {
  margin: 0;
  padding: 0;
}
.logo {
  display: inline-block;
  max-height: 60px;  /* Limit logo height */
}

.logo img {
  border-radius: 40%;
  width: auto;
}
/*///////////////////////////////////////////////////////////////*/
/*NAVBAR*/
/**********************************************************************/
.navbar {
  padding: 20px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  /*todo center elements*/

}
.navbar .main-menu {
  display: flex;
}
.navbar .ul li a {
  padding: 10px 20px;
  display: block;
}

.navbar ul li:last-child {
  margin-left: 40px;
}

/*------- UTILITY CLASSES*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;

}
.container-small {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;

}

.homepage-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;

}


/* ============================================ */
/* HEADER & NAVIGATION */
/* ============================================ */



header {
  position: relative;
  text-align: center;
  padding: 0.5rem 1rem;
  background-color: var(--neon-green);
  color: var(--black);
}

    /* Login button in top right */
    .login-btn {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background-color: var(--black);
      color: var(--neon-green);
      border: 2px solid var(--neon-green);
      padding: 0.5rem 1rem;
      cursor: pointer;
      border-radius: 5px;
      font-weight: bold;
      transition: all 0.3s;
      z-index: 100;

    }

    .login-btn:hover {
  background-color: var(--neon-green);
  color: var(--black);
  transform: scale(1.05);
}


nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;  /* Tighter spacing between items */
  margin: 0.5rem 0 0 0;  /* Reduced top margin */
  padding: 0;
}
nav ul li {
  margin: 0;  /* Remove default margins */
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: bold;
  padding: 0.4rem 1rem;  /* Compact padding */
  display: block;
  transition: all 0.3s;
  border-radius: 3px;
}
nav a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

nav a.active {
  text-decoration: underline;
  color: var(--black); 
}



/* ============================================ */
/* MAIN CONTENT */
/* ============================================ */
main {
  flex: 1;
}



section {
  margin-bottom: 2rem;
  padding: 3rem;
  border-radius: 10px;
}
  /* Right column (sidebar) */
    sidebar {
      flex: 1 1 0;              /* take 1/3 of width */
      max-width: 420px;         /* optional cap */
      position: sticky; top: 1rem; /* optional sticky */
    }

main h2 {
  text-align: center;
  color: var(--neon-green);
  margin: 3rem auto 2rem auto;  /* top right bottom left */
  font-size: 2.5rem;
  max-width: 1100px;
  padding: 0 15px;
}


main section.container {
  margin-bottom: 4rem;  /* Space after each card grid */
}

#verein {
  display: flex;
  justify-content: center;  /* Center horizontally */
  padding: 2rem;
}
/* ============================================ */
/* FOOTER */
/* ============================================ */
footer {
  background-color: var(--neon-green);
  color: var(--black);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;

}

footer-placeholder { margin-top: auto; }
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  position: relative;
}
.contact-info {
  flex: 1;
  text-align: center;
}
/*foot design background and schrift*/

footer h2 {
  color: #111;
  margin-bottom: 1rem;
}
footer .email-link {
  color: var(--black);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
}

footer .email-link:hover {
  color: var(--white);
  transform: scale(1.05);
}

.social-media {
  position: absolute;
  left: 0;
  top: 0;
}

.social-link {
  display: inline-flex;
  color: var(--black);
  padding: 0.8rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  gap: 0.5rem;
  align-items: center;


}
.social-link:hover {
  background-color: var(--neon-green);
  color: var(--white);
transform: translateY(-3px) scale(1.1);
}
.social-link svg {
  width: 24px;
  height: 24px;
    display: block;

}
/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  
  .social-media {
    position: static;
    margin-bottom: 1rem;
  }
}


/* ============================================ */
/* VEREIN PAGE */
/* ============================================ */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.year-card {
  background-color: var(--black);
  border: 2px solid var(--neon-green);
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.year-card h3 {
  color: var(--neon-green);
  margin-bottom: 0.5rem;
}

.year-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.year-card h4 {
  color: var(--neon-green);
  margin: 0.5rem 0;
}

.delete-year-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #ff3939;
  color: var(--white);
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

/* Active link in navigation */
nav a.active {
  text-decoration: underline;
  color: var(--white);
}


/* ============================================ */
/* MITGLIEDER PAGE */
/* ============================================ */

.member-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.member {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--black);
  border-radius: 10px;
  padding: 1rem;
  position: relative;

}

.member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--neon-green);
}
.member-info {
  flex: 1;
}

.member-info h3 {
  color: var(--neon-green);
  margin-bottom: 0.3rem;
}

.member-info p {
  color: var(--white);
  font-size: 0.95rem;
}



/* ============================================ */
/* AUTHENTICATION & EDITING STYLES */
/* ============================================ */

/* Login Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--black);
  border: 3px solid var(--neon-green);
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
  position: relative;

}

.modal-content h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--neon-green);
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 0.7rem;
  background-color: var(--black);
  border: 2px solid var(--neon-green);
  color: var(--white);
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  flex: 1;
  padding: 0.7rem;
  border: 2px solid var(--neon-green);
  background-color: var(--neon-green);
  color: var(--black);
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--black);
  color: var(--neon-green);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--black);
  color: var(--neon-green);
}

.btn-secondary:hover {
  background-color: var(--neon-green);
  color: var(--black);
}

.error-message {
  color: #ff3939;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(255, 57, 57, 0.1);
  border-radius: 5px;
  display: none;
  text-align: center;
}

.error-message.active {
  display: block;
}

.editable {
  position: relative;
  transition: all 0.3s;
  border-radius: 3px;
}

.edit-mode .editable:hover {
  background-color: rgba(57, 255, 20, 0.1);
  cursor: pointer;
  outline: 2px dashed var(--neon-green);
  outline-offset: 3px;
}

.edit-toolbar {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--neon-green);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(57, 255, 20, 0.6);
  z-index: 999;
}

.edit-toolbar.active {
  display: block;
}

.edit-toolbar button {
  display: block;
  width: 100%;
  min-width: 150px;
  margin-bottom: 0.5rem;
  padding: 0.7rem 1rem;
  background-color: var(--black);
  color: var(--neon-green);
  border: 2px solid var(--black);
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.edit-toolbar button:last-child {
  margin-bottom: 0;
}

.edit-toolbar button:hover {
  background-color: var(--white);
  color: var(--black);
}


/* ============================================ */
/* ADMIN CONTROLS */
/* ============================================ */

.admin-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.control-btn {
  padding: 0.7rem 1.5rem;
  background-color: var(--neon-green);
  color: var(--black);
  border: 2px solid var(--neon-green);
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
.delete-btn {
  background-color: #ff3939;
  border-color: #ff3939;
  color: var(--white);
}

.delete-btn:hover {
  background-color: #cc0000;
  border-color: #cc0000;
}

.control-btn:hover {
  background-color: var(--black);
  color: var(--neon-green);
  transform: translateY(-2px);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
 /* Responsive adjustments */
  header {
  position: relative;
  background-color: var(--neon-green);
  color: var(--black);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;  }
  
.logo {
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: 100px; 
  width: 100px;
  object-fit: contain;
  border-radius: 50%;
}

nav {
  flex: 1;
  text-align: center;
}
  nav ul {
     list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  }
  
  nav a {
     text-decoration: none;
  color: var(--black);
  font-weight: bold;
  font-size: 1rem;
    padding: 0.5rem 1rem;
  display: block;
  transition: all 0.3s;
  border-radius: 5px;
  }
  nav ul li {
  margin: 0;
}
  
  .login-btn {
    top: 0.3rem;
    right: 0.5rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
  }

  .edit-toolbar {
    bottom: 1rem;
    right: 1rem;
    padding: 0.8rem;
  }

  .edit-toolbar button {
    min-width: 120px;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }
   .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .member {
    flex-direction: column;
    text-align: center;
  }

  .year-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================ */
/* GALLERY (BILDER PAGE) */
/* ============================================ */

.gallery-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  background-color: var(--black);
  border: 2px solid var(--neon-green);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(57, 255, 20, 0.4);
}

.folder-cover {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: rgba(57, 255, 20, 0.1);
}

.folder-info {
  padding: 1rem;
  text-align: center;
}

.folder-info h3 {
  color: var(--neon-green);
  margin-bottom: 0.5rem;
}

.image-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.image-info {
  padding: 0.7rem;
  text-align: center;
  background-color: rgba(57, 255, 20, 0.1);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.folder-modal-content {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--neon-green);
}

.close-btn {
  background: none;
  border: none;
  color: var(--neon-green);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: all 0.3s;
}

.close-btn:hover {
  background-color: var(--neon-green);
  color: var(--black);
}

.folder-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.image-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  padding: 0;
  background-color: transparent;
  border: none;
}

.image-modal-content .close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  background-color: var(--neon-green);
  color: var(--black);
}

.image-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
}

.image-controls {
  margin-top: 1rem;
  text-align: center;
}


/* Style the collapsible content. Note: hidden by default */
.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}
   .collapsible {
      background-color: #46f700;
      color: rgb(0, 0, 0);
      cursor: pointer;
      padding: 18px;
      width: 100%;
      border: none;
      text-align: left;
      outline: none;
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 5px;
      border-radius: 5px;
      transition: 0.3s;
    }

    .collapsible:hover {
      background-color: #098109;
    }

    .collapsible.active {
      background-color: #fc0505;
      color: #ffffff;
    }

    .collapsible::before {
      content: '▶';
      display: inline-block;
      margin-right: 10px;
      transition: transform 0.3s;
    }

    .collapsible.active::before {
      transform: rotate(90deg);
    }

    .content {
      display: none;
      overflow: hidden;
      background-color: #222;
      padding: 20px;
      margin-bottom: 10px;
      border-radius: 5px;
    }

    .images-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 15px;
    }

    .images-grid img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 5px;
      cursor: pointer;
      transition: transform 0.2s;
    }

    .images-grid img:hover {
      transform: scale(1.05);
    }

    /* Modal for full-size image */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.9);
    }

    .modal-content {
      margin: auto;
      display: block;
      max-width: 90%;
      max-height: 90%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      object-fit: scale-down;
    }

    .close {
      position: absolute;
      top: 20px;
      right: 35px;
      color: #f1f1f1;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
    }

    .close:hover {
      color: #ff0000;
    }

    .modal-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 60px;
      color: #fff;
      cursor: pointer;
      user-select: none;
      padding: 20px;
      border-radius: 5px;
       z-index: 1001;
    }
    .modal-nav:hover {
      color: #ff0000;
    }

    .modal-prev {
      left: 20px;
    }

    .modal-next {
      right: 20px;
    }

 /* ============================================ */
/* FOCUS CARDS MITGLIEDER */
/* ============================================ */

.focus-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.focus-card {
  background-color: var(--black);
  border: 2px solid var(--neon-green);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.focus-card:hover {
  transform: translateY(-10px) scale(1.05);
  border-width: 3px;
  box-shadow: 0 10px 40px rgba(57, 255, 20, 0.5);
}

.focus-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.focus-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.9);
}

.focus-card:hover .focus-card-image img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.focus-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  pointer-events: none;
}

.focus-card-info {
  padding: 1.5rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.focus-card:hover .focus-card-info {
  background-color: rgba(57, 255, 20, 0.1);
}

.focus-card-name {
  color: var(--neon-green);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  transition: text-shadow 0.3s ease;
}

.focus-card:hover .focus-card-name {
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
}

.focus-card-title {
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.focus-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.8);
  opacity: 0;
  animation: pulse 2s infinite;
  transition: opacity 0.3s ease;
}

.focus-card:hover .focus-indicator {
  opacity: 1;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}
