:root{
  --oepy-blue:#1E3A8A;
  --oepy-blue-dark:#152a66;
  --oepy-red:#D52B1E;
  --oepy-red-dark:#a82016;
  --oepy-sand:#F7F3EC;
  --oepy-ink:#1F2430;
  --oepy-muted:#5B6473;
  --oepy-line:#E5E1D8;
  --radius:14px;
  --shadow:0 10px 30px rgba(30,58,138,.08);
  --container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:'Inter',system-ui,sans-serif;
  color:var(--oepy-ink);background:#fff;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--oepy-blue);text-decoration:none}
a:hover{text-decoration:underline}

h1,h2,h3,h4{font-family:'Fraunces',Georgia,serif;font-weight:700;line-height:1.15;color:var(--oepy-ink);margin:.2em 0 .4em}
h1{font-size:clamp(2rem,4.6vw,3.4rem);letter-spacing:-.01em}
h2{font-size:clamp(1.6rem,3.2vw,2.3rem)}
h3{font-size:1.25rem}

.container{max-width:var(--container);margin:0 auto;padding:0 1.25rem}

/* ---------- HEADER ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(8px);
  border-bottom:1px solid var(--oepy-line);
}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0}
.brand{display:flex;align-items:center;gap:.75rem;font-family:'Fraunces',serif;font-weight:700;color:var(--oepy-ink)}
.brand img{width:48px;height:48px;border-radius:50%}
.brand small{display:block;font:500 .75rem/1 'Inter',sans-serif;color:var(--oepy-muted);letter-spacing:.06em;text-transform:uppercase}
.menu{display:flex;gap:1.6rem;list-style:none;margin:0;padding:0}
.menu a{color:var(--oepy-ink);font-weight:500;font-size:.97rem;position:relative}
.menu a:hover{color:var(--oepy-blue);text-decoration:none}
.menu a::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--oepy-red);transform:scaleX(0);transition:.2s}
.menu a:hover::after{transform:scaleX(1)}
.nav-cta{background:var(--oepy-red);color:#fff !important;padding:.55rem 1rem;border-radius:999px;font-weight:600}
.nav-cta:hover{background:var(--oepy-red-dark);text-decoration:none}
.burger{display:none;background:none;border:0;width:42px;height:42px;cursor:pointer}
.burger span{display:block;width:22px;height:2px;background:var(--oepy-ink);margin:5px auto;transition:.3s}

/* ---------- HERO ---------- */
.hero{
  position:relative;padding:5rem 0 4rem;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(213,43,30,.08), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(30,58,138,.10), transparent 60%),
    var(--oepy-sand);
  overflow:hidden;
}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center}
.hero h1 span{color:var(--oepy-red)}
.hero p.lead{font-size:1.15rem;color:var(--oepy-muted);max-width:540px}
.btn{display:inline-block;padding:.85rem 1.4rem;border-radius:999px;font-weight:600;transition:.2s;border:0;cursor:pointer}
.btn-primary{background:var(--oepy-red);color:#fff}
.btn-primary:hover{background:var(--oepy-red-dark);text-decoration:none;transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--oepy-blue);border:2px solid var(--oepy-blue);padding:.7rem 1.3rem}
.btn-ghost:hover{background:var(--oepy-blue);color:#fff;text-decoration:none}
.hero-actions{display:flex;gap:.75rem;margin-top:1.5rem;flex-wrap:wrap}

.hero-visual{position:relative;aspect-ratio:1/1;max-width:460px;margin-left:auto}
.hero-visual::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(from 220deg, var(--oepy-blue), var(--oepy-red), var(--oepy-blue));
  filter:blur(40px);opacity:.25;
}
.hero-visual img{position:relative;border-radius:50%;box-shadow:var(--shadow)}

/* ---------- SECTIONS ---------- */
section{padding:4.5rem 0}
.section-sand{background:var(--oepy-sand)}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--oepy-red);margin-bottom:.6rem}
.section-head{max-width:720px;margin-bottom:2.5rem}
.section-head p{color:var(--oepy-muted);font-size:1.08rem}

/* ---------- PROJEKT-KARTEN ---------- */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.card{
  background:#fff;border:1px solid var(--oepy-line);border-radius:var(--radius);
  overflow:hidden;transition:.25s;display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:transparent}
.card-img{aspect-ratio:16/10;background:var(--oepy-sand) center/cover no-repeat}
.card-body{padding:1.3rem 1.4rem 1.5rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.card-tag{font-size:.75rem;font-weight:600;color:var(--oepy-blue);text-transform:uppercase;letter-spacing:.1em}
.card h3{margin:.1rem 0}
.card p{color:var(--oepy-muted);margin:0 0 .5rem;font-size:.97rem}
.card .more{margin-top:auto;color:var(--oepy-red);font-weight:600}

/* ---------- ZAHLEN ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;text-align:center}
.stat .num{font-family:'Fraunces',serif;font-size:2.6rem;color:var(--oepy-blue);font-weight:700;line-height:1}
.stat .lbl{color:var(--oepy-muted);font-size:.92rem;margin-top:.3rem}

/* ---------- SPENDEN-BOX ---------- */
.donate-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.donate-card{
  background:#fff;border-radius:var(--radius);padding:2rem;
  border:1px solid var(--oepy-line);box-shadow:var(--shadow);
}
.donate-card.highlight{background:linear-gradient(135deg,var(--oepy-blue),var(--oepy-blue-dark));color:#fff}
.donate-card.highlight h3,.donate-card.highlight p{color:#fff}
.iban{font-family:'JetBrains Mono',ui-monospace,monospace;background:var(--oepy-sand);padding:.7rem .9rem;border-radius:8px;display:inline-block;margin:.3rem 0;color:var(--oepy-ink)}
.donate-amounts{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
.donate-amounts button{
  flex:1;min-width:80px;padding:.7rem;border:2px solid #fff3;background:transparent;color:#fff;
  border-radius:10px;cursor:pointer;font-weight:600;transition:.2s;
}
.donate-amounts button:hover,.donate-amounts button.active{background:var(--oepy-red);border-color:var(--oepy-red)}

/* ---------- FORMULAR ---------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-row{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}
.form-row.full{grid-column:1/-1}
label{font-weight:500;font-size:.92rem}
input[type="text"],input[type="email"],input[type="tel"],textarea,select{
  width:100%;padding:.75rem .9rem;border:1px solid var(--oepy-line);
  border-radius:10px;font:inherit;background:#fff;transition:.2s;
}
input:focus,textarea:focus,select:focus{outline:0;border-color:var(--oepy-blue);box-shadow:0 0 0 3px rgba(30,58,138,.12)}
.checkbox-row{display:flex;align-items:flex-start;gap:.6rem;font-size:.92rem;color:var(--oepy-muted)}
.checkbox-row input{margin-top:.25rem}

/* ---------- NEWSLETTER STREIFEN ---------- */
.newsletter-band{
  background:linear-gradient(135deg, var(--oepy-blue) 0%, var(--oepy-red) 140%);
  color:#fff;border-radius:var(--radius);padding:2.5rem;display:grid;
  grid-template-columns:1fr 1fr;gap:2rem;align-items:center;
}
.newsletter-band h2,.newsletter-band p{color:#fff;margin:0 0 .4rem}
.newsletter-band form{display:flex;gap:.5rem}
.newsletter-band input{background:#fff}

/* ---------- Kontakt-Seite ---------- */
.kontakt-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:2.5rem;
  align-items:start;
}

@media (max-width: 880px){
  .kontakt-grid{ grid-template-columns: 1fr; }
}

/* Textarea-Styling */
textarea{
  font-family: inherit;
  min-height: 140px;
  resize: vertical;
}

/* Checkbox-Zeilen: Label klickbar machen */
.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  font-size:.92rem;
  color:var(--oepy-muted);
  line-height:1.45;
}
.checkbox-row input[type="checkbox"]{
  margin-top:.3rem;
  width:18px;
  height:18px;
  flex-shrink:0;
  accent-color: var(--oepy-blue);
  cursor:pointer;
}
.checkbox-row label{
  cursor:pointer;
  font-weight:400;
}
.checkbox-row a{ color:var(--oepy-blue); }

/* ---------- BLOG ---------- */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.post-meta{font-size:.85rem;color:var(--oepy-muted)}

/* ---------- FOOTER ---------- */
.site-footer{background:var(--oepy-ink);color:#cfd3dc;padding:3.5rem 0 1.5rem;margin-top:4rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem}
.site-footer h4{color:#fff;font-family:'Inter',sans-serif;font-size:.95rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:1rem}
.site-footer a{color:#cfd3dc}
.site-footer a:hover{color:#fff}
.footer-bottom{border-top:1px solid #ffffff1a;margin-top:2.5rem;padding-top:1.2rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;font-size:.88rem}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px){
  .hero-grid,.donate-grid,.newsletter-band,.form-grid{grid-template-columns:1fr}
  .hero-visual{margin:0 auto}
  .cards,.posts{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  .menu{
    position:fixed;inset:64px 0 auto 0;background:#fff;flex-direction:column;
    padding:1.5rem;gap:1.2rem;transform:translateY(-120%);transition:.3s;
    border-bottom:1px solid var(--oepy-line);
  }
  .menu.open{transform:translateY(0)}
  .burger{display:block}
  .cards,.posts{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  section{padding:3rem 0}
}

/* Link rechts oben in Section-Heads */
.all-projects-link{
  color:var(--oepy-red);font-weight:600;white-space:nowrap;
}
.all-projects-link:hover{text-decoration:none;color:var(--oepy-red-dark)}

/* „Neu"-Badge auf Karten */
.card-img{position:relative}
.card-badge{
  position:absolute;top:1rem;left:1rem;
  background:var(--oepy-red);color:#fff;
  font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
  padding:.35rem .7rem;border-radius:999px;
  box-shadow:0 4px 12px rgba(213,43,30,.35);
}

/* CTA-Banner unter den 3 Karten */
.more-projects-cta{
  margin-top:2rem;padding:1.4rem 1.8rem;
  background:#fff;border:1px dashed var(--oepy-blue);
  border-radius:var(--radius);
  display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap;
}
.more-projects-cta strong{color:var(--oepy-blue);font-family:'Fraunces',serif;font-size:1.15rem}
.more-projects-cta span{color:var(--oepy-muted)}

@media (max-width:640px){
  .more-projects-cta{flex-direction:column;text-align:center}
}

/* Hervorgehobener Intro-Absatz in Beiträgen */
.oepy-leadbox{
  position:relative;
  border-left:4px solid var(--oepy-red) !important;
  background:var(--oepy-sand) !important;
  border-radius:0 10px 10px 0 !important;
  padding:1rem 1.25rem !important;
  margin:1rem 0 2rem !important;
}
.oepy-leadbox p{
  margin:0;
  font-size:1rem;
  line-height:1.55;
  color:var(--oepy-ink);
}

/* Auf Mobile etwas kompakter */
@media (max-width:640px){
  .oepy-leadbox{
    padding:.85rem 1rem !important;
    margin:.75rem 0 1.5rem !important;
  }
  .oepy-leadbox p{ font-size:.95rem; }
}

/* =============================================
 *  MODULA GALLERY – oepy Theme Integration
 * ============================================= */

/* Container */
.modula.modula-gallery{
  margin: 1.5rem 0 2.5rem;
}

/* Einzelne Bilder */
.modula .modula-item .pic{
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30,58,138,.08);
  transition: transform .3s ease, box-shadow .3s ease;
  background: var(--oepy-sand);
}

.modula .modula-item:hover .pic{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30,58,138,.18);
}

/* Bild-Innenleben */
.modula .modula-item img{
  border-radius: var(--radius) !important;
  transition: transform .5s ease;
}

.modula .modula-item:hover img{
  transform: scale(1.04);
}

/* Hover-Overlay (sand-farbig statt schwarz) */
.modula .modula-item figcaption.figc{
  background: linear-gradient(180deg, transparent 50%, rgba(30,58,138,.85) 100%) !important;
  border-radius: var(--radius);
  color: #fff !important;
}

.modula .modula-item .figc .jtitle{
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.modula .modula-item .figc .description{
  font-family: 'Inter', sans-serif !important;
  font-size: .88rem !important;
  color: rgba(255,255,255,.92) !important;
  margin-top: .3rem !important;
}

/* Hover-Icon (Lupe) im roten CI-Stil */
.modula .modula-item .figc .icon-links a{
  color: #fff !important;
  background: var(--oepy-red) !important;
  border-radius: 999px !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  text-align: center !important;
  transition: transform .2s ease, background .2s ease !important;
}

.modula .modula-item .figc .icon-links a:hover{
  background: var(--oepy-blue) !important;
  transform: scale(1.1);
}

/* Lightbox (Magnific Popup) – Hintergrund + Captions */
.mfp-bg{
  background: var(--oepy-ink) !important;
  opacity: .94 !important;
}

.mfp-title{
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 1rem !important;
  color: #fff !important;
  text-align: center !important;
  padding: 1rem 2rem !important;
}

.mfp-counter{
  color: rgba(255,255,255,.6) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: .85rem !important;
}

.mfp-arrow-left:before,
.mfp-arrow-right:before{
  border-color: transparent !important;
}

.mfp-arrow-left:after{
  border-right-color: var(--oepy-red) !important;
}

.mfp-arrow-right:after{
  border-left-color: var(--oepy-red) !important;
}

.mfp-close{
  color: #fff !important;
  font-size: 32px !important;
  opacity: .9 !important;
}

.mfp-close:hover{
  color: var(--oepy-red) !important;
}

/* Loading-Spinner in CI-Blau */
.mfp-preloader{
  color: var(--oepy-blue) !important;
}

/* Responsive: kleinere Abstände auf Mobile */
@media (max-width: 640px){
  .modula .modula-item .figc .jtitle{
    font-size: .95rem !important;
  }
}

/* Bank-Box mit QR-Code */
.bank-grid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:1.5rem;
  align-items:start;
  margin-top:1.2rem;
}

.bank-qr{
  text-align:center;
  background:var(--oepy-sand);
  padding:1rem;
  border-radius:var(--radius);
  border:1px solid var(--oepy-line);
}

.bank-qr img{
  display:block;
  margin:0 auto;
  border-radius:8px;
  background:#fff;
  padding:6px;
}

.qr-hint{
  margin:.6rem 0 0;
  font-size:.85rem;
  color:var(--oepy-ink);
  font-weight:500;
  line-height:1.4;
}

.qr-hint small{
  color:var(--oepy-muted);
  font-weight:400;
}

/* Auf Mobile: untereinander */
@media (max-width: 580px){
  .bank-grid{
    grid-template-columns: 1fr;
  }
  .bank-qr{
    max-width:240px;
    margin:0 auto;
  }
}