:root {
  --pink: #ff80c0;
  --mint: #28cdb4;
  --yellow: #fce86e;
  --coral: #f15a48;
  --grey: #9c9a9b;
}

/* Custom Font */
@font-face {
  font-family: "CustomFont";
  src: url("/assets/fonts/spacegrotesk.woff2") format("woff2"),
    url("/assets/fonts/spacegrotesk.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "CustomFont", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  transition: background-color 0.3s ease;
}

/* Page specific backgrounds */
body.page-home {
  background-color: var(--coral);
}

body.page-calendar {
  background-color: var(--grey);
}

body.page-archive {
  background-color: var(--mint);
}

body.page-contact {
  background-color: var(--coral);
}

/* Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.menu-toggle {
  background: transparent;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.05);
}

.menu-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background: #333;
  display: block;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: #333;
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: var(--mint);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem;
}

.sidebar.active {
  right: 0;
}

.sidebar-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: transform 0.2s ease;
}

.sidebar-close:hover {
  transform: rotate(90deg);
}

.sidebar-nav {
  margin-top: 3rem;
}

.nav-list {
  list-style: none;
  margin-bottom: 3rem;
}

.nav-list li {
  margin-bottom: 1rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: #f5f5f5;
  padding-left: 1.5rem;
}

.language-switcher {
  border-top: 2px solid #eee;
  padding-top: 2rem;
}

.language-switcher h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.language-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.language-link {
  display: block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.language-link:hover {
  background: #e0e0e0;
}

.language-link.active {
  background: #333;
  color: white;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Page Title */
.page-title {
  text-align: left;
  margin-bottom: 2rem;
}

.page-title img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Home Page */
.home-content {
  background: transparent;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.home-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.home-content ul {
  margin: 1.5rem 0 1.5rem 2rem;
  line-height: 1.8;
  color: #333;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #555;
  transform: translateX(-4px);
}

.back-button svg {
  width: 20px;
  height: 20px;
}

/* Calendar & Archive */
.page-description {
  background: transparent;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
  color: #333;
}

.archive-month-subheader {
  cursor: pointer;
}

/* Calendar Events - Horizontal Layout */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 100px;
}

/* Archive Events - Grid Layout */
.archive-events-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

/* .archive-events-grid {
  overflow: hidden;
  transition: all 0.4s ease;
} */

.archive-month-section.collapsed .archive-events-grid {
  display: none; /* Einfach verstecken */
}

.archive-month-section.collapsed .archive-toggle-icon {
  transform: rotate(-90deg);
}

.archive-event-card {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.archive-event-card:hover {
  transform: scale(1.03);
}

.archive-event-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.archive-event-info {
  padding: 0.5rem 0;
}

.archive-event-date {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 0.25rem;
}

.archive-event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.event-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: visible;
  transition: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.5rem;
  gap: 2rem;
}

.event-image {
  width: 300px;
  height: 300px;
  min-width: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.event-content {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #333;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #333;
}

.event-description {
  color: #333;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.event-optional-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  color: #333;
}

.event-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.event-link:hover {
  background: #555;
}

/* Event Detail Page */
.event-detail {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.event-detail-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.event-detail-content {
  padding: 2.5rem;
}

.event-gallery {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #eee;
}

.event-gallery h2 {
  margin-bottom: 1.5rem;
}

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

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
}

/* Contact Page */
.contact-content {
  background: transparent;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  color: #333;
}

.contact-address {
  font-size: 1.2rem;
  line-height: 2;
  margin-bottom: 2rem;
  font-weight: 500;
  color: #333;
}

.contact-email {
  display: block;
  margin-bottom: 2rem;
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-media {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.contact-media img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-media video {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
.site-footer {
  background: #fce86e;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  padding: 5px;
  display: flex;
  align-items: center;
}

.eu-logo {
  height: 45px;
  width: auto;
}

.footer-social {
  margin: 10px;
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #333;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  transform: scale(1.1);
}

.contact-socials {
  margin: 10px;
  gap: 1rem;
  color: #333;
  transition: transform 0.2s ease;
}

.contact-socials:hover {
  transform: scale(1.1);
}

.footer-text {
  text-align: center;
  color: #333;
  font-size: 0.95rem;
}

@media (max-width: 950px) {
  .events-list {
    padding-left: 0px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .sidebar {
    width: 100%;
    right: -100%;
  }

  .page-title img {
    max-width: 80%;
  }

  .home-content,
  .contact-content {
    padding: 1.5rem;
  }

  .event-image {
    height: 200px;
    width: 200px;
    min-width: 200px;
  }

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

  .event-content {
    align-items: center;
  }

  .event-detail-image {
    max-height: 350px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .gallery-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .page-title img {
    max-width: 90%;
  }

  .event-image {
    height: 200px;
    width: 200px;
    min-width: 200px;
  }

  .event-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .event-content {
    align-items: center;
  }

  .event-meta {
    justify-content: center;
  }

  .home-content p {
    font-size: 1rem;
  }

  .site-header {
    top: 0.5rem;
    right: 0.5rem;
  }
}
