/* ========== BASMALA BANNER ========== */
.basmala-banner {
  background: linear-gradient(135deg, #d4af37, #007a3d);
  color: white;
  padding: 0.6rem 0;
  text-align: center;
  font-family: 'Amiri', serif;
  border-bottom: 2px solid #8b4513;
  position: relative;
  overflow: hidden;
}

.basmala-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
}

.basmala-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 1rem;
}

.basmala-arabic {
  font-size: 1.2rem;
  font-weight: 700;
  direction: rtl;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basmala-pronunciation {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.9;
  margin: 0;
  line-height: 1.2;
}

.basmala-translation {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .basmala-arabic { font-size: 1.1rem; }
  .basmala-content { gap: 0.1rem; padding: 0 0.5rem; }
  .basmala-pronunciation { font-size: 0.8rem; }
  .basmala-translation { font-size: 0.75rem; }
}

/* ========== POLITISCHER STATEMENT-BANNER ========== */
.political-statement-banner {
  background: linear-gradient(90deg,
    var(--flag-black) 0%,
    var(--flag-black) 10%,
    var(--flag-white) 30%,
    var(--flag-green) 70%,
    var(--flag-red) 90%,
    var(--flag-red) 100%
  );
  color: var(--flag-white);
  padding: 1rem 0;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  z-index: 1002;
  overflow: visible;
  background-size: 200% 100%;
  animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.political-statement-banner p {
  margin: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  white-space: normal;
  display: block;
  overflow: visible;
  text-overflow: clip;
}

.political-statement-banner strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--flag-red);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .political-statement-banner {
    padding: 1.2rem 0.5rem;
    font-size: 0.85rem;
  }
  .political-statement-banner strong {
    font-size: 0.95rem;
  }
}

/* ========== HEADER ========== */
.site-header {
  background: var(--flag-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-outer {
  display: flex;
  align-items: center;
  background: var(--flag-white);
  width: 100%;
}

.logo-outer {
  flex-shrink: 0;
  padding-left: 15px;
}

.logo-outer .logo img {
  height: 45px;
  width: auto;
  display: block;
}

.header-top-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 15px;
  flex: 1;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.header-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 400px;
  min-width: 200px;
}

.header-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-family: inherit;
}

.search-btn {
  padding: 8px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ========== SPRACH-DROPDOWN ========== */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropbtn {
  padding: 6px 12px;
  background: var(--light);
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-dropbtn:hover {
  background: #eee;
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--flag-white);
  min-width: 120px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1001;
}

.language-dropdown:hover .lang-dropdown-content {
  display: block;
}

.lang-dropdown-content a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.9rem;
}

.lang-dropdown-content a:hover {
  background: var(--light);
  color: var(--primary);
}

/* ========== LOGIN & WARENKORB ========== */
.login-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.login-link:hover {
  color: var(--primary);
}

.cart-icon {
  position: relative;
  font-weight: bold;
  text-decoration: none;
  color: var(--dark);
}

#cart-count {
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
  position: absolute;
  top: -8px;
  right: -8px;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

/* ========== NAV-ROW ========== */
.nav-row {
  background: var(--primary);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 999;
}

.nav-row .main-nav {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.nav-all-btn {
  background: var(--flag-white);
  color: var(--primary);
  border: none;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  z-index: 2;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  height: auto;
  min-height: 36px;
  margin: 0;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.nav-all-btn:hover {
  background: #f0f0f0;
}

.nav-row .container {
  margin-left: 80px;
  padding-left: 2rem; /* Leerzeichen entfernt */
  padding-right: 15px;
  position: relative;
  z-index: 1;
}

.nav-pages {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-row .main-nav a {
  text-decoration: none;
  color: var(--flag-white);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.nav-row .main-nav a:hover {
  color: #fff;
}

.nav-row .main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

.nav-row .main-nav a:hover::after {
  width: 100%;
}

/* ========== OVERLAY NAVIGATION ========== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  overflow: hidden;
}

.nav-overlay.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-overlay-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: var(--flag-white);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding: 2rem 2rem 2rem 0;
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav-overlay.active .nav-overlay-content {
  transform: translateX(0);
}

.nav-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark);
  font-weight: bold;
}

.nav-close-btn:hover {
  color: var(--primary);
}

/* Entfernt: .nav-overlay-section (nicht verwendet) */

@media (max-width: 768px) {
  .nav-overlay-content {
    width: 100%;
  }
}

.nav-overlay-content::-webkit-scrollbar {
  width: 6px;
}

.nav-overlay-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.nav-overlay-content::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-outer {
    flex-direction: column;
    align-items: stretch;
  }

  .logo-outer {
    padding: 10px 15px 0;
  }

  .header-top-container {
    flex-direction: column;
    padding: 1rem 15px;
    align-items: stretch;
  }

  .site-title {
    margin-top: 10px;
    text-align: center;
  }

  .header-search {
    width: 100%;
    max-width: none;
    margin: 0.5rem 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-around;
    padding: 0;
  }

  .language-dropdown {
    position: static;
  }

  .lang-dropdown-content {
    position: absolute;
    width: 100%;
    left: 0;
  }

  .mobile-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
  }

  .nav-row {
    display: none;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    background: var(--flag-white);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 1rem;
    gap: 1rem;
    z-index: 1000;
  }

  .main-nav ul.active {
    display: flex;
  }
}

/* ========== FOOTER ========== */
.site-footer,
footer {
  background: var(--flag-black) !important; /* gray → flag-black */
  color: var(--flag-white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-col p,
.footer-col ul {
  margin: 0;
  padding: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-col h4 {
    font-size: 1.1rem;
  }

  .footer-col a {
    font-size: 0.9rem;
  }
}

/* ========== NAV DROPDOWN ========== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item > a {
  text-decoration: none;
  color: var(--flag-white);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.nav-item > a:hover {
  color: #fff;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

.nav-item > a:hover::after {
  width: 100%;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--flag-red);
  font-size: 1rem; /* Vergrößert */
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.nav-dropdown-btn::after {
  content: '▼';
  font-size: 1rem;
  display: inline-block;
  transform: rotate(270deg); /* Nach rechts */
  transition: transform 0.3s;
}

.nav-dropdown-btn:hover {
  color: var(--flag-red);
}

.nav-item:hover .nav-dropdown-btn::after {
  transform: rotate(360deg); /* Nach unten */
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--light);
  box-shadow: 0 4px 12px rgba(46, 94, 53, 0.15);
  border: 1px solid var(--primary);
  border-radius: 8px;
  min-width: 220px;
  z-index: 1001;
  list-style: none;
  padding: 0.75rem 0;
  backdrop-filter: blur(4px);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--dark) !important;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 0 0.5rem;
}

.nav-dropdown a:hover {
  background: rgba(46, 94, 53, 0.1);
  color: var(--primary) !important;
  transform: translateX(4px);
}

.nav-item:hover .nav-dropdown {
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    display: none;
  }

  .nav-item:hover .nav-dropdown,
  .nav-item.active .nav-dropdown {
    display: block;
  }
}

/* ========== OVERLAY DROPDOWN ========== */
.overlay-nav {
  width: 100%;
}

.overlay-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-nav-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.overlay-nav-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.overlay-nav-header > a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 1.2rem;
  flex: 1;
}

.overlay-nav-header > a:hover {
  color: var(--primary);
}

.overlay-dropdown-btn {
  background: none;
  border: none;
  color: var(--flag-red);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.3s;
}

.overlay-dropdown-btn::after {
  content: '▼';
  font-size: 1.2rem;
  display: inline-block;
  transform: rotate(270deg); /* Nach rechts */
  transition: transform 0.3s;
}

.overlay-nav-item.active .overlay-dropdown-btn::after {
  transform: rotate(360deg); /* Nach unten */
}

.overlay-dropdown {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 0.75rem;
  background: var(--light);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(46, 94, 53, 0.1);
}

.overlay-dropdown a {
  display: block;
  padding: 0.5rem 0;
  color: var(--dark);
  text-decoration: underline;
  font-size: 1rem;
  transition: all 0.3s;
  border-radius: 4px;
  padding-left: 1rem;
}

.overlay-dropdown a:hover {
  background: rgba(46, 94, 53, 0.1);
  color: var(--primary);
  padding-left: 1.3rem;
}

.overlay-nav-item.active .overlay-dropdown {
  display: block;
}

.auth-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-toggle {
  background: none;
  border: none;
  color: var(--dark);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.auth-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  min-width: 180px;
  z-index: 1001;
  display: none;
  flex-direction: column;
}

.auth-menu.show {
  display: flex;
}

.auth-menu a {
  padding: 10px 16px;
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
}

.auth-menu a:hover {
  background: var(--light);
  color: var(--primary);
}