/* ═══════════════════════════════════════════════════════════════════════════
   EM-Gemeinschaft Österreich — theme.css
   Custom Properties: Farben, Fonts, Overrides
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --primary:         #2d6a4f;
  --primary-dark:    #1b3a2a;
  --primary-light:   #40916c;
  --primary-rgb:     45, 106, 79;
  --secondary:       #b7791f;
  --secondary-light: #d4a039;

  --bg:              #faf8f5;
  --bg-alt:          #f0ece4;
  --bg-dark:         #1b3a2a;
  --text:            #2c2c2c;
  --text-muted:      #5a5a5a;
  --text-light:      #6b6b6b;
  --text-on-primary: #ffffff;
  --heading:         #1b3a2a;
  --border:          #d5cfc5;
  --card-bg:         #ffffff;
  --shadow:          rgba(45, 106, 79, 0.08);
  --focus:           #2d6a4f;
  --error:           #b33a3a;
  --success:         #2d6a4f;

  --font-heading: 'Lora', Georgia, serif;
  --font-body:    'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:           #111a14;
  --bg-alt:       #1b2b1f;
  --bg-dark:      #0a120d;
  --text:         #e0e0d8;
  --text-muted:   #a0a098;
  --text-light:   #b0b0a8;
  --heading:      #f0f0e8;
  --border:       #2a3a2e;
  --card-bg:      #1b2b1f;
  --shadow:       rgba(0, 0, 0, 0.3);
}

/* Hero max-height 50vh */
.hero--fullscreen { min-height: 50vh; max-height: 50vh; }

/* Section-dark uses footer green */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-primary);
}
.section-dark .section-title,
.section-dark .section-lead { color: var(--text-on-primary); }

/* Banner strip styling */
.banner-strip { background: var(--primary); color: #fff; }

/* ─── Logo: larger and legible ─────────────────────────────────────────── */
.nav-logo img {
  height: 3.5rem;
  width: auto;
}

/* ─── Sticky footer for short-content pages ────────────────────────────── */
body.layout-modern {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.layout-modern > #site-footer {
  margin-top: auto;
}

/* ─── Footer text contrast ─────────────────────────────────────────────── */
.footer-bottom {
  color: rgba(255, 255, 255, 0.85);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}
.footer-bottom a:hover {
  color: #ffffff;
}
.footer-powered {
  opacity: 1;
  color: rgba(255, 255, 255, 0.75);
}
.footer-powered a {
  color: rgba(255, 255, 255, 0.85);
}
.footer-powered a:hover {
  color: #ffffff;
}

/* ─── Cookie banner buttons: consistent styling ────────────────────────── */
.cb-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1.2rem;
}
.cb-decline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.cb-accept {
  background: var(--primary);
  color: var(--text-on-primary);
  border: 1px solid var(--primary);
  padding: 0.55rem 1.2rem;
}
.cb-accept:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ─── Section-dark: warm dark green, not blue-black ────────────────────── */
.layout-modern .section-dark {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #142b1c 100%);
}

/* ─── Active navigation link: more prominent ──────────────────────────── */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom-color: var(--secondary);
  border-bottom-width: 0.15rem;
}
.nav-mobile a.active {
  color: var(--primary);
  font-weight: 700;
}

/* ─── Footer grid: even spacing, visible separator, aligned columns ──── */
.footer-grid {
  gap: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  align-items: start;
}

/* ─── Hero vertical centering in 50vh hero ────────────────────────────── */
.hero--fullscreen .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* ─── Header nav: consistent alignment ───────────────────────────────── */
.nav-inner {
  padding: 0 var(--space-lg);
}
.nav-links {
  gap: var(--space-lg);
}

/* ─── Reduce excessive whitespace on content sections ────────────────── */
.layout-modern section {
  min-height: auto;
}

/* ─── Cookie banner: fixed at bottom, consistent buttons ─────────────── */
.cb-buttons {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.cb-btn {
  padding: 0.55rem 1.2rem;
  font-size: var(--fs-xs);
  line-height: 1.4;
}
.cb-text a {
  text-decoration: underline;
}

/* ─── Footer col headings: WCAG-friendly gold on dark bg ─────────────── */
.footer-col h4 {
  color: #e8c547;
}

/* ─── Banner-strip: weiße Schrift auf grünem Hintergrund ─────────────── */
.banner-strip .banner-val {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.banner-strip .banner-label {
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Ghost-Button auf Hero: besserer Kontrast ────────────────────────── */
.hero--image .btn-ghost,
.hero--fullscreen .btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.hero--image .btn-ghost:hover,
.hero--fullscreen .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
}

/* ─── Hero: mehr Höhe, nicht abgeschnitten ────────────────────────────── */
.hero--fullscreen {
  min-height: 65vh !important;
  max-height: 65vh !important;
}


/* ─── Specificity fix: nth-of-type override ──────────────────────────── */
body.layout-modern section.section-dark {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #142b1c 100%) !important;
  color: var(--text-on-primary) !important;
}

/* Card-Body: kompakte Abstände, kein flex-stretch */
.card-body p { flex: 0 0 auto !important; margin-bottom: 0.25rem !important; }
.card-body p:last-child { margin-bottom: 0 !important; }

/* ─── Banner-Grid: 3 Spalten (3 Items) — nur Desktop ─────────────────── */
@media (min-width: 48rem) {
  .banner-strip .banner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Hero: leichteres Bild (weniger gesättigt, hellere Overlay) ────────── */
.hero--fullscreen .hero-bg {
  filter: saturate(0.9) brightness(1.05);
}
.hero--fullscreen .hero-bg::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.30) 40%,
    rgba(0, 0, 0, 0.60) 75%,
    rgba(0, 0, 0, 0.72) 100%
  );
}
