/* =============================================================
   notfaelle.css – Stimme der Tiere
   Übersichtsseite · Detailseite · Filter · Spendenwidgets
   ============================================================= */

/* ── Hero (Übersicht) ────────────────────────────────────── */
.notfaelle-hero__desc {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.65;
}

/* ── Filter Tabs ─────────────────────────────────────────── */
.notfaelle-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.notfaelle-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition),
              background var(--transition), box-shadow var(--transition);
}
.notfaelle-filter__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.notfaelle-filter__btn.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(196,103,46,.3);
}
.notfaelle-filter__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.notfaelle-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.3rem;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,.08);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.notfaelle-filter__btn.is-active .notfaelle-filter__count {
  background: rgba(255,255,255,.25);
}

.notfaelle-filter__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.notfaelle-filter__dot--red    { background: #ef4444; }
.notfaelle-filter__dot--yellow { background: var(--color-gold); }
.notfaelle-filter__dot--green  { background: var(--color-green); }

/* ── Emergency Cards Grid (Übersicht) ────────────────────── */
.emergency-cards--grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}

/* Urgent card highlight */
.emergency-card--urgent {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 4px rgba(196,103,46,.1), var(--shadow-card);
}

/* Closed card – desaturated */
.emergency-card--closed {
  opacity: .75;
  filter: grayscale(30%);
}
.emergency-card--closed:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Status badge on image */
.emergency-card__status {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.emergency-card__status--aktiv         { background: #fef2f2; color: #dc2626; }
.emergency-card__status--teilfinanziert{ background: var(--color-gold-bg); color: #92400e; }
.emergency-card__status--abgeschlossen { background: var(--color-green-bg); color: var(--color-green); }

.emergency-card__urgent-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Meta row (date + location) */
.emergency-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.emergency-card__location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Percent badge on amount row */
.emergency-card__percent {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Progress bar variants */
.progress__bar--abgeschlossen { background: linear-gradient(90deg, var(--color-green), #86efac); }
.progress__bar--teilfinanziert { background: linear-gradient(90deg, var(--color-gold), #fde68a); }

/* Larger progress bar for detail page */
.progress--lg {
  height: 10px;
  margin-bottom: 0.75rem;
}

/* Empty state */
.notfaelle-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.notfaelle-empty svg { opacity: .25; }

/* ── DETAIL PAGE ─────────────────────────────────────────── */

/* Hero */
.notfall-hero {
  position: relative;
  background: #1e1b17;
  color: var(--color-white);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.notfall-hero__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.notfall-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.notfall-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,16,10,.85) 0%, rgba(20,16,10,.3) 60%, transparent 100%);
}

.notfall-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.breadcrumb--light ol        { color: rgba(255,255,255,.6); }
.breadcrumb--light a         { color: rgba(255,255,255,.6); }
.breadcrumb--light a:hover   { color: var(--color-gold); }
.breadcrumb--light [aria-current="page"] { color: rgba(255,255,255,.9); }

.notfall-hero__badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

/* Status badge (detail) */
.notfall-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.notfall-status-badge--aktiv {
  background: rgba(239,68,68,.2);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.35);
}
.notfall-status-badge--teilfinanziert {
  background: rgba(232,168,36,.2);
  color: var(--color-gold);
  border: 1px solid rgba(232,168,36,.35);
}
.notfall-status-badge--abgeschlossen {
  background: rgba(74,140,92,.2);
  color: #6ee7b7;
  border: 1px solid rgba(74,140,92,.35);
}
.notfall-status-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.notfall-urgent-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.notfall-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-white);
  margin: 0 0 0.85rem;
  line-height: 1.15;
  max-width: 22ch;
}

.notfall-hero__meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
}
.notfall-hero__meta > * {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.notfall-hero__meta svg { opacity: .65; flex-shrink: 0; }

/* Body layout */
.notfall-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* Content */
.notfall-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  padding: 1.25rem 1.5rem;

  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
}

/* KirbyText / Writer blocks */
.prose h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.prose p  { line-height: 1.75; color: var(--color-text-muted); margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--color-text-muted); }
.prose li { line-height: 1.65; margin-bottom: 0.3rem; }
.prose a  { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--color-text); }

/* Animal info */
.notfall-animal-info {
  margin-top: 2.5rem;
  padding: 1.5rem;

  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.notfall-animal-info h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Gallery */
.notfall-gallery { margin-top: 2.5rem; }
.notfall-gallery h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.notfall-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.notfall-gallery__link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.notfall-gallery__link img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.notfall-gallery__link:hover img { transform: scale(1.05); }

/* Back link */
.notfall-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}
.notfall-back:hover { color: var(--color-primary); gap: 0.75rem; }

/* ── Sidebar Cards ───────────────────────────────────────── */
.notfall-sidebar {
  position: sticky;
  top: calc(72px + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Progress card */
.notfall-progress-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.notfall-progress-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.notfall-progress-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.notfall-progress-card__percent {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}
.notfall-progress-card__amounts {
  display: flex;
  justify-content: space-between;
}
.notfall-progress-card__amounts > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.notfall-progress-card__amounts strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}
.notfall-progress-card__amounts span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.notfall-progress-card__note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Donate card */
.notfall-donate-card {
  background: linear-gradient(135deg, #3d2409, #6b3a12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--color-white);
}
.notfall-donate-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.notfall-donate-card__text {
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.notfall-donate-card__tax {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.5);
}

/* Closed card */
.notfall-closed-card {
  background: var(--color-green-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.notfall-closed-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #065f46;
}
.notfall-closed-card p {
  font-size: 0.875rem;
  color: #047857;
  line-height: 1.5;
}

/* Bank card */
.notfall-bank-card {

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.notfall-bank-card h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}
.notfall-bank-card .legal-dl dd { font-size: 0.85rem; }
.notfall-bank-card .legal-dl code { font-size: 0.78rem; }
.notfall-bank-card__hint {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .emergency-cards--grid { grid-template-columns: repeat(2, 1fr); }
  .notfall-body { grid-template-columns: 1fr; gap: 2rem; }
  .notfall-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .notfall-progress-card,
  .notfall-donate-card,
  .notfall-closed-card  { flex: 1; min-width: 240px; }
  .notfall-bank-card    { width: 100%; }
}

@media (max-width: 700px) {
  .emergency-cards--grid { grid-template-columns: 1fr; }
  .notfall-sidebar       { flex-direction: column; }
  .notfall-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .notfall-hero          { min-height: 300px; }
}
