
/*
Theme Name: IGV Völlen Peppy
Theme URI: https://igv-voellen.de
Author: IGV Völlen
Description: Peppiges, modernes WordPress-Theme für die Initiativgruppe & Gewerbetreibende Südliches Westoverledingen (IGV) auf Basis der neuen Mockups.
Version: 20.3
Text Domain: igv-voellen-peppy
*/
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f4f6;color:#111827;line-height:1.6}
a{color:#0073b9;text-decoration:none}
a:hover{color:#00549a}
img{max-width:100%;height:auto;display:block;border-radius:16px}
.site-wrapper{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1}
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 1.75rem}
.site-header{position:sticky;top:0;z-index:40;background:linear-gradient(180deg,rgba(0,94,172,.98),rgba(0,105,190,.98));color:#fff;box-shadow:0 12px 26px rgba(15,23,42,.35)}
.site-header-inner{display:flex;align-items:center;justify-content:space-between;padding:.7rem 0;gap:1.5rem}
.site-branding{display:flex;align-items:center;gap:.7rem}
.custom-logo-link img{max-height:54px;width:auto;border-radius:0}
.site-title{margin:0;font-size:1.2rem;font-weight:700}
.site-title a{color:#fff}
.site-description{margin:.12rem 0 0;font-size:.88rem;color:rgba(255,255,255,.85)}
.site-logo-fallback{font-weight:900;font-size:1.7rem;letter-spacing:-.03em;padding:.25rem .6rem;border-radius:14px;background:#fff}
.site-logo-fallback .blue{color:#0073b9}
.site-logo-fallback .green{color:#34a853}
.site-logo-fallback .brown{color:#b76b33}
.main-navigation{font-size:.95rem}
.main-navigation ul{list-style:none;margin:0;padding:.2rem;display:flex;gap:.35rem;align-items:center;background:rgba(255,255,255,.12);border-radius:999px}
.main-navigation a{display:inline-block;padding:.4rem .95rem;border-radius:999px;color:rgba(255,255,255,.9);font-weight:500}
.main-navigation a:hover,.main-navigation .current-menu-item>a,.main-navigation .current_page_item>a{background:#fff;color:#00549a}
.menu-toggle{display:none;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.45);border-radius:999px;padding:.25rem .75rem;font-size:.9rem;color:#fff;cursor:pointer;align-items:center;gap:.4rem}
.menu-toggle:before{content:"☰";font-size:1rem}
@media (max-width:780px){
.site-description{display:none}
.main-navigation{position:absolute;left:0;right:0;top:100%;padding:.5rem 1rem 1rem;display:none}
.main-navigation ul{flex-direction:column;align-items:stretch;background:#fff;border-radius:20px;box-shadow:0 12px 26px rgba(15,23,42,.2)}
.main-navigation a{color:#111827}
.main-navigation.is-open{display:block}
.menu-toggle{display:inline-flex;margin-left:auto}
}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.55rem 1.4rem;border-radius:999px;font-size:.95rem;font-weight:600;border:none;cursor:pointer;white-space:nowrap;text-decoration:none}
.btn-primary{background:linear-gradient(135deg,#34a853,#24823d);color:#fff;box-shadow:0 12px 20px rgba(36,130,61,.35)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 16px 26px rgba(36,130,61,.45)}
.btn-ghost{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.5);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.24)}
.hero{background:linear-gradient(135deg,#0062b4 0,#0094bb 45%,#23ad5b 100%);color:#fff;padding:2.8rem 0 3.1rem}
.hero-inner{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1.3fr);gap:2.4rem;align-items:center}
.hero-eyebrow{font-size:.82rem;text-transform:uppercase;letter-spacing:.16em;opacity:.9;margin-bottom:.5rem}
.hero-title{font-size:2.4rem;margin:0 0 .9rem;letter-spacing:-.03em}
.hero-subtitle{margin:0 0 1.1rem;font-size:1.02rem;max-width:32rem}
.hero-meta{font-size:.9rem;opacity:.9}
.hero-actions{margin-top:1.3rem;display:flex;flex-wrap:wrap;gap:.7rem}
.hero-panel{background:#fff;color:#111827;border-radius:22px;padding:1.4rem 1.6rem;box-shadow:0 14px 30px rgba(15,23,42,.12)}
.hero-panel h2{margin:0 0 .4rem;font-size:1.15rem}
.hero-panel p{margin:0 0 .6rem;font-size:.92rem;color:#6b7280}
.hero-list{list-style:none;margin:0;padding:0}
.hero-list li{display:flex;align-items:flex-start;gap:.45rem;font-size:.9rem;margin-bottom:.4rem}
.hero-list-bullet{width:16px;height:16px;border-radius:999px;margin-top:.1rem;background:linear-gradient(135deg,#34a853,#0073b9)}
.home-sections{padding:2.3rem 0 2.8rem;background:#f3f4f6}
.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.home-card{border-radius:22px;padding:1.3rem 1.4rem;color:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 8px 18px rgba(15,23,42,.1)}
.home-card:nth-child(1){background:linear-gradient(135deg,#34a853,#24823d)}
.home-card:nth-child(2){background:linear-gradient(135deg,#0073b9,#00549a)}
.home-card:nth-child(3){background:linear-gradient(135deg,#b76b33,#8a4e23)}
.home-card h2{margin:0 0 .4rem;font-size:1.15rem}
.home-card p{margin:0 0 .75rem;font-size:.95rem}
.home-card .more-link{font-size:.9rem;font-weight:600;display:inline-flex;align-items:center;gap:.35rem;color:#fff}
.home-card .more-link:after{content:"→"}
.home-card:hover{transform:translateY(-2px)}
.content-area{padding:0 0 3rem}
.content-inner{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1.6fr);gap:2rem}
.site-content{background:#fff;border-radius:22px;padding:1.6rem 1.8rem;border:1px solid #e5e7eb;box-shadow:0 10px 25px rgba(15,23,42,.06)}
.section-header{display:flex;justify-content:space-between;align-items:baseline;gap:.8rem;margin-bottom:1.2rem}
.section-title{margin:0;font-size:1.4rem}
.section-subtitle{margin:0;font-size:.9rem;color:#6b7280}
.entry-header{margin-bottom:1rem}
.entry-title{margin:0 0 .4rem;font-size:1.7rem}
.entry-title-line{display:block;width:70px;height:4px;border-radius:999px;margin-top:.4rem;background:linear-gradient(90deg,#34a853,#0073b9)}
.entry-meta{font-size:.85rem;color:#6b7280}
.sidebar{display:flex;flex-direction:column;gap:1rem;font-size:.92rem}
.sidebar-widget{background:#fff;border-radius:14px;padding:1.2rem 1.4rem;border:1px solid #e5e7eb;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.sidebar-widget h2{margin-top:0;font-size:1rem}
.post-list{list-style:none;margin:0;padding:0}
.post-list-item{padding:1rem 0;border-bottom:1px solid #e5e7eb}
.post-list-item:last-child{border-bottom:none}
.post-list-item-title{margin:0 0 .25rem;font-size:1.1rem}
.post-list-item-meta{font-size:.78rem;color:#6b7280;text-transform:uppercase;letter-spacing:.08em}
.pagination{margin-top:1.5rem;display:flex;flex-wrap:wrap;gap:.5rem}
.pagination a,.pagination span{font-size:.85rem;padding:.3rem .75rem;border-radius:999px;border:1px solid #e5e7eb;background:#fff}
.pagination .current{background:linear-gradient(135deg,#0073b9,#34a853);border-color:transparent;color:#fff}
.site-footer{margin-top:2rem;background:#0b1220;color:#e5e7eb;border-top:3px solid #34a853}
.site-footer-inner{padding:1.7rem 0 1.2rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;font-size:.88rem}
.site-footer a{color:#e5e7eb}
.site-footer a:hover{color:#fff}
.footer-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1rem}
.footer-meta-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.16rem .7rem;border-radius:999px;border:1px solid rgba(148,163,184,.8);font-size:.78rem}
.footer-meta-dot{width:8px;height:8px;border-radius:999px;background:linear-gradient(135deg,#0073b9,#34a853)}
.member-search{margin-bottom:1rem}
.member-search input[type=search]{width:100%;padding:.55rem .8rem;border-radius:14px;border:1px solid #e5e7eb;font-size:.95rem}
.member-list{display:flex;flex-direction:column;gap:.7rem;margin-top:.5rem}
.member-card{border-radius:14px;padding:.9rem 1.1rem;border:1px solid #e5e7eb;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.member-card-title{margin:0 0 .2rem;font-weight:600}
.member-card-meta{font-size:.86rem;color:#6b7280}
@media (max-width:960px){
.hero-inner{grid-template-columns:1fr}
.home-grid{grid-template-columns:1fr}
.content-inner{grid-template-columns:1fr}
}
@media (max-width:640px){
.hero{padding:2.1rem 0 2.4rem}
.hero-title{font-size:2rem}
.site-content{padding:1.4rem 1.3rem}
}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.alignleft{float:left;margin:.3rem .75rem .75rem 0}
.alignright{float:right;margin:.3rem 0 .75rem .75rem}


/* Placeholder banner for pages without featured image */
.placeholder-banner{border:1px dashed var(--igv-border);border-radius:var(--igv-radius-lg);padding:1.25rem 1.25rem;background:linear-gradient(135deg, rgba(0,115,185,.10), rgba(52,168,83,.10));margin:0 0 1.2rem;}
.placeholder-banner strong{display:block;margin-bottom:.25rem;}

/* v5 overrides: logo handling + optional header button */
:root{ --igv-logo-maxh: 54px; }
.custom-logo-link{display:flex;align-items:center}
.custom-logo-link img{max-height:var(--igv-logo-maxh);width:auto;height:auto;object-fit:contain;border-radius:0 !important}
.header-cta{display:inline-flex;margin-left:.6rem}
@media (max-width:780px){ .header-cta{display:none} }

/* v6 logo improvements */
:root{ --igv-logo-maxh: 90px; }
.custom-logo-link img{
    background:transparent !important;
    box-shadow:none !important;
}
.site-branding{
    gap:14px;
}

/* v7 footer legal links */
.footer-legal{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    font-size:14px;
}
.footer-legal a{
    text-decoration:none;
    opacity:0.9;
}
.footer-legal a:hover{
    opacity:1;
    text-decoration:underline;
}

/* v12 remove sidebar layout */
.content-inner{grid-template-columns:1fr !important}
.sidebar{display:none !important}







/* v15: robust menu rendering (desktop + mobile) */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

/* Header layout */
.site-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.site-title-wrap{line-height:1.15}
.site-title-link{text-decoration:none;color:#fff;font-weight:800}
.site-description{opacity:.9;color:#e8f1ff;font-size:14px;margin-top:3px}

.site-nav-wrap{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

/* Menu list */
.main-navigation ul.menu{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:10px 12px;
  list-style:none;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
}
.main-navigation ul.menu li{margin:0}
.main-navigation ul.menu a{
  display:block;
  padding:10px 12px;
  border-radius:999px;
  text-decoration:none;
  color:#fff;
  font-weight:600;
}
.main-navigation ul.menu a:hover{
  background: rgba(255,255,255,.12);
}

/* Mobile: stacked menu (always visible) */
@media (max-width: 960px){
  .container { padding-left: 16px; padding-right: 16px; }

  .main-navigation ul.menu{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    border-radius:16px;
    padding:10px;
  }
  .main-navigation ul.menu a{
    border-radius:12px;
  }

  .header-cta{ width:100%; }
  .header-cta .btn{ width:100%; justify-content:center; }
}

/* Mobile stacking for sections */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr !important; }
  .hero-panel{ margin-top: 18px; }
  .home-grid{ grid-template-columns: 1fr !important; }
}


/* v16 header/nav fixes */
.site-header-inner{
  flex-wrap:nowrap;
}
.site-branding{flex: 1 1 auto; min-width: 260px;}
.site-nav-wrap{
  margin-left:auto;
  flex: 0 0 auto;
  justify-content:flex-end;
}
.main-navigation{display:flex; justify-content:flex-end; width:auto;}

/* Ensure menu links are never white blocks */
.main-navigation ul.menu{ background: rgba(255,255,255,.10); }
.main-navigation ul.menu a{
  color:#fff !important;
  background: transparent !important;
}
.main-navigation ul.menu li{
  background: transparent !important;
}
.main-navigation ul.menu li::before{ display:none !important; content:none !important; }
.main-navigation ul.menu li.current-menu-item > a,
.main-navigation ul.menu li.current_page_item > a{
  background: rgba(255,255,255,.14) !important;
}

/* Mobile: allow wrap and make menu visible/stacked */
@media (max-width: 960px){
  .site-header-inner{ flex-wrap:wrap; }
  .site-nav-wrap{ width:100%; }
  .main-navigation{ width:100%; }
  .main-navigation ul.menu{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    border-radius:16px;
    padding:10px;
    display:flex !important;
  }
  .main-navigation ul.menu a{ border-radius:12px; }
}

/* v18 social icons */
.header-social{
  display:flex;
  gap:10px;
  margin-left:10px;
}
.header-social a{
  width:34px;
  height:34px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.15);
}
.header-social a svg{
  width:18px;
  height:18px;
  fill:#fff;
}
.header-social a:hover{background:rgba(255,255,255,.28);}


/* v19 mobile overhaul: prevent header/hero overlap and simplify hero panel */
@media (max-width: 960px){
  /* Header becomes stacked */
  .site-header-inner{ flex-wrap:wrap !important; align-items:flex-start !important; }
  .site-branding{ width:100% !important; min-width:0 !important; }
  .site-title-wrap{ max-width: 100%; }
  .site-title-link{ font-size: 18px; line-height: 1.15; display:inline-block; }
  .site-description{ font-size: 13px; }

  .site-nav-wrap{ width:100% !important; margin-left:0 !important; }
  .main-navigation{ width:100% !important; }
  .main-navigation ul.menu{ width:100% !important; }

  /* Social icons align right in header row */
  .header-social{ margin-left:auto; }

  /* Ensure hero starts below header */
  .site-main{ padding-top: 0 !important; }
  .hero{ margin-top: 12px !important; }

  /* Remove glassy overlay panel behavior */
  .hero-panel{
    background: #ffffff !important;
    border: 0 !important;
    backdrop-filter:none !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.12) !important;
    padding: 16px !important;
  }

  /* Fix weird overlay / z-index */
  .hero, .hero *{ position: relative; z-index: 1; }
  .site-header{ z-index: 10; }

  /* Hero text sizing */
  .hero h1{ font-size: 34px !important; line-height: 1.05 !important; }
  .hero .eyebrow{ letter-spacing: .16em; }

  /* Buttons full width */
  .hero-actions{ display:flex; flex-direction:column; gap:10px; }
  .hero-actions .btn{ width:100%; justify-content:center; }

  /* Extra padding to avoid touching screen edges */
  .container{ padding-left: 14px !important; padding-right: 14px !important; }
}



/* v20 mobile "failsafe" – override EVERYTHING that can break mobile */
@media (max-width: 960px){
  /* Kill any transforms/absolute layouts that cause overlap */
  .hero, .hero *,
  .site-header, .site-header *,
  .main-navigation, .main-navigation *{
    transform: none !important;
    filter: none !important;
  }

  .site-header{ position: relative !important; }
  .site-header-inner{ display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:12px !important; }

  .site-branding{ width:100% !important; display:flex !important; align-items:flex-start !important; gap:12px !important; }
  .custom-logo-link img{ max-height:72px !important; }

  .site-title-link{ font-size:18px !important; line-height:1.2 !important; }
  .site-description{ font-size:13px !important; }

  .site-nav-wrap{ width:100% !important; display:flex !important; flex-direction:column !important; gap:10px !important; }
  .main-navigation{ width:100% !important; display:block !important; }

  /* Menu ALWAYS visible */
  .main-navigation ul, .main-navigation ul.menu{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    padding:10px !important;
    margin:0 !important;
    list-style:none !important;
    border-radius:16px !important;
    background: rgba(255,255,255,.10) !important;
    border:1px solid rgba(255,255,255,.18) !important;
    gap:6px !important;
  }
  .main-navigation ul.menu li{ background:transparent !important; }
  .main-navigation ul.menu a{
    display:block !important;
    padding:12px 12px !important;
    border-radius:12px !important;
    color:#fff !important;
    background: transparent !important;
  }

  /* Social icons: align right within nav-wrap row if needed */
  .header-social{ align-self:flex-end !important; margin-left:0 !important; }

  /* Ensure main content starts below header */
  .site-main{ margin:0 !important; padding:0 !important; }
  .hero{ margin-top:12px !important; padding-top:0 !important; }

  /* Hero layout */
  .hero-inner{ display:flex !important; flex-direction:column !important; gap:16px !important; }
  .hero-panel{ position:static !important; width:100% !important; background:#fff !important; border:0 !important; backdrop-filter:none !important; }
  .hero h1{ font-size:34px !important; line-height:1.05 !important; }

  .hero-actions{ display:flex !important; flex-direction:column !important; gap:10px !important; }
  .hero-actions .btn{ width:100% !important; justify-content:center !important; }

  /* No horizontal scroll */
  html, body{ overflow-x:hidden !important; }
  .container{ padding-left:14px !important; padding-right:14px !important; }
}


/* v20.3 custom news section */
.news-custom-card{
  background:#fff;
  border-radius:22px;
  padding:26px 28px;
  box-shadow:0 12px 30px rgba(0,0,0,.10);
}
.news-custom-card h3{ margin:0 0 6px 0; }
.news-custom-card p{ margin:0; color:#2f3b48; line-height:1.6; }
.news-custom-card .news-custom-link{ display:inline-flex; margin-top:14px; font-weight:700; text-decoration:none; }
