/* =============================================================================
 * JMM Spende — Redesign-Layer
 * Lädt nach styles.css und überschreibt das Spenden-Layout komplett.
 * Klassen-Prefix: jmm-* . CSS-Variablen-Prefix: --jmm-* / --jmmh-*
 * ============================================================================= */

/* ----------------------------------------------------------------- *
 * 00. Sticky Header (2 rows: primary + brand-light)
 * ----------------------------------------------------------------- */
.jmm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  font-family: "interstate", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --jmmh-primary:    #003148;
  --jmmh-primary-fg: oklch(99% 0 0);
  --jmmh-brand-lt:   oklch(71% .06 235);
  --jmmh-action:     oklch(62% .21 28);
  --jmmh-action-fg:  oklch(99% 0 0);
  --jmmh-shop:       oklch(72% .16 130);
  --jmmh-shop-fg:    oklch(99% 0 0);
  --jmmh-card:       oklch(100% 0 0);
  --jmmh-fg:         oklch(22% .02 250);
  --jmmh-muted-fg:   oklch(50% .02 250);
}
.jmm-header-row { width: 100%; }
.jmm-header-primary   { background: var(--jmmh-primary);  color: var(--jmmh-primary-fg); }
.jmm-header-secondary { background: var(--jmmh-brand-lt); color: var(--jmmh-primary-fg); }

.jmm-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}
.jmm-header-inner-end { justify-content: flex-end; }

.jmm-logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.jmm-logo img { height: 40px; width: auto; display: block; }

.jmm-header-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .jmm-header-actions { gap: 0.75rem; } }

.jmm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 0;
  transition: opacity .15s, background .15s;
  white-space: nowrap;
  border: 0;
}
.jmm-btn svg { flex: 0 0 auto; }
.jmm-btn-card   { background: var(--jmmh-card);   color: var(--jmmh-fg); }
.jmm-btn-card:hover   { background: color-mix(in oklch, var(--jmmh-card) 90%, transparent); }
.jmm-btn-shop   { background: var(--jmmh-shop);   color: var(--jmmh-shop-fg); }
.jmm-btn-shop:hover   { opacity: .9; }
.jmm-btn-action { background: var(--jmmh-action); color: var(--jmmh-action-fg); }
.jmm-btn-action:hover { opacity: .9; }
@media (max-width: 640px) {
  .jmm-btn-card, .jmm-btn-shop { display: none; }
}

.jmm-nav { display: none; align-items: center; gap: 0.25rem; margin-right: 1rem; }
@media (min-width: 768px) { .jmm-nav { display: flex; } }
.jmm-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--jmmh-primary-fg);
  text-decoration: none;
  transition: background-color .15s;
}
.jmm-nav a:hover { background: oklch(42% .11 240 / 0.10); }

.jmm-search { position: relative; display: none; }
@media (min-width: 640px) { .jmm-search { display: block; } }
.jmm-search input {
  width: 14rem;
  padding: 0.5rem 2.25rem 0.5rem 1rem;
  background: var(--jmmh-card);
  color: var(--jmmh-fg);
  border: 0;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  border-radius: 0;
}
.jmm-search input::placeholder { color: var(--jmmh-muted-fg); }
.jmm-search svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--jmmh-muted-fg);
  pointer-events: none;
}

/* ----------------------------------------------------------------- *
 * 0. Layout-Chrome aus default.php komplett neutralisieren
 *    (Sepia-Bild, Logo-Header, Width-Constraints, Slider, Sidebox)
 * ----------------------------------------------------------------- */
body.index { background: oklch(99.5% .004 80); }

body.index .main-wrapper {
  max-width: none !important;
  background: transparent !important;
}
body.index .background {
  background-image: none !important;
  background: #e0d9ca !important;
  min-height: 100vh;
  padding: 0 !important;
  max-width: none !important;
}
body.index .donate-block.content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}
body.index .donate-block > .left.logo {
  display: none !important;
}
body.index .donate-block .donate-cont {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
body.index .main-de,
body.index .img-fader,
body.index .sidebox,
body.index .wrapper_teaser:not(.jmm-keep),
body.index .donate-block.second.faq {
  display: none !important;
}

/* Alte form_box-Default-Styles aus styles.css überschreiben.
   Ausnahme: .jmm-pay-tile (auch .form_box) bekommt eigenen Border weiter unten. */
body.index .form_box:not(.jmm-pay-tile) {
  background: transparent !important;
  border: 0 !important;
  margin-top: 0 !important;
}
body.index .formbody {
  background: transparent !important;
  height: auto !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
body.index .headline-box {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
}

/* ----------------------------------------------------------------- *
 * 1. Design-Tokens (1:1 oklch aus Redesign :root)
 * ----------------------------------------------------------------- */
form.donate.jmm-form {
  --jmm-radius:           0;
  --jmm-bg:               oklch(99.5% .004 80);
  --jmm-fg:               oklch(22% .02 250);
  --jmm-card:             oklch(100% 0 0);
  --jmm-primary:          oklch(42% .11 240);
  --jmm-primary-fg:       oklch(99% 0 0);
  --jmm-primary-soft:     oklch(94% .03 235);
  --jmm-muted:            oklch(97% .008 80);
  --jmm-muted-fg:         oklch(50% .02 250);
  --jmm-border:           oklch(78% .02 230);
  --jmm-shadow-soft:      0 1px 2px oklch(42% .11 240/.06), 0 8px 24px oklch(42% .11 240/.08);
  --jmm-shadow-elevated:  0 2px 4px oklch(42% .11 240/.06), 0 20px 50px oklch(42% .11 240/.14);
  --jmm-shadow-glow:      0 10px 40px -10px oklch(42% .11 240/.4);
  --jmm-gradient-primary: linear-gradient(135deg, oklch(45% .12 240), oklch(36% .1 245));
  --jmm-font:             "interstate", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --jmm-font-display:     "interstate", "Fraunces", "Helvetica Neue", sans-serif;
  /* Override des alten roten Akzent-Farbtokens, das Original-JS via inline-style auf Payment-Tiles setzt */
  --hoh-primary-color:   oklch(42% .11 240);
}

/* ----------------------------------------------------------------- *
 * 2. Section / Container / Grid
 * ----------------------------------------------------------------- */
form.donate.jmm-form { background: transparent; padding: 0; margin: 0; max-width: none; }
form.donate.jmm-form * { box-sizing: border-box; }

.jmm-spenden {
  position: relative;
  overflow: hidden;
  font-family: var(--jmm-font);
  color: var(--jmm-fg);
}
.jmm-bg {
  position: absolute; inset: 0;
  background: #e0d9ca;
  z-index: 0;
}
.jmm-container {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
@media (min-width: 1024px) {
  .jmm-container { padding: 4.5rem 1.5rem 6rem; }
}

/* Sticky-Form-Col darf nicht hinter dem Sticky-Header liegen */
@media (min-width: 1024px) {
  .jmm-form-col { top: 9rem !important; }
}

.jmm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .jmm-grid {
    grid-template-columns: 6fr 5fr;
    gap: 4rem;
  }
}

/* ----------------------------------------------------------------- *
 * 3. Form-Card (LEFT)
 * ----------------------------------------------------------------- */
.jmm-form-col {
  order: 2;
}
@media (min-width: 1024px) {
  .jmm-form-col {
    order: 1;
    position: sticky;
    top: 7rem;
  }
}

.jmm-card {
  background: var(--jmm-card);
  border: 1px solid #e0d9ca;
  border-radius: var(--jmm-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(120, 100, 70, 0.10), 0 20px 50px rgba(120, 100, 70, 0.18);
}
@media (min-width: 640px) { .jmm-card { padding: 2.5rem; } }

.jmm-card-head { margin-bottom: 2rem; }
.jmm-card-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--jmm-fg);
  letter-spacing: normal;
  text-transform: none;
  font-family: var(--jmm-font);
  line-height: 1.3;
}
.jmm-card-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--jmm-muted-fg);
  font-family: var(--jmm-font);
}

/* ----------------------------------------------------------------- *
 * 4. Step-Box mit Step-Number-Badge
 * ----------------------------------------------------------------- */
.jmm-step {
  margin-bottom: 1.75rem;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.jmm-step-head {
  display: flex !important;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.9375rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.jmm-step-num {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #e0d9ca;
  color: #102938;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jmm-font);
}
.jmm-step-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--jmm-fg) !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
  font-family: var(--jmm-font) !important;
}
.jmm-step-title strong { font-weight: 600; }

.jmm-step .form-group { margin: 0 0 0.625rem 0 !important; padding: 0 !important; }
.jmm-step > .form-group:last-child,
.jmm-step .jmm-checks .form-group:last-child { margin-bottom: 0 !important; }
.jmm-step .jmm-checks .form-group { margin-bottom: 0.5rem !important; }

/* ----------------------------------------------------------------- *
 * 5. Frequency Pill-Toggle
 * ----------------------------------------------------------------- */
.jmm-pill-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
}
.jmm-pill {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
}
.jmm-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.jmm-pill-label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 64px !important;
  padding: 1rem 0.75rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: var(--jmm-font) !important;
  color: var(--jmm-fg) !important;
  cursor: pointer;
  text-transform: none !important;
  background: #ffffff !important;
  border: 1px solid #e0d9ca !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.jmm-pill:not(.active):hover .jmm-pill-label {
  border-color: #e0d9ca !important;
  color: var(--jmm-fg) !important;
}
.jmm-pill.active .jmm-pill-label,
.jmm-pill.active:hover .jmm-pill-label {
  background: #e0d9ca !important;
  background-color: #e0d9ca !important;
  color: #102938 !important;
  border: 1px solid #e0d9ca !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------------------- *
 * 6. Amount-Grid (3-spaltig)
 * ----------------------------------------------------------------- */
.form__unique, .form__monthly {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.jmm-step .jmm-amount-grid,
.form__unique .jmm-amount-grid,
.form__monthly .jmm-amount-grid,
.jmm-amount-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.625rem !important;
  margin: 0 0 0.625rem 0 !important;
  width: 100% !important;
}
.jmm-amount-grid > [class*="col-"] {
  flex: none !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.jmm-step .jmm-amount,
.form__unique .jmm-amount,
.form__monthly .jmm-amount,
.jmm-amount {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  min-height: 64px !important;
  padding: 1rem 0.75rem !important;
  border-radius: 14px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: var(--jmm-font) !important;
  color: var(--jmm-fg) !important;
  background: #ffffff !important;
  border: 1px solid #e0d9ca !important;
  cursor: pointer;
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.jmm-step .jmm-amount:not(.active):hover,
.form__unique .jmm-amount:not(.active):hover,
.form__monthly .jmm-amount:not(.active):hover,
.jmm-amount:not(.active):hover {
  transform: none;
  box-shadow: none !important;
  border: 1px solid #e0d9ca !important;
}
.jmm-step .jmm-amount.active,
.jmm-step .jmm-amount.active:hover,
.jmm-step .jmm-amount.active:focus,
.form__unique .jmm-amount.active,
.form__unique .jmm-amount.active:hover,
.form__monthly .jmm-amount.active,
.form__monthly .jmm-amount.active:hover,
.jmm-amount.active,
.jmm-amount.active:hover,
.jmm-amount.active:focus {
  background: #e0d9ca !important;
  background-color: #e0d9ca !important;
  color: #102938 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  transform: none;
}
.jmm-amount.active .currency,
.jmm-amount.active:hover .currency,
.jmm-step .jmm-amount.active .currency,
.jmm-step .jmm-amount.active:hover .currency {
  color: #102938 !important;
}
.jmm-amount .currency {
  margin-left: 0.25rem;
  font-weight: 600;
}
.jmm-amount-free {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--jmm-muted-fg) !important;
}
.jmm-amount-free.active,
.jmm-amount.jmm-amount-free.active {
  color: #ffffff !important;
}

/* Freier-Betrag-Zeile spans the full width below the amount grid */
.jmm-amount-free-row {
  grid-column: 1 / -1;
  flex: none !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2-spaltige Variante (für einmalig: 150 / 500) */
.jmm-amount-grid.jmm-amount-grid--2col {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Kein display !important — sonst überschreibt es das inline display:none */
.input-group.custom_amount {
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
  flex-wrap: nowrap !important;
}
.input-group.custom_amount[style*="display: none"],
.input-group.custom_amount[style*="display:none"] { display: none !important; }
.input-group.custom_amount:not([style*="display: none"]):not([style*="display:none"]) { display: flex; }
.input-group.custom_amount .input-group-text {
  background: var(--jmm-muted) !important;
  border: 1px solid var(--jmm-border) !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  padding: 0 1rem !important;
  font-family: var(--jmm-font) !important;
  color: var(--jmm-fg) !important;
}
.custom_amount_field {
  border-radius: 0 !important;
  text-align: left !important;
}
form.donate.jmm-form .custom_amount_field {
  text-align: left !important;
}

/* ----------------------------------------------------------------- *
 * 7. Inputs (Salutation/Name/Email/Comment)
 * ----------------------------------------------------------------- */
.jmm-input,
form.donate.jmm-form .form-control,
form.donate.jmm-form .custom-select {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  border: 1px solid #e0d9ca !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--jmm-fg) !important;
  font-size: 0.875rem !important;
  font-family: var(--jmm-font) !important;
  line-height: 1.5 !important;
  height: auto !important;
  box-shadow: none !important;
  transition: border-color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.jmm-input::placeholder { color: var(--jmm-muted-fg) !important; opacity: 1 !important; }
.jmm-input:focus,
form.donate.jmm-form .form-control:focus,
form.donate.jmm-form .custom-select:focus {
  border: 1px solid #e0d9ca !important;
  outline: none !important;
  box-shadow: none !important;
}
form.donate.jmm-form textarea.form-control { min-height: 88px !important; resize: none !important; }
form.donate.jmm-form select.jmm-input,
form.donate.jmm-form select.form-control,
form.donate.jmm-form .custom-select,
form.donate.jmm-form #Salutation {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%237b8090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 6 8 10 12 6'/></svg>") !important;
  background-position: right 0.875rem center !important;
  background-repeat: no-repeat !important;
  background-size: 14px !important;
  background-color: var(--jmm-card) !important;
  padding-right: 2.5rem !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Salutation / Vorname / Nachname — untereinander gestapelt */
.jmm-contact-row .input-group {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.625rem !important;
  align-items: stretch;
  flex-wrap: nowrap !important;
}
.jmm-contact-row .input-group > * {
  margin: 0 !important;
  border-radius: var(--jmm-radius) !important;
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
}

/* ----------------------------------------------------------------- *
 * 8. Custom Checkboxes
 * ----------------------------------------------------------------- */
.jmm-checks { margin-bottom: 1.5rem; }
.jmm-checks .form-group { margin: 0 !important; }
.jmm-check,
form.donate.jmm-form .form-check,
form.donate.jmm-form .jmm-check.form-check,
form.donate.jmm-form .jmm-checks .form-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin: 0.5rem 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  position: relative;
  text-indent: 0 !important;
}
form.donate.jmm-form .jmm-checks,
form.donate.jmm-form .jmm-checks .form-group {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.jmm-check .form-check-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.jmm-check-box {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #e0d9ca;
  border-radius: 0;
  background: #ffffff;
  margin-top: 0.125rem;
  transition: all .15s ease;
  display: inline-block;
}
.jmm-check:hover .jmm-check-box {
  border-color: #e0d9ca;
}
.jmm-check .form-check-input:checked + .jmm-check-box {
  background: #e0d9ca;
  border-color: #e0d9ca;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23102938' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 7 12 13 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.875rem;
}
.jmm-check-text,
.jmm-check .form-check-label,
form.donate.jmm-form .form-check-label {
  font-size: 0.75rem !important;
  line-height: 1.6 !important;
  color: var(--jmm-muted-fg) !important;
  font-family: var(--jmm-font) !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  display: block !important;
}
.jmm-check-text a {
  color: var(--jmm-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----------------------------------------------------------------- *
 * 9. Payment-Method-Tiles
 * ----------------------------------------------------------------- */
.jmm-pay-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.jmm-pay-tile {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 92px;
  padding: 1rem !important;
  border: 1px solid #d4c8ad !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  cursor: pointer;
  transition: all .15s cubic-bezier(.4, 0, .2, 1);
  margin: 0 !important;
  width: auto !important;
  text-align: center !important;
  box-shadow: none !important;
  position: relative;
}
.jmm-pay-tile:hover {
  transform: none;
  border-color: #b8a982 !important;
  box-shadow: none !important;
}
.jmm-pay-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.jmm-pay-tile.jmm-selected,
.jmm-pay-tile:has(input[type="radio"]:checked) {
  background: #e0d9ca !important;
  border: 1px solid #b8a982 !important;
  box-shadow: none !important;
  transform: none;
}
.jmm-pay-tile.jmm-selected > div,
.jmm-pay-tile:has(input[type="radio"]:checked) > div {
  color: #102938 !important;
}
.jmm-pay-tile img {
  height: 28px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
  display: block !important;
  margin: 0 auto !important;
}
.jmm-pay-tile > div {
  font-size: 11px !important;
  color: var(--jmm-muted-fg) !important;
  font-weight: 500 !important;
  font-family: var(--jmm-font) !important;
  line-height: 1.2 !important;
  text-align: center !important;
  width: 100% !important;
}

/* ----------------------------------------------------------------- *
 * 10. SEPA-Felder
 * ----------------------------------------------------------------- */
.SEPA {
  margin-top: 1rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 0.625rem;
  width: 100% !important;
  text-align: left !important;
}
.SEPA .form-group {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  text-align: left !important;
}
.SEPA input,
.SEPA .jmm-input {
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}
.invalidIBAN {
  display: block;
  font-size: 0.75rem;
  color: oklch(60% .22 27);
  margin-top: 0.25rem;
  text-align: left !important;
}

/* ----------------------------------------------------------------- *
 * 11. Submit + SSL-Footer
 * ----------------------------------------------------------------- */
.submit-group {
  position: relative;
  margin-top: 1.5rem !important;
  padding: 0 !important;
}
.jmm-submit,
form.donate.jmm-form #submit-btn {
  width: 100% !important;
  padding: 1.125rem 1rem !important;
  border: 0 !important;
  border-radius: var(--jmm-radius) !important;
  background: var(--jmm-gradient-primary) !important;
  color: var(--jmm-primary-fg) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: var(--jmm-font) !important;
  letter-spacing: 0.01em !important;
  cursor: pointer;
  box-shadow: var(--jmm-shadow-glow) !important;
  transition: opacity .15s, transform .1s;
  height: auto !important;
  text-transform: none !important;
}
form.donate.jmm-form #submit-btn:hover:not(:disabled) { opacity: .95; }
form.donate.jmm-form #submit-btn:active:not(:disabled) { transform: scale(0.99); }
form.donate.jmm-form #submit-btn:disabled,
form.donate.jmm-form #submit-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.jmm-ssl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0 !important;
  font-size: 0.75rem;
  color: var(--jmm-muted-fg);
  font-family: var(--jmm-font);
}
.jmm-ssl svg { stroke: currentColor; }

.g-recaptcha {
  margin: 1rem auto 0 !important;
  display: flex;
  justify-content: center;
}

/* ----------------------------------------------------------------- *
 * 12. RIGHT COLUMN — Headline + Video + Stats
 * ----------------------------------------------------------------- */
.jmm-content-col {
  order: 1;
  font-family: var(--jmm-font);
  color: var(--jmm-fg);
}
@media (min-width: 1024px) {
  .jmm-content-col { order: 2; }
}

/* Mobile: Headline + Sub oben, Form Mitte, Video + Stats unten.
   display:contents löst die Wrapper auf, damit die Kinder direkte Grid-Items werden
   und einzeln per order angeordnet werden können. */
@media (max-width: 1023px) {
  .jmm-content-col,
  .jmm-form-col {
    display: contents;
  }
  .jmm-headline      { order: 1; }
  .jmm-sub           { order: 2; }
  .jmm-card          { order: 3; }
  .jmm-video         { order: 4; }
  .jmm-stats         { order: 5; margin-top: 0; }
  .jmm-anchor-links  { order: 6; }
  .jmm-grid          { gap: 1.5rem; }
}

/* Anker-Links unter den Stat-Kacheln */
.jmm-anchor-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.jmm-anchor-link {
  display: block;
  width: 50%;
  text-align: center;
  padding: 0.875rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: #749baf;
  color: #fff;
  font-family: var(--jmm-font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.jmm-anchor-link:visited,
.jmm-anchor-link:active {
  color: #fff;
}
.jmm-anchor-link:hover,
.jmm-anchor-link:focus-visible {
  background: #5e8499;
  color: #fff;
}

.jmm-headline {
  font-family: "falcon-script", cursive;
  font-size: 3rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: 0;
  color: #003148;
  margin: 0 0 1.5rem;
}
@media (min-width: 640px)  { .jmm-headline { font-size: 3.75rem; } }
@media (min-width: 1024px) { .jmm-headline { font-size: 4.5rem; } }
@media (min-width: 1280px) { .jmm-headline { font-size: 5rem; } }
.jmm-headline br { display: none; }
.jmm-headline br + em { display: inline; }
.jmm-headline br + em::before { content: "\A"; white-space: pre; }
@media (min-width: 1024px) {
  .jmm-headline br { display: inline; }
  .jmm-headline br + em::before { content: ""; }
}
.jmm-headline em {
  font-style: normal;
  font-weight: 400;
  color: #102938;
}

.jmm-sub {
  font-size: 1.125rem;
  color: var(--jmm-muted-fg);
  max-width: 36rem;
  line-height: 1.625;
  margin: 0 0 2.5rem;
  font-family: var(--jmm-font);
}

.jmm-video {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--jmm-radius);
  overflow: hidden;
  box-shadow: var(--jmm-shadow-elevated);
  background: oklch(22% .02 250 / 0.05);
}
.jmm-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.jmm-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .jmm-stats { grid-template-columns: repeat(4, 1fr); } }
.jmm-stat {
  background: var(--jmm-card);
  border: 1px solid #102938;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--jmm-radius);
  min-height: 90px;
}
.jmm-stat-num {
  font-family: var(--jmm-font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: #102938;
  line-height: 1;
}
.jmm-stat-label {
  font-size: 10px;
  color: #102938;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  font-family: var(--jmm-font);
}
.jmm-stat-cap {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #102938;
  margin-bottom: 0.5rem;
  font-family: var(--jmm-font);
}
.jmm-stat-logo img { height: 28px; width: auto; object-fit: contain; }

/* ----------------------------------------------------------------- *
 * 14. Section #impact — "Konkrete Hilfe. Spürbare Wirkung."
 * ----------------------------------------------------------------- */
.jmm-impact {
  background: #003148;
  padding: 6rem 0;
  font-family: "interstate", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  color: #fff;
}
@media (min-width: 1024px) { .jmm-impact { padding: 8rem 0; } }
.jmm-impact .jmm-eyebrow { color: rgba(255,255,255,.75); }
.jmm-impact .jmm-h2 { color: #e0d9ca; line-height: 0.65; }
.jmm-impact .jmm-h2 span { color: #e0d9ca; font-weight: 600; }
.jmm-impact .jmm-h2 em {
  font-family: "falcon-script", cursive;
  font-weight: 400;
  font-style: normal;
  color: #75a4bf;
  font-size: 2.6em;
  line-height: 1;
  vertical-align: -0.15em;
  margin-right: 0.15em;
}

.jmm-impact-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.jmm-impact-head { max-width: 42rem; margin-bottom: 4rem; }
.jmm-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(42% .11 240);
  font-weight: 500;
  margin-bottom: 1rem;
}
.jmm-h2 {
  font-family: "interstate", "Fraunces", "Helvetica Neue", sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: oklch(22% .02 250);
  margin: 0 0 0.75rem;
}
@media (min-width: 640px) { .jmm-h2 { font-size: 3rem; } }
.jmm-h2 span { color: oklch(50% .02 250); font-weight: 400; }

.jmm-impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .jmm-impact-grid { grid-template-columns: 3fr 2fr; gap: 1.25rem; }
}

.jmm-impact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .jmm-impact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jmm-impact-cards { grid-template-columns: repeat(3, 1fr); } }

/* IBAN-Toggle (nur Mobile/Tablet, nach "Sicheres Zuhause"-Karte) */
.jmm-iban-toggle {
  border-top: 1px solid #d4c8ad;
  border-bottom: 1px solid #d4c8ad;
  margin: 0.5rem 0;
}
@media (min-width: 640px) {
  .jmm-iban-toggle { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .jmm-iban-toggle { display: none; }
}
.jmm-iban-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--jmm-font);
  font-size: 1rem;
  font-weight: 600;
  color: #102938;
}
.jmm-iban-toggle summary::-webkit-details-marker { display: none; }
.jmm-iban-toggle summary::marker { content: ""; }
.jmm-iban-toggle-arrow {
  flex: 0 0 auto;
  color: #102938;
  transition: transform 0.2s ease;
}
.jmm-iban-toggle[open] .jmm-iban-toggle-arrow {
  transform: rotate(180deg);
}
.jmm-iban-toggle-body {
  padding: 0 0.25rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--jmm-fg);
  font-family: var(--jmm-font);
}
.jmm-iban-toggle-body b { color: #102938; }
.jmm-iban-toggle-body .underline {
  text-decoration: underline;
  font-weight: 600;
  color: #102938;
}

.jmm-impact-card {
  padding: 1.75rem;
  background: oklch(100% 0 0);
  border: 1px solid color-mix(in oklch, oklch(78% .02 230) 60%, transparent);
  border-radius: 0;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}
.jmm-impact-card:hover {
  border-color: color-mix(in oklch, oklch(42% .11 240) 40%, transparent);
  box-shadow: 0 2px 4px oklch(42% .11 240/.06), 0 20px 50px oklch(42% .11 240/.14);
}
.jmm-impact-card-img {
  margin-bottom: 1.25rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.jmm-impact-card-img img {
  height: 6rem;
  width: auto;
  object-fit: contain;
  transition: transform .3s ease;
}
.jmm-impact-card:hover .jmm-impact-card-img img { transform: scale(1.05); }

.jmm-impact-card-amount {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(50% .02 250);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.jmm-impact-card-title {
  font-family: "interstate", "Fraunces", "Helvetica Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: oklch(22% .02 250);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.jmm-impact-card-desc {
  font-size: 0.875rem;
  color: oklch(50% .02 250);
  line-height: 1.625;
  margin: 0;
  flex: 1;
}
.jmm-impact-card-link {
  margin-top: 1.25rem;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(42% .11 240);
  cursor: pointer;
  align-self: flex-start;
  font-family: inherit;
}
.jmm-impact-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ----------------------------------------------------------------- *
 * 15. Foto-Carousel (rechts in #impact)
 * ----------------------------------------------------------------- */
.jmm-impact-side { display: flex; flex-direction: column; }
.jmm-carousel-wrap {
  background: oklch(100% 0 0);
  border: 1px solid oklch(78% .02 230);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .jmm-carousel-wrap { padding: 2rem; } }
.jmm-carousel-head {
  font-family: "interstate", "Fraunces", "Helvetica Neue", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  line-height: 1.375;
  color: oklch(22% .02 250);
}
@media (min-width: 640px) { .jmm-carousel-head { font-size: 1.5rem; } }

.jmm-carousel {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.jmm-carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.jmm-carousel-track::-webkit-scrollbar { display: none; }
.jmm-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  min-height: 320px;
  background: oklch(97% .008 80);
  overflow: hidden;
}
.jmm-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jmm-carousel-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, oklch(42% .11 240 / 0.85), transparent);
  padding: 1rem;
}
.jmm-carousel-caption p {
  margin: 0;
  color: oklch(99% 0 0);
  font-size: 0.875rem;
  font-weight: 500;
}

.jmm-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: oklch(100% 0 0 / 0.9);
  color: oklch(22% .02 250);
  border: 1px solid oklch(78% .02 230);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.jmm-carousel-btn:hover { background: oklch(100% 0 0); }
.jmm-carousel-prev { left: 0.75rem; }
.jmm-carousel-next { right: 0.75rem; }

.jmm-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1rem;
}
.jmm-carousel-dot {
  height: 6px;
  width: 12px;
  background: oklch(78% .02 230);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all .2s;
}
.jmm-carousel-dot:hover { background: oklch(50% .02 250); }
.jmm-carousel-dot.is-active {
  width: 32px;
  background: oklch(42% .11 240);
}

/* ----------------------------------------------------------------- *
 * 16. Section #projekte — Weltkarte mit Pins
 * ----------------------------------------------------------------- */
.jmm-projekte {
  background: #e0d9ca;
  padding: 6rem 0;
  font-family: "interstate", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  color: oklch(22% .02 250);
}
@media (min-width: 1024px) { .jmm-projekte { padding: 8rem 0; } }

.jmm-projekte-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.jmm-projekte-head {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}
.jmm-projekte-head .jmm-eyebrow,
.jmm-projekte-head .jmm-h2 { text-align: center; }
.jmm-projekte-head .jmm-eyebrow { color: #003148; }
.jmm-projekte-head .jmm-h2,
.jmm-projekte-head .jmm-h2 span { color: #003148; }
.jmm-projekte-head .jmm-h2 { font-weight: 400; line-height: 0.65; }
.jmm-projekte-head .jmm-h2 em {
  font-family: "falcon-script", cursive;
  font-weight: 400;
  font-style: normal;
  color: #75a4bf;
  font-size: 2.6em;
  line-height: 1;
  vertical-align: -0.15em;
  margin-right: 0.15em;
}
.jmm-projekte-sub {
  font-size: 1rem;
  color: #003148;
  line-height: 1.625;
  margin: 1rem 0 0;
}

/* amCharts Bubble-Map Container — full bleed */
.jmm-bubble-map-wrap {
  width: 100%;
  background: #e0d9ca;
  margin: 1.5rem 0 0;
}
#jmm-bubble-map {
  width: 100%;
  height: 720px;
}
@media (max-width: 1024px) {
  #jmm-bubble-map { height: 560px; }
}
@media (max-width: 640px) {
  #jmm-bubble-map { height: 440px; }
}

/* ----------------------------------------------------------------- *
 * Gallery (Masonry, fade-in on scroll)
 * ----------------------------------------------------------------- */
.jmm-gallery {
  background: #e0d9ca;
  padding: 4rem 0;
}
@media (min-width: 1024px) { .jmm-gallery { padding: 6rem 0; } }
.jmm-gallery-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.jmm-masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px)  { .jmm-masonry { column-count: 2; column-gap: 1.25rem; } }
@media (min-width: 1024px) { .jmm-masonry { column-count: 3; column-gap: 1.5rem; } }
@media (min-width: 1440px) { .jmm-masonry { column-count: 4; } }
.jmm-masonry-item {
  break-inside: avoid;
  margin: 0 0 1rem 0;
  padding: 0;
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
@media (min-width: 640px)  { .jmm-masonry-item { margin-bottom: 1.25rem; } }
@media (min-width: 1024px) { .jmm-masonry-item { margin-bottom: 1.5rem; } }
.jmm-masonry-item.is-in {
  opacity: 1;
  transform: translateY(0);
}
.jmm-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .jmm-masonry-item { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------- *
 * FAQ — Modernes Card-Layout mit Accordion
 * ----------------------------------------------------------------- */
body.index .faq,
section#faq.faq {
  background: #003148 !important;
  padding: 5rem 1.5rem !important;
}
@media (min-width: 1024px) {
  body.index .faq,
  section#faq.faq { padding: 7rem 1.5rem !important; }
}
body.index .faq .content,
section#faq.faq .content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
}
body.index .faq h2,
section#faq.faq h2 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #e0d9ca !important;
  text-align: left !important;
  margin: 0 0 0.5rem 0 !important;
  letter-spacing: -0.01em;
  font-family: var(--jmm-font) !important;
}
@media (min-width: 768px) {
  body.index .faq h2,
  section#faq.faq h2 { font-size: 2.5rem !important; }
}
body.index .faq h2::after,
section#faq.faq h2::after { content: none !important; }

body.index .faq .faq-list,
section#faq.faq .faq-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 2.5rem 0 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
body.index .faq .faq-list li,
section#faq.faq .faq-list li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e0d9ca !important;
  border-radius: 0 !important;
  list-style: none !important;
  transition: border-color .2s ease;
  overflow: hidden;
}
body.index .faq .faq-list li:hover,
section#faq.faq .faq-list li:hover { border-color: #102938 !important; }

body.index .faq .accordion,
section#faq.faq .accordion {
  margin: 0 !important;
  padding: 1.25rem 3rem 1.25rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #102938 !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  font-family: var(--jmm-font) !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  transition: color .2s ease;
}
@media (min-width: 768px) {
  body.index .faq .accordion,
  section#faq.faq .accordion { padding: 1.5rem 3.5rem 1.5rem 1.75rem !important; font-size: 1.0625rem !important; }
}
body.index .faq .accordion::after,
section#faq.faq .accordion::after {
  content: "" !important;
  position: absolute !important;
  right: 1.5rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid #102938;
  border-bottom: 2px solid #102938;
  transform: translateY(-75%) rotate(45deg);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
  color: transparent !important;
  margin: 0 !important;
  float: none !important;
  font-size: 0 !important;
}
body.index .faq .accordion.active-faq::after,
section#faq.faq .accordion.active-faq::after {
  transform: translateY(-25%) rotate(-135deg);
}

body.index .faq .panel,
section#faq.faq .panel {
  padding: 0 1.5rem !important;
  max-height: 0;
  overflow: hidden !important;
  transition: max-height .35s cubic-bezier(.22,1,.36,1), padding .35s cubic-bezier(.22,1,.36,1) !important;
  font-size: 0.9375rem !important;
  color: #4b5764 !important;
  line-height: 1.65 !important;
  font-family: var(--jmm-font) !important;
  margin: 0 !important;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body.index .faq .panel,
  section#faq.faq .panel { padding: 0 1.75rem !important; }
}
body.index .faq .accordion.active-faq + .panel,
section#faq.faq .accordion.active-faq + .panel {
  padding-top: 0.5rem !important;
  padding-bottom: 2rem !important;
}
body.index .faq .panel > *:last-child,
section#faq.faq .panel > *:last-child {
  margin-bottom: 0 !important;
}
body.index .faq .panel a,
section#faq.faq .panel a {
  color: #102938 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.index .faq .panel a:hover,
section#faq.faq .panel a:hover { text-decoration: none; }

/* Footer — beige */
body.index footer {
  background-color: #e0d9ca !important;
  color: #102938 !important;
}
body.index footer a,
body.index footer a:hover,
body.index footer a:visited,
body.index footer .footer_legal {
  color: #102938 !important;
}
body.index footer a:hover { text-decoration: underline; }
body.index footer .footer_logo path,
body.index footer .footer_logo polygon,
body.index footer .footer_logo rect,
body.index footer .footer_logo circle,
body.index footer .footer_logo line {
  fill: #003148 !important;
  stroke: #003148 !important;
}
body.index footer .footer_logo_recolor {
  display: inline-block;
  width: 250px;
  height: 29px;
  background-color: #003148;
  -webkit-mask: url('../images/jmm/joyce-logo-white-BnvJ0UTN.svg') no-repeat left center / contain;
          mask: url('../images/jmm/joyce-logo-white-BnvJ0UTN.svg') no-repeat left center / contain;
}

/* Country activity modal */
.jmm-country-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 49, 72, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.jmm-country-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.jmm-country-modal-backdrop[hidden] { display: none; }
.jmm-country-modal {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.25rem 2rem 2rem;
  max-width: 540px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(12, 49, 72, 0.3);
  transform: translateY(8px) scale(0.98);
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.jmm-country-modal-backdrop.is-open .jmm-country-modal {
  transform: translateY(0) scale(1);
}
.jmm-country-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.25rem; height: 2.25rem;
  background: #f4f6f8;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  color: #122c3d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}
.jmm-country-modal-close svg {
  width: 1.05rem;
  height: 1.05rem;
}
.jmm-country-modal-close:hover {
  background: #122c3d;
  color: #ffffff;
  transform: scale(1.05);
}
.jmm-country-modal-close:focus-visible {
  outline: 2px solid #122c3d;
  outline-offset: 2px;
}
.jmm-country-modal h3 {
  margin: 0 0 .25rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0c3148;
  letter-spacing: -0.01em;
}
.jmm-country-modal-sub {
  margin: 0 0 1.5rem;
  color: #6b7480;
  font-size: .95rem;
}
.jmm-country-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
@media (min-width: 480px) { .jmm-country-modal-grid { grid-template-columns: repeat(3, 1fr); } }
.jmm-country-modal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 1rem .5rem;
  border-radius: 12px;
  background: #f4f6f8;
  transition: background .15s ease;
}
.jmm-country-modal-item:hover { background: #e9eef3; }
.jmm-country-modal-item img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.jmm-country-modal-item img {
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(12, 49, 72, 0.15);
}
.jmm-country-modal-label {
  font-size: .85rem;
  color: #0c3148;
  font-weight: 600;
  line-height: 1.3;
}

/* Legacy Map-Container — preserve aspect ratio */
.jmm-projekte-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  background: oklch(98% .008 230);
  overflow: visible;
}
.jmm-map-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Pins */
.jmm-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.jmm-pin-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid oklch(100% 0 0);
  box-shadow: 0 1px 2px oklch(42% .11 240/.06), 0 8px 24px oklch(42% .11 240/.08);
  transition: transform .3s ease;
}
.jmm-pin:hover .jmm-pin-img {
  transform: scale(1.15);
  z-index: 10;
}
.jmm-pin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jmm-pin-dot {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: oklch(62% .21 28);
  box-shadow: 0 0 0 3px oklch(100% 0 0 / 0.6);
}
.jmm-pin-label {
  position: absolute;
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  background: oklch(42% .11 240);
  color: oklch(99% 0 0);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 20;
}
.jmm-pin:hover .jmm-pin-label { opacity: 1; }

/* ----------------------------------------------------------------- *
 * 13. Misc / Bootstrap-Reste neutralisieren
 * ----------------------------------------------------------------- */
form.donate.jmm-form .form-row:not(.jmm-amount-grid) { margin: 0 !important; }
form.donate.jmm-form .form-row.jmm-amount-grid { margin: 0 0 0.625rem 0 !important; }
form.donate.jmm-form .narrow-space,
form.donate.jmm-form .extra-space { padding: 0 !important; }
form.donate.jmm-form .chf_form { display: none !important; }

/* Address-Block wenn Spendenquittung-Checkbox aktiv */
form.donate.jmm-form .address-fields,
form.donate.jmm-form .address-form,
form.donate.jmm-form .address {
  display: grid !important;
  gap: 0.625rem;
  margin: 0.625rem 0;
}

/* Fehler-Markierung der validation-JS */
form.donate.jmm-form .jmm-input.invalid,
form.donate.jmm-form .jmm-input.is-invalid {
  border-color: oklch(60% .22 27) !important;
  box-shadow: 0 0 0 2px oklch(60% .22 27 / .15) !important;
}

/* === D3 Welt-Karte (ersetzt amCharts5) === */
#jmm-bubble-map { width: 100%; height: auto; }
#jmm-bubble-map svg { background: #e0d9ca; border-radius: 8px; }
.jmm-map-country { fill: #b0b0b0; stroke: #ffffff; stroke-width: 0.5; transition: fill .15s ease; pointer-events: all; }
.jmm-map-country.is-active { fill: #6b9ab8; cursor: pointer; }
.jmm-map-country.is-active:hover { fill: #9ec0d6; }

/* Country-Modal: Stats + Activities */
.jmm-country-modal-stats { display: grid; grid-template-columns: 1fr; gap: 0.4rem; margin: 0 0 1.25rem 0; padding: 0.875rem 1rem; background: #f4ebd9; border-radius: 6px; }
.jmm-country-modal-stats .jmm-stat-row { display: grid; grid-template-columns: 9rem 1fr; gap: 0.75rem; font-size: 0.875rem; }
.jmm-country-modal-stats dt { font-weight: 600; color: #003148; margin: 0; }
.jmm-country-modal-stats dd { margin: 0; color: #344a5c; }
@media (max-width: 540px) {
  .jmm-country-modal-stats .jmm-stat-row { grid-template-columns: 1fr; gap: 0.1rem; }
}
.jmm-country-modal-activities { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.625rem; }
.jmm-country-modal-activities li { padding: 0.75rem 1rem; background: #ffffff; border: 1px solid #d4c8ad; border-radius: 6px; font-size: 0.9375rem; color: #344a5c; line-height: 1.55; }
