/* ============================================================
   main.css – Gemeinsame Styles für alalbani.de
   ============================================================ */

/* ---------- CSS-Variablen ---------- */
:root {
  --green: #0d5c2e;
  --green-light: #167d3e;
  --black: #1a1a1a;
  --white: #fafafa;
  --gray: #4a4a4a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */
header {
  background: linear-gradient(180deg, #fff 0%, #f0f7f2 100%);
  padding: 2rem 0 3rem;
  text-align: center;
  border-bottom: 3px solid var(--green);
}

/* ---------- Ramadan Banner ---------- */
.ramadan-banner {
  text-align: center;
  margin-top: 1.5rem;
}

.ramadan-image {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(13, 92, 46, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.ramadan-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(13, 92, 46, 0.25);
}

.logo {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

header a {
  text-decoration: none;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.25rem;
}

header .sub {
  font-size: 0.95rem;
  color: var(--gray);
}

/* ---------- Navigation ---------- */
nav {
  background: var(--black);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

nav a:hover {
  color: #a8d4b4;
}

/* ---------- Construction Banner ---------- */
.construction-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.construction-banner a {
  color: white;
  text-decoration: underline;
}

/* ---------- Sections ---------- */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid #e0e0e0;
  scroll-margin-top: 60px; /* Offset für sticky Navigation */
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 1.75rem;
  color: var(--green);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  color: var(--green);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* ---------- Spenden-Fortschritt ---------- */
.spenden-progress {
  background: #f5f9f6;
  border-radius: 12px;
  padding: 2rem;
  margin: 0;
  border: 2px solid #c6dccf;
  border-left: 7px solid var(--green);
  box-shadow: 0 8px 20px rgba(13, 92, 46, 0.14);
}

.spenden-progress h3 {
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  text-align: center;
  margin-top: 0;
  font-weight: 800;
}

.spenden-progress .progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
  color: var(--gray);
}

.spenden-progress .progress-amount {
  font-weight: 800;
  color: var(--green);
}

.spenden-progress .progress-remaining {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.92rem;
  color: var(--gray);
  text-align: center;
}

.spenden-progress .progress-remaining strong {
  color: var(--green);
}

.spenden-progress .progress-updated {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
  display: none;
}

.urgent-callout {
  margin: 0;
  max-width: none;
  width: 100%;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 1px solid #f2b8b8;
  border-left: 5px solid #e25555;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(226, 85, 85, 0.12);
}

.urgent-callout-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.8rem;
  padding: 0.45rem 0.75rem;
  color: #ffffff;
  background: linear-gradient(135deg, #c53f3f 0%, #a92f2f 100%);
  border: 1px solid #8f2525;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(169, 47, 47, 0.25);
}

.urgent-callout-title {
  margin: 0 0 0.45rem;
  color: #8f2525;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
}

.urgent-callout-text {
  margin: 0 0 0.75rem;
  color: #5a2a2a;
  font-size: 0.97rem;
  line-height: 1.5;
}

.urgent-callout-text strong {
  color: #111111;
  font-weight: 800;
}

.urgent-callout-text .urgent-inline {
  color: #111111;
  background: #f1f1f1;
  border: 1px solid #d6d6d6;
}

.urgent-inline {
  display: inline-block;
  font-weight: 800;
  color: #9f2f2f;
  background: #ffdede;
  border: 1px solid #f2b8b8;
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
}

.urgent-callout-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #b83a3a 0%, #8f2525 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  border: 1px solid #7f1f1f;
  box-shadow: 0 6px 14px rgba(143, 37, 37, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.urgent-callout-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(143, 37, 37, 0.3);
  filter: brightness(1.02);
}

.urgent-callout-cta:focus-visible {
  outline: 3px solid rgba(169, 47, 47, 0.25);
  outline-offset: 2px;
}

.urgent-callout-proof {
  margin: 0.7rem 0 0;
  color: #6b2e2e;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff1f1;
  border: 1px solid #f2b8b8;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.urgent-callout-proof::before {
  content: "●";
  color: #a92f2f;
  font-size: 0.7rem;
}

.urgent-callout .donation-purpose-display {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.urgent-callout .purpose-display-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.urgent-callout .purpose-display-supporters {
  justify-content: center;
  text-align: center;
}

.progress-bar-wrapper {
  background: #e0e0e0;
  border-radius: 20px;
  height: 32px;
  overflow: hidden;
  position: relative;
  margin-top: 0.75rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s ease;
  position: relative;
}

.progress-bar-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 2;
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-percentage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.spenden-history {
  background: #f5f9f6;
  border-radius: 12px;
  padding: 2rem;
  margin: 0;
  border: 2px solid #c6dccf;
  border-left: 7px solid var(--green);
  box-shadow: 0 8px 20px rgba(13, 92, 46, 0.14);
}

#projekt .urgent-callout + .spenden-progress,
#projekt .spenden-progress + .spenden-history {
  margin-top: 0.9rem;
}

.spenden-history h3 {
  margin: 0 0 0.75rem;
  text-align: center;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 800;
}

.spenden-history-meta {
  margin: 0.5rem 0 0.9rem;
  font-size: 0.84rem;
  color: var(--gray);
  text-align: center;
}

.spenden-history-list {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

#spenden-history-list {
  list-style: none !important;
  padding-left: 0 !important;
}

#spenden {
  padding-top: 1.6rem;
}

#spenden h2 {
  margin-bottom: 1rem;
}

#projekt {
  padding-bottom: 1.8rem;
  scroll-margin-top: 50px; /* Kleinerer Offset für Projekt-Sektion */
}

.spenden-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  background: white;
  border: 1px solid #e4efe8;
  border-radius: 12px;
  font-size: 0.92rem;
  box-shadow: 0 1px 4px rgba(13, 92, 46, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.spenden-history-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 92, 46, 0.08);
}

.spenden-history-item.is-loading,
.spenden-history-item.is-empty {
  justify-content: center;
  color: var(--gray);
  box-shadow: none;
}

.spenden-history-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.spenden-history-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f4ec;
  border: 1px solid #cfe5d7;
  font-size: 1rem;
  flex-shrink: 0;
}

.spenden-history-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spenden-history-title {
  color: var(--black);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.spenden-history-date {
  color: var(--gray);
  font-size: 0.82rem;
  line-height: 1.25;
}

.spenden-history-amount {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.92rem;
  background: #e8f4ec;
  border: 1px solid #cfe5d7;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

/* ---------- Video-Grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  border: 2px solid #d4e5d9;
  box-shadow: 0 2px 8px rgba(13, 92, 46, 0.06);
}

.video-placeholder span {
  text-align: center;
  padding: 1rem;
}

/* ---------- Spenden-Blöcke ---------- */
.spenden-content {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.spenden-block {
  background: #f5f9f6;
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid #d4e5d9;
  border-left: 4px solid var(--green);
  box-shadow: 0 2px 8px rgba(13, 92, 46, 0.06);
}

.spenden-block h3 {
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 1.1rem;
  margin-top: 0;
}

.spenden-block p {
  color: var(--gray);
  margin-bottom: 1rem;
}

/* ---------- Stripe-Button ---------- */
.stripe-btn {
  display: inline-block;
  background: var(--green);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.stripe-btn:hover {
  background: var(--green-light);
}

/* ---------- Bank-Details ---------- */
.bank-details {
  font-family: 'Source Sans 3', monospace;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--black);
}

.bank-details p {
  display: grid;
  grid-template-columns: 135px 1fr;
  align-items: start;
  column-gap: 0.45rem;
  margin: 0 0 0.35rem;
}

.bank-details strong {
  display: block;
  min-width: 0;
  color: var(--gray);
}

/* Mobile: Key und Value untereinander */
@media (max-width: 500px) {
  .bank-details strong {
    display: block;
    min-width: auto;
    margin-bottom: 0.1rem;
  }

  .bank-details p {
    display: block;
  }
  
  .bank-details p {
    margin-bottom: 0.55rem;
  }
}

.bank-details a {
  color: var(--green);
  text-decoration: none;
}

.bank-details a:hover {
  text-decoration: underline;
}

/* ---------- Adresse & Karte ---------- */
.address-with-map {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.address-contact {
  flex: 1;
  min-width: 260px;
}

.address-contact p {
  margin-bottom: 0.25rem;
}

.map-wrap {
  flex-shrink: 0;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d4e5d9;
  box-shadow: 0 4px 12px rgba(13, 92, 46, 0.1);
}

.map-wrap .map-back-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.social-links a:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.social-links .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------- Mawaqit (Gebetszeiten) ---------- */
.mawaqit-container {
  text-align: center;
  margin: 2rem 0;
}

.mawaqit-link {
  display: inline-block;
  transition: transform 0.2s;
}

.mawaqit-link:hover {
  transform: scale(1.05);
}

.mawaqit-link img {
  max-width: 300px;
  height: auto;
  display: block;
}

/* ---------- Impressum ---------- */
.impressum-details {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--black);
}

.impressum-details strong {
  color: var(--gray);
}

.impressum-details a {
  color: var(--green);
  text-decoration: none;
}

.impressum-details a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
footer {
  background: var(--black);
  color: #ccc;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #a8d4b4;
  text-decoration: none;
}

/* ---------- Projekt-Galerie ---------- */
.project-gallery {
  margin-top: 2rem;
}

.project-gallery h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--green);
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 92, 46, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 92, 46, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 90vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-counter {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .lightbox-nav {
    font-size: 1.5rem;
    padding: 0.5rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .address-with-map {
    flex-direction: column;
  }

  .map-wrap {
    width: 100%;
  }

  .map-wrap iframe {
    height: 200px;
  }
  
  /* Navigation */
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    font-size: 0.85rem;
  }
  
  /* Sections */
  section {
    padding: 2.5rem 0;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Spenden-Blöcke */
  .spenden-block {
    padding: 1.25rem;
  }
  
  .spenden-block h3 {
    font-size: 1.05rem;
  }
  
  /* Video-Grid */
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  /* Spendenfortschritt */
  .spenden-progress {
    padding: 1.25rem;
  }
  
  .spenden-progress h3 {
    font-size: 1rem;
  }
  
  .progress-info {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}
