/* Parish Website — 2026
   Design philosophy: restraint, whitespace, typography.
   3 backgrounds, 1 accent, let photography breathe. */

/* Self-hosted Inter — no external requests, no GDPR issues */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The palette — deliberately minimal */
  --blue: #3B5FC0;
  --blue-hover: #2e4a99;
  --blue-subtle: rgba(59,95,192,0.06);

  /* Three backgrounds — that's it */
  --white: #ffffff;
  --section: #f5f5f7;
  --dark: #1d1d1f;

  /* Text — grayscale hierarchy via opacity */
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;

  /* Structural */
  --border: rgba(0,0,0,0.08);
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* WhatsApp — only for the one button */
  --whatsapp: #25D366;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--blue);
  color: white;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.stagger > .reveal:nth-child(1) { transition-delay: 0.04s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.12s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.20s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.24s; }

/* ============================================
   HERO — Full viewport, photo does the work
   ============================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  background: var(--dark);
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 55%;
  will-change: transform;
  animation: heroSlow 30s ease-in-out infinite alternate;
}

@keyframes heroSlow {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.03) translateY(-1%); }
}

.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, transparent 40%, var(--white) 100%);
  pointer-events: none;
}

.hero-banner .hero-text {
  position: absolute;
  top: 15%;
  left: 0; right: 0;
  text-align: center;
  padding: 0 1.5rem;
  animation: fadeUp 1s var(--ease) 0.2s both;
}

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

.hero-banner .hero-text h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.06em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.2);
  line-height: 1.05;
}

.hero-banner .hero-text .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-top: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2.5s var(--ease) infinite;
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
  text-decoration: none;
}
.hero-scroll:hover { text-decoration: none; color: rgba(255,255,255,0.7); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Simple hero (no image) */
.hero-simple {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  background: var(--section);
}
.hero-simple h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
}
.hero-simple .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Gradient hero (pfarrbrief) */
.hero-gradient {
  background: var(--blue);
  padding: 6rem 2rem 5rem;
  text-align: center;
}
.hero-gradient h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
}
.hero-gradient .subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}

/* ============================================
   HEADER — Clean, minimal
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0.6rem 1.5rem;
  transition: all 0.35s var(--ease);
}

.site-header .header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 1.25rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.6);
  transition: all 0.35s var(--ease);
}

.site-header.scrolled .header-inner {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 0 var(--border);
}

.header-brand {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.header-brand:hover { text-decoration: none; color: var(--text); }
.header-brand span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.76rem;
}

.header-nav {
  display: flex;
  gap: 0.1rem;
}
.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s;
}
.header-nav a:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
  text-decoration: none;
}
.header-nav a.active {
  color: var(--text);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

/* ============================================
   CARDS — almost invisible styling
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.card-static {
  background: var(--white);
  border-radius: var(--r);
  padding: 1.75rem;
}

/* ============================================
   ARTICLE GRID (legacy, kept for compatibility)
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.article-card:hover { text-decoration: none; }

.article-card .card-image {
  width: calc(100% + 3rem);
  height: 200px;
  object-fit: cover;
  border-radius: var(--r) var(--r) 0 0;
  margin: -1.5rem -1.5rem 1.25rem;
  transition: transform 0.6s var(--ease);
}
.article-card:hover .card-image { transform: scale(1.04); }

.article-card .card-chapter {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.article-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}
.article-card .card-excerpt {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

/* ============================================
   BENTO GRID
   ============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bento-card {
  background: var(--section);
  border-radius: var(--r);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.bento-card:hover {
  text-decoration: none;
  transform: scale(1.015);
}

/* XL card: 2 columns, 2 rows */
.bento-xl {
  grid-column: span 2;
  grid-row: span 2;
}

/* Full-width card */
.bento-wide {
  grid-column: 1 / -1;
}

/* Label (small uppercase — one style, used everywhere) */
.bento-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* --- Event highlight card --- */
.bento-event {
  background: var(--dark);
  color: #fff;
  padding: 2.5rem;
  justify-content: center;
}
.bento-event:hover {
  transform: scale(1.01);
}

.bento-event .bento-label {
  color: var(--blue);
  opacity: 0.8;
}

.bento-date {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.bento-event h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 0.5rem;
}

.bento-time {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}

.bento-mini-list {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  margin-top: auto;
}
.bento-mini-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.bento-mini-list .mini-date {
  font-weight: 600;
  min-width: 38px;
  color: rgba(255,255,255,0.55);
  font-variant-numeric: tabular-nums;
}

.bento-link {
  display: inline-block;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.75rem;
  transition: color 0.2s;
}
.bento-link:hover { color: #fff; text-decoration: none; }

/* --- Article card in bento --- */
.bento-article {
  cursor: pointer;
  overflow: hidden;
  background: var(--white);
}
.bento-article img {
  width: calc(100% + 3rem);
  height: 170px;
  object-fit: cover;
  margin: -1.5rem -1.5rem 1rem;
  border-radius: var(--r) var(--r) 0 0;
  transition: transform 0.6s var(--ease);
}
.bento-article:hover img { transform: scale(1.04); }
.bento-article:hover { transform: translateY(-3px); }

.bento-article h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.bento-article p {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* --- Quick action cards --- */
.bento-quick {
  background: var(--section);
  text-align: center;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  min-height: 150px;
}
.bento-quick:hover {
  background: var(--blue-subtle);
  transform: scale(1.03);
}
.bento-quick-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.bento-quick h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.bento-quick p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: sticky;
  top: 80px;
}
.sidebar h2 {
  font-size: 0.7rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.termin-list { list-style: none; }
.termin-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}
.termin-item:last-child { border-bottom: none; }
.termin-date {
  min-width: 42px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.termin-info .termin-title {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.termin-info .termin-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   SUBSCRIBE — integrated into bento grid
   ============================================ */
.bento-subscribe {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: var(--section);
  border-radius: var(--r);
  flex-wrap: wrap;
}

.bento-subscribe .subscribe-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.subscribe-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.subscribe-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
}
.subscribe-link:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
  text-decoration: none;
}
.subscribe-link .subscribe-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ============================================
   ARTICLE DETAIL
   ============================================ */
.article-detail {
  max-width: 680px;
  margin: 0 auto;
}
.article-detail h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 700;
}
.article-detail .article-meta {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-detail .article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-detail .article-body p { margin-bottom: 1.25rem; }
.article-detail .article-body img {
  max-width: 100%;
  border-radius: var(--r);
  margin: 1.5rem 0;
}
.article-detail .article-body h2 {
  margin-top: 2.5rem; margin-bottom: 0.75rem;
  color: var(--text); font-size: 1.4rem; letter-spacing: -0.03em;
}
.article-detail .article-body h3 {
  margin-top: 1.5rem; margin-bottom: 0.75rem;
  color: var(--text); font-size: 1.15rem; letter-spacing: -0.02em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: gap 0.2s var(--ease);
}
.back-link:hover { gap: 0.6rem; text-decoration: none; }

/* ============================================
   CALENDAR
   ============================================ */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-ical {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: var(--blue);
  color: #fff;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s;
}
.btn-ical:hover {
  filter: brightness(1.1);
  text-decoration: none;
  color: #fff;
}

.btn-ical-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-ical-small:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  text-decoration: none;
}

.calendar-month { margin-bottom: 2.5rem; }
.calendar-month h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calendar-grid { display: flex; flex-direction: column; }
.calendar-event {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.5rem;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.calendar-event:nth-child(odd) { background: var(--section); }
.calendar-event:hover { background: var(--blue-subtle); }

.calendar-event .event-date {
  min-width: 55px;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.calendar-event .event-time {
  min-width: 64px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.calendar-event .event-title {
  flex: 1;
  color: var(--text);
  font-size: 0.88rem;
}
.calendar-event .event-title small { color: var(--text-muted); }

.category-filter { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.category-filter a {
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--section);
  transition: all 0.15s;
}
.category-filter a:hover {
  color: var(--text);
  background: rgba(0,0,0,0.08);
  text-decoration: none;
}
.category-filter a.active {
  background: var(--blue);
  color: #fff;
}

/* ============================================
   GROUP FILTER CHIPS (Kalender)
   ============================================ */
.group-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.group-chips-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.25rem;
}
.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.group-chip:hover {
  border-color: rgba(0,0,0,0.2);
}
.group-chip .group-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.group-chip.excluded {
  background: var(--section);
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
}

/* ============================================
   PDF DOWNLOAD
   ============================================ */
.download-section { text-align: center; padding: 2rem 0; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--blue);
  color: #fff;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s;
  border: none;
  cursor: pointer;
}
.download-btn:hover {
  filter: brightness(1.1);
  text-decoration: none;
  color: #fff;
}
.cover-preview {
  max-width: 280px;
  margin: 0 auto 2rem;
  border-radius: var(--r);
}

/* ============================================
   PFARRBRIEF PAGE
   ============================================ */
.pfarrbrief-card { }
.pfarrbrief-articles h3 {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pfarrbrief-articles ul { list-style: none; padding: 0; }
.pfarrbrief-articles li { border-bottom: 1px solid var(--border); }
.pfarrbrief-articles li:last-child { border-bottom: none; }
.pfarrbrief-articles a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: block;
  padding: 0.6rem 0.25rem;
  border-radius: 6px;
  transition: color 0.15s;
}
.pfarrbrief-articles a:hover {
  color: var(--blue);
  text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--section);
  color: var(--text-secondary);
  padding: 3rem 2rem 1.5rem;
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-col h3 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col p, .footer-col a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.7;
}
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.3rem; }

.footer-subscribe-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted) !important;
  font-size: 0.82rem;
}
.footer-subscribe-link:hover { color: var(--text) !important; }

.footer-bottom {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================
   RELATED
   ============================================ */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-size: 0.7rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 2rem;
  font-size: 0.95rem;
}
.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-banner { height: 70vh; min-height: 400px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-xl { grid-column: span 2; grid-row: span 1; }
  .bento-event { padding: 2rem; }
  .bento-event h2 { font-size: 1.5rem; }
}

@media (max-width: 640px) {
  .container { padding: 2rem 1rem; }
  .article-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-xl { grid-column: span 1; grid-row: span 1; }
  .bento-event { padding: 1.5rem; }
  .bento-quick { min-height: 120px; }

  .site-header { padding: 0.5rem 0.75rem; }
  .site-header .header-inner {
    padding: 0 0.75rem;
    height: 44px;
    border-radius: 10px;
  }

  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.75rem; right: 0.75rem;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem;
    border-radius: var(--r-sm);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    animation: popIn 0.25s var(--ease);
  }
  @keyframes popIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
  .header-nav.open a {
    padding: 0.65rem 1rem;
    border-radius: 8px;
  }
  .menu-toggle { display: block; }

  .hero-banner { height: 60vh; min-height: 350px; }
  .hero-banner .hero-text { top: 12%; }

  .bento-subscribe { flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
  .subscribe-links { justify-content: center; }

  .calendar-header { flex-direction: column; align-items: flex-start; }
  .calendar-event { flex-wrap: wrap; gap: 0.4rem; padding: 0.5rem; }

  .hero-gradient { padding: 4rem 1.5rem 3rem; }

  .hero-scroll { display: none; }
}
