/* Loader-Overlay CSS */
#loader {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* CSS-Variablen */
:root {
  --primary-color: #e94560;
  --secondary-color: #1a1a2e;
  --accent-color: #ffd700;
  --text-color: #333;
  --bg-color: #f0f2f5;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --primary-gradient: linear-gradient(45deg, #e94560, #ff7e7e);
  --primary-gradient-hover: linear-gradient(45deg, #d8345f, #ff6666);
  --secondary-gradient: linear-gradient(45deg, #1a1a2e, #141422);
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; }

/* Animationen */
@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate__fadeInUp {
  animation-name: fadeInUp;
  animation-duration: 1s;
  animation-fill-mode: both;
}

/* Header */
header {
  background: linear-gradient(90deg, var(--secondary-color), #141422);
  color: #fff;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  animation: slideDown 0.5s ease forwards;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-color);
}
.logo img {
  width: 45px;
  height: 45px;
  margin-right: 10px;
}

nav ul {
  list-style-type: none;
  display: flex;
}
nav ul li { margin: 0 15px; }
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
}
nav ul li a:hover { color: var(--primary-color); transform: scale(1.1); }

.hamburger { display: none; cursor: pointer; }
.hamburger div {
  width: 30px;
  height: 3px;
  background-color: #fff;
  margin: 6px 0;
}

.language-switcher {
  font-size: 16px;
  color: #fff;
  margin-top: 10px;
}
.language-switcher button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  z-index: 1;
}
.hero-background {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  background: url('../../images/xhamia.jpeg') repeat-x center center/cover;
  filter: brightness(60%);
  z-index: 0;
  animation: moveBackground 30s linear infinite;
}
@keyframes moveBackground {
  0% { transform: translateX(0); }
  50% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  animation: zoomIn 1s ease-out;
}
.hero h2 {
  font-size: 60px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Hero Buttons */
#hero-buttons {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Buttons */
.button, .all-articles-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 20px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow);
}
.button:hover, .all-articles-button:hover {
  background: var(--primary-gradient-hover);
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 100px 20px 60px;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(40px);
}
.section:nth-child(even) {
  background: var(--secondary-gradient);
  color: #fff;
}
h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}
h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}
p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 20px;
}

/* Swiper */
.swiper-container {
  width: 100%;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}
.member {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.swiper-slide .member {
  width: 100%;
  max-width: 300px;
  margin: auto;
}
.member img {
  width: 150px;
  height: 150px;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}
#board .member img { border-radius: 50%; }

#blog .swiper-slide .member {
  height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.blog-title { font-size: 18px; margin: 10px 0; }
.blog-image-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}
#blog .blog-image-container img {
  width: 90%;
  height: auto;
  display: block;
  object-fit: contain;
}
#blog .member a.button { padding: 8px 20px; font-size: 16px; }

.member h3 { margin-top: 15px; font-size: 22px; color: var(--primary-color); }
.member p { font-size: 16px; color: #555; }
.member:hover { transform: translateY(-10px) scale(1.05); }

.swiper-button-prev, .swiper-button-next {
  color: var(--primary-color);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: opacity 0.3s;
}
.swiper-button-prev { left: 10px; }
.swiper-button-next { right: 10px; }
.swiper-pagination { bottom: 10px !important; }
.swiper-pagination-bullet-active { background: var(--primary-color); }

@media (min-width: 769px) {
  .swiper-container:hover .swiper-button-prev,
  .swiper-container:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
  }
  .swiper-button-prev, .swiper-button-next {
    opacity: 0;
    visibility: hidden;
  }
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}
footer p { margin: 10px 0; font-size: 18px; }

/* Kontakt */
.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.contact-icons a {
  color: #25D366;
  font-size: 48px;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.contact-icons a:hover {
  color: #128C7E;
  transform: rotate(10deg);
}

/* Popup */
#popup-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#popup-modal.active { display: block; opacity: 1; }
#popup-modal .popup-content {
  position: relative;
  width: 100%; height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
#popup-modal .popup-header { flex: 0 0 auto; padding: 20px; }
#popup-modal .popup-body {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}
#popup-modal .popup-body img { max-width: 100%; height: auto; object-fit: contain; }
#popup-modal .popup-footer { flex: 0 0 auto; padding: 20px; margin-top: 10px; }

.popup-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 70px; height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  cursor: pointer;
  background: transparent;
  z-index: 11000;
}
@media (max-width: 480px) {
  .popup-close { width: 60px; height: 60px; font-size: 34px; }
}
#popup-button { padding: 10px 20px; font-size: 16px; }

/* Mobile */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: var(--secondary-color);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
  }
  nav ul.active {
    display: flex;
    animation: slideDown 0.5s ease forwards;
  }
  nav ul li { margin: 15px 0; text-align: center; }
  .hamburger { display: block; }
  .hero h2 { font-size: 40px; }
  .hero p { font-size: 20px; }
}
