/* ==========================================================================
   rykkfluss.css  –  RYKKFLUSS: Projekte, Bedürfnisse & Gemeinschaft
   /css/ | MoAktor

   Edles, responsives Design für die RYKKFLUSS‑Seite.
   Aufbauend auf der MoAktor‑Farbpalette (Nacht, Gold, Schwan, Pfau).

   Version: 1.0 – Juli 2026
   Lizenz: Lichtarchitekt‑Lizenz #7
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════════════════════
   CSS‑VARIABLEN
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --nacht:      #0b1a2f;
  --nacht-glas: rgba(11, 26, 47, 0.88);
  --gold:       #d4af37;
  --gold-hell:  #f0d060;
  --schwan:     #f5f0e8;
  --pfau:       #1a8a8a;
  --kraehe:     #1a1a2e;
  --dim:        #8a8a9a;
  --schrift:    'Georgia', 'Times New Roman', serif;
  --schrift-ui: 'Segoe UI', 'Arial', system-ui, sans-serif;
  --radius:     18px;
  --radius-sm:  12px;
  --transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   BASIS & TYPOGRAPHIE
   ═══════════════════════════════════════════════════════════════════════════ */

body {
  background: var(--nacht);
  color: var(--schwan);
  font-family: var(--schrift-ui);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.section {
  padding: 5rem 0;
}

h1, h2, h3, h4 {
  font-family: var(--schrift);
  color: var(--gold);
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }

a { color: var(--gold); transition: color 0.2s; }
a:hover { color: var(--gold-hell); }

p { margin-bottom: 1rem; color: #d0d0e8; line-height: 1.8; }

/* ══════════════════════════════════════════════════════════════════════════════
   SKIP-LINK (Barrierefreiheit)
   ═══════════════════════════════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--nacht);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* ══════════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(212,175,55,0.08) 0%, transparent 70%),
              linear-gradient(180deg, var(--nacht) 0%, var(--kraehe) 100%);
  padding: 3rem 1rem;
}

.hero-content { max-width: 750px; }

.hero-overline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(212,175,55,0.2);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--dim);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--pfau), var(--gold));
  color: #fff;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--schrift-ui);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(26,138,138,0.3);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,175,55,0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  box-shadow: none;
  margin-left: 0.8rem;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--nacht);
}

/* ══════════════════════════════════════════════════════════════════════════════
   PROJEKTE-CONTAINER & GRID
   ═══════════════════════════════════════════════════════════════════════════ */

#projekte-container {
  margin-top: 2rem;
}

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

/* Einzelne Projekt-Kachel */
.projekt-kachel {
  background: var(--nacht-glas);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.projekt-kachel:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(212,175,55,0.2);
  transform: translateY(-3px);
}

/* Schimmer-Effekt */
.projekt-kachel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.05), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.projekt-kachel:hover::before { left: 100%; }

.projekt-titel {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0.8rem 0 0.5rem;
  letter-spacing: 0.03em;
}

.projekt-kurztext {
  font-size: 0.9rem;
  color: #b0b0d0;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.2rem;
}

.projekt-aktion {
  margin-top: auto;
}

.btn-projekt {
  width: 100%;
  text-align: center;
  padding: 0.7rem 1.2rem;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-projekt:hover {
  background: rgba(212,175,55,0.2);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212,175,55,0.25);
}

/* Status-Badges */
.projekt-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-aktiv        { background: rgba(46,125,50,0.2);  color: #81c784; border: 1px solid rgba(46,125,50,0.4); }
.badge-planung      { background: rgba(249,168,37,0.2); color: #ffcc80; border: 1px solid rgba(249,168,37,0.4); }
.badge-abgeschlossen { background: rgba(158,158,158,0.2); color: #bdbdbd; border: 1px solid rgba(158,158,158,0.4); }

/* ══════════════════════════════════════════════════════════════════════════════
   BEDÜRFNISSE-CONTAINER & GRID
   ═══════════════════════════════════════════════════════════════════════════ */

#beduerfnisse-container {
  margin-top: 2rem;
}

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

/* Einzelne Bedürfnis-Karte */
.beduerfnis-karte {
  background: var(--nacht-glas);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.beduerfnis-karte:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(212,175,55,0.15);
}

.beduerfnis-header {
  margin-bottom: 0.8rem;
}

.beduerfnis-titel {
  font-size: 1rem;
  font-weight: 700;
  color: var(--schwan);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.beduerfnis-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--dim);
}

.beduerfnis-kategorie {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.beduerfnis-dringlichkeit {
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
}

.dringlichkeit-hoch   { background: rgba(198,40,40,0.2);  color: #ef9a9a; }
.dringlichkeit-mittel { background: rgba(249,168,37,0.2); color: #ffcc80; }
.dringlichkeit-niedrig { background: rgba(158,158,158,0.2); color: #bdbdbd; }

.beduerfnis-beschreibung {
  font-size: 0.85rem;
  color: #a0a0c0;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  flex: 1;
}

.beduerfnis-projekt {
  font-size: 0.75rem;
  color: var(--dim);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.beduerfnis-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(212,175,55,0.1);
}

.beduerfnis-kosten {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.beduerfnis-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
}

.status-offen  { background: rgba(212,175,55,0.15); color: var(--gold); }
.status-gedeckt { background: rgba(46,125,50,0.15);  color: #81c784; }

/* ══════════════════════════════════════════════════════════════════════════════
   SPENDEN-KARTEN (statisch)
   ═══════════════════════════════════════════════════════════════════════════ */

.angebote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  flex: 1 1 280px;
  max-width: 380px;
  background: var(--nacht-glas);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(212,175,55,0.2);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.card i {
  transition: transform 0.3s;
}
.card:hover i { transform: scale(1.1); }

/* ══════════════════════════════════════════════════════════════════════════════
   FEHLERMELDUNG (dynamisch)
   ═══════════════════════════════════════════════════════════════════════════ */

.rykkfluss-fehler {
  text-align: center;
  color: #ef9a9a;
  padding: 2rem;
  font-style: italic;
  background: rgba(198,40,40,0.08);
  border: 1px solid rgba(198,40,40,0.2);
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════════════════════════════════════════
   MODAL "In Arbeit"
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.visible { display: flex; }

.modal-container {
  background: var(--nacht-glas);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.modal-container h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.modal-container p {
  color: #b0b0d0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-close {
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .section { padding: 3rem 0; }

  .hero { min-height: 60vh; padding: 2rem 1rem; }

  .hero h1 { font-size: 1.8rem; }

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

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

  .angebote-grid {
    flex-direction: column;
    align-items: center;
  }

  .card { max-width: 100%; width: 100%; }

  .btn-outline { margin-left: 0; margin-top: 0.8rem; }

  .projekt-kachel { padding: 1.4rem; }
  .beduerfnis-karte { padding: 1.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero h1 { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .projekt-titel { font-size: 1rem; }
  .beduerfnis-titel { font-size: 0.9rem; }

  .modal-container { padding: 1.8rem 1.2rem; }
}