/* =========================================================================
   donatio4life — Eigene Overrides
   Wird NACH der Webflow-CSS geladen und gewinnt damit bei Konflikten.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Webflow-IX2-Animationen aufheben
   Webflow setzt für viele Sections initial opacity:0 + transform und löst
   das per Scroll-Trigger auf. Ohne die Webflow-Designer-Domain läuft das
   nicht zuverlässig — Inhalte bleiben unsichtbar. Wir heben die Init-
   States für die betroffenen Container generell auf.
   ------------------------------------------------------------------------- */
.hero-content,
.wrap,
.feature-content,
.feature-wrap.logos,
[style*="opacity:0"],
[style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

/* -------------------------------------------------------------------------
   2. Body- und Sektions-Hintergrund
   Falls der bodyClass-Prop mal fehlt: Hintergrund trotzdem garantieren.
   ------------------------------------------------------------------------- */
html,
body {
  background-color: #110c07;
}

/* -------------------------------------------------------------------------
   2b. Banner-Logo deutlich präsenter
   ------------------------------------------------------------------------- */
.brand img {
  width: 300px !important;
  height: auto !important;
  max-width: 100%;
}

@media (max-width: 991px) {
  .brand img {
    width: 240px !important;
  }
}

@media (max-width: 479px) {
  .brand img {
    width: 200px !important;
  }
}

/* -------------------------------------------------------------------------
   2c. Sektion-Spacing kompakter: zwischen Statistiken und OUR PROJECTS
   war zu viel Leerraum (Webflow gibt der Section ~150px padding).
   ------------------------------------------------------------------------- */
/* Section-3 (Counter) — Webflow gibt der 56px padding rundherum + 100px
   margin-bottom; wir wollen die Stats kompakt an OUR PROJECTS andocken. */
.section-3 {
  padding: 32px 16px 24px !important;
  margin-bottom: 0 !important;
}

/* OUR PROJECTS Section: weniger Luft oben, Title-Copy dichter dran. */
#ourprojects.section {
  padding-top: 8px !important;
}

#ourprojects > .title-copy {
  margin-top: 8px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  #ourprojects > .title-copy {
    margin-top: 16px;
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .section-3 {
    padding: 24px 16px 16px !important;
  }
}

/* -------------------------------------------------------------------------
   3. "OUR PROJECTS" / "OUR PARTNERS" / "ABOUT US"-Titel aufwerten
   Original ist sehr schlicht: kleines graues Caps-Label. Wir lassen das
   Webflow-Layout intakt, geben ihm aber mehr Präsenz: größere Schrift,
   helleres Sand-Gold, vertikale Akzent-Linien, mehr Spacing.
   ------------------------------------------------------------------------- */
.title-copy {
  font-family: 'DM Serif Display', 'Gothic A1', serif;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  color: #c9a66b;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  margin: 24px auto 32px;
  padding-bottom: 14px;
}

.title-copy::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a66b 50%, transparent);
  margin: 12px auto 0;
}

@media (min-width: 768px) {
  .title-copy {
    font-size: 44px;
    margin: 32px auto 48px;
  }
}

/* -------------------------------------------------------------------------
   4. Metriken-Sektion (Counter 6 / >100 / 5) etwas mehr Atem geben
   Hintergrund kommt jetzt vom Body. Wir setzen lediglich Innenabstand
   und sorgen dafür, dass die Zahlen auf dem dunklen Grund leuchten.
   ------------------------------------------------------------------------- */
.section-3 {
  padding: 56px 16px;
}

.feature-wrap.icons.numbers {
  gap: 24px;
}

.section-3 .number {
  color: #e9d5a8;
  font-family: 'DM Serif Display', serif;
}

.section-3 .feature-content.icons.numbers h4,
.section-3 .feature-content.icons.numbers .black-text {
  color: #c9a66b;
}

/* -------------------------------------------------------------------------
   5. Mobile-Tweaks
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Verhindere horizontalen Overflow durch lange Wörter / breite Tabellen */
  body {
    overflow-x: hidden;
  }
  .hero-content {
    padding: 0 16px;
  }
  /* Hero-Buttons untereinander stapeln und volle Breite */
  .hero-content .button,
  .hero-content .button-copy-copy {
    display: block;
    width: 100%;
    margin: 8px 0;
    text-align: center;
  }
  /* Counter-Sektion: untereinander statt Versuch nebeneinander */
  .feature-wrap.icons.numbers {
    flex-direction: column;
    align-items: center;
  }
  .section-3 {
    padding: 40px 16px;
  }
  /* Footer-Links besser lesbar */
  .footer-list {
    text-align: center;
  }
  .footer-link {
    display: inline-block;
    padding: 6px 12px;
  }
}

/* -------------------------------------------------------------------------
   6. Partner-Logos deutlich größer + besser auf dunklem Hintergrund lesbar
   ------------------------------------------------------------------------- */
.feature-wrap.logos {
  flex-wrap: wrap;
  gap: 40px 56px;
  justify-content: center;
  align-items: center;
  padding: 24px 16px 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-wrap.logos a,
.feature-wrap.logos > img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 110px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: transform 200ms ease, background-color 200ms ease;
}

.feature-wrap.logos a:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.feature-wrap.logos img.partner-logo-swapped,
.feature-wrap.logos .image-5,
.feature-wrap.logos .image-7,
.feature-wrap.logos .image-8,
.feature-wrap.logos .image-9,
.feature-wrap.logos .image-10 {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* GGGF-SVG nutzt currentColor; auf dunklem BG hell setzen. */
.feature-wrap.logos a:has(img[src*="partner-gggf"]) {
  color: #e9d5a8;
}


/* Alle Partner-Logos einheitlich monochrom in Site-Sand-Gold #e9d5a8.
   Die individuellen Brand-Farben wären auf dem dunklen Site-BG ein
   visuelles Chaos — der monochrome Look gibt der Sektion Ruhe und
   konsistente Hierarchie. Filter berechnet via codepen.io/sosuke
   für target color rgb(233, 213, 168). */
.feature-wrap.logos img.partner-logo-swapped {
  filter: brightness(0) saturate(100%) invert(94%) sepia(13%)
          saturate(776%) hue-rotate(338deg) brightness(95%) contrast(88%);
  opacity: 0.92;
  transition: opacity 200ms ease, filter 200ms ease;
}

.feature-wrap.logos a:hover img.partner-logo-swapped {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(100%) sepia(30%)
          saturate(420%) hue-rotate(330deg) brightness(108%) contrast(95%);
}

/* GGGF nutzt SVG mit festem Fill (e9d5a8) — über filter ebenfalls
   verarbeitet, sieht dann ungefähr gleich aus. */

@media (max-width: 767px) {
  .feature-wrap.logos {
    gap: 28px 24px;
    padding: 16px 8px 40px;
  }
  .feature-wrap.logos a,
  .feature-wrap.logos > img {
    width: 160px;
    height: 80px;
  }
}

/* -------------------------------------------------------------------------
   7. Social-Icons (Telegram / WhatsApp / Instagram) Contact-Sektion
   Offizielle Brand-SVGs, einheitliche Größe, runder Hover-Kreis.
   ------------------------------------------------------------------------- */
.div-block-14,
.div-block-15,
.div-block-16 {
  display: flex;
  justify-content: center;
}

.div-block-14 a,
.div-block-15 a,
.div-block-16 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 16px;
  border-radius: 12px;
  transition: background-color 200ms ease, transform 200ms ease;
}

.div-block-14 a:hover,
.div-block-15 a:hover,
.div-block-16 a:hover {
  background-color: rgba(201, 166, 107, 0.08);
  transform: translateY(-2px);
}

/* Icon-Pill: dezenter dunkler Kreis hinter dem Sand-Gold-Glyph */
.div-block-14 img.social-icon-swapped,
.div-block-15 img.social-icon-swapped,
.div-block-16 img.social-icon-swapped {
  width: 72px !important;
  height: 72px !important;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 166, 107, 0.25);
  border-radius: 50%;
  object-fit: contain;
  transition: background-color 200ms ease, border-color 200ms ease,
              transform 200ms ease;
}

.div-block-14 a:hover img.social-icon-swapped,
.div-block-15 a:hover img.social-icon-swapped,
.div-block-16 a:hover img.social-icon-swapped {
  background: rgba(201, 166, 107, 0.16);
  border-color: rgba(201, 166, 107, 0.6);
}

.text-block-4,
.text-block-5,
.text-block-6 {
  color: #e9d5a8;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  /* Social-Trio NEBENEINANDER auf Mobile, kompakter */
  #contact .w-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }
  #contact .w-row .w-col-4 {
    flex: 1;
    width: auto;
    padding: 0;
  }
  .div-block-14 a,
  .div-block-15 a,
  .div-block-16 a {
    gap: 8px;
    padding: 10px 4px;
  }
  .div-block-14 img.social-icon-swapped,
  .div-block-15 img.social-icon-swapped,
  .div-block-16 img.social-icon-swapped {
    width: 52px !important;
    height: 52px !important;
    padding: 10px;
  }
  .text-block-4,
  .text-block-5,
  .text-block-6 {
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}

/* -------------------------------------------------------------------------
   8. Donate-Sektion: prominenter PayPal-Button + IBAN-Card mit Copy
   ------------------------------------------------------------------------- */

/* PayPal-Button-Container: bekommt sanften Glow und mehr Atem.
   Webflows .section.wide.purple stellt den dunkelvioletten BG, wir
   konzentrieren uns auf das Innenleben. */
#donate .wrap {
  text-align: center;
  padding: 16px 16px 0;
}

#donate .heading-7 {
  font-family: 'DM Serif Display', serif;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

#donate .button-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

/* Eigener Donate-CTA (ersetzt das pixelige PayPal-GIF). Direkt-Link auf
   die PayPal-Donate-Seite mit unserer hosted_button_id. */
.donate-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  min-width: 280px;
  background: linear-gradient(135deg, #d4af7a 0%, #c9a66b 50%, #b9924e 100%);
  color: #1a130b;
  border-radius: 999px;
  font-family: 'Gothic A1', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(201, 166, 107, 0.25),
              0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1),
              box-shadow 220ms ease,
              filter 220ms ease;
}

.donate-cta:hover,
.donate-cta:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(201, 166, 107, 0.35),
              0 4px 12px rgba(0, 0, 0, 0.4);
  filter: brightness(1.05);
  outline: none;
}

.donate-cta:active {
  transform: translateY(-1px) scale(1.0);
}

.donate-cta-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
  color: #1a130b;
  fill: rgba(26, 19, 11, 0.12);
  flex-shrink: 0;
}

.donate-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.donate-cta-line {
  font-size: 22px;
  font-weight: 700;
}

.donate-cta-sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 600;
}

@media (max-width: 479px) {
  .donate-cta {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    gap: 12px;
  }
  .donate-cta-line { font-size: 19px; }
  .donate-cta-sub { font-size: 10px; }
  .donate-cta-icon { width: 24px; height: 24px; }
}

/* IBAN-Card -------------------------------------------------------------- */
#donate.section.wide {
  padding: 64px 16px;
}

#donate .container-4 {
  margin-top: 28px;
  padding: 0;
  max-width: 720px;
}

#donate .container-4 > div {
  width: 100%;
}

#donate .container-4 .w-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

#donate .container-4 .w-col {
  padding: 0;
}

#donate .column-7 {
  display: flex;
  justify-content: center;
}

@media (max-width: 575px) {
  #donate.section.wide {
    padding: 48px 20px;
  }
  #donate .container-4 .w-row {
    flex-direction: column;
    gap: 20px;
  }
  #donate .column-7,
  #donate .container-4 .w-col-8 {
    width: 100%;
  }
}

#donate .image-19 {
  /* QR-Code: ein bisschen mehr Stand-Out */
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  width: 188px !important;
  height: auto;
}

.iban-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
  text-align: left;
  color: #f3e5c2;
  font-family: 'Gothic A1', sans-serif;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.iban-card-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #c9a66b;
  margin-bottom: 14px;
}

.iban-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.iban-row + .iban-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.iban-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.iban-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a66b;
}

.iban-value {
  font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', ui-monospace, monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f6ecd1;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 166, 107, 0.14);
  color: #f3e5c2;
  border: 1px solid rgba(201, 166, 107, 0.4);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease,
              color 180ms ease, transform 120ms ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(201, 166, 107, 0.25);
  border-color: rgba(201, 166, 107, 0.65);
}

.copy-btn:active {
  transform: scale(0.96);
}

.copy-btn .copy-icon,
.copy-btn .check-icon {
  width: 16px;
  height: 16px;
}

.copy-btn .check-icon {
  display: none;
  color: #67d391;
}

.copy-btn.copied {
  background: rgba(103, 211, 145, 0.18);
  border-color: rgba(103, 211, 145, 0.55);
  color: #c4ecc9;
}

.copy-btn.copied .copy-icon {
  display: none;
}

.copy-btn.copied .check-icon {
  display: block;
}

@media (max-width: 479px) {
  .iban-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .copy-btn {
    width: 100%;
    justify-content: center;
  }
  .iban-value {
    font-size: 15px;
  }
}

/* -------------------------------------------------------------------------
   9. Footer (komplett neu, vom convert.py erzeugt)
   ------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
  border-top: 1px solid rgba(201, 166, 107, 0.18);
  color: #d8c89c;
  font-family: 'Gothic A1', sans-serif;
  padding: 64px 24px 0;
  margin-top: 32px;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* 5 Spalten: Brand etwas breiter (mehr Logo-Atem), die anderen
     gleichmäßig. Bankverbindung minimal breiter wegen IBAN. */
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.2fr 0.8fr;
  gap: 32px 36px;
  padding-bottom: 48px;
  align-items: start;
}

.footer-col-brand .footer-logo {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) saturate(100%) invert(94%) sepia(13%)
          saturate(776%) hue-rotate(338deg) brightness(95%) contrast(88%);
  opacity: 0.95;
}

.footer-tagline {
  color: #c2b58c;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 320px;
}

.footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: #e9d5a8;
  margin: 0;
}

.footer-address strong {
  color: #f6ecd1;
  font-weight: 700;
}

.footer-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #c9a66b;
  margin: 0 0 16px;
  font-weight: 400;
  text-transform: none;
}

.footer-list-new {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list-new a,
.footer-donate-link {
  color: #e9d5a8;
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms ease;
}

.footer-list-new a:hover,
.footer-donate-link:hover {
  color: #ffffff;
}

.footer-bank {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0 0 16px;
  font-size: 14px;
}

.footer-bank dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a66b;
  align-self: center;
}

.footer-bank dd {
  margin: 0;
  font-family: 'JetBrains Mono', 'SF Mono', 'Menlo', ui-monospace, monospace;
  color: #f6ecd1;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: visible;
}

.footer-donate-link {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 166, 107, 0.4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.footer-donate-link:hover {
  background: rgba(201, 166, 107, 0.16);
  border-color: rgba(201, 166, 107, 0.7);
}

.site-footer-bottom {
  border-top: 1px solid rgba(201, 166, 107, 0.12);
  padding: 20px 0;
}

.site-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-legal {
  margin: 0;
  color: #a89671;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  /* 3 Spalten auf Tablet, Brand voll oben. */
  .site-footer-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  /* 2 Spalten auf Phone. */
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}

@media (max-width: 575px) {
  .site-footer {
    padding: 40px 20px 0;
  }
  /* Mobile-Reihenfolge mit 5 Spalten im DOM
     (Brand, Anschrift, Kontakt, Bankverbindung, Rechtliches):
     1. Brand (voll)
     2. Anschrift   | Kontakt        (2-spaltig)
     3. Bankverbindung (voll)
     4. Rechtliches (voll, kurz)
  */
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 32px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    order: 1;
  }
  .site-footer-inner > .footer-col:nth-child(2) { order: 2; }  /* Anschrift */
  .site-footer-inner > .footer-col:nth-child(3) { order: 3; }  /* Kontakt */
  .site-footer-inner > .footer-col:nth-child(4) {              /* Bankverbindung */
    grid-column: 1 / -1;
    order: 4;
  }
  .site-footer-inner > .footer-col:nth-child(5) {              /* Rechtliches */
    grid-column: 1 / -1;
    order: 5;
  }
  .footer-tagline { max-width: none; font-size: 13px; }
  .footer-heading { font-size: 16px; margin-bottom: 12px; }
  .footer-list-new { gap: 8px; }
  .footer-list-new a { font-size: 13px; }
  .footer-legal { font-size: 11px; line-height: 1.55; }
  .footer-col-brand .footer-logo { width: 160px; }
}

/* -------------------------------------------------------------------------
   10. Burger-Menü auf dunkelm Hintergrund sichtbar
   ------------------------------------------------------------------------- */
.menu-button .menu-icon::before,
.menu-button .w-icon-nav-menu {
  color: #c9a66b;
}

/* Wenn das Mobile-Menü aufklappt, dunkler Hintergrund (passt zum Look) */
.w-nav-overlay {
  background-color: rgba(17, 12, 7, 0.97);
}

.w-nav-menu .nav-link {
  color: #e9d5a8;
}
