/* ============================================================
   lebeninschweiz.ch — Global Styles
   Shared by ALL pages: header, footer, typography, CSS variables
   ============================================================ */

/* --- CSS Variables --- */
.article-header, .article-content {
  /* Colors */
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-light: #fef2f2;
  --gold: #b45309;
  --gold-dark: #92400e;
  --gold-light: #fefce8;
  --green-dark: #065f46;
  --green-light: #ecfdf5;
  --gray-50: #f9fafb;
  --gray-100: #f4f5f7;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --text-primary: #111827;
  --text-body: #4b5563;
  --text-muted: #6b7280;
  --bg-page: #f4f5f7;
  --bg-card: #ffffff;
  --bg-summary: #f9fafb;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;

  /* Layout */
  --header-height: 72px;
  --content-width: 920px;
  --content-narrow: 760px;

  /* Shadows */
  --shadow-3d: 0 4px 20px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
  --shadow-3d-hover: 0 8px 30px rgba(0,0,0,0.1), 0 1px 0 rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  background: #f4f5f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.article-header a, .article-content a:not(.share-link) {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}
.article-header a:hover, .article-content a:hover:not(.share-link) {
  color: var(--red-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
.article-header h1, .article-header h2, .article-header h3,
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 700;
}

.article-header h1, .article-content h1 { font-size: 1.9rem; }
.article-content h2 {
  font-size: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.2rem;
}
.article-content h3 { font-size: 1.08rem; font-weight: 600; }
.article-content h4 { font-size: 1rem; font-weight: 600; }

.article-header p, .article-content p { margin-bottom: 1rem; }
.article-header strong, .article-content strong { color: var(--text-primary); font-weight: 600; }

/* Chrome del sitio real: texto claro como en produccion */
.footer, .header, .mega-menu, .mobile-overlay { color: #e8ecf1; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  z-index: 10000;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: var(--red);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* --- Footer --- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 24px 32px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--gray-400);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--content-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* --- Utility Classes --- */
.highlight-red { color: var(--red); font-weight: 600; }
.highlight-gold { color: var(--gold); font-weight: 600; }
.highlight-blue { color: var(--gray-700); font-weight: 600; }

.tag-red {
  display: inline-block;
  background: var(--red-light);
  color: var(--red-dark);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-gold {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-blue {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Meta Pills --- */
.meta-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.meta-pill--date { background: var(--red-light); color: var(--red-dark); }
.meta-pill--time { background: var(--gold-light); color: var(--gold-dark); }
.meta-pill--fact { background: var(--green-light); color: var(--green-dark); }

/* --- Container --- */
/* Solo el contenido: el .container del footer usa la regla del sitio */
.article-header .container,
.article-content .container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {

  .article-header h1, .article-content h1 { font-size: 1.5rem; }
  .article-content h2 { font-size: 1.2rem; }
  .article-content h3 { font-size: 1rem; }

  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-3d);
    gap: 16px;
  }

  .menu-toggle { display: block; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Chrome oscuro del sitio real (header/footer) */
.page-article { background: #0a0e17; }
