/* ================================================================
   Unser Schopp – main.css
   Corporate Design · Poppins · Natürliche Erdtöne
   ================================================================ */

/* ── Custom Properties ────────────────────────────────────────── */
:root {
  --color-white:  #fffdfd;
  --color-cream:  #f2eae7;
  --color-sage:   #eae9ce;
  --color-olive:  #8b8d75;
  --color-brown:  #675f4d;
  --color-dark:   #2e2f22;
  --color-green:  #3a5a2e;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.15);

  --transition: .6s cubic-bezier(.22,1,.36,1);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 400;
  color: var(--color-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; }

p { line-height: 1.7; }

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--transition), transform var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay  { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-green {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn-green:hover { background: #2c4522; border-color: #2c4522; color: var(--color-white); }

.btn-ghost-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.7);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.12); color: var(--color-white); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-outline-dark:hover { background: var(--color-dark); color: var(--color-white); }

.btn-full { width: 100%; }

/* ── Navigation ───────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid rgba(46,47,34,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 2rem;
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img { height: 36px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-brown);
  letter-spacing: .01em;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-green);
  transition: width .2s;
}
.nav-links a:hover { color: var(--color-green); }
.nav-links a:hover::after { width: 100%; }

.nav-right { margin-left: auto; flex-shrink: 0; display: flex; gap: .75rem; }
.btn-nav-outline {
  padding: .4rem 1.1rem;
  border: 1.5px solid var(--color-dark);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: all .2s;
  white-space: nowrap;
}
.btn-nav-outline:hover { background: var(--color-dark); color: var(--color-white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(0,0,0,.62) 0%,
    rgba(0,0,0,.50) 55%,
    rgba(0,0,0,.28) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Hero Text */
.hero-text { display: flex; flex-direction: column; gap: 1.25rem; }

.badge-pill {
  display: inline-block;
  width: fit-content;
  padding: .35rem 1rem;
  background: var(--color-sage);
  color: var(--color-dark);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-text h1 { color: var(--color-white); }
.text-green { color: #74c464; }

.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 520px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }

/* Activity Card */
.activity-card {
  background: rgba(20, 22, 15, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}
.activity-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.activity-header h3 { color: var(--color-white); font-size: .95rem; font-weight: 600; }

.activity-dot-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #74c464;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(116,196,100,.5);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(116,196,100,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(116,196,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(116,196,100,0); }
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-height: 320px;
  overflow: hidden;
}
.activity-entry {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .6rem .75rem;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-sm);
  animation: slideInEntry .5s cubic-bezier(.22,1,.36,1);
}
@keyframes slideInEntry {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.entry-icon { font-size: .85rem; flex-shrink: 0; margin-top: 1px; }
.entry-body { flex: 1; }
.entry-text { font-size: .8rem; color: rgba(255,255,255,.9); line-height: 1.4; }
.entry-time { font-size: .7rem; color: rgba(255,255,255,.45); margin-top: 2px; }

/* ── STATS BAR ────────────────────────────────────────────────── */
.stats-bar { background: var(--color-dark); padding: 3.5rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}
.stat-static { font-size: clamp(2rem, 4vw, 3rem); }
.stat-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-olive);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── PRODUKT SEKTION ──────────────────────────────────────────── */
.product-section { background: var(--color-cream); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.product-text { display: flex; flex-direction: column; gap: 1.25rem; }

.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-olive);
}
.product-text h2 { color: var(--color-dark); }
.product-text p { color: var(--color-brown); }

.product-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 440px;
}

/* ── KARTE ────────────────────────────────────────────────────── */
.map-section { background: var(--color-white); }
.map-container {
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(46,47,34,.08);
  margin-top: 2.5rem;
}

/* Leaflet popup anpassen */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: 'Poppins', sans-serif !important;
}
.leaflet-popup-content { font-size: .85rem !important; }
.popup-name { font-weight: 700; margin-bottom: .25rem; color: var(--color-dark); }
.popup-link { color: var(--color-green); font-weight: 600; font-size: .8rem; }
.popup-badge {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.popup-p1 { background: #e0e7ff; color: #3730a3; }
.popup-p2 { background: #fef3c7; color: #92400e; }
.popup-p3 { background: #dcfce7; color: #166534; }
.popup-p4 { background: #ccfbf1; color: #134e4a; }

/* Section helpers */
.section-header-center { text-align: center; margin-bottom: 3rem; }
.section-sub { color: var(--color-olive); margin-top: .5rem; font-size: .95rem; }
.section-header-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.link-more { font-size: .88rem; font-weight: 600; color: var(--color-green); white-space: nowrap; margin-bottom: .25rem; }
.link-more:hover { color: var(--color-dark); }

/* ── ZIELGRUPPEN ──────────────────────────────────────────────── */
.audience-section { background: var(--color-sage); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.audience-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.audience-icon { font-size: 2.2rem; }
.audience-card h3 { color: var(--color-dark); font-size: 1.05rem; }
.audience-card p { color: var(--color-brown); font-size: .88rem; line-height: 1.7; flex: 1; }
.audience-cta { font-size: .85rem; font-weight: 700; color: var(--color-green); margin-top: auto; }
.audience-cta:hover { color: var(--color-dark); }

/* ── TIMELINE ─────────────────────────────────────────────────── */
.timeline-section { background: var(--color-white); }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.timeline-line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-green), rgba(58,90,46,.2));
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}
.timeline-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(58,90,46,.3);
}
.timeline-step h4 { font-size: 1rem; color: var(--color-dark); }
.timeline-step p { font-size: .83rem; color: var(--color-brown); line-height: 1.6; }

/* ── AUSZEICHNUNGEN ───────────────────────────────────────────── */
.awards-section { background: var(--color-cream); }
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.award-card {
  background: var(--color-dark);
  border: 1.5px solid #b8960c;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  transition: transform .2s;
}
.award-card:hover { transform: translateY(-3px); }
.award-trophy { font-size: 2.8rem; }
.award-card h3 { color: var(--color-white); font-size: 1rem; }
.award-card p { color: var(--color-olive); font-size: .83rem; line-height: 1.6; }

/* ── NEWSROOM ─────────────────────────────────────────────────── */
.news-section { background: var(--color-white); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.news-meta time { font-size: .78rem; color: var(--color-olive); }
.news-badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--color-brown);
  color: var(--color-white);
}
.news-badge-green { background: var(--color-green); }
.news-badge-amber { background: #b45309; }
.news-card h3 { font-size: 1rem; color: var(--color-dark); }
.news-card p { font-size: .85rem; color: var(--color-brown); line-height: 1.65; flex: 1; }
.news-link { font-size: .82rem; font-weight: 700; color: var(--color-green); margin-top: auto; }
.news-link:hover { color: var(--color-dark); }

/* ── KONTAKT ──────────────────────────────────────────────────── */
.contact-section { background: var(--color-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-text h2 { color: var(--color-white); margin-bottom: 1rem; }
.contact-text p { color: var(--color-olive); line-height: 1.75; }
.contact-info { margin-top: 2rem; }
.contact-email {
  font-size: 1.05rem;
  font-weight: 600;
  color: #74c464;
}
.contact-email:hover { color: var(--color-white); }

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: .9rem;
}
.form-group label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-brown);
  text-transform: uppercase;
  letter-spacing: .06em;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid rgba(46,47,34,.15);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: 'Poppins', inherit;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(58,90,46,.12);
}
textarea { resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23675f4d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer { background: var(--color-dark); padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo-link img { height: 40px; object-fit: contain; }
.footer-brand p { font-size: .85rem; color: var(--color-olive); line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { color: var(--color-olive); transition: color .2s; }
.footer-social a:hover { color: var(--color-white); }

.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li, .footer-col ul a { font-size: .85rem; color: var(--color-olive); }
.footer-col ul a:hover { color: var(--color-white); }

.footer-bottom { padding: 1.5rem 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.3); }
.footer-bottom a:hover { color: var(--color-olive); }

/* ── Admin-Pages (andere Views) ───────────────────────────────── */
.admin-body { background: #f5f4f0; }
.admin-layout { display: flex; min-height: calc(100vh - 68px); }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--color-white);
  border-right: 1px solid rgba(46,47,34,.08);
  padding: 1.5rem 0;
}
.admin-sidebar ul li a {
  display: block;
  padding: .55rem 1.5rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-brown);
  transition: background .12s, color .12s;
}
.admin-sidebar ul li a:hover, .admin-sidebar ul li.active a {
  background: var(--color-sage);
  color: var(--color-green);
}
.admin-main { flex: 1; padding: 2rem; min-width: 0; }
.admin-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; }
.role-badge {
  background: var(--color-sage);
  color: var(--color-green);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 20px;
}
.admin-section { margin-bottom: 2.5rem; }
.admin-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid rgba(46,47,34,.1); box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--color-white); font-size: .88rem; }
.admin-table thead { background: #f9f8f5; }
.admin-table th { padding: .8rem 1rem; text-align: left; font-size: .72rem; font-weight: 700; color: var(--color-olive); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid rgba(46,47,34,.08); }
.admin-table td { padding: .85rem 1rem; border-bottom: 1px solid rgba(46,47,34,.05); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #f9f8f5; }
.action-cell { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.status-green { color: var(--color-green); font-weight: 600; }
.status-red   { color: #dc2626; font-weight: 600; }

.admin-form { max-width: 760px; }
.form-fieldset {
  border: 1px solid rgba(46,47,34,.1);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.form-fieldset legend { font-weight: 700; font-size: .92rem; padding: 0 .5rem; color: var(--color-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 1rem; margin-top: .5rem; }
.field-hint { font-size: .8rem; color: var(--color-olive); margin-bottom: 1rem; }

/* Tracker pills */
.tracker { display: flex; flex-direction: column; gap: 1.25rem; }
.tracker-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tracker-label { font-weight: 600; width: 220px; flex-shrink: 0; font-size: .88rem; color: var(--color-dark); }
.tracker-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.tracker-pill { padding: .25rem .75rem; border-radius: 20px; font-size: .75rem; font-weight: 600; border: 1.5px solid transparent; }
.pill-done    { background: #dcfce7; color: #166534; border-color: #86efac; }
.pill-current { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.pill-pending { background: #f3f4f6; color: #9ca3af; border-color: #e5e7eb; }
.tracker-edit-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tracker-edit-row > label { font-weight: 600; width: 220px; flex-shrink: 0; font-size: .88rem; }
.tracker-edit-pills { display: flex; gap: .5rem; }
.pill-radio { cursor: pointer; }
.pill-radio input { display: none; }
.pill-radio input:checked + .pill-label { box-shadow: 0 0 0 2px var(--color-green); }
.pill-label { display: inline-block; padding: .25rem .75rem; border-radius: 20px; font-size: .75rem; font-weight: 600; cursor: pointer; }

/* Shared form components (location pages) */
.contact-form .form-group { margin-bottom: .75rem; }

/* Phase badges */
.phase-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 20px;
}
.phase-badge.phase-1 { background: #e0e7ff; color: #3730a3; }
.phase-badge.phase-2 { background: #fef3c7; color: #92400e; }
.phase-badge.phase-3 { background: #dcfce7; color: #166534; }
.phase-badge.phase-4 { background: #ccfbf1; color: #134e4a; }

/* Cards (for location list pages) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.location-card { background: var(--color-white); border: 1px solid rgba(46,47,34,.1); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; color: var(--color-dark); transition: transform .2s, box-shadow .2s; }
.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-phase-bar { height: 4px; }
.card-phase-bar.phase-1 { background: #a5b4fc; }
.card-phase-bar.phase-2 { background: #fcd34d; }
.card-phase-bar.phase-3 { background: var(--color-green); }
.card-phase-bar.phase-4 { background: #2dd4bf; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-top { display: flex; flex-direction: column; gap: .35rem; }
.card-address { font-size: .8rem; color: var(--color-olive); }
.card-text { font-size: .85rem; color: var(--color-brown); flex: 1; }
.card-link { font-size: .82rem; font-weight: 700; color: var(--color-green); margin-top: auto; }

/* Alerts */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 1.25rem; font-weight: 500; }
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* Sidebar cards (location pages) */
.location-layout { display: flex; gap: 2.5rem; align-items: flex-start; padding-top: 2.5rem; padding-bottom: 3rem; }
.location-main { flex: 1; min-width: 0; }
.location-sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.content-section { background: var(--color-white); border: 1px solid rgba(46,47,34,.08); border-radius: var(--radius-md); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.content-section h2 { margin-bottom: 1rem; font-size: 1.3rem; }
.sidebar-card { background: var(--color-white); border: 1px solid rgba(46,47,34,.08); border-radius: var(--radius-md); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.sidebar-dark { background: var(--color-dark); border-color: var(--color-dark); color: rgba(255,255,255,.85); }
.sidebar-dark h3 { color: var(--color-white); margin-bottom: .75rem; }
.sidebar-dark p { color: rgba(255,255,255,.75); font-size: .88rem; }
.sidebar-card h3 { font-size: .95rem; margin-bottom: .75rem; color: var(--color-dark); }
.sidebar-card p { font-size: .88rem; color: var(--color-brown); }
.sidebar-list { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-list li { font-size: .83rem; padding-left: 1.4rem; position: relative; color: rgba(255,255,255,.6); }
.sidebar-list li::before { content: '●'; position: absolute; left: 0; font-size: .6rem; top: .25rem; }
.sidebar-list li.done { color: #74c464; }
.sidebar-list li.done::before { color: #74c464; }
.sidebar-list li.current { color: #fde68a; font-weight: 600; }
.sidebar-list li.current::before { color: #fde68a; }
.sidebar-list li.pending { color: rgba(255,255,255,.35); }
.kpi-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .5rem; }
.kpi { text-align: center; }
.kpi-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--color-white); }
.kpi-label { font-size: .72rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .04em; }

/* Page header for inner pages */
.page-header { background: var(--color-cream); padding: 3rem 0 2.5rem; border-bottom: 1px solid rgba(46,47,34,.08); }
.page-header h1 { margin-bottom: .5rem; }
.page-header p { color: var(--color-brown); }

/* Filter bar */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { padding: .4rem .9rem; border: 1.5px solid rgba(46,47,34,.15); border-radius: 20px; background: var(--color-white); font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--color-brown); font-family: 'Poppins', inherit; transition: all .15s; }
.filter-btn:hover, .filter-btn.active { background: var(--color-green); color: var(--color-white); border-color: var(--color-green); }

/* Auth page */
.auth-page { background: var(--color-cream); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container { width: 100%; max-width: 420px; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.auth-logo { display: flex; align-items: center; gap: .6rem; }
.auth-logo img { height: 40px; }
.auth-card { width: 100%; background: var(--color-white); border: 1px solid rgba(46,47,34,.1); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.auth-sub { color: var(--color-olive); font-size: .88rem; margin-bottom: 1.5rem; }
.auth-form { margin-top: 1.5rem; }
.auth-back { font-size: .85rem; color: var(--color-olive); }
.auth-back:hover { color: var(--color-green); }

/* Btn-sm for tables */
.btn-sm { padding: .28rem .7rem; font-size: .78rem; border-radius: var(--radius-sm); background: var(--color-sage); color: var(--color-green); font-weight: 600; border: 1px solid rgba(46,47,34,.1); cursor: pointer; font-family: 'Poppins', inherit; }
.btn-sm:hover { background: var(--color-green); color: var(--color-white); }
.btn-ghost-sm { background: transparent; border-color: rgba(46,47,34,.1); color: var(--color-brown); }
.btn-ghost-sm:hover { background: var(--color-cream); color: var(--color-dark); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.4rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; cursor: pointer; border: 1.5px solid var(--color-dark); color: var(--color-dark); background: transparent; font-family: 'Poppins', inherit; transition: all .2s; }
.btn-outline:hover { background: var(--color-dark); color: var(--color-white); }

/* Hero inner pages */
.hero-location { min-height: 360px; }
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-content h1 { color: var(--color-white); margin: .75rem 0 .5rem; }
.hero-content p { color: rgba(255,255,255,.8); font-size: .95rem; }

/* Vote/funding/tracker/blog (location pages) */
.vote-results { margin: 1.25rem 0; }
.vote-bar-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.vote-label { font-size: .83rem; width: 90px; flex-shrink: 0; }
.vote-bar { flex: 1; height: 9px; background: rgba(46,47,34,.08); border-radius: 5px; overflow: hidden; }
.vote-fill { height: 100%; border-radius: 5px; }
.fill-yes { background: var(--color-green); }
.fill-no  { background: var(--color-olive); }
.vote-pct { font-size: .83rem; font-weight: 700; width: 40px; text-align: right; flex-shrink: 0; }
.vote-total { font-size: .78rem; color: var(--color-olive); margin-top: .4rem; }
.vote-form { margin-top: 1.5rem; }
.vote-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.btn-vote { flex: 1; min-width: 180px; }
.funding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.funding-block h4 { font-size: .82rem; margin-bottom: .75rem; color: var(--color-olive); text-transform: uppercase; letter-spacing: .04em; }
.progress-wrap { display: flex; flex-direction: column; gap: .4rem; }
.progress-bar { height: 9px; background: rgba(46,47,34,.08); border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--color-green); border-radius: 5px; }
.progress-label { font-size: .8rem; color: var(--color-brown); }
.funding-pct { font-size: 1.05rem; font-weight: 700; color: var(--color-green); margin-top: .2rem; }
.blog-card { border-left: 3px solid var(--color-green); padding: .9rem 1rem; margin-bottom: 1rem; }
.blog-meta { font-size: .75rem; color: var(--color-olive); margin-bottom: .3rem; }
.blog-card h3 { font-size: .95rem; margin-bottom: .35rem; }
.blog-card p { font-size: .85rem; color: var(--color-brown); }
.blog-image { border-radius: var(--radius-sm); margin-bottom: .75rem; max-height: 220px; width: 100%; object-fit: cover; }
.open-status { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; margin-bottom: 1rem; padding: .4rem .8rem; border-radius: 20px; width: fit-content; }
.status-open { background: rgba(58,90,46,.15); color: #74c464; }
.status-closed { background: rgba(220,38,38,.12); color: #f87171; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hours-table { width: 100%; font-size: .8rem; margin-top: .5rem; }
.hours-table td { padding: .25rem 0; color: rgba(255,255,255,.75); }
.hours-table td:last-child { text-align: right; color: rgba(255,255,255,.55); }
.text-muted { color: var(--color-olive); font-size: .88rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .activity-card { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-image { order: -1; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .timeline-line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .location-layout { flex-direction: column; }
  .location-sidebar { width: 100%; }
  .admin-sidebar { display: none; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: .9rem;
    border-bottom: 1px solid rgba(46,47,34,.08);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-right { display: none; }
  .nav-right.open { display: flex; flex-direction: column; width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .audience-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .funding-grid { grid-template-columns: 1fr; }
  .form-row-2, .form-row { grid-template-columns: 1fr; }
  .vote-buttons { flex-direction: column; }
}
